Frontend refactor complete - updated TypeScript interfaces and OffensiveApproach component to use new action-based system with smart filtering. Changes: - TypeScript interfaces: Replaced approach/hit_and_run/bunt_attempt with action field - OffensiveApproach.vue: Complete refactor with 6 action choices and smart filtering - Smart filtering: Automatically disables invalid actions based on game state - Auto-reset: If current action becomes invalid, resets to swing_away TypeScript updates (types/game.ts, types/websocket.ts): - OffensiveDecision.action: 6 valid choices (swing_away, steal, check_jump, hit_and_run, sac_bunt, squeeze_bunt) - Removed deprecated fields: approach, hit_and_run, bunt_attempt - OffensiveDecisionRequest updated to match Component features: - Smart filtering based on game state (runners, outs) - Visual feedback for disabled actions with explanatory text - Special handling notes for steal and squeeze_bunt - Auto-reset to swing_away when actions become invalid - Clean, modern UI with action icons and descriptions Action requirements enforced in UI: - check_jump: requires runner on base - hit_and_run: requires runner on base - sac_bunt: disabled with 2 outs - squeeze_bunt: requires R3, disabled with 2 outs - steal/swing_away: always available Files modified: - types/game.ts - types/websocket.ts - components/Decisions/OffensiveApproach.vue 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| .claude | ||
| app | ||
| assets/css | ||
| components | ||
| composables | ||
| coverage | ||
| layouts | ||
| middleware | ||
| pages | ||
| plugins | ||
| public | ||
| store | ||
| tests | ||
| types | ||
| .dockerignore | ||
| .gitignore | ||
| app.vue | ||
| CLAUDE.md | ||
| Dockerfile | ||
| nuxt.config.ts | ||
| package-lock.json | ||
| package.json | ||
| README.md | ||
| tailwind.config.js | ||
| tsconfig.json | ||
| vitest.config.ts | ||
Nuxt Minimal Starter
Look at the Nuxt documentation to learn more.
Setup
Make sure to install dependencies:
# npm
npm install
# pnpm
pnpm install
# yarn
yarn install
# bun
bun install
Development Server
Start the development server on http://localhost:3000:
# npm
npm run dev
# pnpm
pnpm dev
# yarn
yarn dev
# bun
bun run dev
Production
Build the application for production:
# npm
npm run build
# pnpm
pnpm build
# yarn
yarn build
# bun
bun run build
Locally preview production build:
# npm
npm run preview
# pnpm
pnpm preview
# yarn
yarn preview
# bun
bun run preview
Check out the deployment documentation for more information.