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

@abbyhu2000 abbyhu2000 changed the base branch from main to feature/deangular-dashboards July 1, 2023 05:25
@abbyhu2000 abbyhu2000 self-assigned this Jul 1, 2023
@abbyhu2000 abbyhu2000 added dashboards de-angular de-angularize work labels Jul 1, 2023
@abbyhu2000 abbyhu2000 force-pushed the feature/deangular-dashboards branch from 22cfbb8 to c3037a0 Compare July 1, 2023 05:47
@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
abbyhu2000 added a commit that referenced this pull request Jul 5, 2023
* Add Dashboard class for state managing

Signed-off-by: abbyhu2000 <[email protected]>

* isDirty working for cancel flow

Signed-off-by: abbyhu2000 <[email protected]>

---------

Signed-off-by: abbyhu2000 <[email protected]>
abbyhu2000 added a commit that referenced this pull request Jul 6, 2023
* Add Dashboard class for state managing

Signed-off-by: abbyhu2000 <[email protected]>

* isDirty working for cancel flow

Signed-off-by: abbyhu2000 <[email protected]>

---------

Signed-off-by: abbyhu2000 <[email protected]>
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 <[email protected]>

* isDirty working for cancel flow

Signed-off-by: abbyhu2000 <[email protected]>

---------

Signed-off-by: abbyhu2000 <[email protected]>
abbyhu2000 added a commit that referenced this pull request Jul 7, 2023
* Add Dashboard class for state managing

Signed-off-by: abbyhu2000 <[email protected]>

* isDirty working for cancel flow

Signed-off-by: abbyhu2000 <[email protected]>

---------

Signed-off-by: abbyhu2000 <[email protected]>
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