29 KiB
BACKEND WORKFLOW (F:\SumbrerongBato\tis_rms_server\backend)
- Read/Analyze Task → Inspect backend directory.
- Draft Code → Execute Quality Gate (Accept / Decline).
- Post-Code Loop: Analyze Errors → Resolve → Re-verify until Errors == 0.
- Terminal Exit: If build clean → Execute
git push.
FRONTEND WORKFLOW (F:\SumbrerongBato\tis_rms_server\frontend)
- Read/Analyze Task → Inspect frontend directory.
- Draft Components/Logic → Execute Quality Gate (Accept / Decline).
- Post-Code Loop: Analyze UI/Build Errors → Resolve → Re-verify until Errors == 0.
- Terminal Exit: If build clean & lint passes → Execute
git push.
⚡️ TOKEN COMPRESSION PROTOCOL
1. INPUT RESTRICTIONS (CONTEXT DRYING)
- Ignore system-level file-tree re-reads unless files change (Δ).
- Avoid parsing historical chat history beyond the immediate code break.
- Reference internal libraries by name only; do not request full source mappings.
2. OUTPUT SYSTEM CONSTRAINTS (ZERO BLOAT)
- NO natural language intros, greetings, or conversational transitions.
- NO explanations, rationales, or "why this works" breakdowns.
- NO summaries of work completed or code recap commentary.
- Exclude all code comments, inline documentation, and docstrings.
3. PATCH FORMATTING (MICRO-DIFFS ONLY)
- BANNED: Full-file reprinting, multi-line blocks of unchanged code.
- MANDATORY: Return micro-diff format or target lines replacement only:
- [old line] + [new line] - If a file creation is required, generate minimal skeleton logic only.
4. QUOTA BRAKING
- Max output limit per prompt turn = 150 tokens.
- If patch logic requires >150 tokens: STOP, emit
[TOKEN LIMIT BRAKE], and wait for chunked instructions.
📱 FLUTTER UI/UX RULES
- Stack: Flutter (latest) + Riverpod (AsyncNotifier/Notifier) + Material 3 (
useMaterial3: true). - Palette: Use existing
Theme.of(context).colorSchemetokens only. Never hardcode hex values. - Layout: Stack actions vertically on Android (
Columnwith full-widthElevatedButton). - Output: No design essays. Return optimized widget code immediately.
TODO
- dont do tasks with "(dont do)"
DASHBOARD SCREEN
- in storage analytics, use fewer color, make it simple, and list 3-5 files make it dropdown if more than this list limit
- top bottom fade, show the top fade if it has a component on top, same logic in bottom fade
STUDENT SCREEN
- in windows app, make it modal the edit student screen
- use card for student table in windows app, make sure hover of doc status working and action button
- add right click (windows app) and hold feature (android app) -> dropdown with action label (view details, edit (active student details tab), add enrollment (active enrollment tab), view documents/archive folder (if not enrolled, shows archive, same functionality of the action button of open document button), change status [graduate, transfer, drop, set inactive] )
- in android app add dropdown to show the doc status
- remove the multi select button on screen header
- make the add studen FAB into icon button right side of filter button, make the color attract attention dont add background and border color
- add fade at top and bottom same from "dashboard screen"
- top bottom fade, show the top fade if it has a component on top, same logic in bottom fade
ALL SCREENS PAGINATION
- redesign the pagination UI based on this picture F:\SumbrerongBato\tis_rms_server\Pictures\Screenshot 2026-09-17 181328.png
- Desktop: Option 02 (Full width, clear text, page dropdown).
- Mobile: Option 01 (or compact: ‹ 1 2 3 › + Page [ 1 ▾ ]).
DOCUMENT SCREEN
- all FAB in android move to the screen header title like in dashboard screen
- optimize mini preview/thumbnails (backend & frontend) for fast loading:
- backend: generate & cache resized lightweight thumbnails (~250px WebP/JPEG) + HTTP Cache-Control headers instead of serving raw original files
- frontend: add cacheWidth/cacheHeight image memory decode optimization to eliminate scroll lag
- do not use wolt modal for "upload & OCR modal" and print queue modal after this remove the package of wolt modal sheet
- in print queue, when printing Excel file(s), show dialog asking to automatically convert them to PDF and proceed with printing instead of showing a blocking error dialog
DONT DO
-
teacher no assigned section theme color
-
bug in bulk add student enrollment
-
recycle bin -> search history not delete history
-
add missing students by document type kpi
-
notification separate admin and teacher
-
bug in bulk add student enrollment
-
report all filter and export
TIS_RMS Server Manager (dont do)
Windows Service - NSSM nodejs
-
backup/restore db and files
-
backup: database backup, automatic schedule, snapshot retention
-
restore: restore database, validate backup, restart service automatically
-
files: mirror backup, verify files, restore files,
-
can choose where to store db and files separately
-
dashboard: server status, cpu mem usage, connected users, uptime
-
service: controls windows service stop start restart
-
logs, server logs, error logs
-
settings backup path, file backup path, database location