Skip to content

feat: Add quantity to equipment#36

Merged
cballevre merged 2 commits intomainfrom
feat/add-count-to-equipment
Aug 13, 2025
Merged

feat: Add quantity to equipment#36
cballevre merged 2 commits intomainfrom
feat/add-count-to-equipment

Conversation

@cballevre
Copy link
Copy Markdown
Owner

Fixes #34

@cballevre cballevre requested a review from Copilot August 13, 2025 07:21
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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 quantity integer 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

Comment thread src/equipments/pages/show.tsx
Comment thread src/equipments/pages/show.tsx
@cballevre cballevre merged commit 1c397bc into main Aug 13, 2025
1 check passed
@cballevre cballevre deleted the feat/add-count-to-equipment branch August 13, 2025 07:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

As a user, I want to be able to count the number of copies of an equipment

2 participants