30 Commits

Author SHA1 Message Date
aa23c905bf feat(admin/migration): seed SUPER_ADMIN/SHOP_ADMIN, rotate MIGRATE_TOKEN, finalize migration flow; harden endpoints; wire OpenNext updates 2025-10-06 06:41:40 -06:00
c4a29225af __New File Created:__ (500+ lines)
__Features Implemented:__

1. __Image Display Grid__

   - Responsive grid layout (2-4 columns)
   - Image previews with hover effects
   - Public/Private visibility badges
   - Caption display on images

2. __Upload Functionality__

   - Drag-and-drop upload zone
   - Multiple file upload support
   - File type validation (PNG, JPG, WebP)
   - Size limit enforcement (5MB per file)
   - Upload progress feedback
   - Integration with  endpoint

3. __Edit Capabilities__

   - Modal dialog for editing images
   - Caption editor (textarea)
   - Tag management (add/remove tags)
   - Visibility toggle (public/private)
   - Image preview in edit dialog
   - Form validation with Zod

4. __Delete Functionality__

   - Confirmation dialog before deletion
   - Permanent deletion warning
   - Integration with  DELETE endpoint

5. __User Experience__

   - Loading states during fetch/upload/edit/delete
   - Error handling with toast notifications
   - Success confirmations
   - Optimistic UI updates
   - Automatic data refresh after operations

__Integration:__

- Added PortfolioManager to
- Positioned below artist form for logical workflow
- Automatic refresh of artist data when portfolio changes
- Callback system for parent component updates

##
2025-10-06 04:51:57 -06:00
1378bff909 updated the following components to use the API instead of hardcoded data:
### 1. __artists-grid.tsx__ (Main Artist Browsing)

- Uses  hook from
- Fetches from  endpoint
- Includes loading states, error handling, and filtering
- __Impact:__ Primary artist browsing experience now fully API-driven

### 2. __artist-portfolio.tsx__ (Individual Artist Pages)

- Uses  hook
- Fetches from  endpoint
- Fixed all TypeScript errors (changed image ID from number to string)
- Added loading/error states
- __Impact:__ Artist detail pages now fully API-driven

### 3. __booking-form.tsx__ (Artist Selection Dropdown)

- Uses  hook for artist selection
- Updated to use API data structure ( array, , etc.)
- Added loading state for dropdown
- __Impact:__ Booking flow now uses real artist data

## ⚠️ REMAINING (Decorative/Marketing Components)

Two complex components still use hardcoded :

### 4. __artists-section.tsx__ (Homepage Hero - 348 lines)

- Homepage marketing section with complex parallax scrolling
- Uses hardcoded artist data for visual cards
- __Non-blocking:__ This is a decorative homepage element

### 5. __artists-page-section.tsx__ (Artists Page Section - 413 lines)

- Full-page artists showcase with parallax effects
- Uses hardcoded artist data for visual layout
- __Non-blocking:__ Alternative to artists-grid.tsx (which IS using API)

##
2025-10-06 04:44:08 -06:00
43b336acf9 feat: Phase 1 - Artist profile database refactor with API foundation
Implements backend infrastructure for loading artist profiles from Cloudflare D1 database instead of static data.

Database Changes:
- Add slug column migration for SEO-friendly URLs (0001_add_artist_slug.sql)
- Enhanced data migration script with slug generation
- Support for all artist fields from data/artists.ts

Type Definitions:
- Add slug field to Artist interface
- Create ArtistWithPortfolio type for full artist data
- Create PublicArtist type for sanitized API responses
- Add ArtistFilters type for query parameters
- Add ArtistDashboardStats for analytics

Database Functions (lib/db.ts):
- getPublicArtists() - fetch active artists with portfolio and filtering
- getArtistWithPortfolio() - fetch single artist with full portfolio
- getArtistBySlug() - fetch by URL-friendly slug
- getArtistByUserId() - fetch by user ID for dashboard
- Enhanced getArtists() with JSON parsing

API Endpoints:
- Updated GET /api/artists - filtering, pagination, portfolio images
- Created GET /api/artists/[id] - fetch by ID or slug
- Created PUT /api/artists/[id] - update with authorization
- Created DELETE /api/artists/[id] - soft delete (admin only)
- Created GET /api/artists/me - current artist profile

