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

SF-2997 Refresh training books on step change #2763

Merged
merged 7 commits into from
Oct 14, 2024
Merged

SF-2997 Refresh training books on step change #2763

merged 7 commits into from
Oct 14, 2024

Conversation

josephmyers
Copy link
Collaborator

@josephmyers josephmyers commented Oct 3, 2024

This is currently baselined off SF-2973 but will be updated once that PR is in.


This change is Reviewable

@josephmyers josephmyers changed the title Fix/SF-2997 Refresh training books on step change SF-2997 Refresh training books on step change Oct 3, 2024
@josephmyers josephmyers added will require testing PR should not be merged until testers confirm testing is complete bug Something isn't working labels Oct 3, 2024
Copy link

codecov bot commented Oct 3, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 79.02%. Comparing base (76f27a1) to head (a1160eb).
Report is 1 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #2763      +/-   ##
==========================================
- Coverage   79.02%   79.02%   -0.01%     
==========================================
  Files         530      530              
  Lines       30719    30719              
  Branches     5021     5016       -5     
==========================================
- Hits        24276    24275       -1     
  Misses       5661     5661              
- Partials      782      783       +1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@josephmyers josephmyers marked this pull request as ready for review October 3, 2024 03:48
@pmachapman pmachapman self-requested a review October 6, 2024 23:01
@pmachapman pmachapman self-assigned this Oct 6, 2024
Copy link
Collaborator

@pmachapman pmachapman left a comment

Choose a reason for hiding this comment

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

Is it possible to have a unit test that recreate the scenario by mimicking the clicks? Your fix does stop the bug occurring, but my concern is there is no way to test for regressions.

Reviewed 2 of 2 files at r1, all commit messages.
Reviewable status: all files reviewed, 1 unresolved discussion (waiting on @josephmyers)


src/SIL.XForge.Scripture/ClientApp/src/app/translate/draft-generation/draft-generation-steps/draft-generation-steps.component.html line 8 at r1 (raw file):

      labelPosition="bottom"
      [disableRipple]="true"
      (selectionChange)="updateTrainingBooks()"

It feels kind of wrong to have two event handler attributes with the same name.

Are you able to update onStepChange() to call updateTrainingBooks() instead of having two selectionChange attributes?

Code quote:

      (selectionChange)="onStepChange()"
      labelPosition="bottom"
      [disableRipple]="true"
      (selectionChange)="updateTrainingBooks()"

Copy link
Collaborator Author

@josephmyers josephmyers left a comment

Choose a reason for hiding this comment

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

Thanks. Last week I was thinking it'd be not worth the time to test the clicking specifically, since there's already coverage for the function itself, but today I realized it was actually quite doable.

Reviewable status: 0 of 75 files reviewed, 1 unresolved discussion (waiting on @pmachapman)


src/SIL.XForge.Scripture/ClientApp/src/app/translate/draft-generation/draft-generation-steps/draft-generation-steps.component.html line 8 at r1 (raw file):

Previously, pmachapman (Peter Chapman) wrote…

It feels kind of wrong to have two event handler attributes with the same name.

Are you able to update onStepChange() to call updateTrainingBooks() instead of having two selectionChange attributes?

Yeah I saw that today. Ooops!

This involved a few overrides on the stepper to get it to look normal, including enabling header hover when a step is incomplete, disabling font size growth for the selected step, and hiding the odd "edit" state which cluttered up the stepper.

Also removed the "initial/steps" tab group on the parent and the extra, persistent Back button.
Copy link
Collaborator

@pmachapman pmachapman left a comment

Choose a reason for hiding this comment

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

:lgtm:

Reviewed 2 of 75 files at r2, 67 of 67 files at r3, 6 of 6 files at r4, all commit messages.
Reviewable status: :shipit: complete! all files reviewed, all discussions resolved (waiting on @josephmyers)

@pmachapman pmachapman added ready to test and removed will require testing PR should not be merged until testers confirm testing is complete labels Oct 7, 2024
Base automatically changed from feature/SF-2973 to master October 10, 2024 15:07
@Nateowami Nateowami added testing complete Testing of PR is complete and should no longer hold up merging of the PR and removed ready to test labels Oct 14, 2024
@Nateowami Nateowami enabled auto-merge (squash) October 14, 2024 17:34
@Nateowami Nateowami merged commit 3420d84 into master Oct 14, 2024
12 of 13 checks passed
@Nateowami Nateowami deleted the fix/SF-2997 branch October 14, 2024 17:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working testing complete Testing of PR is complete and should no longer hold up merging of the PR
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants