Skip to content

Feature/refactor v 1 be#23

Merged
TVATDCI merged 2 commits into
mainfrom
feature/refactor-v-1-be
Feb 11, 2026
Merged

Feature/refactor v 1 be#23
TVATDCI merged 2 commits into
mainfrom
feature/refactor-v-1-be

Conversation

@TVATDCI
Copy link
Copy Markdown
Owner

@TVATDCI TVATDCI commented Feb 11, 2026

Phase 2 Complete: Character Management

All four steps of Phase 2 have been successfully implemented:


Summary of Changes:

1. Characters.jsx - Card-Based Grid Layout

  • Replaced list view with responsive CSS Grid (grid-cols-1 sm:grid-cols-2 lg:grid-cols-3)
  • Added card styling with glassmorphism, hover effects, and borders
  • Visual hierarchy with Dune font for names, colored labels for info
  • Star rating visualization for Force Rating
  • Responsive: 1 col mobile, 2 cols tablet, 3 cols desktop

2. Characters.jsx - Search Functionality

  • Added searchQuery state
  • Real-time filtering by character name (case-insensitive)
  • Styled search input with dark theme and yellow focus ring
  • Dynamic empty state message for search results

3. Characters.jsx - Pagination

  • Added currentPage state and ITEMS_PER_PAGE = 12 constant
  • Pagination logic with totalPages and paginatedCharacters
  • Character count display: "Showing X of Y characters (Page Z of W)"
  • Previous/Next buttons with disabled states
  • Auto-reset to page 1 when search query changes

4. CharacterDetail.jsx - Complete Redesign

  • Avatar Placeholder: Circular gradient with emoji
  • Stat Bars: Visual progress bars for all 4 stats with gradient colors
  • Two-Column Layout: Jedi info left, Equipment right
  • Better Visual Hierarchy: Section headers with Dune font
  • Responsive: Stacks on mobile, side-by-side on desktop
  • Back Button: Clear navigation with arrow
  • Added PropTypes for StatBar component

Files Modified:

  1. frontend/src/components/Characters.jsx
  2. frontend/src/components/CharacterDetail.jsx

Ready for Testing:

  • Character list now displays as cards
  • Search filters characters in real-time
  • Pagination shows 12 characters per page
  • Character detail has visual stat bars and better layout

Next: Phase 3 (Forms & Auth improvements)

@vercel
Copy link
Copy Markdown

vercel Bot commented Feb 11, 2026

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

Project Deployment Actions Updated (UTC)
star-wars-character-data-api Ready Ready Preview, Comment Feb 11, 2026 6:20pm

@TVATDCI TVATDCI merged commit dcc6286 into main Feb 11, 2026
3 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.

1 participant