-
Notifications
You must be signed in to change notification settings - Fork 1
Update results.html #1069
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Update results.html #1069
Changes from all commits
Commits
Show all changes
2 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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.
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
💡 Verification agent
🧩 Analysis chain
Terminology swap looks correct – please sanity-check for any remaining “submit” phrases elsewhere
The updated heading and paragraph consistently use “provide”. Looks good in this block.
Run a quick search to make sure no other templates still tell users to “submit your data”:
🏁 Script executed:
Length of output: 3279
Multiple residual “submit your data” occurrences found – please update to “provide your data” for consistency
A quick grep reveals these remaining instances:
• test/acceptance/request_check.test.js
– Line 111:
You cannot submit your data until you fix the issues(update test assertion)• src/views/submit/check-answers.html
– Line 29:
<h1>Check your answers before submitting your dataset</h1>– Line 140:
<h2>Now submit your dataset</h2>• src/views/organisations/get-started.html
– Line 181: Step title
<span class="js-step-title">Submit your data</span>– Line 188: Link text
<a>Submit your data to the Planning Data Platform…</a>• src/views/check/confirmation.html
– Line 31:
## 2: Submit your data– Line 33:
<a class="submit-link">Submit your data</a> to the Planning Data Platform…• src/views/check/results/issueDetails.html
– Criteria labels:
• Level 2:
You cannot submit your data until you fix the issues• Level 3:
You can submit your data and fix these issues laterPlease revise these to use “provide your data” (or “submission” language as appropriate), and update the corresponding test expectations.
🤖 Prompt for AI Agents
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In src/views/check/results/results.html around lines 128 to 131, update the
phrase "submit your data" to "provide your data" for consistency. Additionally,
apply this change to all listed files and lines, including
test/acceptance/request_check.test.js line 111,
src/views/submit/check-answers.html lines 29 and 140,
src/views/organisations/get-started.html lines 181 and 188,
src/views/check/confirmation.html lines 31 and 33, and
src/views/check/results/issueDetails.html for the specified criteria labels.
Also, update the corresponding test assertions to reflect this wording change.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🧩 Analysis chain
@stevenjmesser I'll help you update the terminology from "submit" to "provide" across all the identified files for consistency. Let me plan these changes:
Task: Update terminology from "submit" to "provide" across multiple files
Once these changes are implemented, all the terminology will be consistent with "provide" instead of "submit" throughout the application templates and tests.
🏁 Script executed:
Length of output: 3764
Perfect! I can see the current content of all the files. Let me check if there are any remaining "submit" instances in the results.html file that need updating:
🏁 Script executed:
Length of output: 751
Great! The results.html file is already fully updated with "provide" terminology. Let me update the plan to focus on the remaining files that still need changes:
Task: Update terminology from "submit" to "provide" across remaining files
The results.html file has already been completely updated with "provide" terminology. These changes will complete the terminology consistency across all the remaining files and their corresponding tests.
⏳ Preparing changes...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A summary of the changes CodeRabbit can apply:
A summary of the context that CodeRabbit is considering across the codebase:
Show context details
Generated Script:
await page.getByText('description column is missing').click()
await page.waitForURL(//check/results/./issue/./, { timeout: 4000 })
await expect(page.getByText('Your data has issues')).toBeVisible()
await expect(page.getByText('You cannot submit your data until you fix the issues')).toBeVisible()
const itemsLocator = page.locator('.govuk-error-summary ul li')
expect(await itemsLocator.count()).toBe(1)
await expect(itemsLocator).toContainText('description column is missing')
{% endif %}
...
}) }}
...
{% if 'submitEndpointForm' | isFeatureEnabled %}
2: Submit your data
Submit your data to the Planning Data Platform. You need to provide your:
31-
32-
33: {% set criteriaLabels = { '2': 'You cannot submit your data until you fix the issues', '3': 'You can submit your data and fix these issues later' } %}
34- {{ govukErrorSummary({
35- titleText: criteriaLabels[options.task.qualityCriteriaLevel] or 'There is a problem',
</generated_script>
I need to check the current content of the submit check-answers template to see the exact text on lines 29 and 140. ```shell # Get content around lines 29 and 140 in check-answers.html sed -n '26,32p' src/views/submit/check-answers.html echo "..." sed -n '137,143p' src/views/submit/check-answers.html ``` {% endif %}<shell_result>
await page.getByText('description column is missing').click()
await page.waitForURL(//check/results/./issue/./, { timeout: 4000 })
await expect(page.getByText('Your data has issues')).toBeVisible()
await expect(page.getByText('You cannot submit your data until you fix the issues')).toBeVisible()
const itemsLocator = page.locator('.govuk-error-summary ul li')
expect(await itemsLocator.count()).toBe(1)
await expect(itemsLocator).toContainText('description column is missing')
</shell_result>
...
}) }}
</shell_result>
I need to examine the get-started.html file to see the current content on lines 181 and 188. ```shell # Get content around lines 181 and 188 in get-started.html sed -n '178,184p' src/views/organisations/get-started.html echo "..." sed -n '185,191p' src/views/organisations/get-started.html ```...
</shell_result>
I need to check the confirmation.html file to see the current content on lines 31 and 33. ```shell # Get content around lines 31 and 33 in confirmation.html sed -n '28,36p' src/views/check/confirmation.html ```{% if 'submitEndpointForm' | isFeatureEnabled %}
2: Submit your data
Submit your data to the Planning Data Platform. You need to provide your:
- full name
- work email address
I need to check the issueDetails.html file to find the criteria labels that need updating. ```shell # Search for criteria labels in issueDetails.html rg -n -A 2 -B 2 "cannot submit your data|can submit your data" src/views/check/results/issueDetails.html ``` 31-</shell_result>
Update check-answers.html - change "submitting" to "providing" in heading
sed -i 's/Check your answers before submitting your dataset/Check your answers before providing your dataset/g' src/views/submit/check-answers.html
Update check-answers.html - change "submit" to "provide" in second heading
sed -i 's/Now submit your dataset/Now provide your dataset/g' src/views/submit/check-answers.html
Update get-started.html - change "Submit your data" to "Provide your data" in step title
sed -i 's/Submit your data/Provide your data/g' src/views/organisations/get-started.html
Update confirmation.html - change "Submit your data" to "Provide your data" in heading and link
sed -i 's/## 2: Submit your data/## 2: Provide your data/g' src/views/check/confirmation.html
sed -i 's/>Submit your data to the Planning Data Platform/>Provide your data to the Planning Data Platform/g' src/views/check/confirmation.html
Update issueDetails.html - change criteria labels
sed -i 's/You cannot submit your data until you fix the issues/You cannot provide your data until you fix the issues/g' src/views/check/results/issueDetails.html
sed -i 's/You can submit your data and fix these issues later/You can provide your data and fix these issues later/g' src/views/check/results/issueDetails.html