Skip to content

Feature/restart button#89

Merged
XanderVertegaal merged 6 commits intodevelopfrom
feature/restart-button
Jan 26, 2026
Merged

Feature/restart button#89
XanderVertegaal merged 6 commits intodevelopfrom
feature/restart-button

Conversation

@XanderVertegaal
Copy link
Copy Markdown
Contributor

Closes #81
Closes #87

@XanderVertegaal XanderVertegaal added bug Something isn't working enhancement New feature or request labels Jan 23, 2026
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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 BackToStartButtonComponent that 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 NavButton interface 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.

Comment thread frontend/src/app/shared/back-to-start-button/back-to-start-button.component.scss Outdated
Comment thread frontend/src/app/summary/summary.component.ts
Comment thread frontend/src/app/menu/menu.component.html
Comment thread frontend/src/app/shared/back-to-start-button/back-to-start-button.component.ts Outdated
Comment thread frontend/src/app/shared/back-to-start-button/back-to-start-button.component.ts Outdated
public navigateToHome(event: Event): void {
event.preventDefault();
// Navigate to / as if to an external page.
// This triggers the beforeunload event.
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cool, nice solution!

@XanderVertegaal XanderVertegaal merged commit b0c30a7 into develop Jan 26, 2026
1 check passed
@XanderVertegaal XanderVertegaal deleted the feature/restart-button branch January 26, 2026 10:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

"Start over" button does not empty form Add button to restart

3 participants