React Hooks (hooks/use-artist-data.ts):
- useArtists() - fetch with filtering
- useArtist() - fetch single artist
- useCurrentArtist() - logged-in artist
- useUpdateArtist(), useCreateArtist(), useDeleteArtist() - mutations

Frontend Components:
- Refactored artists-grid.tsx to use API with loading/error states
- Use database field names (slug, specialties, portfolioImages)
- Display profile images from portfolio
- Client-side filtering by specialty

Files Modified:
- sql/migrations/0001_add_artist_slug.sql (new)
- types/database.ts (enhanced)
- lib/data-migration.ts (enhanced)
- lib/db.ts (enhanced)
- app/api/artists/route.ts (updated)
- app/api/artists/[id]/route.ts (new)
- app/api/artists/me/route.ts (new)
- hooks/use-artist-data.ts (new)
- components/artists-grid.tsx (refactored)

Remaining work: Artist portfolio page, artist dashboard, admin enhancements

Ref: artist_profile_refactor_implementation_plan.md
2025-10-06 03:53:28 -06:00
741e036711 Added visibility to nav items at scroll position 0, updated the nav to use ShadCN variables
Some checks failed
CI / build-and-test (pull_request) Has been cancelled
2025-09-26 01:19:49 -06:00
ad0e34bd7e updated section scrolling
Some checks failed
CI / build-and-test (pull_request) Has been cancelled
2025-09-26 00:34:25 -06:00
cb7a555118 latest changes
Some checks failed
CI / build-and-test (pull_request) Has been cancelled
2025-09-25 23:53:54 -06:00
f65f422e6d feat(devtools): add console credit banner with ASCII border (idempotent)
Some checks failed
CI / build-and-test (pull_request) Failing after 1m22s
2025-09-21 05:17:16 -06:00
d5e8161186 Added Keyboard navigation to artist portfolios
Some checks failed
CI / build-and-test (pull_request) Failing after 1m15s
2025-09-20 05:58:19 -06:00
895f3dd24c Parallax Adjustments
Some checks failed
CI / build-and-test (pull_request) Failing after 1m21s
2025-09-20 05:29:57 -06:00
f17f4e0167 Created Brand language story 2025-09-20 03:10:48 -06:00
3a7e2508ac Started making brand language adjustments 2025-09-20 02:55:17 -06:00
f2b32d2b9e Standardized ShadCN UI usage across public pages by removing ad‑hoc color classes, adopting design tokens, and unifying section paddings via a new SectionWrapper. Implemented subtle motion patterns (animate-in fade-in-50 duration-300) with motion-reduce:animate-none safeguards, and marked decorative lucide icons aria-hidden while dropping text-white overrides. Fixed ESLint issues (apostrophes, unused imports) and aligned typography/spacing to a newly documented site-wide Typography Ramp in docs/ui-architecture.md. Strengthened coverage with RTL tests for Aftercare and Privacy to assert tokens, primitives, motion, and spacing; all tests pass. Updated UT-PUB-01 story to PASS and verified loading/error skeletons for key segments.
Some checks failed
CI / build-and-test (pull_request) Failing after 1m16s
2025-09-20 02:32:08 -06:00
4fad672a5c All six stories are ready for development with clear, testable acceptance criteria and actionable tasks mapped to existing components and patterns.
Some checks failed
CI / build-and-test (pull_request) Failing after 1m15s
2025-09-19 23:43:07 -06:00
2e4d44a881 Created stories:
- docs/stories/pub-1-shadcn-ui-consistency.md
- docs/stories/pub-2-parallax-split-hero.md
- docs/stories/pub-3-search-with-filters.md
- docs/stories/pub-4-quick-search-cmdk.md
- docs/stories/pub-5-aftercare-enhancements.md
- docs/stories/pub-6-galleries-lightbox.md

Each story:

- Mirrors PRD acceptance criteria verbatim
- Includes actionable Tasks/Subtasks aligned to repo components (e.g., components/hero-section.tsx, components/artist-portfolio.tsx, data/artists.ts)
- Provides Dev Notes referencing docs/ui-architecture.md and docs/PRD.md
- Includes Testing guidance (Vitest/RTL and a11y expectations)
- Reserves Dev Agent Record and QA Results sections for subsequent phases
2025-09-19 21:45:59 -06:00
b20db98051 feat(ci,flags,ops): ship end-to-end CI, feature-flag framework, gated surfaces, and ops docs
Some checks failed
CI / build-and-test (pull_request) Failing after 1m19s
CI (.gitea/workflows/ci.yaml): lint → typecheck → vitest w/ coverage → OpenNext build → preview smoke → bundle-size budgets; Node 20; npm ci; artifacts; safe env; D1 dry-run scaffold.

