Repository navigation
feat(onboarding): Getting started page and product tour (#51) - #879
Conversation
Code Review — round 1 — NEEDS CHANGESReviewed Critical
Non-critical suggestions
|
Code Review — round 1 — NEEDS CHANGESReviewed Critical
Non-critical suggestions
|
Code Review — round 1 — PASSReviewed The blocking issue from the earlier reviews is fixed.
The main behavior is tested at the layers
CriticalNone. Non-critical suggestions
|
…g started Tour completion is stored per company membership, like onboarding, so a viewer in one company still gets the full tour where they can run things. Existing members are backfilled as finished. Everything sits behind the product_tour release flag. Refs #51 Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: Aixle Flow <[email protected]> Signed-off-by: Artem Petrov <[email protected]>
Driver.js draws one step at a time; the step order, page changes and progress belong to ProductTourProvider, mounted around the Inertia app because only that tree outlives page visits. Steps find their targets by data-tour attributes on existing components. The user menu gets Start product tour while the product_tour flag is on. Refs #51 Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: Aixle Flow <[email protected]> Signed-off-by: Artem Petrov <[email protected]>
Refs #51 Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: Aixle Flow <[email protected]> Signed-off-by: Artem Petrov <[email protected]>
Refs #51 Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: Aixle Flow <[email protected]> Signed-off-by: Artem Petrov <[email protected]>
Refs #51 Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: Aixle Flow <[email protected]> Signed-off-by: Artem Petrov <[email protected]>
…duct tour Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: Dmitry Vislov <[email protected]> Signed-off-by: Artem Petrov <[email protected]>
The Getting started cards become labelled sections so the Build with AI button in the card can be told apart from the one in the layout banner. Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: Dmitry Vislov <[email protected]> Signed-off-by: Artem Petrov <[email protected]>
… tests getting_started and product_tour are company sections, so a company slug must not take them. The remove-by badge test now travels past the first release flag to expire, which is product_tour, not external_runners. Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: Dmitry Vislov <[email protected]> Signed-off-by: Artem Petrov <[email protected]>
Hello Flow researches the company named by a board card and fails on a run started by hand, so the tour now has the member switch its trigger on, add a card named after a company and drag it into Researching, then follows that card's run, instead of pressing Run. Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: Dmitry Vislov <[email protected]> Signed-off-by: Artem Petrov <[email protected]>
… of skipping Getting started follows direction A2 (List) from task #358: one column of illustrated cards, light and dark, with the tour, templates and Build with AI held back until an agent is connected; Personal MCP stays open. The sidebar's Build with AI waits for an agent too. Skip tour sat on every step and finished the tour for good, taking Getting started with it. Closing a step now pauses the tour; it resumes from Getting started or the user menu, and is turned down once, on Getting started. Progress moves to localStorage, keyed by member and company, so a paused tour survives signing out. Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: Dmitry Vislov <[email protected]> Signed-off-by: Artem Petrov <[email protected]>
5af76f7 to
819f8f0
Compare
* origin/develop: (23 commits) ci(images): publish web, otlp-ingest and runner-relay for linux/arm64 (#983) fix(k8s): give a pod's image pull its own start budget (#979) build(dev): pull published agent images instead of building them (#980) fix(deps): bump coder-cli to v2.34.22 (CVE fixes) (#956) chore(agents): raise agent CLI pins for canary #943 (#975) docs(runners): record the §12.5 staging validation of the coder runner (row 18) (#978) build(dev): run local Temporal on the CLI dev server image (#954) fix(deps): websocket-driver 0.9.2 security batch, cross-spawn and tar re-resolve (#976) feat(web): link the docs portal from the app footer and sidebar (#379) (#969) feat(onboarding): Getting started page and product tour (#51) (#879) feat(dashboard): keep the table's sort in the URL (#974) fix(kiro): offer the models the account has today, not those of its last login (#973) feat(dashboard): keep the period and filters in the URL (#972) feat(company-settings): confirm worker count changes before saving (#971) feat(runners): the Coder runner in the UI: form, Environments section and docs (runners 17e, #315) (#963) docs(trackers): tech design for trackers chosen per session (#959) chore: remove the integrations backfill tooling left from #298 (#964) feat(runners): a coder runner created from the console (runners 17d, #309) (#960) chore(release): 1.23.0 (#961) feat(coder): Coder services for a second consumer, in the layers of runner-layers.md (runners 17b, #304) (#919) ... # Conflicts: # CHANGELOG.md
What and why
New members used to land on an empty project list after onboarding. With the
product_tourflag on, they now land on Getting started and can take a click-through product tour that installs the Hello Flow starter template and runs it. This implements the Tech Design on card #51.product_tour_a_finished_atandproduct_tour_b_finished_atoncompany_memberships. A data migration marks every member who already finished onboarding as having finished both tours, so turning the flag on redirects no existing user.CompanyMembership#getting_started_pending?.AuthConcern#app_home_pathreturns Getting started while that is pending and the flag is on. It is the one place every landing goes through.GettingStartedController(show, andbuild_with_ai, which opens AI Builder in the member's newest project or creates "New Project" first) andProductToursController#update(records a finish or skip).workflow_runs#statusreturns JSON for the tour's "first run finished" toast.currentUser.productTour.shared/lib/productTour/, mounted once around the Inertia app.^1.10.2) draws one step at a time behind a two-method interface. Our provider owns the step order, page changes and progress (kept insessionStorage).data-tourattributes added to existing pages. These are attribute-only changes;TabBarandBoardColumneach got an optionaldataTourprop.GettingStarted/GettingStartedPage: four cards for members, only the tour card for viewers.docs/design/product-tour.mdholds the library decision (Driver.js over AGPL Shepherd.js and Intro.js), the as-built step table and the deviations from the card. It is indexed indocs/index.md. Also updated: the portal Getting Started page andCHANGELOG.md.Deviations from the card and design (also in the design doc)
sessionStorage, because the template page's Install is a plain link that loads a whole page.docs/user-guide/getting-started.mddoes not exist, so only the portal page was updated.Not in this PR
Hello Flow belongs in
AixleHQ/flow-templates, which this session could not write to. Until the catalog hasaixle/hello-flow,helloFlowAvailableis false, so tour A and its card stay hidden and only viewers get a tour.Card: https://flow.aixle.com/company/projects/56/board?n=51
Checks
The agent container has no Docker daemon (
dockerdcannot start without privileges), andCLAUDE.mdforbids running Ruby or Node on the host. So no check was run locally:bin/rails test(new and changed:test/models/company_membership_test.rb,test/db/backfill_product_tour_finished_test.rb,test/integration/web/company/getting_started_test.rb,test/integration/web/company/projects/workflow_runs_{controller,authorization}_test.rb,test/integration/web/company/read_only_backstop_test.rb,test/policies/web/company/{getting_started,product_tours}_policy_test.rb)vitest(shared/lib/productTour/*.test.ts(x),pages/GettingStarted/GettingStartedPage.test.tsx,shared/ui/AppSidebar.test.tsx)make lint_check_all(rubocop, brakeman, eslint,tsc, steiger)These must run in the
webcontainer before CI can pass. Each is a known CI failure until it does:yarn.lockis not updated for the newdriver.jsdependency, soyarn install --immutablefails. Fix:docker compose exec -T web yarn install.app/frontend/shared/routes.tsis not regenerated for the new routes (companyGettingStartedPath,companyGettingStartedBuildWithAiPath,companyProductTourPath,statusCompanyProjectWorkflowRunPath). Fix:docker compose exec -T -e RAILS_ENV=test web bin/rails ts:routes.app/frontend/types/generated/is not regenerated forCurrentUser.productTourandFeatures.productTour. Fix:docker compose exec -T web bin/rails typelizer:generate.db/schema.rbwas edited by hand to match the two new migrations. Confirm withbin/rails db:migrate; theschema_paritytag runs on this PR.🤖 Generated with Claude Code