4.8 KiB
4.8 KiB
Tasks - Star Kitten
Add New Discord Command
Last performed: Initial setup Files to modify:
packages/eve-bot/src/commands/[command-name].command.ts- New command file- Global Discord client automatically registers new commands
Steps:
- Create new command file following naming convention
[name].command.ts - Export Discord command definition as default export
- Add interaction handlers using global client event listeners
- Include localization for command names and descriptions
- Test command registration and interaction handling
Important notes:
- Commands are auto-discovered using glob patterns
- Each command handles its own interactions via global client
- Follow existing pattern from
appraise.command.ts - Include comprehensive error handling for all interactions
Add New EVE ESI Integration
Last performed: Character and wallet integration Files to modify:
packages/eve/src/esi/[module].ts- New ESI modulepackages/eve/src/esi/index.ts- Export new modulepackages/eve/src/esi/scopes.ts- Add required scopes if neededpackages/eve/src/db/models/character.model.ts- Add helper methods if needed
Steps:
- Define required ESI scopes in scopes.ts
- Create new ESI module with fetch functions
- Add proper TypeScript interfaces for API responses
- Implement caching where appropriate
- Add character model helper methods for data access
- Update exports in index.ts
Important notes:
- Always handle token refresh automatically
- Include comprehensive error handling for API failures
- Follow existing patterns from character.ts and wallet integrations
- Cache responses appropriately to respect rate limits
Database Schema Migration
Last performed: Initial schema setup Files to modify:
packages/eve/src/db/schema.ts- Schema definitionspackages/eve/src/db/models/- Model helpers if neededpackages/eve/src/db/index.ts- Export new tables
Steps:
- Update schema.ts with new tables/columns
- Generate migration using
bun run generate-migrations - Test migration with
bun run migrate - Update model classes with new methods
- Add exports to db/index.ts
- Update database initialization in main applications
Important notes:
- Always backup database before migrations
- Test migrations on development database first
- Update all references to schema changes
- Consider data migration scripts for existing data
Add New Web Component
Last performed: Skill queue and wallet components Files to modify:
packages/eve-web/src/components/[category]/[component].tsx- New componentpackages/eve-web/src/pages/index.tsx- Import and use component- Related ESI integration if data source needed
Steps:
- Create new component following existing patterns
- Implement async data loading with suspense fallback
- Add proper TypeScript interfaces for props
- Style using Tailwind CSS and DaisyUI components
- Import and integrate into appropriate page
- Test with real data and loading states
Important notes:
- Always provide suspense fallback for loading states
- Follow existing component patterns from skill-queue.tsx and wallet.tsx
- Use server-side rendering capabilities of Brisa
- Ensure responsive design for mobile devices
Add Third-Party API Integration
Last performed: Janice API integration Files to modify:
packages/eve/src/third-party/[service].ts- New API integrationpackages/eve/src/third-party/index.ts- Export new service- Environment configuration for API keys
Steps:
- Create new service module with TypeScript interfaces
- Implement API client with proper error handling
- Add caching layer for performance
- Include comprehensive validation for inputs/outputs
- Add tests for all API functions
- Update exports and environment configuration
Important notes:
- Always implement proper rate limiting and caching
- Include comprehensive error handling and validation
- Follow existing patterns from janice.ts
- Add API key management through environment variables
- Test with real API to ensure compatibility
Update Reference Data
Last performed: Initial data setup Files to modify:
data/reference-data/- Static reference filesdata/hoboleaks/- SDE data filespackages/eve/src/models/- Data model updates if needed
Steps:
- Run
bun get-datato download latest reference data - Verify data integrity and format consistency
- Update data models if schema changes detected
- Test applications with new reference data
- Commit updated data files to repository
Important notes:
- Reference data updates can be large (hundreds of MB)
- Always verify data integrity before committing
- Test critical functionality after data updates
- Consider data migration scripts for breaking changes
- Monitor for EVE Online patch changes that affect data structure