Skip to content

Train Animation - #8

Merged
Psybah merged 3 commits into
mainfrom
design-cleanup
Nov 18, 2026
Merged

Psybah merged 3 commits into
mainfrom
design-cleanup

Conversation

@Psybah

@Psybah Psybah commented Nov 18, 2026

Copy link
Copy Markdown
Collaborator

What changed

Adds a component library at /components, where members browse, preview and copy React components, plus a way to submit their own for admin review.

  • Library page: a searchable bento grid with live previews. The detail page has a component list, a preview canvas with light/dark and replay, a Code tab with syntax highlighting, and one copy button (Copy Markdown by default, Copy code from its menu).
  • Three components to start: Split Footer (ASCII-light footer), Icon Folder and Draw a Line (lay track with the cursor; a train follows it and everything fades when you stop).
  • Submissions: anyone can submit name, category, tags, extra packages, the component code, a usage example and an optional original link. A signed-in GitHub account is credited. Five per hour per visitor, and duplicate names are rejected.
  • Admin review: a new Components section in the admin dashboard to view the code, copy it as Markdown, and accept, decline, reopen or delete. Pending submissions show in the nav count.
  • API: POST /api/components (public), plus GET/PATCH/DELETE for admins only. Stored in Postgres, Redis or the local file store, the same way tools are.
  • Tabs on phones: every tab row now stays on one line and slides sideways instead of wrapping (this fixes the community/events tabs).
  • Dev only: a Vite middleware serves the SPA at /components, which a local components.json file used to shadow. Production is unaffected.

How I checked it

…t and functionality. Update TabsList to prevent wrapping and enhance responsiveness. Replace IconAction with CopyMenu for streamlined copy options in Components page. Adjust imports and remove unused components for cleaner code.
Copilot AI balanced review requested due to automatic review settings November 18, 2026 19:57

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota. Try requesting a review at a lower effort level.

An organization owner can choose the repository organization as the billing source for reviews requested by members with a paid Copilot license. Learn about Copilot code review billing.

@Psybah
Psybah merged commit 1cd3f19 into main Nov 18, 2026
2 checks passed
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