Commit Graph

101 Commits

Author SHA1 Message Date
Ichsan Kurniawan 47076b1d09 Improve task search and filtering
Search clients and assignments by employee, add end-user filters to client details, and refine filter options and sorting behavior.
2026-11-04 16:03:26 +07:00
Ichsan Kurniawan f0cc469d24 Update client actions and dashboard labels
Show client edit and delete actions directly in grid and list views, simplify work-order and dashboard metric labels, and adjust spacing for milestone timelines without upcoming milestones.
2026-11-04 14:34:58 +07:00
Ichsan Kurniawan ce6750ff02 Add timestamps to activity logs
Require a date and time when creating activity logs, allow minute-level selection, and improve date-picker scrolling within dialogs.
2026-10-20 15:41:55 +07:00
Ichsan Kurniawan de8d463b97 Move task queries into utils
Relocate the task query module and update its type and route imports to use the new `utils/queries` path.
2026-10-20 15:41:25 +07:00
Ichsan Kurniawan 08a3e351ac Add task metadata and cached queries
Add route-specific metadata for task, client, assignment, and project pages. Centralize task data fetches in React-cached query helpers and reuse them across metadata generation and page rendering.
2026-10-19 20:30:48 +07:00
Ichsan Kurniawan b57ad30bfe Use theme-specific dashboard logos
Switch the dashboard logo between light and dark variants based on the active theme, and add the light logo asset.
2026-10-18 19:13:16 +07:00
Ichsan Kurniawan 93d2c272f2 Lazy-load task views and dialogs
Dynamically import client and assignment lists, grids, forms, filters, and activity timelines to reduce initial bundle work, with loading placeholders for list and grid views. Also refine client logo corners and assignment activity accents.
2026-10-17 21:53:06 +07:00
Ichsan Kurniawan a991f114ef Show assignment progress and latest activity
Add actual progress and latest activity details to assignment grid and list views, and show linked project names in the list. Remove a debug log from the assignment detail page.
2026-10-17 21:26:05 +07:00
Ichsan Kurniawan 390d03204a Add activity log timeline
Show assignment history on a date-based milestone timeline and refine milestone date positioning. Update activity log submission and description limits, refresh progress editing controls, and adjust the system log badge color.
2026-10-16 19:26:25 +07:00
Ichsan Kurniawan 3fbecab072 Add assignment progress and activity logging
Add modals for updating real progress and recording activity logs, and enhance the milestone timeline with date-based positioning and activity details. Update dashboard metrics to show active internal memos.
2026-10-16 15:37:20 +07:00
Ichsan Kurniawan f2e9136e47 Improve milestone progress track contrast
Use clearer neutral track colors for client progress bars and milestone timelines in light and dark themes.
2026-10-16 12:12:08 +07:00
Ichsan Kurniawan 38f21de78a Align progress colors with delivery health
Derive assignment status from scheduled phases that have started, map milestone colors to delivery health, and refine client timeline spacing and contrast.
2026-10-15 21:11:53 +07:00
Ichsan Kurniawan 9bc9d630a2 Add status-colored milestone timeline
Connect milestones with status-colored gradient segments and improve node hover styling. Remove debug logging from the task page and timeline.
2026-10-15 19:37:59 +07:00
Ichsan Kurniawan 09a049ce98 Add live milestone timelines to client views
Show upcoming assignment milestones with grouped agenda details and status-based colors. Use API status counts for client stage summaries and align status indicators across project timelines.
2026-10-15 18:52:32 +07:00
Ichsan Kurniawan 1953c28632 Improve assignment status date handling
Support both date schema variants when resolving statuses and rendering milestone timelines. Show interval descriptions in project history, use assignment status badges consistently, and remove debug logs.
2026-10-15 15:27:38 +07:00
Ichsan Kurniawan e7c6f1b17b Align technical status schedules and UI
This commit updates the technical status flow to support the newer `data` payload format while preserving legacy `date` handling across timelines, overview helpers, and assignment detail views. It also adds per-interval descriptions for date ranges, improves schedule editing/deletion UX, and refreshes status badge colors and default work-order/client fallback values for a more consistent experience.
2026-10-15 13:23:51 +07:00
Ichsan Kurniawan e8818bc234 Align assignment status pipeline UI
This update prioritizes technical status and date-matched assignment status resolution, then falls back to project status when needed. It also tightens milestone/timeline behavior by removing the deploy phase, reordering the stage flow, and adding tooltips for assignment codes, project info, and date ranges. The assignment list and overview helpers now use the resolved status consistently across the dashboard.
2026-10-14 17:45:06 +07:00
Ichsan Kurniawan f0526e4096 Add assignment timeline and activity log
This change adds a milestone timeline and development activity log for assignment detail pages, including a JSON comparison modal for activity history entries. It also extends assignment history types and overview helper logic to surface progress, delivery health, and milestone dates more accurately.
2026-10-14 15:47:50 +07:00
Ichsan Kurniawan 6f52078aa5 Redesign project assignment list
This commit refreshes the client project assignment UI with a new dashboard summary, streamlined card layouts, and shared assignment overview helpers. It adds phase/progress tracking, delivery health indicators, and improved team/status calculations across the assignment grid and list views. It also updates the project assignment type definitions and bumps the app version.
2026-10-13 20:42:59 +07:00
Ichsan Kurniawan 9a04ba7738 Revamp client overview dashboard
This update redesigns the task dashboard around client overview metrics, adding summary cards, project status breakdowns, and milestone timelines for each client. It also adds an active-first sort option, supports customizable search placeholders, and passes the full client list into the dashboard while wrapping the client views in Suspense for smoother loading.
2026-10-13 18:36:38 +07:00
Ichsan Kurniawan fccb901e2a Fix assignment deletion and team removal
This update changes assignment deletion labels to prefer WO/IM names, adds a configurable payload to ConfirmDelete for non-DELETE API calls, and switches team member removal to a PUT endpoint with status REMOVED. It also shortens project autofill toast duration, cleans out stale commented code on the client detail page, and updates the task error badge wording to better reflect app-level failures.
2026-10-13 16:56:20 +07:00
Ichsan Kurniawan 90a34330eb Add assignment tooltips and polish tooltip styles
This update adds richer hover tooltips for assignment codes and date ranges in both grid and list views, showing clearer labels like work order or memo codes and full start/end dates. It also standardizes tooltip visuals with a popover-style card, improved spacing, and better consistency across assignment cards.
2026-10-13 14:47:34 +07:00
Ichsan Kurniawan 0cf6a34522 Lazy-load modal components and fix promote flow
Replace eager modal/action component imports with dynamic (client-only) imports and add a shared ModalActionLoader UI for loading states. Use dynamic imports for ManageTeam, UpdateAdministrationStatus, UpdateTechnicalStatus, and ConfirmDeleteWithInput. Add ConvertedAssignmentBadge to assignment detail. Update ProjectAssignmentForm: replace useSearchParams with useRouter, prevent pre-filling project/work order fields when promoting (isPromote), adjust step handling, and skip project selector when promoting. Minor refactor to improve client-side performance and UX.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-10-13 13:30:18 +07:00
Ichsan Kurniawan c6aa1c912a Add ConvertedAssignmentBadge and IM conversion UI
Introduce ConvertedAssignmentBadge component to surface conversions between Internal Memos (IM) and Projects with hovercard details for both directions. Integrate the badge into AssignmentGrid and AssignmentList, add origin IM link when a project assignment lacks a project, and reuse formatAssignmentDate. Extend IProjectAssignment type to include im and list_wo fields to support the new UI data paths.
2026-10-13 13:29:37 +07:00
Ichsan Kurniawan a8c15cf3f6 Add task error UI and diagnostic asset
Add a client-side TaskError component at app/(dashboard)/task/error.tsx that displays friendly error states, logs details via clientLogger, offers retry/back/home actions, and a collapsible diagnostics pane with clipboard export and toast feedback. Uses motion/react, lucide-react icons and existing UI primitives (Button, Badge, Card). Also add the illustration asset public/assets/illustrations/server_task_error.webp referenced by the component.
2026-10-13 13:27:26 +07:00
Ichsan Kurniawan 83330418bc Add 'Promote to Project' flow for assignments
Introduce a promote-to-project workflow and related UI/logic changes.

