Commit Graph

3237 Commits

Author SHA1 Message Date
Developing-Gamer
0197cd5517 Add API key create and show dialogs for account settings.
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-05-27 12:47:47 -07:00
Developing-Gamer
b629d5a8a8 Add API key table for dashboard account settings.
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-05-27 12:47:47 -07:00
Developing-Gamer
3d7eee99fb Add team icon component for dashboard account settings.
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-05-27 12:47:47 -07:00
Developing-Gamer
5ed337eb38 Add local types for dashboard account settings API keys.
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-05-27 12:47:47 -07:00
Developing-Gamer
c2ce97e8ce Add profile image editor for account settings.
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-05-27 12:47:45 -07:00
Developing-Gamer
3083967301 Add editable text component for account settings.
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-05-27 12:47:45 -07:00
Developing-Gamer
8a09b16c26 Add account settings sidebar layout for dashboard.
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-05-27 12:47:45 -07:00
Developing-Gamer
9fb289d5a0 Add account settings page layout and section primitives.
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-05-27 12:47:44 -07:00
Developing-Gamer
a2feba08dd Document dashboard-only account settings customization pattern.
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-05-27 12:47:44 -07:00
Developing-Gamer
c463180ddb Sync stack UI primitive styling.
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-05-27 12:31:14 -07:00
Developing-Gamer
4583e8e838 Align dashboard UI tab exports.
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-05-27 12:31:14 -07:00
Developing-Gamer
2a64025651 Refresh dashboard UI dialog inputs.
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-05-27 12:31:14 -07:00
Developing-Gamer
7050e96058 Apply data grid sizing updates.
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-05-27 12:31:14 -07:00
Developing-Gamer
9d3d5865fb Add data grid sizing helpers.
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-05-27 12:31:14 -07:00
Developing-Gamer
15f4573bfb Polish dashboard UI feedback primitives.
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-05-27 12:31:14 -07:00
Developing-Gamer
f4944f7d0c Refresh vibe coding layout.
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-05-27 12:31:14 -07:00
Developing-Gamer
8b8ada15ad Align dashboard menu form primitives.
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-05-27 12:31:14 -07:00
Developing-Gamer
8eaac91fd6 Align dashboard button dialog primitives.
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-05-27 12:31:14 -07:00
Developing-Gamer
3ab5db90ad Refresh action dialog chrome.
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-05-27 12:31:14 -07:00
Developing-Gamer
b4286aa2d6 Refine rule builder conditions UI.
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-05-27 12:31:14 -07:00
Developing-Gamer
b435624de7 Polish dashboard menu settings surfaces.
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-05-27 12:31:14 -07:00
Developing-Gamer
89af885d95 Add dashboard user menu button.
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-05-27 12:31:14 -07:00
Developing-Gamer
93bb13f51f Refine country code select styling.
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-05-27 12:31:14 -07:00
Developing-Gamer
f8b95d5a08 Soften assistant thread surface.
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-05-27 12:31:14 -07:00
Developing-Gamer
42e10ce944 Polish sign-up rules page.
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-05-27 12:31:14 -07:00
Developing-Gamer
6bf8034581 Rework session replay layout.
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-05-27 12:31:14 -07:00
Developing-Gamer
12744a2bbd Refresh product payment lists.
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-05-27 12:31:13 -07:00
Developing-Gamer
a120e732ca Normalize project page shell spacing.
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-05-27 12:31:13 -07:00
Developing-Gamer
514fcc6637 Polish launch checklist layout.
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-05-27 12:31:13 -07:00
Developing-Gamer
34266ad604 Refine email sender pages.
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-05-27 12:31:13 -07:00
Developing-Gamer
bdd3884e96 Polish project domains page.
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-05-27 12:31:13 -07:00
Developing-Gamer
315add23ca Refresh support conversations UI.
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-05-27 12:31:13 -07:00
Developing-Gamer
3a2186d349 Improve auth method review surfaces.
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-05-27 12:31:13 -07:00
Developing-Gamer
a4a7b0f2c9 Tighten analytics table layout.
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-05-27 12:31:13 -07:00
Developing-Gamer
d9177cba24 Refresh analytics AI query controls.
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-05-27 12:31:13 -07:00
Developing-Gamer
695131efbf Polish analytics query editor surface.
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-05-27 12:31:13 -07:00
Armaan Jain
a27e4d9bb5
Small onboarding fixes (#1489)
<!--

Make sure you've read the CONTRIBUTING.md guidelines:
https://github.com/hexclave/stack-auth/blob/dev/CONTRIBUTING.md

-->

<!-- This is an auto-generated description by cubic. -->
---
## Summary by cubic
Improves onboarding and analytics visuals. Adds clear Stripe setup
actions (Connect or Do Later) with safe redirects and precise
loading/disabled states, and fixes a stuck dashboard reload after
linking an existing project.

- **New Features**
- Payments onboarding: separate Connect/Do Later actions with per-button
loading and mutual disabling.
- US-only: “Do Later” creates a deferred Stripe account before finishing
onboarding.
- Secure redirect: enforce HTTPS on Connect and navigate via
window.location.href.
- Refresh Stripe account cache after `setupPayments()` to avoid stale
data on return.
- Analytics: smoother pie hover transitions, fading center label,
optional `showDateRange`; dashboard donut hides date range and adjusts
radii; revenue hover chart uses split bars for rounded tops and an avg
line.
- Tests cover deferred/unsupported payments setup and button loading
isolation.

- **Bug Fixes**
- After linking an existing config, use a full page navigation to the
project to prevent the dashboard from getting stuck on initial load.

<sup>Written for commit c80034ad1f.
Summary will update on new commits. <a
href="https://cubic.dev/pr/hexclave/stack-auth/pull/1489?utm_source=github">Review
in cubic</a></sup>

<!-- End of auto-generated description by cubic. -->

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

* **New Features**
* Option to defer payments setup during project onboarding;
connect/defer actions show targeted loading states.

* **Improvements**
* Linking existing projects now performs full navigation when
applicable.
* Charts: refined donut/pie sizing, smoother center fade animation,
optional date-range display, and improved color/stack rendering.
  * Payments setup now refreshes account info after setup.

* **Tests**
* Added tests covering payments deferral, connect flows, and UI/loading
behavior.

<!-- review_stack_entry_start -->

[![Review Change
Stack](https://storage.googleapis.com/coderabbit_public_assets/review-stack-in-coderabbit-ui.svg)](https://app.coderabbit.ai/change-stack/hexclave/stack-auth/pull/1489?utm_source=github_walkthrough&utm_medium=github&utm_campaign=change_stack)

<!-- review_stack_entry_end -->
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2026-05-26 17:45:50 -07:00
github-actions[bot]
6a01c1bcc7 chore: update package versions 2026-05-26 22:26:55 +00:00
Konstantin Wohlwend
cbdcea2a78 Various small docs improvements
Some checks failed
all-good: Did all the other checks pass? / all-good (push) Has been cancelled
Ensure Prisma migrations are in sync with the schema / check_prisma_migrations (22.x) (push) Has been cancelled
Docker Server Build and Push / Docker Build and Push Server (push) Has been cancelled
Docker Server Build and Run / docker (push) Has been cancelled
Runs E2E API Tests (Local Emulator) / E2E Tests (Local Emulator, Node ${{ matrix.node-version }}) (22.x) (push) Has been cancelled
Runs E2E API Tests / E2E Tests (Node ${{ matrix.node-version }}, Freestyle ${{ matrix.freestyle-mode }}) (mock, 22.x) (push) Has been cancelled
Runs E2E API Tests / E2E Tests (Node ${{ matrix.node-version }}, Freestyle ${{ matrix.freestyle-mode }}) (prod, 22.x) (push) Has been cancelled
Runs E2E API Tests with custom port prefix / build (22.x) (push) Has been cancelled
Runs E2E Fallback Tests / E2E Fallback Tests (Node ${{ matrix.node-version }}) (22.x) (push) Has been cancelled
Lint & build / lint_and_build (24) (push) Has been cancelled
Publish npm packages / publish (push) Has been cancelled
Publish Swift SDK to prerelease repo / publish (push) Has been cancelled
TOC Generator / TOC Generator (push) Has been cancelled
2026-05-26 15:19:50 -07:00
github-actions[bot]
18df895842 chore: update package versions 2026-05-26 21:59:38 +00:00
Konstantin Wohlwend
4854e551a8 More small retry fixes 2026-05-26 14:48:19 -07:00
Konstantin Wohlwend
7dd764324a Update CLI to use unified setup prompt 2026-05-26 14:00:11 -07:00
Konsti Wohlwend
018ecd1107
Fix client interface 4xx retry handling (#1492) 2026-05-26 13:48:33 -07:00
github-actions[bot]
5f3dc6d9ee chore: update package versions 2026-05-26 20:37:35 +00:00
Konsti Wohlwend
a06c9331f9
Fix skills app CI typecheck (#1490) 2026-05-26 13:32:09 -07:00
Konstantin Wohlwend
c13853702c Remove GitHub OAuth provider error noise 2026-05-26 13:31:16 -07:00
github-actions[bot]
ad197de7fe chore: update package versions 2026-05-26 20:28:07 +00:00
Konstantin Wohlwend
7a2561dd7e Fix OAuth sign-in 2026-05-26 13:14:15 -07:00
BilalG1
a4ae7edecd
fix(ci): repair two pre-existing test failures on dev (#1488)
Both failures are pre-existing on `dev` (confirmed by checking the most
recent dev run
[26434368271](https://github.com/hexclave/stack-auth/actions/runs/26434368271)
— same two annotations, same line numbers). Neither is caused by an open
PR.

## Failure 1 — \`apps/backend/src/lib/redirect-urls.test.tsx:75\`

\`\`\`
AssertionError: expected false to be true
\`\`\`

The \`withHostedHandlerEnv\` helper set/cleared only the
\`STACK_*\`-prefixed env vars. CI's
[e2e-custom-base-port-api-tests.yaml:21](.github/workflows/e2e-custom-base-port-api-tests.yaml#L21)
sets only the \`HEXCLAVE_*\`-prefixed sibling
(\`NEXT_PUBLIC_HEXCLAVE_PORT_PREFIX=67\`), and the dual-read shim in
[packages/stack-shared/src/utils/env.tsx#L53-L55](packages/stack-shared/src/utils/env.tsx#L53-L55)
prefers \`HEXCLAVE_*\` over \`STACK_*\`:

\`\`\`ts
const hexclaveName = getHexclaveEnvVarName(name);
let value = (hexclaveName ? process.env[hexclaveName] : undefined) ??
process.env[name];
\`\`\`

So \`getEnvVariable(\"NEXT_PUBLIC_STACK_PORT_PREFIX\", \"81\")\`
returned \`\"67\"\` instead of the test's \`\"92\"\`, the template
resolved to port \`6709\` instead of \`9209\`, and the assertion at line
75 failed.

**Fix:** mirror every \`STACK_*\` key managed by the helper to its
\`HEXCLAVE_*\` sibling. The dual-read then resolves to the
test-controlled value regardless of which key it checks first.

## Failure 2 —
\`apps/backend/prisma/migrations/20260526060000_nullable_oauth_access_token_expires_at/tests/nullable-expires-at.ts:58\`

\`\`\`
PostgresError: null value in column \"updatedAt\" of relation
\"OAuthAccessToken\" violates not-null constraint
\`\`\`

The migration test's raw INSERT omits \`\"updatedAt\"\`. The Prisma
model declares \`updatedAt DateTime @updatedAt\` with no
\`@default(now())\`, so the DB column is \`NOT NULL\` with no default —
Prisma populates it at the ORM layer on insert, but this test bypasses
Prisma via \`postgres.js\`.

**Fix:** add the \`\"updatedAt\"\` column to the INSERT, set to
\`NOW()\`, with a comment noting why raw SQL must set it explicitly.

## Verification

- **Failure 1, before fix:** ran \`NEXT_PUBLIC_HEXCLAVE_PORT_PREFIX=67
pnpm test run apps/backend/src/lib/redirect-urls.test.tsx\` locally →
reproduces the exact line-75 assertion failure from CI.
- **Failure 1, after fix:** same command → 33/33 pass.
- **Failure 2:** local reproduction requires the migration-test postgres
harness; the fix is one column matching how every other raw SQL insert
in this repo handles \`@updatedAt\` fields. CI on this branch will
confirm.

<!-- This is an auto-generated description by cubic. -->
---
## Summary by cubic
Fixes two failing tests on dev CI by aligning env var handling in
redirect URL tests and by setting the missing updatedAt in a migration
test. Restores green CI with no runtime changes.

- **Bug Fixes**
- Redirect URL tests: `withHostedHandlerEnv` now mirrors `STACK_*`
values to their `HEXCLAVE_*` siblings and restores both, so
`getEnvVariable` reads the test-controlled values even when CI sets only
`HEXCLAVE_*` (e.g. `NEXT_PUBLIC_HEXCLAVE_PORT_PREFIX`).
- Migration test: the raw insert into `OAuthAccessToken` now sets
`"updatedAt" = NOW()` since `Prisma`’s `@updatedAt` isn’t applied when
using `postgres.js` and the column is NOT NULL.

<sup>Written for commit 75c8e4343e.
Summary will update on new commits. <a
href="https://cubic.dev/pr/hexclave/stack-auth/pull/1488?utm_source=github">Review
in cubic</a></sup>

<!-- End of auto-generated description by cubic. -->
2026-05-26 12:59:44 -07:00
Konstantin Wohlwend
4d6a37aced Fix generated files 2026-05-26 12:55:34 -07:00