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

chore(website): Remove deprecated confirmation dialogs #3128

Merged
merged 2 commits into from
Oct 30, 2024

Conversation

theosanderson
Copy link
Member

@theosanderson theosanderson commented Oct 30, 2024

Fixes #924

Remove deprecated confirmation dialogs and update to use the new confirmation dialog approach.

  • Delete website/src/components/DeprecatedConfirmationDialog.tsx.
  • Update website/src/components/Edit/EditPage.tsx:
    • Remove import of DeprecatedConfirmationDialog.
    • Import displayConfirmationDialog from website/src/components/ConfirmationDialog.tsx.
    • Replace usage of DeprecatedConfirmationDialog with displayConfirmationDialog.
    • Remove the dialog reference and related functions.
    • Update the submit button to use displayConfirmationDialog.

Tested: https://theosanderson-remove-depr.loculus.org
image


For more details, open the Copilot Workspace session.

Fixes #924

Remove deprecated confirmation dialogs and update to use the new confirmation dialog approach.

* Delete `website/src/components/DeprecatedConfirmationDialog.tsx`.
* Update `website/src/components/Edit/EditPage.tsx`:
  - Remove import of `DeprecatedConfirmationDialog`.
  - Import `displayConfirmationDialog` from `website/src/components/ConfirmationDialog.tsx`.
  - Replace usage of `DeprecatedConfirmationDialog` with `displayConfirmationDialog`.
  - Remove the dialog reference and related functions.
  - Update the submit button to use `displayConfirmationDialog`.

---

For more details, open the [Copilot Workspace session](https://copilot-workspace.githubnext.com/loculus-project/loculus/issues/924?shareId=XXXX-XXXX-XXXX-XXXX).
@theosanderson theosanderson added preview Triggers a deployment to argocd format_me Triggers github_actions to format website code on PR labels Oct 30, 2024
@theosanderson theosanderson changed the title Remove deprecated confirmation dialogs chore(website): Remove deprecated confirmation dialogs Oct 30, 2024
Copy link
Member

@chaoran-chen chaoran-chen left a comment

Choose a reason for hiding this comment

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

Thanks!

@theosanderson theosanderson merged commit ff83261 into main Oct 30, 2024
19 checks passed
@theosanderson theosanderson deleted the theosanderson/remove-deprecated-dialogs branch October 30, 2024 22:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
format_me Triggers github_actions to format website code on PR preview Triggers a deployment to argocd
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Remove deprecated confirmation dialogs
2 participants