Commit Graph

36 Commits

Author SHA1 Message Date
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 80cb73f7fa Add FilterModal and DatePickerMultiMode; UI fixes
Introduce a FilterModal component and a DatePickerMultiMode UI component; refactor FilterComponent to use the modal and expose new hide* props for finer control. Update HomeTask to use a Select for view switching and remove unused props. Improve client and assignment UIs: ClientGrid empty state, client card actions, AssignmentTable empty state, and various text/label adjustments. Fix PieChart null-safety with optional chaining and remove a stray console.log in ClientDetailComponent. Update assignment field mappings to prefer wo_* values where appropriate and pass hideCategory to project detail page. Also update .env.development API/IMG URLs.
2026-04-23 21:01:12 +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 60d1af3758 update UI logic 2026-04-21 19:30:45 +07:00
Ichsan Kurniawan b5735a90c4 update logic, ui 2026-04-21 16:00:21 +07:00
Ichsan Kurniawan 2d0f2fa1f0 fixing ui, logic etc.. 2026-04-20 17:13:49 +07:00
Ichsan Kurniawan 6b16bd2dd4 add new UI Component 2026-04-20 17:13:20 +07:00
Ichsan Kurniawan ad4925bd55 update UI 2026-04-19 18:54:47 +07:00
Ichsan Kurniawan a4f0087b6c Add project detail UI and unified status badges
Introduce project detail screens and reusable status UI. Adds ProjectDetailComponent, WorkOrderCard, StatusTimeline, AssignedPeople, and a new BadgeStatus component with STATUS_BADGE_MAP and STATUS_LIST in badge.tsx to centralize status styling. Adds IProject type (type.project.ts) and project detail page routing. Update existing client/assignment views to use BadgeStatus, improve UI copy and link behavior (ExternalLink icon), handle nullable end dates in forms, include client_id in payload, and improve empty-state handling and descriptions. Misc: rename assignment page export, tweak form labels/placeholders, and small layout/UX refinements.
2026-04-17 17:16:47 +07:00
Ichsan Kurniawan 78f48d783f Add client & assignment detail UI; update dev env
Introduce client and assignment detail pages and client-side components for the Task dashboard. Adds interactive ClientDetailComponent, AssignmentDetailComponent, page entries (server + dummy variants), project-assignment form, various UI components (AssignmentTable, ClientGrid, ManageEmployee, FormUpdateStatus, ConfirmDelete, LazyImage helper), types and a dummy data hook. Update app/(dashboard)/task/page.tsx to use the new components. Update .env.development to point to dev API endpoints, bump NEXT_PUBLIC_APP_VERSION to v1.2.0 and add NEXT_PUBLIC_S3_IMAGE_URL.
2026-04-16 22:38:26 +07:00
Ichsan Kurniawan fb2d746fc0 Add UI components and Tooltip provider
Introduce a set of reusable UI primitives and integrate tooltip provider in the app layout. Adds: Combobox (with virtualized and non-virtualized variants), Command palette components (cmdk wrapper and related subcomponents), DatePicker and DateTimePicker (popover-based date/time selection with time pickers and Done footer), LazyImage (progressive image with blur/scale transition), and Tooltip (Radix wrapper and provider). Also imports TooltipProvider in app/layout.tsx and wraps the app content so tooltips are available globally.
2026-04-16 22:37:45 +07:00
Ichsan Kurniawan 154574ff45 Update EditProfile.tsx 2026-03-06 14:21:34 +07:00
Ichsan Kurniawan 32aab111dd Add POST fetch hook and render mention links
Introduce useFetchPOSTWithAxios (SWR + axios POST) and use it in ApprovalLeaveSick to fetch TLs (position_code P02). Map cc IDs to fullname entries, store them in state (mentionsTo) and render linked mention badges to /performance/:id instead of raw IDs. Also format birthday as 'YYYY-MM-DD' in EditProfile form, comment out a dashboard console.log, and apply small JSX/spacing cleanups.
2026-03-06 10:51:45 +07:00
Ichsan Kurniawan 60648f312d update 2026-02-25 13:39:59 +07:00
Ichsan Kurniawan 5af8a3c379 Update index.tsx 2026-02-22 23:38:35 +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 2d0d5e7271 ignore package-lock 2026-02-20 15:21:09 +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 d09799068d Update member IDs and refactor geolocation
Adjust team data and improve geolocation handling. In app/(dashboard)/hats-team/page.tsx several TeamMember IDs were updated and a new member (Teddy Setiawan) was added; pastMembers IDs were also adjusted. In app/(dashboard)/presence-v2/components/FormComponent.tsx geolocation logic was refactored: moved PositionOptions constant outside the component, added useCallback for displayLocation, successCallback, and errorCallback, fixed useEffect dependencies to use stable callbacks, reduced noisy toasts on non-critical errors, and corrected an error-toast formatting issue. Also added useCallback to imports and minor formatting cleanups.
2026-02-09 23:41:21 +07:00
Ichsan Kurniawan b55e759029 Update FormChangePassword.tsx 2026-02-09 21:40:00 +07:00
Ichsan Kurniawan 09ad78ed03 update opengraph 2026-02-09 16:22:14 +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 c24838550a update 2026-01-30 18:44:40 +07:00
Ichsan Kurniawan fc4e56eaef Update PieChart.tsx 2026-01-29 14:37:23 +07:00
Ichsan Kurniawan 36b5b07d28 update UI 2026-01-29 14:13:32 +07:00
Ichsan Kurniawan 5e439ea9f7 remove next image 2026-01-28 21:10:07 +07:00
Ichsan Kurniawan e0e9f8651f update 2026-01-28 20:45:59 +07:00
Ichsan Kurniawan 885cb00e29 fixing bug or error when build 2026-01-28 20:01:35 +07:00
Ichsan Kurniawan c1b41f0718 Update loader image to webp and update app metadata
Replaced the loader animation from GIF to WEBP for improved performance. Updated the HATs Team page description and corrected the release note date. Enhanced package.json with project metadata and incremented version to 1.1.0. Adjusted proxy matcher to exclude hats-team and release-notes routes.
2026-01-28 19:27:03 +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
Ichsan Kurniawan aa949d71ff Initial commit from Create Next App 2025-12-09 12:41:19 +07:00