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

8110/mark resource as finished modal part deux #8403

Conversation

nucleogenesis
Copy link
Member

@nucleogenesis nucleogenesis commented Sep 7, 2021

Summary

Now the pop-up for Mark As Complete works when the context menu item is clicked.

Note: There is currently no indicator of resource status on the immersive view so you must go back to the topic page to see that the completion occurred.

Note: Whether the menu option is available is currently determined by whether you're process.env.NODE_ENV === 'production' or not. So - devs will see it, nobody else will until we hook in the correct content metadata.

References

Fixes #8110

Reviewer guidance

Go to resources you've not completed. Find the "Mark as Complete" menu item top-right context menu when viewing the resource.

Test canceling and submitting - make sure that the outcome you expect occurred by going back to the topic where you found the resource.


Testing checklist

  • Contributor has fully tested the PR manually
  • If there are any front-end changes, before/after screenshots are included
  • Critical user journeys are covered by Gherkin stories
  • Critical and brittle code paths are covered by unit tests

PR process

  • PR has the correct target branch and milestone
  • PR has 'needs review' or 'work-in-progress' label
  • If PR is ready for review, a reviewer has been added. (Don't use 'Assignees')
  • If this is an important user-facing change, PR or related issue has a 'changelog' label
  • If this includes an internal dependency change, a link to the diff is provided

Reviewer checklist

  • Automated test coverage is satisfactory
  • PR is fully functional
  • PR has been tested for accessibility regressions
  • External dependency files were updated if necessary (yarn and pip)
  • Documentation is updated
  • Contributor is in AUTHORS.md

@nucleogenesis nucleogenesis added TODO: needs review Waiting for review changelog Important user-facing changes labels Sep 7, 2021
@nucleogenesis nucleogenesis force-pushed the 8110/mark-resource-as-finished-modal-part-deux branch from ab8a2dc to 1fc1d91 Compare September 7, 2021 14:52
@nucleogenesis nucleogenesis marked this pull request as draft September 7, 2021 14:54
@nucleogenesis nucleogenesis force-pushed the 8110/mark-resource-as-finished-modal-part-deux branch from 1fc1d91 to 225b871 Compare September 7, 2021 14:56
@nucleogenesis nucleogenesis marked this pull request as ready for review September 7, 2021 14:57
Copy link
Member

@marcellamaki marcellamaki left a comment

Choose a reason for hiding this comment

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

Hi @nucleogenesis - this looks good and the completion is working as expected (state updating when confirmed, not on cancel). The only problem that I see is that the modal doesn't close after confirming automatically. (It requires clicking "cancel" after clicking "confirm" at the moment, which is not ideal)
mark-as-complete
Probably a small fix, and with this updated, should be good to merge!

@nucleogenesis nucleogenesis force-pushed the 8110/mark-resource-as-finished-modal-part-deux branch from 225b871 to 47dc9b8 Compare September 14, 2021 18:26
@nucleogenesis nucleogenesis marked this pull request as draft September 14, 2021 18:28
- LearningActivityBar is hard coded to show when not in production - should be from content metadata.
- Added GlobalSnackbar to LearnImmersiveLayout
- MarkAsComplete modal now uses available Vuex action to dispatch progress update.
@nucleogenesis nucleogenesis force-pushed the 8110/mark-resource-as-finished-modal-part-deux branch from 47dc9b8 to f4c6252 Compare September 14, 2021 21:39
@nucleogenesis nucleogenesis marked this pull request as ready for review September 14, 2021 21:39
Copy link
Member

@rtibbles rtibbles left a comment

Choose a reason for hiding this comment

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

Typo causing the issue that @marcellamaki reported has been fixed. Merging! We can find any other issues after full implementation.

@rtibbles rtibbles merged commit 88737b4 into learningequality:develop Sep 14, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
changelog Important user-facing changes TODO: needs review Waiting for review
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants