Merged
Conversation
There was a problem hiding this comment.
Pull Request Overview
This PR adds quantity tracking functionality to equipment in the VesselVigil application. It allows users to specify and track quantities for equipment items, addressing issue #34.
- Adds a new
quantityinteger field to the equipment database schema with a default value of 1 - Updates the equipment form to include quantity input with validation
- Modifies equipment display components to show quantity when greater than 1
Reviewed Changes
Copilot reviewed 10 out of 11 changed files in this pull request and generated 2 comments.
Show a summary per file
| File | Description |
|---|---|
| supabase/schemas/equipments.sql | Adds quantity column to equipments table schema |
| supabase/migrations/20250813063811_add_quantity_to_equipment_table.sql | Database migration to add quantity column |
| src/shared/types/supabase.ts | Updates TypeScript types to include quantity field and other schema changes |
| src/equipments/pages/show.tsx | Displays quantity prefix in equipment name and calculates total purchase value |
| src/equipments/pages/list.tsx | Shows quantity prefix in equipment list items |
| src/equipments/components/equipment-form.tsx | Adds quantity input field with validation |
| public/locales/fr.json | Adds French translations for quantity field and validation |
| public/locales/en.json | Adds English translations for quantity field and validation |
| package.json | Updates Supabase CLI version and adds types generation script |
| docs/supabase.md | Documents the new types generation command |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #34