-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Fiche navire] L'UI du paramétrage de l'affichage de la piste VMS est…
… cassé (#3055) ## Linked issues - Resolve #3050 - J'ai passé tous les composants `Radio` `rsuite` en `monitor-ui` ---- - [x] Tests E2E (Cypress) <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit - **New Features** - Introduced a new component for highlighting vessel track positions on the map. - Enhanced vessel tracking options with a more flexible depth selection. - Updated the Vessel Logbook summary styling for better readability. - Replaced radio buttons with a styled select component in the track request feature for improved UI consistency. - Refactored the Positions Table to use a more sophisticated DataTable component, enhancing functionality and user experience. - **Refactor** - Updated various components and types to support the new `SelectableVesselTrackDepth` type, ensuring more accurate vessel tracking. - **Style** - Added specific styling adjustments to improve the visual presentation of the application's components. - **Chores** - Minor comment update for better code documentation clarity. <!-- end of auto-generated comment: release notes by coderabbit.ai -->
- Loading branch information
Showing
34 changed files
with
475 additions
and
731 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
8 changes: 6 additions & 2 deletions
8
frontend/src/domain/use_cases/vessel/updateDefaultVesselTrackDepth.ts
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,16 @@ | ||
import { updateVesselTracks } from './updateVesselTracks' | ||
import { setDefaultVesselTrackDepth } from '../../shared_slices/Map' | ||
|
||
import type { VesselTrackDepth } from '../../entities/vesselTrackDepth' | ||
import type { SelectableVesselTrackDepth } from '@features/VesselSidebar/actions/TrackRequest/types' | ||
|
||
/** | ||
* Update the global vessel track Depth and re-render the rendered vessels tracks | ||
*/ | ||
export const updateDefaultVesselTrackDepth = (trackDepth: VesselTrackDepth) => dispatch => { | ||
export const updateDefaultVesselTrackDepth = (trackDepth: SelectableVesselTrackDepth | undefined) => dispatch => { | ||
if (!trackDepth) { | ||
return | ||
} | ||
|
||
dispatch(setDefaultVesselTrackDepth(trackDepth)) | ||
dispatch(updateVesselTracks()) | ||
} |
25 changes: 17 additions & 8 deletions
25
frontend/src/features/BaseMap/components/BaseMaps/BaseMap.tsx
This file contains 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
This file contains 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
This file contains 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
Oops, something went wrong.