Skip to content

Accessability defects on SRS forms - #725

Open
micolgiannelli2 wants to merge 11 commits into
v2from
micol/sbs-1036-small-form-defects
Open

micolgiannelli2 wants to merge 11 commits into
v2from
micol/sbs-1036-small-form-defects

Conversation

@micolgiannelli2

@micolgiannelli2 micolgiannelli2 commented Sep 15, 2026

Copy link
Copy Markdown
Collaborator

Description

  1. Fixed Bug where service name shows as "webforms on summary page"
  2. Introduced generic views for helper pages
  3. form changes
  4. removed white spacing in views

Context

(1) Added service name to be passed through in the summary view model so the layout correctly picks the service name

(2) Included small helper function to allow users to share the same cookie and privacy page across diffrent forms
-> previously one had a singular views folder per form, close contact forms had gone arround this by introducing and if statment that was introducing bugs because it was not picking up newly applied logic
-> I made this more generic and made sure this logic happens at the start

(3) From changes to include autocomplete and small content changes

Tickets

Type of change

What is the type of change you are making?

  • Chore or documentation (non-breaking change that does not add functionality)
  • ADR (Architectural Decision Record, non-breaking change that documents or proposes a decision)
  • Refactor (non-breaking change that improves code quality)
  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)

PR title

PR titles should be prefixed with the type of change you are making, based on the README.md#versioning.
This is so that when performing a squash merge, the PR title is automatically used as the commit message.

Have you updated the PR title to match the type of change you are making?

  • Yes
  • No, I need help or guidance

Testing

Automated tests

Have you added automated tests?

  • Yes, unit or integration tests
  • Yes, end-to-end (cypress) tests
  • No, tests are not required for this change
  • No, I need help or guidance
  • No (explain why tests are not required or can't be added at this time)

Manual tests

Have you manually tested your changes?

  • Yes
  • No, manual tests are not required or sufficiently covered by automated tests

Have you attached an example form JSON or snippet for the reviewer in this PR?

  • Yes
  • No, any existing form can be used
  • No, it is not required or not applicable

Steps to test

  1. Step 1
  2. Step 2

Documentation

Have you updated the documentation?

  • Yes, I have updated ./docs for this change since additional explanation or steps to use/configure the feature is required
  • Yes, I have added or updated an ADR for this change since it is large, complex, or has significant architectural implications
  • Yes, I have added inline comments for hard-to-understand areas
  • No, I am not sure if documentation is required
  • No, documentation is not required for this change

Discussion

Warning

Large or complex changes may require discussion with the maintainers before they can be merged. If it has not yet been discussed, it may delay the review process

Have you discussed this change with the maintainers?

  • Yes, I have discussed this change with the maintainers on slack, email or via GitHub issues
  • Yes, this change is an ADR to help kick-off discussion
  • No, this change is small and does not require discussion
  • No, I am not sure if one is required

kitttang
kitttang previously approved these changes Sep 16, 2026
@micolgiannelli2 micolgiannelli2 changed the title added question mark Adressed Defects Sep 17, 2026
@micolgiannelli2 micolgiannelli2 changed the title Adressed Defects Accessability defects on SRS forms Sep 17, 2026
fees: FeesModel | undefined;
name: string | undefined;
feedbackLink: string | undefined;
serviceName: string | undefined;

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

What is serviceName used for?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

so service name is uses in layout.html

all other view models pass in the

Image Image

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

for another example of this functionality view feedbackLink: string | undefined; which is correctly passed in to the view model and gets picked out by the layout here and elswere

}

// Helper functions
const resolvedUrl = (url: string) => {

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

This is form specific overrides in framework functionality.
Re-using cookie statements, probably needs to be designed as a framework feature/functionality.
Something like a form level privacyUrlOverride or so.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

yes so if you see below this was previously resolved with an if/else condition on line 57, I agree this could a wider improvement but I would say moving it here is still an solid improvement to what is currently in the paltform

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

I am able to put this in as a service enhancment next week as solutions such as kls which duplicates its pages 4 times (one per form) are not clean

{
text: "View cookies",
href: "/help/cookies"
href: "cookies"

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

This looks like a breaking change?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

So, its not because if there is no {base-service-ulr}/cookies the the router defaults to /help/cookies

however, if a page does have its own version of cookies set up this should definitely not lead to the default version of cookies

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.

3 participants