Skip to content

feat(gallery): reusable typed gallery - #1314

Merged
nanaf6203-bit merged 1 commit into
MettaChain:mainfrom
Agaki00:feat/gallery-issues-1260-1263
Oct 21, 2026
Merged

nanaf6203-bit merged 1 commit into
MettaChain:mainfrom
Agaki00:feat/gallery-issues-1260-1263

Conversation

@Agaki00

@Agaki00 Agaki00 commented Oct 21, 2026 •

Copy link
Copy Markdown
Contributor

Summary

  • Extract a reusable Gallery and lightbox while preserving the property ImageGallery API.
  • Improve the accessible empty state, use shared semantic theme tokens, and enforce strict readonly Gallery prop types.
  • Add regression tests and Gallery usage documentation.

Closes #1260
Closes #1261
Closes #1262
Closes #1263

Validation

  • npm test -- --runInBand ImageGallery Gallery — passed (20 tests).
  • npx eslint src/components/gallery/Gallery.tsx src/components/gallery/Gallery.types.ts src/components/gallery/ImageLightbox.tsx src/components/gallery/__tests__/Gallery.test.tsx src/components/property/ImageGallery.tsx src/components/property/ImageLightbox.tsx src/components/property/__tests__/ImageGallery.test.tsx — passed.
  • git diff --cached --check — passed.
  • npm run typecheck — blocked by pre-existing TypeScript errors outside Gallery (for example, src/app/api/errors/route.test.ts).
  • npm run lint — blocked by pre-existing repository-wide lint errors outside Gallery.

Improve Gallery empty-state messaging, apply semantic theme tokens, and add component tests and usage documentation.

Closes MettaChain#1260
Closes MettaChain#1261
Closes MettaChain#1262
Closes MettaChain#1263

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@drips-wave

drips-wave Bot commented Oct 21, 2026

Copy link
Copy Markdown

@Agaki00 Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits.

You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀

Learn more about application limits

@nanaf6203-bit nanaf6203-bit left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Nice work on extracting the reusable Gallery — the typed props and shared theme tokens are a solid cleanup. LGTM 👍

@nanaf6203-bit
nanaf6203-bit merged commit 0a3516f into MettaChain:main Oct 21, 2026
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.

Add strict TypeScript types to Gallery Extract Gallery into reusable component Add dark mode support to Gallery Improve empty state for Gallery

2 participants