Skip to content

chore: reorganize and rename example files for GitHub integration#411

Merged
twjeffery merged 3 commits into
alphafrom
thomasjeffery/examples-fix
Sep 11, 2025
Merged

chore: reorganize and rename example files for GitHub integration#411
twjeffery merged 3 commits into
alphafrom
thomasjeffery/examples-fix

Conversation

@twjeffery
Copy link
Copy Markdown
Collaborator

Updated file names and reorganized example files for Github integration.

Before

image image

After

image image

Plus additional missing example thumbnail images.

@netlify
Copy link
Copy Markdown

netlify Bot commented Jul 29, 2025

Deploy Preview for abgov-ui-component-docs ready!

Name Link
🔨 Latest commit e9930b4
🔍 Latest deploy log https://app.netlify.com/projects/abgov-ui-component-docs/deploys/689e75edb2fb240008e6e998
😎 Deploy Preview https://deploy-preview-411--abgov-ui-component-docs.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@twjeffery
Copy link
Copy Markdown
Collaborator Author

@bdfranck can you get your copilot to review these updates?

@bdfranck bdfranck requested a review from Copilot July 29, 2025 17:49
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 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., RevealMoreInformationToHelpAnswerAQuestionShowMoreInformationToHelpAnswerAQuestion)
  • 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";

@twjeffery twjeffery force-pushed the thomasjeffery/examples-fix branch from 4f2bf8f to e9930b4 Compare August 14, 2025 23:48
@twjeffery twjeffery merged commit 8372e71 into alpha Sep 11, 2025
7 checks passed
@twjeffery twjeffery deleted the thomasjeffery/examples-fix branch September 11, 2025 15:28
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