stack/.github/workflows
Konsti Wohlwend 7a35751f8e
Sign up rules (#1138)
<!-- CURSOR_SUMMARY -->
> [!NOTE]
> **High Risk**
> Touches core sign-up/auth flows and user restriction semantics
(including new DB constraints) and introduces dynamic rule
evaluation/logging; misconfiguration or CEL/parser bugs could block
sign-ups or incorrectly restrict users.
> 
> **Overview**
> Introduces **CEL-based sign-up rules** (config-driven) that are
evaluated during password/OTP/OAuth sign-ups and anonymous upgrades;
matching rules can reject sign-ups or mark users as admin-restricted,
and triggers are logged for analytics.
> 
> Extends `ProjectUser` with `restrictedByAdmin` plus public/private
restriction details, updates restriction computation/filtering, and
exposes these fields via user CRUD (including validation + DB constraint
enforcing consistency when unrestricted).
> 
> Adds a new dashboard **Sign-up Rules** page with a visual condition
builder (CEL <-> visual tree), drag-reorder by priority, per-rule 48h
sparkline analytics via a new hidden internal endpoint, and adds
user-page UI to view/edit manual restrictions. Also refactors ClickHouse
client initialization to require env vars (removing
`isClickhouseConfigured` checks) and adjusts CI container startup wait
time.
> 
> <sup>Written by [Cursor
Bugbot](https://cursor.com/dashboard?tab=bugbot) for commit
2141e689e8c1b72303b805e9234f996010d0880. This will update automatically
on new commits. Configure
[here](https://cursor.com/dashboard?tab=bugbot).</sup>
<!-- /CURSOR_SUMMARY -->

<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit

* **New Features**
* Sign-up Rules: visual rule builder, in-project CRUD with drag-reorder,
per-rule analytics, backend evaluation, and admin UI.
* Admin user restrictions: dashboard controls, banners/status,
public/private admin details surfaced in user views.

* **APIs & Schema**
* Config and user schemas extended; new SignUpRejected error and sign-up
rule types added.

* **Tests**
* Extensive unit and E2E coverage for rules, parser, evaluator,
analytics, and restricted-user flows.

* **Docs**
  * Editorial guidance added to AGENTS.md.

* **Chores**
* DB statement timeout, updated clean script, minor dependency
additions.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2026-02-03 11:08:24 -08:00
..
all-good.yaml Add Claude Code GitHub Workflow (#833) 2025-08-07 18:44:49 -07:00
auto-assign.yaml Run auto-assign on draft PRs 2025-04-10 10:18:47 -07:00
auto-update.yaml Run auto-update only once per day 2025-03-12 17:10:03 -07:00
check-prisma-migrations.yaml Speed up tests (#1063) 2025-12-28 11:25:04 -08:00
claude.yml Upgrade GitHub workflow scripts 2025-11-24 11:21:43 -08:00
db-migration-backwards-compatibility.yaml --no-bail for verify-data-integrity script 2026-01-28 13:53:28 -08:00
docker-emulator-test.yaml Upgrade GitHub workflow scripts 2025-11-24 11:21:43 -08:00
docker-server-build-push.yaml Email outbox backend (#1030) 2025-12-12 10:26:38 -08:00
docker-server-build-run.yaml Sign up rules (#1138) 2026-02-03 11:08:24 -08:00
e2e-api-tests.yaml --no-bail for verify-data-integrity script 2026-01-28 13:53:28 -08:00
e2e-custom-base-port-api-tests.yaml --no-bail for verify-data-integrity script 2026-01-28 13:53:28 -08:00
e2e-source-of-truth-api-tests.yaml --no-bail for verify-data-integrity script 2026-01-28 13:53:28 -08:00
lint-and-build.yaml Upgrade pnpm in GH workflows 2025-11-24 12:02:09 -08:00
mirror-to-wdb.yaml Upgrade GitHub workflow scripts 2025-11-24 11:21:43 -08:00
npm-publish.yaml npm publish action 2026-01-12 15:41:41 -08:00
restart-dev-and-test-with-custom-base-port.yaml fix analytics queries (#1141) 2026-01-29 10:21:58 -08:00
restart-dev-and-test.yaml fix analytics queries (#1141) 2026-01-29 10:21:58 -08:00
reviewers-assignees.yml Update review assigner script 2025-09-10 12:05:04 -07:00
setup-tests-with-custom-base-port.yaml fix analytics queries (#1141) 2026-01-29 10:21:58 -08:00
setup-tests.yaml fix analytics queries (#1141) 2026-01-29 10:21:58 -08:00
swift-sdk-publish.yaml [Fix] [Feat] Update OAuth Sign-In and Get Token Functions to Work (#1130) 2026-01-28 02:17:27 +00:00
sync-main-to-dev.yml Upgrade GitHub workflow scripts 2025-11-24 11:21:43 -08:00
table-of-contents.yaml GH Actions push trigger only on main or dev branches 2025-03-12 10:52:35 -07:00