Notes
Route
/notlar
Page Purpose
Create, edit, and delete notes tied to a platform module, attach files to them, and assign reminder times.
Fields on the Page
- A header card: "Notlar" title, a "Notlarda ara" (Search notes) search box.
- When the search box is empty: an inline note-creation form with module selection, note text, an optional reminder date/time, and file attachment fields.
- When search text is entered: a responsive masonry grid of matching notes. Each card shows: a module tag, the note text, created date, an optional reminder-time icon, attachment previews (image thumbnail or file icon + name), and "Edit" (pencil) / "Send Mail" (envelope) icon buttons.
User Actions
- Type in the search box to search notes.
- (When search is empty) create a new note: select a module, enter text, optionally add a reminder date/time, upload file attachments.
- Click "Edit" on a note card to update it, or delete it with confirmation.
- Click "Send Mail" on a note card to share the note by email (see Mail Box).
- Click an attachment's thumbnail/name to open it in a new tab.
Data Used
- The note list (id, module, text, created/updated date, attachments) plus the reminder records tied to those notes — fetched together, auto-refreshed every 30 seconds.
- The module list (for module selection when creating a note).
Access and Visibility
Users with the user role cannot reach this page — even a direct URL visit is caught by RequirePlatformAccess, which redirects to /platform before the page renders. Every other logged-in user has full access.
Components Used
dashboard/src/components/notes/index.tsx— the page component (search, inline creation form, masonry card grid).dashboard/src/components/notes/NoteFormModal.tsx— the create (inline mode) and edit (modal mode) form; file upload progress is shown here.dashboard/src/components/notes/NoteMailModal.tsx— the form for sending a note by email.
API Communication
| Action | Method | Endpoint | Purpose |
|---|---|---|---|
| Fetch note list | GET | /iqv_notlar_listele |
List notes |
| Create note | POST | /iqv_not_ekle |
Add a new note |
| Update note | PUT | /iqv_not_guncelle |
Update an existing note |
| Delete note | DELETE | /iqv_not_sil |
Delete a note |
| Upload attachment | POST | /fileAddd |
Upload a note attachment to the MinIO-backed file server |
| Fetch module list | GET | /iqv_platform_modulleri |
For module selection in the note form |
For reminder endpoints, see API Documentation › Notes and Reminders.
State Management
- Note + reminder list and search text: local React state, fed by periodic (
usePolling) fetches in the service layer. - File attachments: converted to a base64 data URL client-side before upload, then resolved to a permanent MinIO address after upload.
- Session/role info: the Redux
adminslice.