Skip to content

feat: Manage boat#28

Merged
cballevre merged 7 commits intomainfrom
feat/manage-boat
Jul 30, 2025
Merged

feat: Manage boat#28
cballevre merged 7 commits intomainfrom
feat/manage-boat

Conversation

@cballevre
Copy link
Copy Markdown
Owner

No description provided.

@cballevre cballevre changed the title eat/manage boat feat: Manage boat Jul 30, 2025
@cballevre cballevre requested a review from Copilot July 30, 2025 17:14
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 migrates the project from the deprecated useTranslation hook to the modern useTranslate hook from Refine, and reorganizes the translation key structure for better maintainability and consistency.

  • Replaces all instances of useTranslation with useTranslate across the codebase
  • Restructures translation keys to use a hierarchical dot notation format (e.g., boats.add.title instead of AddBoat.title)
  • Adds new boat management features including rename functionality and a delete confirmation modal

Reviewed Changes

Copilot reviewed 28 out of 28 changed files in this pull request and generated 3 comments.

Show a summary per file
File Description
src/interventions/pages/* Updates translation hook usage and key structure for intervention pages
src/equipments/pages/* Updates translation hook usage for equipment pages
src/boats/pages/* Updates translation hook and adds enhanced boat management features
src/boats/components/* Updates translation hook usage and adds new BoatDeleteButton component
src/auth/* Updates translation hook usage for authentication components
src/core/components/app-provider.tsx Adds notification provider configuration
public/locales/*.json Restructures translation keys to use hierarchical dot notation
.github/copilot-instructions.md Adds comprehensive project documentation for AI agents

Comment thread src/boats/pages/add.tsx
});

const handleOnFinish = (values: {}) => {
const handleOnFinish = (values: Record<string, unknown>) => {
Copy link

Copilot AI Jul 30, 2025

Choose a reason for hiding this comment

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

The parameter type Record<string, unknown> is too generic for form values. Consider creating a proper interface for the boat form values to improve type safety and API clarity.

Suggested change
const handleOnFinish = (values: Record<string, unknown>) => {
const handleOnFinish = (values: BoatFormValues) => {

Copilot uses AI. Check for mistakes.
Comment thread src/boats/components/boat-delete-button.tsx Outdated
Comment thread src/boats/components/boat-delete-button.tsx Outdated
@cballevre cballevre merged commit 0bb5338 into main Jul 30, 2025
1 check passed
@cballevre cballevre deleted the feat/manage-boat branch July 30, 2025 17: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.

2 participants