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

[Dashboard De-Angular] Add dashboard class for discard flow #4478

Conversation

abbyhu2000
Copy link
Member

@abbyhu2000 abbyhu2000 commented Jul 1, 2023

Description

Make discard flow working on dashboard:

  1. If there is no changes, the cancel button will return back to the view mode
  2. If there are changes, the cancel button will show a warning window; the discard button will discard the unsaved changes and return back to the original states.

-- Add a Dashboard class to store the original state values, so they can be retrieved if discard
-- Add a isDirty flag in the app state to indicate if there are unsaved changes

Issues Resolved

#4433

Screenshot

Testing the changes

Check List

  • All tests pass
    • yarn test:jest
    • yarn test:jest_integration
    • yarn test:ftr
  • New functionality includes testing.
  • New functionality has been documented.
  • Update CHANGELOG.md
  • Commits are signed per the DCO using --signoff

Signed-off-by: abbyhu2000 <abigailhu2000@gmail.com>
Signed-off-by: abbyhu2000 <abigailhu2000@gmail.com>
@abbyhu2000 abbyhu2000 force-pushed the deangular/add-dashboard-class branch from e9aba8f to a8b2495 Compare July 1, 2023 05:50
@abbyhu2000 abbyhu2000 merged commit e5eaa62 into opensearch-project:feature/deangular-dashboards Jul 1, 2023
24 of 34 checks passed
abbyhu2000 added a commit that referenced this pull request Jul 5, 2023
* Add Dashboard class for state managing

Signed-off-by: abbyhu2000 <abigailhu2000@gmail.com>

* isDirty working for cancel flow

Signed-off-by: abbyhu2000 <abigailhu2000@gmail.com>

---------

Signed-off-by: abbyhu2000 <abigailhu2000@gmail.com>
abbyhu2000 added a commit that referenced this pull request Jul 6, 2023
* Add Dashboard class for state managing

Signed-off-by: abbyhu2000 <abigailhu2000@gmail.com>

* isDirty working for cancel flow

Signed-off-by: abbyhu2000 <abigailhu2000@gmail.com>

---------

Signed-off-by: abbyhu2000 <abigailhu2000@gmail.com>
abbyhu2000 added a commit to abbyhu2000/OpenSearch-Dashboards that referenced this pull request Jul 7, 2023
…ch-project#4478)

* Add Dashboard class for state managing

Signed-off-by: abbyhu2000 <abigailhu2000@gmail.com>

* isDirty working for cancel flow

Signed-off-by: abbyhu2000 <abigailhu2000@gmail.com>

---------

Signed-off-by: abbyhu2000 <abigailhu2000@gmail.com>
abbyhu2000 added a commit that referenced this pull request Jul 7, 2023
* Add Dashboard class for state managing

Signed-off-by: abbyhu2000 <abigailhu2000@gmail.com>

* isDirty working for cancel flow

Signed-off-by: abbyhu2000 <abigailhu2000@gmail.com>

---------

Signed-off-by: abbyhu2000 <abigailhu2000@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Development

Successfully merging this pull request may close these issues.

2 participants