Skip to content

314 add internal admin notes field to application records#332

Open
cheangie wants to merge 2 commits into
mainfrom
314-add-internal-admin-notes-field-to-application-records
Open

314 add internal admin notes field to application records#332
cheangie wants to merge 2 commits into
mainfrom
314-add-internal-admin-notes-field-to-application-records

Conversation

@cheangie

Copy link
Copy Markdown

ℹ️ Issue

Closes <#314>

📝 Description

Added an internal notes field to application records that is only visible to admins.

Briefly list the changes made to the code:

  1. Added internalNotes nullable column to the Application entity and generated a migration of the new database schema
  2. Added a new DTO UpdateApplicationInternalNotesDto and an updateInternalNotes method to ApplicationsService w/ tests
  3. Added PATCH endpoint to ApplicationsController restricted to admin users
  4. Added internalNotes field to the frontend Application type and updateApplicationInternalNotes method to ApiClient
  5. Added an admin-only Internal Notes UI section at the bottom of AdminViewApplication.tsx

✔️ Verification

Ran and tested locally using the superadmin login. Added notes, saved them, refreshed page, left page, and ensure they saved. Logged in using the standard login, and ensured that the internal notes column wasn't visible for a standard user.

Screen.Recording.2026-06-16.at.9.59.45.PM.mov

@cheangie cheangie linked an issue Jun 17, 2026 that may be closed by this pull request
7 tasks
@cheangie cheangie requested a review from SamNie2027 June 17, 2026 05:14
`ALTER TABLE "application" DROP CONSTRAINT "CHK_application_desiredExperience_allowed"`,
);
await queryRunner.query(
`ALTER TABLE "application" ADD "internalNotes" character varying`,

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Remove everything else from this migration but this query please - we only want to put in the migration what is relevant to the goal you are trying to achieve

`ALTER TABLE "discipline" DROP CONSTRAINT "UQ_8e7dbc4c94e2523e93a8204c9c9"`,
);
await queryRunner.query(
`ALTER TABLE "application" DROP COLUMN "internalNotes"`,

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Same comment as above but just specifically for the down one ^

relationship={application.emergencyContactRelationship}
/>

<Box borderWidth="1px" borderRadius="lg" p={6} bg="orange.50">

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Keep in mind that our designers used every other white/grey coloring on the application view in purpose - so please keep the admin view in line with that and just implement every other white/grey coloring rather than this yellow color.

<Heading as="h2" size="md" mb={1}>
Internal Notes
</Heading>
<Text fontSize="sm" color="orange.700" mb={3}>

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

I do think this text being this color is good though.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add Internal Admin Notes Field to Application Records

2 participants