Skip to content

Add Notes Field to Users#496

Merged
Bladestar2105 merged 1 commit intomainfrom
add-user-notes-11622306279107423797
Mar 24, 2026
Merged

Add Notes Field to Users#496
Bladestar2105 merged 1 commit intomainfrom
add-user-notes-11622306279107423797

Conversation

@Bladestar2105
Copy link
Owner

Adds a notes field to users up to 50 chars.


PR created automatically by Jules for task 11622306279107423797 started by @Bladestar2105

This commit introduces a new `notes` column (max 50 chars) to the `users` table, allowing administrators to attach brief, custom notes to user profiles. The feature spans the backend API and frontend interface:

- **Database:** Included `notes` in `src/database/db.js` and added a migration script in `src/database/migrations.js`.
- **Backend:** Updated `src/controllers/userController.js` to handle saving and retrieving the `notes` field while enforcing the 50-character limit.
- **Frontend:** Added the Notes input to the "Add User" and "Edit User" forms (`public/index.html`) with client-side maxlength validation. Modified `public/app.js` to send/receive the notes parameter, and securely render it in the user details pane utilizing `escapeHtml()` to prevent XSS.
- **Translations:** Added localization keys for Notes across all supported languages in `public/i18n.js`.
@Bladestar2105 Bladestar2105 merged commit 5d2d2a7 into main Mar 24, 2026
2 checks passed
@Bladestar2105 Bladestar2105 deleted the add-user-notes-11622306279107423797 branch March 24, 2026 19:12
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.

1 participant