How asvny/webjet-ui works
• Frontend Application -----------------------------+
• Core | | UI | | Features | | Services | |
Component Breakdown
a) Core (Rectangle, Light Blue):
• Main Application Entry (main.tsx)
• Global Styles
• Type Definitions
b) UI Components (Hexagons, Green):
• Layout
• Header
• Accordion
• Checkbox
• Rating
• Ads
c) Feature Components (Rounded Rectangle, Orange):
• Hotel Listing View
• Filter by Name
• Filter by Rating
• Hotel Card
• API Service
• History Management
State Management
A special section showing the reducer pattern:
• State Management ----------------------+
• Hotel Listing Reducer |
• Sorting Logic |
• Filtering States |
• Hotel Data Management |
Key Elements to Highlight
• Responsive Breakpoints (992px & 768px)
• Component Reusability Patterns
• Filter Implementation Flow
• Image Asset Management
• CSS Module Integration
Technical Stack Indicators
• React
• TypeScript
• CSS Modules
• Vite
• Vitest (for testing)
Testing Coverage
Tested components with a special border or marker:
• get_name_rating_filter
• hotel_listing_reducer
Design Guidelines:
• Use a clear hierarchy with the main application flow at the top
• Related components together
• Clear separation between UI components and business logic
• Responsive design breakpoints
• Testing coverage indicators
The responsive design implementation
Remember to:
• Use consistent styling for similar components
• Both static and dynamic relationships
• Filtering and sorting mechanisms as key features