Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: hexclave/hexclave
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: dev
Choose a base ref
...
head repository: hexclave/hexclave
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: claude/merge-dev-resolve-conflicts-Z2kRC
Choose a head ref
Checking mergeability… Don’t worry, you can still create the pull request.
  • 6 commits
  • 3 files changed
  • 2 contributors

Commits on May 16, 2026

  1. Speed up dummy-project seeding (preview create-project)

    Replace the per-user CRUD-handler calls in seedDummyUsers with bulk
    createMany inserts, plus several smaller wins on the seeding path.
    End-to-end the preview create-project endpoint drops from ~15s to ~1.3s.
    
    - seedDummyUsers: build every row up front and insert via one createMany
      per table inside a single transaction, instead of ~86 sequential
      adminCreate transactions. Named-user team memberships are bulk-inserted
      the same way. Idempotency is preserved via a single up-front email
      lookup, so re-runs against an existing project still skip existing
      users.
    - Use node:crypto randomUUID instead of stack-shared generateUuid in the
      seed paths. The browser-safe polyfill calls crypto.getRandomValues ~31x
      per UUID, which dominated CPU time when generating thousands of seed
      UUIDs (~800ms in the activity-event build alone).
    - seedBulkSignupsAndActivity: skip the redundant back-date UPDATE for
      freshly-inserted users (createMany already writes correct timestamps),
      and flush ClickHouse events in larger, parallel batches.
    - seedDummyProject: run seedBulkSignupsAndActivity concurrently with the
      lighter remaining steps, and fold seedDummyTransactions into the
      emails/activity/replays Promise.all.
    - Remove the now-unused syncSeedUserOauthProviders helper.
    BilalG1 committed May 16, 2026
    Configuration menu
    Copy the full SHA
    8d400f5 View commit details
    Browse the repository at this point in the history
  2. Fix preview-mode 404 after creating a preview project

    In preview mode the dashboard's /projects page renders PreviewProjectRedirect,
    which POSTs /internal/preview/create-project and then router.push()es to
    /projects/<new-id>. It never refreshed the client-side owned-projects cache,
    so the [projectId] route's useAdminApp() read a stale list, failed to find the
    just-created project, and called notFound() — showing a 404.
    
    Refresh the owned-projects cache before navigating, matching what the normal
    create-project flow in page-client.tsx already does.
    BilalG1 committed May 16, 2026
    Configuration menu
    Copy the full SHA
    2b0393b View commit details
    Browse the repository at this point in the history
  3. Fix preview mode creating two preview users per page load

    LayoutClient's auto-login effect had no run-once guard. React StrictMode
    (on by default in Next dev) double-invokes effects, and both invocations
    ran while `user` was still null — so in preview mode each generated a
    fresh `preview-*@Preview.stack-auth.com` email and signed up a *separate*
    preview user.
    
    With two users created per load, the session settles on one while the
    preview project may have been created for the other, so the project page
    renders a 404 ("does not have access to it").
    
    Guard the effect with a ref so the auto-login (and preview-user creation)
    runs at most once per mount.
    BilalG1 committed May 16, 2026
    Configuration menu
    Copy the full SHA
    891e596 View commit details
    Browse the repository at this point in the history

Commits on May 19, 2026

  1. Configuration menu
    Copy the full SHA
    3e5f847 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    915f886 View commit details
    Browse the repository at this point in the history
  3. Merge remote-tracking branch 'origin/dev' into claude/merge-dev-resol…

    …ve-conflicts-Z2kRC
    
    # Conflicts:
    #	apps/dashboard/src/app/(main)/(protected)/layout-client.tsx
    claude committed May 19, 2026
    Configuration menu
    Copy the full SHA
    febb21c View commit details
    Browse the repository at this point in the history
Loading