Commit Graph

12 Commits

Author SHA1 Message Date
duanshuwen
3b3d8d0aa1 feat(admin): add destination hero and region admin modules
Add new API type definitions for DestinationHero and DestinationRegion
Extend SiteConfig and SiteModule to include the new site modules
Update destination page sidebar label and structure page configuration
Add admin editor UI, payload handling, and empty draft generators for the new modules
Adjust item metadata and form fields to support the new site item types
2026-07-07 21:24:38 +08:00
duanshuwen
a675092989 feat: add leads page and refresh ui components
Overhaul all core UI components (button, input, select, textarea, badge, alert, card) to use consistent tailwind color classes, add smooth transitions and hover states for better interactivity.
Add TypeScript types, updated API functions, and utility helpers for lead management with filtering and pagination support.
Build a fully functional leads management page with status and source filters, lead data formatting (travel date, budget, headcount), loading states, empty states, and a polished responsive table layout.
Add comprehensive admin sidebar, workspace, and leads table styling to the global CSS.
2026-07-04 14:15:40 +08:00
duanshuwen
f1fed91675 chore: clean up unused docs and stray system files
Remove deprecated project documentation files and accidental system-committed binary files from the repository.
2026-07-04 10:50:35 +08:00
duanshuwen
f7401d8dc6 feat(hotel groups): add price, tags and publish status support
extend HotelGroup type with new fields including coverImage, priceAmount, priceUnit, tags and draft/published status. refactor admin utilities to separate hotel group and vehicle option handling, add proper payload normalization for hotel group submissions including syncing coverImage and image fields. update admin UI components to support hotel group-specific configurations, including default "起/晚" price unit, trimmed and limited tags, and publish status toggle. update admin documentation to reflect new hotel group API, split hotel groups docs from vehicle options, and document all new fields.
2026-07-03 22:45:16 +08:00
duanshuwen
86a12dd1a0 feat(admin): add hotel groups and vehicle options site modules
Add support for two new standalone site content modules in the admin dashboard:
hotel groups and vehicle options. This commit includes:
- Added TypeScript types for HotelGroup and VehicleOption, extended SiteConfig and SiteModule enum
- Updated admin utilities (primary key lookup, empty drafts, payload compaction) for the new modules
- Added management UI panels and editors in the structure page for configuring the new modules
- Adjusted module rail styling and interactive states for consistent UI across the admin
- Updated ctaBanners type definition to include missing sortOrder, createdAt, and updatedAt fields
- Updated API and admin documentation to cover the new modules' CRUD endpoints and field contracts
2026-07-03 20:26:27 +08:00
duanshuwen
9fd91c84e5 feat(admin): add route sections admin management module
This commit adds the complete admin workflow for managing homepage curated route subgroups:
- Add `RouteSection` type and extend `SiteConfig`/`SiteModule` to support the new module
- Create all required admin components: panel, editors, product picker, and utility functions
- Update admin utilities and API types to handle routeSections CRUD operations
- Update documentation to include the new routeSections API contract
- Add supporting CSS styles for the new UI elements
2026-07-02 23:05:45 +08:00
duanshuwen
50be3cbfce feat: add campaigns module with CRUD operations and UI integration 2026-07-02 13:25:52 +08:00
duanshuwen
710d020504 feat: add support for map module in site configuration and update related APIs 2026-07-01 21:29:38 +08:00
duanshuwen
462498660e feat: enhance admin UI with responsive styles and new components
- Updated styles in src/styles.css for better responsiveness and layout adjustments.
- Added new CSS classes for edit drawer and item rail components.
- Introduced animations for drawer transitions.
- Created new types in src/types/admin.ts for better type safety in admin features.
- Modified vite.config.ts to change server port and enable strict port settings for development.
2026-07-01 16:55:23 +08:00
duanshuwen
b9a57fe03c Refactor code structure for improved readability and maintainability 2026-07-01 10:43:30 +08:00
duanshuwen
50e9b32806 feat: add WonderQ admin UI 2026-06-30 12:02:44 +08:00
282b90b622 Initial commit 2026-06-30 10:20:09 +08:00