Skip to content

feat(webapp,cli,database): track real dev onboarding progress - #4563

Merged
ericallam merged 1 commit into
mainfrom
feat/dev-onboarding-state-aware
Aug 11, 2026
Merged

feat(webapp,cli,database): track real dev onboarding progress#4563
ericallam merged 1 commit into
mainfrom
feat/dev-onboarding-state-aware

Conversation

@ericallam

@ericallamericallam commented Aug 11, 2026

Copy link
Copy Markdown
Member

Summary

The dev environment "Get set up" panel used to be a static list of CLI commands that only disappeared once your tasks registered, so nothing ever changed after you ran init and people assumed it was stuck. It now tracks real progress: trigger init records the project as initialized, so step 1 checks off, and the panel updates live as the dev server connects and your tasks register.

It also adds a prominent "Copy AI agent prompt" button, presented as a clear alternative ("or") to the manual CLI steps, that copies a ready-to-paste setup prompt pre-filled with your project reference for Claude Code, Cursor, or any coding agent.

Notes

  • Adds a Project.initializedAt column (migration 20260811065646_add_project_initialized_at); the CLI init command calls a new project-scoped POST /api/v1/projects/:ref/init best-effort at the end of setup.
  • The init scaffold now imports from @trigger.dev/sdk instead of the deprecated /v3 subpath.

Screenshots

v7-redesigned-card

@changeset-bot

changeset-botBot commented Aug 11, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: c14bfa7

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 27 packages
NameType
trigger.devPatch
@internal/dashboard-agentPatch
@trigger.dev/buildPatch
@trigger.dev/corePatch
@trigger.dev/pythonPatch
@trigger.dev/react-hooksPatch
@trigger.dev/redis-workerPatch
@trigger.dev/rscPatch
@trigger.dev/schema-to-jsonPatch
@trigger.dev/sdkPatch
@trigger.dev/databasePatch
@trigger.dev/otlp-importerPatch
@trigger.dev/rbacPatch
@trigger.dev/ssoPatch
@internal/cachePatch
@internal/clickhousePatch
@internal/llm-model-catalogPatch
@internal/metrics-pipelinePatch
@internal/redisPatch
@internal/replicationPatch
@internal/run-enginePatch
@internal/run-storePatch
@internal/schedule-enginePatch
@internal/testcontainersPatch
@internal/tracingPatch
@internal/tsqlPatch
@internal/sdk-compat-testsPatch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@coderabbitai

coderabbitaiBot commented Aug 11, 2026

Copy link
Copy Markdown
Contributor

Review Change Stack

Walkthrough

The change adds project initialization tracking with a nullable database timestamp and an authenticated initialization API. The CLI marks projects initialized after scaffolding and updates generated SDK imports. The web application loads initialization state, receives initialization events through SSE, and shows progress based on project and development-server state. The onboarding UI also adds a copyable AI-agent setup prompt.

🚥 Pre-merge checks | ✅ 3 | ❌ 2

❌ Failed checks (2 warnings)

Check nameStatusExplanationResolution
Docstring Coverage⚠️ WarningDocstring coverage is 0.00% which is insufficient. The required threshold is 80.00%.Write docstrings for the functions missing them to satisfy the coverage threshold.
Description check⚠️ WarningThe description explains the main changes and includes screenshots, but it omits the required issue, checklist, testing, and changelog sections.Add the missing issue reference, checklist, testing steps, and changelog entry using the repository template.
✅ Passed checks (3 passed)
Check nameStatusExplanation
Linked Issues check✅ PassedCheck skipped because no linked issues were found for this pull request.
Out of Scope Changes check✅ PassedCheck skipped because no linked issues were found for this pull request.
Title check✅ PassedThe title clearly identifies the primary change: tracking real development onboarding progress across the web app, CLI, and database.
✨ Finishing Touches 💡 2
📝 Generate docstrings 💡
  • Create stacked PR
  • Commit on current branch
🛠️ Fix failing CI checks 💡
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch feat/dev-onboarding-state-aware

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@github-actions

github-actionsBot commented Aug 11, 2026

Copy link
Copy Markdown
Contributor

Observability map

