77 Commits

Author SHA1 Message Date
redz1029 9f764150a2 UI Phase 2 (L0): shared layout primitives + chrome standardization
Extract four shared layout widgets from the best existing implementations and
adopt them across list/overview screens, deleting duplicated inline code.
Layout/consistency only — no behavior change.

New primitives (lib/widgets/):
- app_section_header.dart  — AppSectionHeader (azure accent bar + uppercase
  telemetry label; promoted from the dashboard's _sectionTitle).
- app_metric_card.dart     — AppMetricCard (uppercase label + mono value on a
  flat hairline surface; unifies KPI/stat tiles).
- app_status_summary.dart  — AppStatusSummaryRow/Item/Chip (dot + count + label,
  selectable; semantic AppStatusColors).
- app_filter_bar.dart      — AppFilterBar (responsive filter-row chrome).

Adopted / de-duplicated:
- Dashboard: _MetricCard now wraps AppMetricCard; section titles use
  AppSectionHeader (removed local _sectionTitle).
- Tickets / Tasks / ISR: three separate summary-chip implementations
  (_StatusSummaryCard x2, _SummaryChip) collapsed into AppStatusSummaryRow.
- Network Map overview: Sites/Devices tiles -> AppMetricCard (removed local
  _SummaryCard).
- Workforce: "Duty Schedules" header -> AppSectionHeader with trailing chip.

Verified: flutter analyze lib clean; flutter build web green; visual QA (tickets
+ ISR summary chips) in dark.

Co-Authored-By: claude-flow <ruv@ruv.net>
2026-09-26 15:42:26 +08:00
redz1029 57377b1b21 UI: Cyber/IT design overhaul with semantic status tokens (Material 3)
Re-theme TasQ with a refined enterprise "Cyber/IT" identity on Material 3.
Functionality is unchanged — only color/shape tokens and a few state widgets.

Foundation:
- Hand-tuned light + dark ColorSchemes (deep-slate surfaces, azure/teal/violet
  accents), tightened 12-16dp shape language, flat hairline-outlined cards.
- New AppStatusColors theme extension (success/warning/danger/info/neutral,
  per-brightness) replacing scattered raw Colors.green/orange/red/grey so status
  color is consistent and legible in dark mode.
- New TechChip mono primitive; StatusPill.kind; M3Card hairline variants;
  tightened AppSurfaces radii.

Per-screen:
- Tokenized status colors + radii across dashboard, tickets, tasks, IT service
  requests, attendance, whereabouts, network map, reports charts, auth, and
  shared/admin screens. Added _ticketStatusKind/_taskStatusKind/_isrStatusKind
  mappers so status carries meaning consistently.
- Fixed white pie-slice borders for dark mode; dropped ad-hoc dialog radius
  overrides in favor of the theme default. Categorical palettes (leave-type
  icons, team color picker, distribution charts) intentionally preserved.

Verified: flutter analyze lib clean; flutter build web green; visual QA in
light and dark (dashboard, tickets, attendance).

Co-Authored-By: claude-flow <ruv@ruv.net>
2026-09-26 15:13:47 +08:00
redz1029 3cb980b629 QA hardening: security RLS fixes, Flutter 3.47.5 upgrade, UI/validation fixes
Security — enforce write authorization server-side (was UI/RPC-only):
- it_service_requests RLS: block cross-office read/edit + self-approve (QA-015)
- pass_slips RLS: owner can complete but not self-approve (QA-046)
- swap_requests RLS: scope select/update to participants + admin (QA-047)
- storage: tighten it_service_attachments + task_attachments write/delete (QA-027)
- admin_user_management edge function: allow programmers to manage users (QA-016)

Fixes:
- workforce generator "uncovered shifts" false alarms (QA-043/044)
- network-map VLAN + New-location dialog validation, disabled-until-valid (QA-048)
- de-flake time-of-day-dependent dashboard metrics test (QA-045)

Toolchain:
- upgrade to Flutter 3.47.5 / Dart 3.13.4; font_awesome_flutter 11.0.0,
  flutter_quill 11.6.0, pdfrx 2.6.5; clear resulting deprecations (QA-002)

analyze clean; 139 tests pass; web build succeeds. Report + evidence in docs/qa/.

Note: also carries the in-progress Brick model cleanup already present in the
working tree. QA-001 (AI keys public in the build) is deferred by owner decision.

Co-Authored-By: claude-flow <ruv@ruv.net>
2026-09-26 11:52:16 +08:00
redz1029 e2ddc9a3ae Enhanced UI of IT Job Checklist 2026-06-05 10:48:53 +08:00
redz1029 e9d1af867a Notification Screen and tasq_adaptive_list enhancements 2026-05-11 11:34:34 +08:00
redz1029 30b301765b * Improved Task and Ticket Detail Screen
* Made Office assignment searchable in Task and Ticket Creation and Edit Screen
2026-05-10 17:54:03 +08:00
redz1029 858520bd8d Offline rediness 2026-05-03 14:50:14 +08:00
redz1029 783c5eb0be * Task/Ticket desktop dialogs — widened from 520 → 600dp, and tasks now uses SizedBox(width: 600) instead of ConstrainedBox(maxWidth:) which was the root cause of the "still small" issue (max-only never forced expansion)
* Pass Slip + Leave — both dialogs gained an isSheet flag; callers now branch on AppBreakpoints.tablet: bottom sheet on mobile, dialog on desktop
2026-04-30 06:45:51 +08:00
redz1029 48cd3bcd60 Offline Support 2026-04-27 06:20:39 +08:00
redz1029 f223d1f958 iOS PWA and IT Job Checklist for IT Staff view 2026-04-11 07:40:12 +08:00
redz1029 5cb6561924 added ruflo 2026-04-09 19:01:53 +08:00
redz1029 ba155885c0 Immediate feedback on sending IT Job Reminder 2026-03-21 19:28:53 +08:00
redz1029 3fb6fd5c93 Announcements and IT Job Checklist 2026-03-21 18:51:04 +08:00
redz1029 74197c525d Enhanced material design 3 implementation 2026-03-20 15:15:38 +08:00
redz1029 81853c4367 Added programmer role and fixed snackbar not showing 2026-03-16 07:23:20 +08:00
redz1029 88432551c8 IT Service Request 2026-03-08 07:54:20 +08:00
redz1029 e4391ac465 Minor layout fixes 2026-03-08 04:26:33 +08:00
redz1029 73dc735cce M3 Overhaul 2026-03-06 20:03:32 +08:00
redz1029 82fe619f22 Task execution Elapsed timer 2026-03-04 18:42:37 +08:00
redz1029 94088a8796 Implemented Task Pause and Resume 2026-03-04 07:12:00 +08:00
redz1029 81bc618eee Used awesome snackbar and fixed gemini_ico.png not found 2026-03-04 06:44:55 +08:00
redz1029 c123c09233 AI Subject, Description and Action taken support 2026-03-04 00:38:35 +08:00
redz1029 b5449f7842 Still some AI integration issues 2026-03-03 23:35:07 +08:00
redz1029 01c430c812 Implemented subject suggestions in Task Creation and Edit.
Fix editing redirects
2026-03-03 18:51:58 +08:00
redz1029 b1f5d209a2 Implemented subject suggestions in Task Creation and Edit.
Fix editing redirects
2026-03-03 18:39:01 +08:00
redz1029 1e678ea2e5 Add back button on ticket and task detail screens 2026-03-03 18:15:18 +08:00
redz1029 7115e2df05 Fix flickering issues due to reconnecting loop 2026-03-02 22:09:29 +08:00
redz1029 eb49329b16 Prevent task starting and completion without assigned it staff 2026-03-02 20:22:42 +08:00
redz1029 43d2bd4f95 Fixed horizontal scrollbar, limit per page by 10 rows on desktop
Fixed duplicate entries in activity logs
2026-03-02 20:11:49 +08:00
redz1029 b9722106ff Task file attachments 2026-03-01 22:11:21 +08:00
redz1029 029e671367 Per channel skeleton 2026-03-01 20:10:38 +08:00
redz1029 ed078f24ec Track all assigned IT Staff for My Tasks Tab 2026-03-01 17:30:31 +08:00
redz1029 c9479f01f0 Implemented per stream subscription recovery with polling fallback 2026-03-01 17:24:04 +08:00
redz1029 d859524a9e Excluded cancelled tasks in dashboards 2026-02-28 22:34:43 +08:00
redz1029 d3239d8c76 Skeleton loading 2026-02-28 21:47:24 +08:00
redz1029 9bad41a5ee Fixed IT Job showing without Service 2026-02-28 19:23:34 +08:00
redz1029 e75d61ac64 Wrapped Offices and Services dropdown with consumer to watch if they are already available 2026-02-28 19:12:58 +08:00
redz1029 6882fdcac8 Properly center the icons in Activity logs 2026-02-28 18:14:16 +08:00
redz1029 97d9e83f17 Added cancel details in activity logs as well as used icons 2026-02-28 18:08:45 +08:00
redz1029 e99b87bd20 Activity logs 2026-02-28 18:04:31 +08:00
redz1029 5a74299a1c Added Task Number filter 2026-02-28 16:45:17 +08:00
redz1029 dab43a7f30 A much more detailed notification 2026-02-27 07:05:08 +08:00
redz1029 db14ec3916 A more robust pdf generation > preview > print workflow 2026-02-25 20:59:21 +08:00
redz1029 eaabc0114c Proper pagination 2026-02-25 18:25:00 +08:00
redz1029 8e8269d12b Fixed task detail scrolling issues on mobile 2026-02-25 07:32:06 +08:00
redz1029 7c3a5a1cef Dedicated Assigned to me Tasks Tab 2026-02-24 23:25:27 +08:00
redz1029 546c254326 Allow task completion even if signatories are still empty, put an indicator for completed tasks with incomplete details. 2026-02-24 22:08:53 +08:00
redz1029 5979a04254 * Push Notification Setup and attempt
* Office Ordering
* Allow editing of Task and Ticket Details after creation
2026-02-24 21:06:46 +08:00
redz1029 98355c3707 Added validation when task type, category, signatories and action taken are empty upon completing a task 2026-02-23 21:27:55 +08:00
redz1029 1074572905 A better state and alerts 2026-02-23 20:19:07 +08:00