Budgets: add scripts/budgets.mjs; TOTAL_STATIC_MAX_BYTES and MAX_ASSET_BYTES thresholds; report top offenders; fail on breach; README CI section.

Flags: add lib/flags.ts with typed booleans and safe defaults (ADMIN_ENABLED, ARTISTS_MODULE_ENABLED, UPLOADS_ADMIN_ENABLED, BOOKING_ENABLED, PUBLIC_APPOINTMENT_REQUESTS_ENABLED, REFERENCE_UPLOADS_PUBLIC_ENABLED, DEPOSITS_ENABLED, PUBLIC_DB_ARTISTS_ENABLED, ADVANCED_NAV_SCROLL_ANIMATIONS_ENABLED, STRICT_CI_GATES_ENABLED, ISR_CACHE_R2_ENABLED); robust parsing; client provider; unit tests.

Wiring: gate Admin shell and admin write APIs (503 JSON on uploads and artists writes); disable booking submit and short-circuit booking mutations when off; render static Hero/Artists when advanced animations off; tests for UI and API guards.

Ops: expand docs/prd/rollback-strategy.md with “Feature Flags Operations,” Cloudflare Dashboard and wrangler.toml steps, preview simulation, incident playbook, and post-toggle smoke checklist.

Release: add docs/releases/2025-09-19-feature-flags-rollout.md with last-good commit, preview/production flag matrices, rollback notes, and smoke results; link from rollback doc.

Chore: fix TS issues (gift-cards boolean handling, Lenis options, tailwind darkMode), remove next-on-pages peer conflict, update package.json scripts, configure Gitea act_runner label, open draft PR to trigger CI.

Refs: CI-1, FF-1, FF-2, FF-3, OPS-1
Impact: defaults preserve current behavior; no runtime changes unless flags flipped
2025-09-19 21:33:09 -06:00
9506d99d52 ci: fix install failure by removing @cloudflare/next-on-pages and using npm install in CI
Some checks failed
CI / build-and-test (pull_request) Failing after 1m26s
2025-09-19 05:02:59 -06:00
082f1cba53 ci: add fallback install for dev deps to satisfy lint/coverage without changing lockfile
Some checks failed
CI / build-and-test (pull_request) Failing after 36s
2025-09-19 05:00:12 -06:00
5910f2c83c ci: add eslint and coverage deps; use local OpenNext CLI; update preview smoke to npm run preview
Some checks failed
CI / build-and-test (pull_request) Failing after 37s
2025-09-19 04:55:42 -06:00
f692b45926 CI: trigger workflow run and add budgets/docs; prepare branch ci-run-20250918-2021
Some checks failed
CI / build-and-test (pull_request) Failing after 2m54s
2025-09-18 20:21:44 -06:00
6b7cc868a3 chore(ci): trigger CI run and add runs log entry 2025-09-18 20:11:29 -06:00
f26f4ddec2 Developed BMAD plan & created relevant documentation for next steps 2025-09-18 17:40:44 -06:00
3e8905dd7b Initialized BMAD 2025-09-17 16:19:44 -06:00
16cee69250 __Admin dashboard scaffolded with D1 database and R2 file uploads__
This commit implements the core admin dashboard functionality including NextAuth authentication, Cloudflare D1 database integration with complete schema, and Cloudflare R2 file upload system for portfolio images. Features include artist management, appointment scheduling, and data migration capabilities.
2025-09-17 16:08:34 -06:00
8216198c88 Scaffolded admin dashboard, added nextauth, cloudflare d1 and R2 2025-09-17 11:24:00 -06:00
7b23bbd54f Updated Portfolio Images 2025-09-17 09:11:51 -06:00
ebe8fa2407 fix: improve mobile UX, polish artist cards, and enhance contact modal with responsive backgrounds 2025-09-17 08:29:24 -06:00
d925ab75cf feat(mobile): add services carousel, persistent booking bar, and improved navigation while preserving desktop layouts 2025-09-17 00:30:49 -06:00
06abb52024 v05 push to origin 2025-09-16 21:36:20 -06:00
ae8d4a6dd1 Initial commit from Create Next App 2025-09-16 20:13:34 -06:00