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

Keep .is-selected on the program-flow header when it's edited via the sidebar #1178

Merged
merged 1 commit into from
Oct 25, 2023

Conversation

nmajor25
Copy link
Contributor

@nmajor25 nmajor25 commented Oct 24, 2023

Shortcut Story ID: [sc-42651]

.is-selected gives the program flow header a grey background to indicate that it's currently being edited via the sidebar:

Screenshot 2023-10-24 at 4 13 45 PM

When a user makes a change via the program-flow sidebar, the .is-selected class was being dropped when that header view re-rendered. But as long as the sidebar is open and the user is editing the program-flow, we want the .is-selected class to remain.

@nmajor25 nmajor25 requested a review from paulfalgout October 24, 2023 21:18
@shortcut-integration
Copy link

@cypress
Copy link

cypress bot commented Oct 24, 2023

Passing run #5790 ↗︎

0 265 0 0 Flakiness 0

Details:

Keep 'is-selected' class on program flow header when the program flow is edited ...
Project: RoundingWell Care Ops Frontend Commit: 53cdada96a
Status: Passed Duration: 03:13 💡
Started: Oct 25, 2023 3:13 PM Ended: Oct 25, 2023 3:16 PM

Review all test suite changes for PR #1178 ↗︎

@coveralls
Copy link

coveralls commented Oct 24, 2023

Pull Request Test Coverage Report for Build 43718550-e5db-4fa3-af2b-37b451542ee9

  • 7 of 7 (100.0%) changed or added relevant lines in 2 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage remained the same at 100.0%

Totals Coverage Status
Change from base Build ee00e2f9-0a11-4f99-bb84-4acfcd151997: 0.0%
Covered Lines: 5805
Relevant Lines: 5805

💛 - Coveralls

Copy link
Member

@paulfalgout paulfalgout left a comment

Choose a reason for hiding this comment

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

Pretty good refactor

@@ -97,6 +94,17 @@ const HeaderView = View.extend({
},
});

const AddActionView = View.extend({
template: hbs`
Copy link
Member

Choose a reason for hiding this comment

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

program-flow__actions should just be the className here and the template just the button

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Good call, that's been updated 👍

@nmajor25 nmajor25 force-pushed the program-flow-header-selected branch from d506949 to 53cdada Compare October 25, 2023 15:03
@nmajor25 nmajor25 requested a review from paulfalgout October 25, 2023 15:03
@paulfalgout paulfalgout merged commit a9c4922 into develop Oct 25, 2023
3 checks passed
@paulfalgout paulfalgout deleted the program-flow-header-selected branch October 25, 2023 16:11
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.

3 participants