How paulon-zervoulakus/bidding-ui works
This is a React/TypeScript auction frontend. Users authenticate, browse or create auction rooms and products, then participate in room-based bidding and chat; account profiles are also supported. The graph includes routing, UI, API hooks, real-time room communication, and client state. Some product and room components were not excerpted, so their roles and connections are limited to relationships recorded in the Source Index; the backend is outside this repository.
Main entry points: App.tsx Routes and layout · AuctionRoomPage.tsx Auction room page · Index.tsx Auction home · useAuctionRooms.ts Room API hooks
Components 23
Application and routing
- Routes and layout
src/App.tsx
Auction experience
- Auction home
src/components/pages/home/Index.tsx - Auction room page
src/components/pages/rooms/AuctionRoomPage.tsx - Room panels
src/components/pages/rooms - Home room and product UI
src/components/pages/home - Auction room data types
src/dto/auctionRoom.tsx - Product data types
src/dto/product.tsx - Room phase and formatting
src/helper/auctionRoom.tsx - UTC time utilities
src/helper/isoString.tsx
Identity and account
- Login and registration
src/components/pages/authentication/Login.tsx - Account profile
src/components/pages/account/profile.tsx - User session context
src/context/userContextProvider.tsx - User state types
src/state/userState.tsx
Client services and state
- Room API hooks
src/hooks/useAuctionRooms.ts - Product API hook
src/hooks/useProducts.tsx - Room SignalR client
src/hooks/useSignalRServiceRoom.tsx - Account API hooks
src/hooks/account.tsx - Persisted Redux store
src/store/store.ts - Bidding state
src/store/bidding/biddingSlice.ts - User reducer
src/store/user/userSlice.ts
Other components
- Visitor or member
- Auction room hub
- Application API
Connections 30
- Visitor or member → Routes and layout: opens
src/App.tsx - Routes and layout → User session context: provides session
src/App.tsx - Routes and layout → Auction home: routes to
src/App.tsx - Routes and layout → Auction room page: routes to
src/App.tsx - Routes and layout → Login and registration: routes to
src/App.tsx - Routes and layout → Account profile: routes to
src/App.tsx - Auction home → Home room and product UI: renders
src/components/pages/home/Index.tsx - Auction home → Product API hook: loads products
src/components/pages/home/Index.tsx - Auction home → Room API hooks: uses room operations
- Auction room page → Room panels: renders
src/components/pages/rooms/AuctionRoomPage.tsx - Auction room page → Room API hooks: loads room data
src/components/pages/rooms/AuctionRoomPage.tsx - Auction room page → Room SignalR client: joins room
src/components/pages/rooms/AuctionRoomPage.tsx - Auction room page → Room phase and formatting: uses room helpers
src/components/pages/rooms/AuctionRoomPage.tsx - Room panels → Room phase and formatting: formats room data
src/components/pages/rooms/ActiveProductPanel.tsx - Room phase and formatting → UTC time utilities: parses timestamps
src/helper/auctionRoom.tsx - Room API hooks → Application API: fetches room data
src/hooks/useAuctionRooms.ts - Product API hook → Application API: fetches products
- Login and registration → Account API hooks: submits credentials
src/components/pages/authentication/Login.tsx - Account profile → Account API hooks: reads and updates profile
src/components/pages/account/profile.tsx - User session context → Account API hooks: validates session
src/context/userContextProvider.tsx - Account API hooks → Application API: calls account endpoints
src/hooks/account.tsx - User session context → User state types: uses session types
src/context/userContextProvider.tsx - Persisted Redux store → Bidding state: combines reducer
src/store/store.ts - Persisted Redux store → User reducer: combines reducer
src/store/store.ts - Room SignalR client → Auction room hub: connects and invokes
src/hooks/useSignalRServiceRoom.tsx - Room SignalR client → Auction room data types: exchanges room messages
src/hooks/useSignalRServiceRoom.tsx - Room API hooks → Auction room data types: uses room DTOs
src/hooks/useAuctionRooms.ts - Product API hook → Product data types: uses product DTOs
src/hooks/useProducts.tsx - Auction room data types → Product data types: embeds product details
src/dto/auctionRoom.tsx - Bidding state → Auction room data types: stores bid data
src/store/bidding/biddingSlice.ts