Key changes:
- Add Promote button/link in AssignmentDetail, AssignmentGrid, and AssignmentList to open the ProjectAssignmentForm in promote mode.
- Propagate isPromote flag through pages and ProjectAssignmentForm: lock type to Project, prevent selecting IM, adjust headings/labels, and show badges.
- When promoting, set payload fields (project_id, im_id) accordingly and POST to create a Project from an existing IM.
- Autofill project/work-order fields from existing project selection and fetch WO sequence when project selected.
- Update validation messages, toasts, and minor UI/text sizing tweaks.
- Update UpdateAdministrationStatus to read/write notes (project_assignment_status_notes) and use it as initial remark.
- Extend IProjectAssignment type with im_id and project_assignment_status_notes.
- Remove .env.production.local (deleted).

Files changed: multiple components under app/(dashboard)/task and type.assignment.ts (see diff).
2026-10-12 18:41:10 +07:00
Ichsan Kurniawan f9e4f3de87 Add admin status updates and modal polish
Adds a dedicated administration-status workflow across client, assignment, and project views, including a new UpdateAdministrationStatus modal and action entries in assignment menus. It also improves modal layout consistency, prioritizes project-assignment status badges in list/grid views, and expands badge variants for administration and technical lifecycle states.
2026-10-12 13:32:00 +07:00
Ichsan Kurniawan 8b82372100 Add technical badges and delete confirmation
This update adds dedicated badge variants for technical progression states (Development, SIT, UAT, PTR, Go-live, BAST, Warranty) and improves status text matching for those stages. It also adds a confirmation dialog when deleting a schedule interval, including cleanup for the final remaining interval so the status description is cleared when appropriate and users are told when notes are being removed.
2026-10-12 10:51:08 +07:00
Ichsan Kurniawan f07990a3fb Refactor technical status workflow
Replace the legacy timeline status modal with a technical-status editor that supports multiple date intervals and descriptive notes. Update task views to use the new Update Technical Status action, normalize status-history parsing for array-based date records, and improve badge formatting for technical stages like SIT, UAT, PTR, Go-Live, and BAST.
2026-10-09 18:37:26 +07:00
Ichsan Kurniawan 98ce715ac6 Update ProjectAssignmentForm.tsx 2026-10-08 20:06:56 +07:00
Ichsan Kurniawan de8dafcd92 Enable React Compiler in Next config
This change enables the React Compiler in the Next.js configuration and adds the required Babel plugin dependency. The goal is to allow the app to use React Compiler optimizations during builds and improve rendering performance.
2026-10-08 17:36:42 +07:00
Ichsan Kurniawan bab7bbe272 Improve project assignment flow and form UX
This adds a clearer project assignment workflow with existing-project import, work-order sync, and stronger validation for project and work-order details. It also introduces reusable checkbox and input-group UI primitives and a dedicated loading state for the project assignment screen.
2026-10-08 17:36:25 +07:00
Ichsan Kurniawan aa91f1ac4c Add internal memo metrics to client views
Default client detail view now opens in list mode. The client model and listing UI now include `total_im`, showing internal memo counts across grid and list cards, and the profile summary adds the new metric. This also improves the empty-state description behavior and keeps the client summary stats consistent across views.
2026-10-08 13:19:41 +07:00
Ichsan Kurniawan d3c4e21636 Simplify task dashboard to client view
This change removes the assignment-view toggle from the task dashboard and keeps the page focused on clients, while preserving layout selection behavior with an explicit grid/list state. It also updates the shared Manage Team and Timeline Status modals to use the Dialog component, fixes their close handling, and adds a # prefix to assignment codes for clearer labeling.
2026-10-07 18:25:46 +07:00
Mohamad Ihsan 5be95729c5 update testing note 2026-10-07 16:49:35 +07:00
Ichsan Kurniawan 97b6987a83 Merge branch 'project-assignment' of https://github.com/ichsankurnia/hats-app into project-assignment 2026-10-07 14:08:14 +07:00
Ichsan Kurniawan 69f680bc24 Clean up unused assignment imports
Remove an unused initials helper from the assignment detail component and prune unused lucide-react imports from the assignment grid. This keeps the codebase cleaner and avoids dead code while preserving the current UI behavior.
2026-10-07 14:08:11 +07:00
Mohamad Ihsan 7a88659dfc update testing note 2026-10-07 13:24:17 +07:00
Mohamad Ihsan d59d4295dd Merge branch 'project-assignment' of https://github.com/ichsankurnia/hats-app into project-assignment 2026-10-07 13:09:48 +07:00
Mohamad Ihsan b275c4153d add testing note 2026-10-07 13:09:44 +07:00
Ichsan Kurniawan 200ef0571c Fix fallback images and timeline dates
Updated project assignment forms to use shared client/end-user fallback images and improve avatar presentation in selection lists and detail panels. Also normalized timeline and team date payloads to send YYYY-MM-DD values instead of ISO timestamps, and default missing project years to the current year.
2026-10-07 12:16:52 +07:00
Ichsan Kurniawan 3f0ed29f0c Improve image fallbacks and status display
This commit adds reusable client and end-user fallback assets and updates profile cards, lists, and assignment views to render graceful placeholders when images are missing or fail to load. It also hardens the shared LazyImage component with fallback handling and improves BadgeStatus so it accepts object-like status values and still renders clean labels. Minor UX fixes include dismissing upload toasts after completion and clarifying end-user form labels/copy.
2026-10-07 12:16:03 +07:00
Ichsan Kurniawan c6ecabd084 Refresh task loading skeletons
Updated loading states across the task dashboard, client detail, and project detail pages to match the current UI structure more closely. This change standardizes placeholder shapes, improves accessibility labels, and refines skeleton layouts for headers, stat blocks, filters, and card grids for a more consistent loading experience.
2026-10-07 11:17:21 +07:00
Ichsan Kurniawan 0d9a284a3f Update ProjectAssignmentForm.tsx 2026-10-06 15:58:52 +07:00
Ichsan Kurniawan bd42c2defa Revamp task client and project detail pages
This commit adds dedicated loading states and a reusable Reveal animation, and refactors the task client/project detail flows to present a cleaner summary UI. It introduces richer client and project headers, delivery overview cards, improved work-order timeline/team sections, and more consistent visual styling across the task dashboard. The update also improves mobile readability and team assignment presentation, while keeping the same underlying data flow.
2026-10-06 15:58:43 +07:00
Ichsan Kurniawan 26f2c16608 Add design-taste frontend skill
Adds the design-taste-frontend anti-slop frontend skill and lock metadata. It introduces a design-read workflow, dial-based styling guidance, redesign safeguards, motion/accessibility guardrails, and a final preflight checklist for landing pages and portfolio interfaces.
2026-10-06 11:24:57 +07:00
Ichsan Kurniawan 93a9b489d0 Improve task views mobile responsiveness
This commit updates the task dashboard and assignment views for smaller screens by tightening spacing, improving text wrapping, and making filter/search controls responsive. It also refreshes the assignment detail layout with clearer date spans, team summaries, and switchable grid/list member views, while polishing client and assignment cards for better readability on mobile.
2026-10-06 11:24:30 +07:00
Ichsan Kurniawan d0db9ee429 Add VPS deployment automation
This change adds staging and production deployment configuration for the VPS setup, including `.env.deploy.example`, `.env.staging`, and updated production environment values. It also introduces a PowerShell deployment script that builds the app, packages the Next.js artifact, uploads it to the server, and reloads PM2. Package scripts were added for staging and production deploys, and the TypeScript config now excludes legacy `.old` files.
2026-10-05 19:52:11 +07:00
Ichsan Kurniawan ffcf3c6e58 Refactor task views with layout toggles
This commit reorganizes client and project-assignment screens into dedicated grid/list components, adds a shared layout toggle via the URL query string, and updates task pages to render the selected view consistently. It also moves shared client form logic into a client folder, improves status badge formatting, extends LazyImage with custom image classes, and updates the illustration assets and Lucide dependency used in the task UI.
2026-10-01 18:32:56 +07:00
Ichsan Kurniawan f9829de388 Add antislop core and UI/layout skills
Introduce the antislop filter and supporting skills: adds .agents/skills/antislop/SKILL.md (core), antislop-ui/SKILL.md, antislop-layoutmobile/SKILL.md, and antislop/VERSION. Adds AGENTS.md pointer block referencing the installed skills. Update .gitignore to include anti-slop and fix a newline. These files provide rules, checklists, and delivery gates to prevent generic AI UI slop and guide UI/mobile work.
2026-10-01 18:31:37 +07:00