Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Maps Update: Cards and Modals for Maps Components #1314

Open
wants to merge 53 commits into
base: development
Choose a base branch
from

Conversation

juanjoseguva
Copy link

@juanjoseguva juanjoseguva commented Jul 18, 2024

Description

Updating Maps page to display as cards with modals, matching the other pages.

UPDATE:

Type of change

  • Note merging this changes the database configuration.
  • This change requires a documentation update

Checklist

  • I have followed the OED pull request ideas
  • I have removed text in ( ) from the issue request
  • You acknowledge that every person contributing to this work has signed the OED Contributing License Agreement and each author is listed in the Description section.

Limitations

Saving functionality should be moved into the modals, and the save changes button under the cards should be deleted.

UPDATE: The migration maintains much of the prior functionality but, for simplicity, some of the maps logging was temporarily omitted. Logging as a whole should be carefully planned and implemented in a future PR for the omitted logs from maps, but fort he application as a whole.

Copy link
Member

@huss huss left a comment

Choose a reason for hiding this comment

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

Thanks to @juanjoseguva for doing this work. I've made some comments that will require non-trivial changes. Please let me know if anything is not clear or I can help.

src/client/app/components/maps/MapViewComponent.tsx Outdated Show resolved Hide resolved
</FormGroup>
</Form>
<div>
<Label><FormattedMessage id="map.filename" /></Label>
Copy link
Member

Choose a reason for hiding this comment

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

Please see conversion edit for how uneditable items should look.

Copy link
Member

Choose a reason for hiding this comment

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

From what I see this still does not look the way the mentioned page works. Am I missing something?

src/client/app/components/maps/EditMapModalComponent.tsx Outdated Show resolved Hide resolved
src/client/app/components/maps/EditMapModalComponent.tsx Outdated Show resolved Hide resolved
src/client/app/components/maps/EditMapModalComponent.tsx Outdated Show resolved Hide resolved
src/client/app/components/maps/EditMapModalComponent.tsx Outdated Show resolved Hide resolved
src/client/app/components/maps/MapViewComponent.tsx Outdated Show resolved Hide resolved
src/client/app/components/maps/MapViewComponent.tsx Outdated Show resolved Hide resolved
@juanjoseguva juanjoseguva changed the title Maps update Maps Update: Cards and Modals for Maps Components Jul 22, 2024
@hazeltonbw
Copy link
Contributor

All comments have been addressed and this PR is ready for review @huss.

@hazeltonbw
Copy link
Contributor

This PR includes some migrations of map components/containers to RTK as requested in issue #1145, however more components such as the calibration components need updated still.

@huss
Copy link
Member

huss commented Aug 7, 2024

This is a good start toward moving maps to cards and some newer Redux usage. However, there are remaining comments to address and more work to be done. Since the team working on this is done (please let me know if it is otherwise), it will need to be continued/completed by others. Given this, I am converting it to draft state so future work can utilize this work.

@huss huss marked this pull request as draft August 7, 2024 15:27
@ChrisMart21
Copy link
Contributor

I'd like to continue the work of this PR if that's alright.

@huss
Copy link
Member

huss commented Aug 7, 2024

I'd like to continue the work of this PR if that's alright.

Thanks to @ChrisMart21 as knowing someone is pushing this forward would be great. Let me know if I can help in any way.

- maps no longer a state property,
- old State type deleted, only use RootState now
- admin pages untested, graph seems okay.
- needs testing.
@ChrisMart21
Copy link
Contributor

ChrisMart21 commented Aug 13, 2024

@huss
Some updates have been made including.

  • legacy 'maps' property has been removed from RootState and is longer reliant on older State/Actions.
  • Maps Data Fetching now using RTK-Query.
  • Removed Image from redux state, instead process image metaData upon data fetch, and utilize mapSource where possible.
  • DevModeCheck : 'immutabilityCheck' seems safe to re-enable.

Have yet to test, so its likely revisions are needed.

@ChrisMart21 ChrisMart21 dismissed their stale review August 13, 2024 20:05

Outdated review

@ChrisMart21 ChrisMart21 marked this pull request as ready for review August 13, 2024 20:09
This was linked to issues Aug 13, 2024
@ChrisMart21 ChrisMart21 self-assigned this Aug 13, 2024
@ChrisMart21 ChrisMart21 added the p-high-priority This issue should be the focus of design and developement effort. label Aug 13, 2024
 - queryTimeIntervalString
 - rangeSliderIntervalString
 - barDuration
 - mapsBarDuration
 - compareTimeIntervalString
 - Re-Enable DevModeChecks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
p-high-priority This issue should be the focus of design and developement effort.
Projects
Status: In Progress
5 participants