Skip to content

Package Management feature#522

Merged
Francisca105 merged 16 commits intostagingfrom
feat/packages
Nov 21, 2025
Merged

Package Management feature#522
Francisca105 merged 16 commits intostagingfrom
feat/packages

Conversation

@Francisca105
Copy link
Copy Markdown
Member

Closes #445.

  • Implemented ItemAutocomplete component for searching and selecting items.
  • Created ItemAutocompleteWithDialog for item creation through a dialog.
  • Developed ItemInline component for displaying item details inline.
  • Added PackageCard component for displaying package information with edit and delete options.
  • Created PackageForm for creating and editing packages.
  • Introduced Item DTO for type safety.
  • Added mutations for managing company participation packages.
  • Updated router to include new packages and items views.
  • Created PackagesView for managing event packages.
  • Developed CategoriesAdmin for managing item categories.
  • Implemented ItemsAdmin for item management with create, edit, and delete functionalities.
  • Added PackageItemsView to manage items and categories side by side.

Copy link
Copy Markdown
Contributor

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 implements a comprehensive package management feature that allows coordinators and admins to create, manage, and assign packages to company participations. The implementation spans both frontend (Vue 3 with TypeScript) and backend (Go with MongoDB), introducing item management, category management, and package assignment capabilities.

Key Changes:

  • Introduced a complete item and category management system with CRUD operations
  • Created package management UI with form-based creation/editing and card-based display
  • Integrated package selection into company participation workflow
  • Added new API endpoints for items, categories, and package assignment

Reviewed Changes

Copilot reviewed 26 out of 26 changed files in this pull request and generated 21 comments.

Show a summary per file
File Description
frontend/src/components/items/ItemAutocomplete.vue Autocomplete component for searching and selecting items with debouncing
frontend/src/components/items/ItemAutocompleteWithDialog.vue Wrapper component that adds item creation dialog to autocomplete
frontend/src/components/items/ItemInline.vue Inline display component for item details with expandable popover
frontend/src/components/items/CreateItemForm.vue Form component for creating/editing items with category selection
frontend/src/components/items/CreateCategoryForm.vue Simple form for creating new item categories
frontend/src/components/packages/PackageForm.vue Comprehensive form for package creation and editing with item selection
frontend/src/components/packages/PackageCard.vue Card component displaying package details with edit/delete actions
frontend/src/components/ConfirmDelete.vue Reusable confirmation dialog component for delete operations
frontend/src/views/Dashboard/Items/ItemsAdmin.vue Admin view for managing items with list, create, edit, and delete
frontend/src/views/Dashboard/Items/CategoriesAdmin.vue Admin view for managing item categories
frontend/src/views/Dashboard/Items/PackageItemsView.vue Container view showing items and categories side-by-side
frontend/src/views/Dashboard/Events/PackagesView.vue Main view for managing event packages with filtering
frontend/src/components/companies/EditableCompanyParticipation.vue Added package selection dropdown to company participation editor
frontend/src/components/Navbar.vue Added "Coordination" dropdown menu with link to packages
frontend/src/components/ContactCard.vue Refactored to use new ConfirmDelete component
frontend/src/router.ts Added routes for packages and items management
frontend/src/api/items.ts API client for items and categories endpoints
frontend/src/api/packages.ts API client for package management endpoints
frontend/src/api/companies.ts Added endpoint for updating company participation package
frontend/src/mutations/companies.ts Added mutation for company participation package updates
frontend/src/dto/item.ts TypeScript interface for Item entity
backend/src/router/items.go Added handlers for item categories CRUD operations
backend/src/router/company.go Added setCompanyPackage handler and formatting fixes
backend/src/router/init.go Registered new category and package routes
backend/src/mongodb/item_categories.go MongoDB collection wrapper for item categories
backend/src/mongodb/init.go Initialize categories collection with default seeding

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread frontend/src/components/items/ItemAutocomplete.vue Outdated
Comment thread frontend/src/views/Dashboard/Packages/PackagesView.vue
Comment thread frontend/src/views/Dashboard/Packages/PackagesView.vue Outdated
Comment thread frontend/src/api/items.ts Outdated
Comment thread backend/src/mongodb/item_categories.go
Comment thread frontend/src/components/items/CreateItemForm.vue Outdated
Comment thread frontend/src/components/packages/PackageForm.vue Outdated
Comment thread frontend/src/components/companies/EditableCompanyParticipation.vue Outdated
Comment thread backend/src/router/company.go
Comment thread backend/src/mongodb/init.go Outdated
Francisca105 and others added 16 commits November 21, 2025 00:58
- Implemented ItemAutocomplete component for searching and selecting items.
- Created ItemAutocompleteWithDialog for item creation through a dialog.
- Developed ItemInline component for displaying item details inline.
- Added PackageCard component for displaying package information with edit and delete options.
- Created PackageForm for creating and editing packages.
- Introduced Item DTO for type safety.
- Added mutations for managing company participation packages.
- Updated router to include new packages and items views.
- Created PackagesView for managing event packages.
- Developed CategoriesAdmin for managing item categories.
- Implemented ItemsAdmin for item management with create, edit, and delete functionalities.
- Added PackageItemsView to manage items and categories side by side.
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
- Forbidden the editing of the event name from the package name
…r effects

Updated package filtering logic for better accuracy
refactor(App): remove duplicate router-view element
@Francisca105 Francisca105 merged commit 8fd9ecc into staging Nov 21, 2025
1 check passed
@Francisca105 Francisca105 deleted the feat/packages branch November 21, 2025 01:01
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.

2 participants