Commit Graph
9 Commits
Author SHA1 Message Date
coo1estguy 8401edfd08 docs: streamline README and add repo links 2026-10-10 23:07:20 +05:30
2537e64970 feat(db): install into a configurable PostgreSQL schema (#5)
* feat(db): install into a configurable PostgreSQL schema

Add DB_SCHEMA (and dbOptions.schema / createDatabase({ schema }) /
runMigrations(db, { schema })) so notifkit can live in a schema other than
public. Defaults to public, where behaviour is unchanged.

For a custom schema, runMigrations creates the schema, retargets the
bundled migrations at it (rewrites the "public". qualifiers drizzle-kit
emits and sets search_path for the unqualified objects with SET LOCAL,
inside the migration transaction), refuses any migration that still
mentions public afterwards, and keeps the drizzle journal in the same
schema. Afterwards it checks via information_schema that every table of
the package's Drizzle schema exists in the target schema and throws with
the names of any that are missing. createDatabase sets search_path on
every connection.

Add a notifkit-migrate bin (next to notifkit-create-admin) that reads
DATABASE_URL and DB_SCHEMA, applies the migrations, closes the connection
and exits non-zero on failure. The README now uses it for production
migrations instead of drizzle-kit, which ignores DB_SCHEMA, and warns
that switching an existing public install to DB_SCHEMA without moving
its tables first makes it look empty.

Closes #4

* test(db): fix typecheck and lint, move schema tests under tests/

---------

Co-authored-by: Alexander Savchenko <savchenko_av@nlmk.com>
Co-authored-by: coo1estguy <70365929+coolestcodeguy@users.noreply.github.com>
2026-10-07 21:27:45 +05:30
coo1estguy 35a34df2fe refactor: extract worker bootstrap runtime and remove unused code 2026-09-29 13:10:15 +05:30
coo1estguy fed2b27211 chore(release): bump version to 0.1.10 2026-09-19 23:18:20 +05:30
coo1estguy 8d1ff5d816 feat(dashboard): add login screen, auth provider, and server-client example 2026-09-14 23:14:11 +05:30
coo1estguy b5b5db0136 feat(db): add admin_users schema and repository with create-admin script [skip ci] 2026-09-14 23:07:39 +05:30
coo1estguy 167b2d9a7b feat: add notifkit-create-project CLI helper and update quickstart docs 2026-09-08 15:33:11 +05:30
coo1estguy d1076bfc1b ci: add GitHub Actions workflow and dynamic coverage badge generation
- Add .github/workflows/ci.yml with typecheck, lint, build, test, and badge publishing

- Add scripts/coverage-badge.mjs to generate shields.io endpoint JSON from coverage summary

- Update vitest.config.ts with json-summary reporter and include package sources

- Update README.md coverage badge to read from badges branch endpoint

- Ignore badge directory and ignore .next in eslint.config.js
2026-09-01 12:56:36 +05:30
coo1estguy f86776ec75 initial commit 2026-08-19 12:04:44 +05:30