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

Project selection modal improvements #5049

Merged
merged 13 commits into from
Jul 2, 2024

Conversation

jpople
Copy link
Contributor

@jpople jpople commented Jul 2, 2024

Closes #PROD-2189

Description Of Changes

Changes to behavior of the project selection screen:

  • No longer makes a PUT request between modal steps, so cancelling out of modal doesn't leave you with a partially-created monitor
  • No longer allows user to not select any monitors
  • Changes the behavior of "select all" to make sense with paginated response

Note that users now cannot "select all" and then deselect specific items to submit "all except X, Y, Z" because otherwise there was no way to submit items from later pages.

Code Changes

  • Extract usePicker hook into its own file and add an altered usePaginatedPicker version
  • Change database picker to its own component instead of reusing PickerCheckboxList to help with pagination handling

Steps to Confirm

  • Create an integration with database selection (e.g. BigQuery)
  • Add a discovery monitor to the database
  • On database selection screen, should be able to "select all" or manually select a finite number but not create monitor without selecting any
  • Edit an existing monitor
  • Project selection modal should have same behavior

Pre-Merge Checklist

  • All CI Pipelines Succeeded
  • Issue Requirements are Met
  • Update CHANGELOG.md

Copy link

vercel bot commented Jul 2, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
fides-plus-nightly ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jul 2, 2024 8:04pm

@lucanovera lucanovera self-requested a review July 2, 2024 15:29
Copy link

cypress bot commented Jul 2, 2024

Passing run #8697 ↗︎

0 4 0 0 Flakiness 0

Details:

Merge 2704055 into fe72f73...
Project: fides Commit: 4489cb7b1a ℹ️
Status: Passed Duration: 00:43 💡
Started: Jul 2, 2024 8:11 PM Ended: Jul 2, 2024 8:12 PM

Review all test suite changes for PR #5049 ↗︎

Copy link
Contributor

@lucanovera lucanovera left a comment

Choose a reason for hiding this comment

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

Great work! Everything is working as expected and the code looks good. Approved!
Captura de pantalla 2024-07-02 a la(s) 4 15 03 p  m

@@ -171,10 +142,9 @@ const ConfigureMonitorForm = ({
Cancel
</Button>
<Button
onClick={() => handleNextClicked(values, dirty)}
type="submit"
Copy link
Contributor

Choose a reason for hiding this comment

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

Nicee! Looks much cleaner hanlding this with the form submit event.

@jpople jpople merged commit 9234ae8 into main Jul 2, 2024
13 checks passed
@jpople jpople deleted the jpople/prod-2189/project-selection-ui-improvements branch July 2, 2024 20:33
Copy link

cypress bot commented Jul 2, 2024

Passing run #8701 ↗︎

0 4 0 0 Flakiness 0

Details:

Project selection modal improvements (#5049)
Project: fides Commit: 9234ae8529
Status: Passed Duration: 00:42 💡
Started: Jul 2, 2024 8:44 PM Ended: Jul 2, 2024 8:45 PM

Review all test suite changes for PR #5049 ↗︎

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