Skip to content

Add signed-in dashboard and "About you" page#81

Merged
kcdragon merged 1 commit into
mainfrom
dashboard-and-about-you
Jul 2, 2026
Merged

Add signed-in dashboard and "About you" page#81
kcdragon merged 1 commit into
mainfrom
dashboard-and-about-you

Conversation

@kcdragon

@kcdragon kcdragon commented Jul 2, 2026

Copy link
Copy Markdown
Collaborator

Summary

Signed-in members now land on a dedicated workspace dashboard instead of the marketing home page, and can record personal background on a new "About you" page.

  • Dashboard — new DashboardsController (resource :dashboard) renders a two-card workspace linking to "About you" and "Explore options". Sign-in (after_authentication_url) and the nav logo now point signed-in users here. The marketing home page (home#show) is unchanged and remains reachable by signed-in users.
  • About you — new Users::StoriesController with a form storing background, family, and formative_experiences on users. The form autosaves via the existing debounced_form Stimulus controller.
  • Autosave without the scroll jump — the autosave submits as a turbo-stream; the controller appends a "Saved." toast into the flash container instead of redirecting, so scroll position and focus are preserved. The no-JS "Save" path still redirects with a flash. Extracted shared/_toast so one toast can render both on page load and via turbo-stream.

Testing

  • New controller tests: dashboards_controller_test.rb (auth, member render, non-member bounce, logo target) and users/stories_controller_test.rb (HTML persist+redirect, turbo-stream autosave persists + appends toast + no redirect, clearing fields).
  • Updated sign-in redirect assertions (session / magic link / email confirmation) to dashboard_url, and home/logo-target assertions.
  • Full suite green: bin/rails test — 255 runs, 0 failures.

🤖 Generated with Claude Code

Give signed-in members a dedicated workspace dashboard that links to
their story ("About you") and the scenarios explorer, instead of
landing on the marketing home page.

- Add DashboardsController (resource :dashboard) rendering a two-card
  workspace; sign-in and the nav logo now point signed-in users here.
  The marketing home page is unchanged and still reachable.
- Add an "About you" page (Users::StoriesController) storing background,
  family, and formative_experiences on users. The form autosaves via the
  debounced_form Stimulus controller; the autosave responds with a
  turbo-stream that appends a "Saved." toast instead of redirecting, so
  scroll position and focus are preserved.
- Extract shared/_toast partial so a single flash toast can be rendered
  both on page load and via turbo-stream.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@kcdragon kcdragon merged commit 37eab72 into main Jul 2, 2026
5 checks passed
Sign up for free to 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.

1 participant