Copy project details into work orders when matching the project, clear them when unchecked, and improve required date validation. Remove the fallback that reported eight clients when there were none.
Caches and deduplicates token refreshes, syncs refreshed tokens to the browser session, and updates auth configuration and documentation. Adds an RBAC requirements draft. The new credentials.md contains VPS credentials; remove it from the commit and rotate those credentials.
Represent pending assignments with no active phase, show Development as the next milestone, and align the grid and list steppers' rails with their stage dots.
Use BASE_URL_API_LOCAL_SERVER for server-side data requests and load the layout session through the cached helper. Update production URLs to HTTPS and use 127.0.0.1 for local API endpoints.
Use RBAC permissions to guard dashboard pages and control approval and export actions. Reuse cached sessions and refine permission badges and available icons.
Gate assignment creation and editing by the relevant permissions, show ongoing milestones on the timeline, and restrict the forbidden-page admin link to authorized users. Also use the shared RBAC role type and tighten sidebar active-state matching.
Enforce page access and action-level permissions across admin and task views, including exports and record actions. Move user creation to a client component behind server-side permission checks, standardize data fetching, and remove the deprecated user-role route.
Gate administration actions by role permissions, centralize cached session access for data fetching, and return forbidden responses for unauthorized pages. Also lazy-load user exports and adjust search field sizing.
Add dedicated 403 pages for the app and admin area, enable Next.js forbidden handling, and improve admin loading, navigation, and error-boundary experiences.
Make parent menus gate child permissions and cascade select or clear actions through descendants. Update role detail rendering for nested menus and the revised API shape, with related RBAC UI and sidebar adjustments.
Unify interactive and read-only role permission rows, refine role and menu forms and labels, and correct the access-permissions sidebar route. Update role payloads and admin-menu handling.
Adds permission, menu, and role administration with hierarchical access controls, plus admin breadcrumbs and a redirect from the legacy user-role page. Remove `credentials.md` before committing; it contains server credentials.
Validate project years and Work Order code availability, confirm before discarding unsaved changes, and surface critical or behind-schedule assignments in dashboard warnings and stats. Also update assignment form 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.
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.
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.
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.
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.
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.
Derive assignment status from scheduled phases that have started, map milestone colors to delivery health, and refine client timeline spacing and contrast.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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>
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.
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.
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).
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.
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.
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.