As of c14bfa7.

18/100 over 414 measured of 430 entry points (base 18, no change)

What this PR changed

routebaseheadnow failing
/api/v1/projects/:projectRef/initnew0error-classification, request-context

FIX FIRST

  • /api/v1/projects/:projectRef/envvars (sensitive) - auth-boundary, request-context
  • /auth/sso (sensitive) - auth-boundary, request-context
  • /_app/orgs/:organizationSlug/settings/team (sensitive) - error-classification, auth-scope, request-context

AUDIT 3 of 50 sensitive mutations record an actor. 47 without one.
CONTEXT 11 of 414 entry points name a tenant on a failure path. 325 appear only here, 39 of them sensitive, in the JSON rather than the fix list.

What the score is made of
CHECKS
error-classification 169 applicable, 94 pass, 0 sole, global without it 10
auth-boundary 62 applicable, 57 pass, 0 sole, global without it 15
auth-scope 19 applicable, 17 pass, 0 sole, global without it 18
request-context 414 applicable, 11 pass, 223 sole, global without it 63
audit-trail 50 applicable, 3 pass, 0 sole, not in the score

The score and findings here are report-only and never gate the merge. Separately, a required test suite keeps this tool's symbol and route lists in sync with the code they name, and can fail a pull request that renames or removes a symbol they reference, or that adds the first route with a segment they anticipate. Each failure names the list to edit. The rules and their reasons: internal-packages/observability-map/README.md.

coderabbitai[bot]

This comment was marked as resolved.

@ericallam
ericallamforce-pushed the feat/dev-onboarding-state-aware branch from 288b49e to 4f20fccCompareAugust 11, 2026 08:53
@pkg-pr-new

pkg-pr-newBot commented Aug 11, 2026

Copy link
Copy Markdown

Open in StackBlitz

@trigger.dev/build

npm i https://pkg.pr.new/@trigger.dev/build@c14bfa7

trigger.dev

npm i https://pkg.pr.new/trigger.dev@c14bfa7

@trigger.dev/core

npm i https://pkg.pr.new/@trigger.dev/core@c14bfa7

@trigger.dev/python

npm i https://pkg.pr.new/@trigger.dev/python@c14bfa7

@trigger.dev/react-hooks

npm i https://pkg.pr.new/@trigger.dev/react-hooks@c14bfa7

@trigger.dev/redis-worker

npm i https://pkg.pr.new/@trigger.dev/redis-worker@c14bfa7

@trigger.dev/rsc

npm i https://pkg.pr.new/@trigger.dev/rsc@c14bfa7

@trigger.dev/schema-to-json

npm i https://pkg.pr.new/@trigger.dev/schema-to-json@c14bfa7

@trigger.dev/sdk

npm i https://pkg.pr.new/@trigger.dev/sdk@c14bfa7

commit: c14bfa7

@ericallam
ericallam marked this pull request as ready for review August 11, 2026 09:04
devin-ai-integration[bot]

This comment was marked as resolved.

@ericallam
ericallamforce-pushed the feat/dev-onboarding-state-aware branch from 4f20fcc to ae9200eCompareAugust 11, 2026 09:23
devin-ai-integration[bot]

This comment was marked as resolved.

The dev environment "Get set up" panel now reflects actual progress instead of static instructions. Running trigger init records the project as initialized (via a new project-scoped endpoint the CLI calls), so step 1 ticks off, and the panel updates live as the dev server connects and tasks register. Adds a "Copy AI agent prompt" button that copies a ready-to-paste setup prompt pre-filled with the project reference, and updates the init scaffold to import from @trigger.dev/sdk instead of the deprecated /v3 subpath.
@ericallam
ericallamforce-pushed the feat/dev-onboarding-state-aware branch from ae9200e to c14bfa7CompareAugust 11, 2026 10:04
@ericallam
ericallam merged commit 6449a64 into mainAug 11, 2026
65 of 73 checks passed
@ericallam
ericallam deleted the feat/dev-onboarding-state-aware branch August 11, 2026 10:43
@github-actionsgithub-actionsBot mentioned this pull request Aug 11, 2026
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

@ericallam@myftija