Commit Graph

9 Commits

Author SHA1 Message Date
Thomas Hallock bda5bc6c0e fix: prevent database imports from being bundled into client code
**Problem:**
- player-ownership.ts imported drizzle-orm and @/db at top level
- When RoomMemoryPairsProvider imported client-safe utilities, Webpack bundled ALL imports including database code
- This caused hydration error: "The 'original' argument must be of type Function"
- Node.js util.promisify was being called in browser context

**Solution:**
1. Created player-ownership.client.ts with ONLY client-safe utilities
   - No database imports
   - Safe to import from 'use client' components
   - Contains: buildPlayerOwnershipFromRoomData(), buildPlayerMetadata(), helper functions

2. Updated player-ownership.ts to re-export client utilities and add server-only functions
   - Re-exports everything from .client.ts
   - Adds buildPlayerOwnershipMap() (async, database-backed)
   - Safe to import from server components/API routes

3. Updated RoomMemoryPairsProvider to import from .client.ts

**Result:**
- No more hydration errors on /arcade/room
- Client bundle doesn't include database code
- Server code can still use both client and server utilities

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-10-10 11:40:46 -05:00
Thomas Hallock 6a51c1e9bd fix: upgrade CI dependencies and fix deprecated actions
- Upgrade pnpm from 8.0.0 to 9.15.4 to fix ERR_INVALID_THIS registry errors
- Upgrade actions/upload-artifact from v3 to v4 (v3 deprecated)
- Add missing semantic-release peer dependencies:
  - @semantic-release/commit-analyzer@^11.0.0
  - @semantic-release/release-notes-generator@^12.0.0

Fixes GitHub Actions failures in:
- Deploy Storybooks workflow
- Release workflow
- Verify Examples workflow

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-10-07 09:02:22 -05:00
Thomas Hallock 9d7cfefb69 cleanup: remove debugging output from storybook deployment workflow
- Remove file listing and CSS verification debugging output
- Deployment is now working successfully
- Keep only essential CSS generation commands
2025-09-28 08:39:15 -05:00
Thomas Hallock be76c2355f fix: update GitHub Pages actions to v4 for better deployment reliability
- Update actions/upload-pages-artifact from v3 to v4
- Update actions/deploy-pages from v3 to v4
- This should resolve the deployment metadata lookup issue
2025-09-28 08:30:10 -05:00
Thomas Hallock 26077de78b fix: add cssgen step to generate styles.css for Storybook
- Add 'npx @pandacss/dev cssgen' after panda codegen to generate the consolidated styles.css file
- The styles.css file is required by Storybook preview.ts but was not being generated by panda codegen alone
- Added error handling to allow CSS generation to continue despite warnings
2025-09-28 08:24:12 -05:00
Thomas Hallock ccca3d3415 debug: add debugging output to storybook deployment workflow
- Add file listing for styled-system directory after panda codegen
- Add debugging output before storybook build to check for styles.css file
- This will help diagnose why storybook can't find the CSS files
2025-09-28 08:19:15 -05:00
Thomas Hallock 4c338726c1 fix: upgrade Node.js to version 20 for Storybook compatibility 2025-09-28 08:15:22 -05:00
Thomas Hallock f0bb411573 fix: update GitHub Actions to use latest action versions for Storybook deployment 2025-09-28 08:12:12 -05:00
Thomas Hallock 439707b118 feat: add GitHub Pages Storybook deployment with dual documentation sites
- Add comprehensive GitHub Actions workflow for automated Storybook deployments
- Deploy apps/web Storybook to gh-pages/web subdirectory
- Deploy packages/abacus-react Storybook to gh-pages/abacus-react subdirectory
- Create beautiful landing page with navigation to both Storybooks
- Add Component Documentation section to README with direct links
- Support both PR previews and main branch deployments
- Optimize build process with proper dependency management
2025-09-28 08:10:06 -05:00