Commit Graph

124 Commits

Author SHA1 Message Date
Kevin BATAILLE
6b37c67b47 wip: Kaminari pagination 2025-08-26 02:57:17 +02:00
Kevin BATAILLE
a43c47a5db docs: Add QWEN.md file to customize Qwen Code interactions
Add a QWEN.md file to establish project context, preferences,
and behavior guidelines for Qwen Code interactions with the
aperonight Ruby on Rails project. This helps ensure consistent
and appropriate responses tailored to this specific project setup.

This change follows the convention of using a QWEN.md file to
customize AI assistant behavior in development environments.
2025-08-26 02:41:28 +02:00
Kevin BATAILLE
a0f008bbd4 fix: Add slug column to parties table and update seed data
- Added slug column to parties table via migration
- Updated seed data to properly assign slug values to Party records
- Fixed NoMethodError when assigning slug attribute in seed file

This resolves the ActiveModel::UnknownAttributeError that occurred
when trying to set the slug attribute on Party model instances.
2025-08-26 02:30:34 +02:00
kb6e
6385c39c10 new modes 2025-08-25 20:17:44 +02:00
kbe
6fbd24e36e feat: implement dynamic event display with party images and seed data
• Files changed: app/controllers/pages_controller.rb, app/models/party.rb, app/views/pages/home.html.erb, db/migrate/20250823145902_create_parties.rb, db/schema.rb, db/seeds.rb
• Nature of changes: Added image support to parties, updated homepage to dynamically display parties, enhanced seed data with parties and ticket types, schema updates for foreign keys
• Purpose: Enable dynamic event display on homepage with real data instead of static placeholders, add image support for parties, improve database relationships
• Impact: Homepage now shows real party data from database, parties can have images, database schema improved with proper foreign keys
• Commit message: feat: implement dynamic event display with party images and seed data
2025-08-25 03:41:15 +02:00
kbe
632055c44d chore: linting stuff 2025-08-25 00:43:03 +02:00
kbe
03717dc95b feat(test): Add comprehensive unit tests for all Rails models
- Create detailed unit tests for Party, TicketType, Ticket, User, and ApplicationRecord models
- Add fixture files for all models with valid test data
- Fix enum syntax in Party model for Rails 8 compatibility
- Add 60 total model tests covering validations, associations, and business logic
- Ensure all tests pass successfully

This provides full test coverage for the application's data models.
2025-08-25 00:40:07 +02:00
kbe
1c7a62acde refactor: clean up controller before_action definitions and routes
- Standardize before_action syntax in controllers by removing extraneous spaces
- Comment out unused bundles routes in API v1 namespace
- Clean up whitespace in routes file

These changes improve code consistency and maintainability while preparing for future feature development.

💘 Generated with Crush
Co-Authored-By: Crush <crush@charm.land>
2025-08-24 22:31:42 +02:00
kbe
98efdb44ac Modify theme for light one 2025-08-23 22:04:31 +02:00
kbe
5454e23220 New light theme 2025-08-23 21:28:35 +02:00
kbe
c7d28dca71 Add comprehensive theme rules and update authentication UI
- Create complete design system with color palette, typography, and component rules
- Update authentication pages with consistent styling
- Add footer component for better layout structure
- Remove deprecated architecture documentation

💘 Generated with Crush
Co-Authored-By: 💘 Crush <crush@charm.land>
2025-08-23 20:43:00 +02:00
kbe
b5b5ca1cc0 Add TicketType model with validations and fix dropdown menu
- Create TicketType model with Party association and Ticket relationship
- Add comprehensive validations for name, description, pricing, and date ranges
- Generate migration for ticket_types table with all required fields
- Add Alpine.js import to fix dropdown menu functionality
- Update ticket model with validations for qr_code, price, and status
2025-08-23 19:31:17 +02:00
kbe
ef9cfd6cdf feat: add Party management API with RESTful endpoints and comprehensive documentation
- Introduce Party model with lifecycle states (draft, published, canceled, sold_out)
- Add RESTful API endpoints under /api/v1/parties for CRUD operations
- Create ApiController base with API key authentication
- Implement comprehensive code comments across models and controllers
- Add database migration for parties table with proper indexes
- Configure API routes with namespaced versioning
2025-08-23 18:03:32 +02:00
kbe
3c6389c6e2 feat: Use application name from .env 2025-08-18 00:25:14 +02:00
kbe
2927a8344f chore: New js transpiler for dev and for production
The old system weren't minifying javascriptt to assets dir.
Now there is a command line for production (build) and dev (build:dev).
2025-08-18 00:13:25 +02:00
kbe
07a6694883 chore: Counter now embedded with Stimulus
Before this commit, Counter js was autonomous. Now it's registered
like a controller in Stimulus.
2025-08-17 23:47:07 +02:00
kbe
ba3f36a5e8 feat: Add metrics on homepage 2025-08-17 23:39:24 +02:00
kbe
17e6711299 Wip on homepage.
Add documentation how to optimize code size in production.
2025-08-16 22:45:27 +02:00
kbe
31534b2c0c New homepage 2025-08-16 22:28:41 +02:00
kbe
87af76f078 Prepare working with authentication and Tailwind 2025-08-16 21:28:49 +02:00
kbe
9ec13c7d3d chore: Add authentications controller from Devise 2025-08-16 21:03:25 +02:00
kbe
6a1f1cca9a Prepare to use Devise as auth Gem 2025-08-16 17:03:14 +02:00
kbe
ed659c423e Prepare dev instructure 2025-08-16 09:00:38 +02:00
kbe
d96fb4be95 first commit
Some checks failed
CI / scan_ruby (push) Successful in 2m46s
CI / lint (push) Successful in 31s
CI / test (push) Failing after 10s
2025-08-16 08:04:22 +02:00