28 Commits

Author SHA1 Message Date
Ichsan Kurniawan 7d6549f892 Enforce page and action-based permissions
Use RBAC permissions to guard dashboard pages and control approval and export actions. Reuse cached sessions and refine permission badges and available icons.
2026-11-10 16:32:15 +07:00
Ichsan Kurniawan e67f671983 Enforce assignment permissions and show active milestones
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.
2026-11-10 11:27:05 +07:00
Ichsan Kurniawan 279b642a7a Apply RBAC permissions across admin and tasks
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.
2026-11-09 17:32:31 +07:00
Ichsan Kurniawan 1b37ff65f5 Enforce action permissions across admin pages
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.
2026-11-09 15:02:29 +07:00
Ichsan Kurniawan 8478b1f28f Add access-denied pages and improve admin states
Add dedicated 403 pages for the app and admin area, enable Next.js forbidden handling, and improve admin loading, navigation, and error-boundary experiences.
2026-11-07 20:27:39 +07:00
Ichsan Kurniawan 7f8e6637e4 Move auth config and build admin menus
Extract NextAuth configuration into a shared library, load admin sidebar items from role permissions, and update related RBAC types and UI.
2026-11-06 18:25:54 +07:00
Ichsan Kurniawan b149903b2e Add hierarchical role permission controls
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.
2026-11-05 21:59:25 +07:00
Ichsan Kurniawan 66b23eecca Move RBAC permission row into user-role feature
Keep the role-permission row with the user-role components and update imports to use the canonical UI badge.
2026-11-05 20:40:59 +07:00
Ichsan Kurniawan 6ffe7746c8 Improve RBAC management and permissions UI
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.
2026-11-05 20:37:39 +07:00
Ichsan Kurniawan 751b28fab2 Add RBAC menu and role management
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.
2026-11-05 19:01:40 +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 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 3eabe762bf Add project-assignment admin pages and UI updates
Add new admin Project Assignment area with Client, End User, and Project Management pages and components (tables, Export buttons, lazy-loaded pages). Introduce FormProject for creating/editing projects and export utilities to download Excel for each module. Update task types: IEndUser now includes code and a status object. Clean up FormClient by removing unused imports and inline end-user modal usage. Make BadgeStatus robust to missing status values. Add "Project Assignment" entry to the sidebar and import FolderGit2.
2026-05-06 18:34:38 +07:00
Ichsan Kurniawan a160eccddf fixing typescript error during production build
Adjust chart components (Overview, PieChart) for sizing and safer typings/casting; add v1.2.0 release note. Remove several obsolete dummy/old task pages and the useDummyTaskData hook. Also include minor fixes to FormClient and DonutChart/performance pages.
2026-04-23 21:36:42 +07:00
Ichsan Kurniawan 29c2181acb fixing bug 2026-04-22 15:50:14 +07:00
Ichsan Kurniawan dbc70a6671 update 2026-04-22 14:28:53 +07:00
Ichsan Kurniawan 60648f312d update 2026-02-25 13:39:59 +07:00
Ichsan Kurniawan 7d18e9f38f Add CreateAttendance and update UI/hooks
Add a new CreateAttendance component to allow admins to create manual attendance (Alpha) with confirmation dialog and server API call. Lazy-load the CreateAttendance component in EmployeeAlpha and wrap usages with Suspense plus a loading fallback to reduce initial bundle size. Update Performance page to use a centered Suspense fallback. Improve ImportExcel UX by showing a full-loading state, tweaking button/icon styles, and fixing modal sizing/scroll behavior. Enhance useFetchWithAxios to accept nullable URLs and SWR options, adjust the fetcher signature, and return the nested data payload. Add a "use server" directive and imports in lib/server-api, and apply small type/formatting tweaks (table size cast and minor UI/text refinements).
2026-02-22 23:33:15 +07:00
Ichsan Kurniawan 85d8db1e54 fixing error 2026-02-20 16:50:07 +07:00
Ichsan Kurniawan 226484f693 Update index.tsx 2026-02-20 16:14:46 +07:00
Ichsan Kurniawan e6a52d02d5 fixing error in production 2026-02-20 16:12:29 +07:00
Ichsan Kurniawan 5a3629badf update performance, manual attendance, redownload leave form
Added the ability to view and re-download leave application forms in the Employee History page (Leave, Permit, and Sick tabs)
Added employee alpha stats and employee alpha detail in Employee Performance Page
Added total WFO, WFH and WFS in Admin Summary Report
Added batch import from Excel files in Admin Manual Attendance
2026-02-20 15:19:42 +07:00
Ichsan Kurniawan b55e759029 Update FormChangePassword.tsx 2026-02-09 21:40:00 +07:00
Ichsan Kurniawan 5cbded392a Add server API helper, logging & misc updates
Introduce a reusable serverApiCall helper and file-based logger (lib/server-api.ts, lib/logger.ts) to centralize backend requests, attach session auth, and capture request/response/error logs. Update server actions to use the new helper (updateProfileAction, changeAvatarAction) and ensure profile revalidation. Add client-side avatar upload size limit (5MB) and normalize avatar base64 payload. Add new OpenGraph/Twitter images, bump app version to v1.1.1, and add a v1.1.1 entry in release notes. Update default API/IMG env URLs and metadataBase fallback, fix minor release-notes link capitalization, and adjust a debug console.log in admin user page.
2026-02-09 14:48:03 +07:00
Ichsan Kurniawan 5e439ea9f7 remove next image 2026-01-28 21:10:07 +07:00
Ichsan Kurniawan 885cb00e29 fixing bug or error when build 2026-01-28 20:01:35 +07:00
Ichsan Kurniawan 946b5d8b61 update page title metadata 2025-12-23 18:49:34 +07:00
Ichsan Kurniawan 7e172f5cf7 initial commit for new hats app 2025-12-19 13:57:55 +07:00