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
Adds a note text area to asset acceptances/declines #14451
base: develop
Are you sure you want to change the base?
Adds a note text area to asset acceptances/declines #14451
Conversation
PR Summary
|
I'll help out with those sqlite test failures. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
One change should fix the failing tests.
database/migrations/2024_03_18_164714_add_decline_msg_to_checkout_acceptance_table.php
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
One question for @snipe / @uberbrady (who know databases better than I do) and a couple notes that don't need to hold up the PR.
(Marking as "request changes" just so the red is more noticeable)
database/migrations/2024_03_18_164714_add_decline_msg_to_checkout_acceptance_table.php
Outdated
Show resolved
Hide resolved
This looks good - should we maybe consider making this slightly more generic, so it's just a note, not specifically a declined note? I can't think of a reason why you'd want a note with an acceptance, but since we're already doing all the work anyway, we could probably just make it a note, regardless of whether it's a decline or acceptance. (Also can we make that text area width be the width of that panel?) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A few questions/comments in the previous comment.
@snipe changes have been applied. 👍 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Changing it a generic note makes sense to me. A couple things to address though.
removes jquery and updates translation
This pull request has been linked to Shortcut Story #25074: Add a note to the decline screen. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I haven't looked at why yet but notes aren't being stored when an asset is accepted
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Some changes por favor
database/migrations/2024_03_18_164714_add_decline_msg_to_checkout_acceptance_table.php
Outdated
Show resolved
Hide resolved
resources/views/notifications/markdown/asset-acceptance.blade.php
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
One more final change...sorry 😅
database/migrations/2024_03_18_164714_add_note_to_checkout_acceptance_table.php
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good! 👍🏾
Description
Adds a note text area to allow a user to give more detail when accepting/decling an asset. The
note
is saved in the checkout_acceptances table.It only appears if you select the decline radio button.
The mail notification also reflects the notes shared by the user when declined
The mail notification also reflects the notes shared by the user when accepted
The notes are also reflected in the action log
Fixes #[SC-25074]
Type of change
Please delete options that are not relevant.
How Has This Been Tested?
Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list any relevant details for your test configuration
Test Configuration:
Checklist: