chore: reorganize and rename example files for GitHub integration#411
Merged
Conversation
✅ Deploy Preview for abgov-ui-component-docs ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
Collaborator
Author
|
@bdfranck can you get your copilot to review these updates? |
There was a problem hiding this comment.
Pull Request Overview
This PR reorganizes and renames example files to improve consistency and naming conventions for GitHub integration. The primary focus is updating function and file names to follow more descriptive naming patterns and consolidating related examples.
- Renamed component functions to be more descriptive (e.g.,
RevealMoreInformationToHelpAnswerAQuestion→ShowMoreInformationToHelpAnswerAQuestion) - Updated import statements throughout the codebase to reflect the new naming
- Created a new consolidated example file that combines checkbox and radio input reveal patterns
Reviewed Changes
Copilot reviewed 10 out of 15 changed files in this pull request and generated no comments.
Show a summary per file
| File | Description |
|---|---|
| src/routes/components/TemporaryNotification.tsx | Updated example count from 3 to 4 in badge |
| src/examples/show-more-information-to-help-answer-a-question.tsx | Renamed component function for clarity |
| src/examples/reveal-radio-input-based-on-selection.tsx | Renamed export function to match file name |
| src/examples/reveal-input-based-on-a-selection.tsx | New consolidated example file combining checkbox and radio patterns |
| src/examples/reveal-checkbox-input-based-on-selection.tsx | Renamed export function to match file name |
| src/examples/radio/RadioExamples.tsx | Updated import to use renamed component |
| src/examples/question-page/QuestionPageExamples.tsx | Updated import to use renamed component |
| src/examples/popover/PopoverExamples.tsx | Removed unused import and reorganized component banner placement |
| src/examples/details/DetailsExamples.tsx | Updated import to use renamed component |
| src/examples/checkbox/CheckboxExamples.tsx | Updated import to use renamed component |
Comments suppressed due to low confidence (1)
src/examples/popover/PopoverExamples.tsx:4
- The GoabSpacer import is being removed but it's still used on line 29 in the removed code block. Ensure all usages of GoabSpacer are properly handled after this removal.
import { SandboxHeader } from "@components/sandbox/sandbox-header/sandboxHeader.tsx";
4f2bf8f to
e9930b4
Compare
vanessatran-ddi
approved these changes
Aug 20, 2025
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.
Updated file names and reorganized example files for Github integration.
Before
After
Plus additional missing example thumbnail images.