Skip to content

[NPQ-3687] Initial minimal wizard#3312

Open
jebw wants to merge 1 commit into
mainfrom
NPQ-3687-initial-wizard
Open

[NPQ-3687] Initial minimal wizard#3312
jebw wants to merge 1 commit into
mainfrom
NPQ-3687-initial-wizard

Conversation

@jebw
Copy link
Copy Markdown
Collaborator

@jebw jebw commented Apr 29, 2026

Context

Ticket: NPQ-3687

Whilst our existing wizard works fairly well, we have various oddities

  • these stem from two different understandings of the route through the wizard (forwards and backwards)
  • presenting, and then saving, data which is 'out of scope', ie user went down a branch and then back tracked
  • Odd bugs stemming from attempting to redirect a user to an appropriate location within the wizard without reference to what data they've already entered.

Changes proposed in this pull request

  1. Initial implementation of a replacement registration wizard - this is very minimal at this stage and isn't exposed via a controller yet but can co-exist alongside the existing wizard

Note: I've tried to strip out anything extraneous or untestable from this initial set of changes but I know the routing logic for check_answers is in there. This isn't really testable till later steps are added so when I'll add specs for that in the follow up PRs

Note 2: The SonarScanner warnings on the require lines are technnically correct but this is a conscious choice to not load dependencies until actually required as part of visualisation generation

Note 3: I need to add an ADR, will do that an revise PR

@jebw jebw requested a review from a team as a code owner April 29, 2026 15:54
@github-actions
Copy link
Copy Markdown
Contributor

Comment thread spec/rails_helper.rb
end

require "capybara-screenshot/rspec"
require "capybara-screenshot/rspec" unless ENV["NO_CAPYBARA_SCREENSHOTS"] == "true"
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.

might be worth documenting this env var in docs/specs_and_linting.md

[]
end

def to_s = self.class.model_name.element
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.

Suggested change
def to_s = self.class.model_name.element
def to_s = self.class.model_name.element

is it worth having a blank line separating these methods? I'm not hugely fussed either way really.

@github-actions
Copy link
Copy Markdown
Contributor

Review app for PR 3312 was deleted

@sonarqubecloud
Copy link
Copy Markdown

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.

2 participants