Skip to content

feat(card-experience): add detail modal with dynamic data lookup by slug#28

Merged
upALX merged 20 commits into
mainfrom
feature/information-card
Jun 5, 2026
Merged

feat(card-experience): add detail modal with dynamic data lookup by slug#28
upALX merged 20 commits into
mainfrom
feature/information-card

Conversation

@upALX

@upALX upALX commented May 27, 2026

Copy link
Copy Markdown
Owner

Summary

  • New: snoop-information.json with detailed card data (highlights, tech stack, images, detailed description) for each experience entry
  • Refactor: AnimatedModal now uses the existing ui/modal.tsx component and renders real data instead of hardcoded travel demo content
  • Data linking: Cards in cards-timeline.json now use a slug field to look up their detailed information from snoop-information.json
  • Cleanup: Removed duplicate/unused imports and inconsistent id/uuid fields

Changes

File Change
src/app/mapper/snoop-information.json Created with detailed data for all 7 experience entries
src/app/mapper/cards-timeline.json Replaced id/uuid with consistent slug field
src/app/mapper/index.ts Added snoop_information export
src/components/patterns/modal-pattern.tsx Refactored to use ui/modal.tsx, accept slug prop, render dynamic data
src/components/patterns/card-experience-pattern.tsx Passes slug to AnimatedModal
src/components/types/card-experience-pattern-types.ts Added optional slug prop
src/app/pages/about/page.tsx Passes slug to CardExperiencePattern; removed unused import

@vercel

vercel Bot commented May 27, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
alx Ready Ready Preview, Comment Jun 5, 2026 2:44am

upALX added 4 commits May 27, 2026 02:56
Add detailed card experience data and standardize identifiers
with consistent slug field across data files.
Add slug field to types and pass it through CardExperiencePattern
to AnimatedModal for dynamic data lookup.
Replace hardcoded demo content with real card details from
snoop_information. Reuse ui/modal.tsx instead of custom portal.
upALX added 3 commits May 27, 2026 03:05
…akage

Card components have CSS transform which creates a new containing
block, breaking position: fixed on the modal overlay. Portal to
document.body to ensure viewport-relative positioning.
… CTA

Remove separate 'See more' link and consolidate into the modal
trigger, styled as a link variant.
The see-more link has been replaced by the modal trigger,
so the prop and its passing are no longer needed.
@upALX upALX added the feature New feature or page to the app label Jun 5, 2026
@upALX upALX merged commit 5eab504 into main Jun 5, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

feature New feature or page to the app

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant