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

Highlight candidate application edits on manage #8695

Merged
merged 10 commits into from
Oct 19, 2023

Conversation

inulty-dfe
Copy link
Collaborator

@inulty-dfe inulty-dfe commented Oct 17, 2023

Context

Providers will want to be aware when a candidate has updated their submitted application.

  1. Show notification banner on the candidates application page in the provider interface
  2. Add notification text informing provider that applications can be edited
  3. Show list of changes that have occurred on the application in the Timeline
  4. Show notification line on updated cards on the applications index

The ticket outlined an implementation where the data that was changed is shown in the Timeline. I have not implemented this in this PR as it would require consideration about how and what could be shared between the history component and the timeline component.

As a stopgap, the link to "View Application" in the Timeline brings the user to the specific section of the application that has been changed.

Screenshots

Notification Banner Notification text
1  notification banner Screenshot from 2023-10-18 14-16-16
Index card notifications Timeline updates
2  index notifications 3  Timeline updates

Changes proposed in this pull request

Guidance to review

Link to Trello card

Trello Ticket

@inulty-dfe inulty-dfe changed the title 33 ca highlight candidate application edits on manage Highlight candidate application edits on manage Oct 17, 2023
@inulty-dfe inulty-dfe added the deploy_v2 Deploy the review app to AKS label Oct 17, 2023
@inulty-dfe inulty-dfe force-pushed the 33-ca-highlight-candidate-application-edits-on-manage branch from d9aceff to a7395f9 Compare October 17, 2023 11:51
@github-actions github-actions bot temporarily deployed to review_aks-8695 October 17, 2023 11:56 Destroyed
@inulty-dfe inulty-dfe temporarily deployed to review_aks October 17, 2023 11:56 — with GitHub Actions Inactive
@github-actions github-actions bot temporarily deployed to review_aks-8695 October 17, 2023 15:11 Destroyed
@inulty-dfe inulty-dfe temporarily deployed to review_aks October 17, 2023 15:11 — with GitHub Actions Inactive
@github-actions github-actions bot temporarily deployed to review_aks-8695 October 17, 2023 16:18 Destroyed
@inulty-dfe inulty-dfe temporarily deployed to review_aks October 17, 2023 16:19 — with GitHub Actions Inactive
@inulty-dfe inulty-dfe force-pushed the 33-ca-highlight-candidate-application-edits-on-manage branch from 751e665 to 9a8aea9 Compare October 18, 2023 12:10
@github-actions github-actions bot temporarily deployed to review_aks-8695 October 18, 2023 12:15 Destroyed
@inulty-dfe inulty-dfe temporarily deployed to review_aks October 18, 2023 12:15 — with GitHub Actions Inactive
@github-actions github-actions bot temporarily deployed to review_aks-8695 October 18, 2023 12:28 Destroyed
@inulty-dfe inulty-dfe temporarily deployed to review_aks October 18, 2023 12:28 — with GitHub Actions Inactive
  Instance method on an ApplicationChoice which determines if the
  ApplicationChoice has been updated within a specific duration since it
  was submitted to the provider.

  The default duration is 40 days.
  If the ApplicationChoice has been updated recently, show an
  notification banner with a link to the application timeline.
  Add
   - Personal details
   - Contact information
   - Disability disclosure
   - Interview preferences
   - Equality and diversity
  Include index page assertions
@inulty-dfe inulty-dfe force-pushed the 33-ca-highlight-candidate-application-edits-on-manage branch from b04e2e2 to b1ace76 Compare October 18, 2023 12:48
@github-actions github-actions bot temporarily deployed to review_aks-8695 October 18, 2023 12:52 Destroyed
@inulty-dfe inulty-dfe temporarily deployed to review_aks October 18, 2023 12:52 — with GitHub Actions Inactive
@github-actions github-actions bot temporarily deployed to review_aks-8695 October 18, 2023 13:22 Destroyed
@inulty-dfe inulty-dfe temporarily deployed to review_aks October 18, 2023 13:23 — with GitHub Actions Inactive
@inulty-dfe inulty-dfe marked this pull request as ready for review October 18, 2023 13:29
@inulty-dfe inulty-dfe requested a review from a team October 18, 2023 13:30
@inulty-dfe inulty-dfe requested a review from a team October 18, 2023 13:30
@inulty-dfe
Copy link
Collaborator Author

Copy link
Collaborator

@tomas-stefano tomas-stefano left a comment

Choose a reason for hiding this comment

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

Awesome work! Just one concern regards DB slow queries.

return false if sent_to_provider_at.blank?

since = [UPDATED_RECENTLY_DAYS.days.ago, sent_to_provider_at].max
RecentlyUpdatedApplicationChoice.new.call(application_choice: self, since: since).exists?
Copy link
Contributor

Choose a reason for hiding this comment

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

Can't since be moved inside RecentlyUpdatedApplicationChoice? And you can have RecentlyUpdatedApplicationChoice.new.call(application_choice: self).exists?

And then the method wouldn't even need to be part of the instance.

@github-actions github-actions bot temporarily deployed to review_aks-8695 October 18, 2023 16:36 Destroyed
@inulty-dfe inulty-dfe temporarily deployed to review_aks October 18, 2023 16:36 — with GitHub Actions Inactive
@inulty-dfe inulty-dfe requested a review from zarembas October 18, 2023 16:42
@inulty-dfe inulty-dfe force-pushed the 33-ca-highlight-candidate-application-edits-on-manage branch from f07f95e to 77c8cba Compare October 18, 2023 16:42
Copy link
Contributor

@zarembas zarembas left a comment

Choose a reason for hiding this comment

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

Looks good. I would've probably skipped the instance method entirely and used the self.call pattern.

@github-actions github-actions bot temporarily deployed to review_aks-8695 October 18, 2023 17:01 Destroyed
@inulty-dfe inulty-dfe temporarily deployed to review_aks October 18, 2023 17:01 — with GitHub Actions Inactive
@inulty-dfe inulty-dfe force-pushed the 33-ca-highlight-candidate-application-edits-on-manage branch from 77c8cba to d1d1dea Compare October 19, 2023 08:35
@github-actions github-actions bot temporarily deployed to review_aks-8695 October 19, 2023 08:40 Destroyed
@inulty-dfe inulty-dfe temporarily deployed to review_aks October 19, 2023 08:40 — with GitHub Actions Inactive
@inulty-dfe inulty-dfe merged commit e8c7fd7 into main Oct 19, 2023
55 checks passed
@inulty-dfe inulty-dfe deleted the 33-ca-highlight-candidate-application-edits-on-manage branch October 19, 2023 08:55
@inulty-dfe inulty-dfe temporarily deployed to review_aks October 19, 2023 08:55 — with GitHub Actions Inactive
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
deploy_v2 Deploy the review app to AKS
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants