-
Notifications
You must be signed in to change notification settings - Fork 14
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
#1981 - Request Offering Change: Ministry View/Approve/Deny (UI only) - Part 1 #2363
#1981 - Request Offering Change: Ministry View/Approve/Deny (UI only) - Part 1 #2363
Conversation
<modal-dialog-base | ||
:showDialog="showDialog" | ||
:title="getTitle" | ||
:max-width="780" |
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.
just to check, do we really need this width?
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.
The default max-width
in the modal-dialog-base
component is a bit less resulting in the wrapping of the line "Outline the reasoning for approving this request. Please add the application number." in the dialog. In the figma, the text is a single line. That is the reason I increased the max-width
.
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 think we need to keep all the modals with the same width unless we have any requirement. Otherwise the visual will be affected.
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.
@sh16011993 I noticed the thumbs up from other DEVs here but I did not understand if the intention is to have max-width="780"
removed or not.
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.
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.
Removed it.
sources/packages/web/src/components/aest/AssessApplicationOfferingChangeRequestModal.vue
Outdated
Show resolved
Hide resolved
sources/packages/web/src/components/generic/ModalDialogBase.vue
Outdated
Show resolved
Hide resolved
sources/packages/web/src/components/aest/AssessApplicationOfferingChangeRequestModal.vue
Outdated
Show resolved
Hide resolved
...s/application-offering-change-request/application-offering-change-request.aest.controller.ts
Show resolved
Hide resolved
...s/application-offering-change-request/application-offering-change-request.aest.controller.ts
Outdated
Show resolved
Hide resolved
...ollers/application-offering-change-request/models/application-offering-change-request.dto.ts
Outdated
Show resolved
Hide resolved
sources/packages/backend/libs/sims-db/src/entities/application-offering-change-request.model.ts
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.
Good job. There are a few issues already pointed.
...ollers/application-offering-change-request/models/application-offering-change-request.dto.ts
Outdated
Show resolved
Hide resolved
sources/packages/web/src/components/aest/AssessApplicationOfferingChangeRequestModal.vue
Outdated
Show resolved
Hide resolved
sources/packages/web/src/components/aest/AssessApplicationOfferingChangeRequestModal.vue
Show resolved
Hide resolved
sources/packages/web/src/components/aest/AssessApplicationOfferingChangeRequestModal.vue
Outdated
Show resolved
Hide resolved
|
||
export default defineComponent({ | ||
components: { | ||
ModalDialogBase, |
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 believe that we talked in the past about having a common "Approval" modal dialog (similar to the ConfimrModal) that would allow adding a note and a decline/approve buttons but we never went for that. This situation would be a perfect example of using a generic approval modal.
sources/packages/web/src/components/aest/AssessApplicationOfferingChangeRequestModal.vue
Outdated
Show resolved
Hide resolved
sources/packages/web/src/views/aest/institution/ApplicationOfferingChangeRequestForm.vue
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.
Please have a look at the comments.
* @param payload information to update the application offering change request. | ||
*/ | ||
@Patch(":applicationOfferingChangeRequestId") | ||
async updateApplicationOfferingChangeRequest( |
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.
Please add the the proper role for the method.
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.
Will be a part of the next PR. I have updated the TODO comment with the same.
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.
Thanks for making the changes, just left one minor comment about one open conversation.
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.
LGTM 👍 Just a minor comment . Thanks for doing the changes 👍 #2363 (comment)
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. Thanks for the changes.
sources/packages/web/src/services/ApplicationOfferingChangeRequestService.ts
Outdated
Show resolved
Hide resolved
sources/packages/web/src/services/http/ApplicationOfferingChangeRequestApi.ts
Outdated
Show resolved
Hide resolved
sources/packages/web/src/views/aest/institution/ApplicationOfferingChangeRequestForm.vue
Outdated
Show resolved
Hide resolved
Kudos, SonarCloud Quality Gate passed!
|
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.
Thanks for doing the changes. 👍
As a part of this PR, the following tasks were completed:
Reason for modifying the base component (ModalDialogBase.vue):
<hr>
tag was changed to<v-divider>
component. This v-divider component by default adds a significant amount of vertical whitespace. As a result, the margin forv-divider
in this component is changed to reduce the whitespace.Please note: Placeholder added for the API endpoint.
Screenshots:
Decline Application Offering Change Request Modal
Approve Application Offering Change Request Modal