Feature/restart button#89
Merged
XanderVertegaal merged 6 commits intodevelopfrom Jan 26, 2026
Merged
Conversation
There was a problem hiding this comment.
Pull request overview
This PR implements a "Start over" button feature to address user requests for restarting the form workflow and properly resetting form state. The implementation adds a new shared button component that appears in the navigation menu on all pages except the home page, and updates the existing "Start over" button on the summary page to properly reset the form by triggering a full page reload.
Changes:
- Created a new
BackToStartButtonComponentthat triggers a full page reload to '/' when clicked, ensuring all form state is cleared - Modified the summary page's "Start over" button to use the same full page reload approach instead of just calling
form.reset() - Updated the
NavButtoninterface to accept an optional Event parameter in the action callback - Replaced the dark mode toggle in the menu with the new "Start over" button (visible only when not on home page)
Reviewed changes
Copilot reviewed 11 out of 11 changed files in this pull request and generated 5 comments.
Show a summary per file
| File | Description |
|---|---|
| frontend/src/app/shared/back-to-start-button/* | New component for restart functionality with icon, template, styles, and basic test |
| frontend/src/app/summary/summary.component.ts | Updated "Start over" action to use full page reload instead of form.reset() |
| frontend/src/app/nav-buttons/* | Modified NavButton interface and component to support optional Event parameter in actions |
| frontend/src/app/menu/* | Integrated BackToStartButtonComponent and added isHomePage() check, removed DarkModeToggleComponent |
| frontend/locale/*.xlf | Updated localization files with new translation entries and line number adjustments |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
tijmenbaarda
approved these changes
Jan 23, 2026
| public navigateToHome(event: Event): void { | ||
| event.preventDefault(); | ||
| // Navigate to / as if to an external page. | ||
| // This triggers the beforeunload event. |
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.
Closes #81
Closes #87