Add signed-in dashboard and "About you" page#81
Merged
Conversation
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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.
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.Users::StoriesControllerwith a form storingbackground,family, andformative_experiencesonusers. The form autosaves via the existingdebounced_formStimulus controller.shared/_toastso one toast can render both on page load and via turbo-stream.Testing
dashboards_controller_test.rb(auth, member render, non-member bounce, logo target) andusers/stories_controller_test.rb(HTML persist+redirect, turbo-stream autosave persists + appends toast + no redirect, clearing fields).dashboard_url, and home/logo-target assertions.bin/rails test— 255 runs, 0 failures.🤖 Generated with Claude Code