32 Commits

Author SHA1 Message Date
Najjar\NajjarV02
019ea56e6f fix(activate): move handoff handler to /activate/handoff/[token]/route.ts
Next.js disallows cookie writes inside Server Components, so the handoff
exchange had to move to a Route Handler. But a route.ts cannot coexist
with a sibling page.tsx in the same segment, so the handler now lives at
/activate/handoff/[token]/route.ts and the page.tsx at /activate/[token]
becomes a stale-link error page.

Additional fixes:

- Use an explicit relative Location header (Location: /) on the success
  redirect instead of NextResponse.redirect(new URL("/", req.url)). In
  dev, req.url resolves to the canonical host and can differ from the
  host the user came in on (127.0.0.1 vs localhost), causing cookies set
  on the response to drop on cross-host follow.

- Same fix for the error redirect to /activate/error.

- New /activate/error/page.tsx renders the failure UI from the ?reason=
  query string.

- /activate/[token]/route.ts (the original location) is preserved as
  route.ts.disabled so Next does not register it and the prior segment's
  page.tsx can take over the error UI for stale links.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-20 17:22:25 +04:00
Najjar\NajjarV02
ccb9eacd86 feat: implement workspace session management and enhance API proxy handling 2026-05-20 16:23:19 +04:00
4f0a2f790f feat: add logo field to settings schema and update settings client to handle file uploads
feat: integrate dialog close context in vendor select field and CRUD dialog components

feat: enhance vendor general info to format status using utility function

feat: implement form dialog context for managing dialog close actions

feat: add async select field dialog close context for better form handling

fix: update form mutation hook to close dialog on successful submission

feat: extend document print types to include expense and credit note

feat: add settings update payload type to include logo and other fields

feat: create employee attendance and work history pages with resource management

feat: implement payment made and received detail pages with actions

feat: add quick shortcuts component for easy navigation in the dashboard

feat: create actions for payment made and received with print and delete options

feat: implement dialog close context for better dialog management

feat: add error parsing utility for improved error handling in API responses
2026-05-19 17:56:39 +04:00
4bfd8c84a9 feat: add template checkpoint edit dialog and vendor management components
- Implemented TemplateCheckpointEditDialog for creating and editing inspection checkpoints.
- Added VendorActions component for managing vendor actions including edit, activate/deactivate, and delete.
- Created VendorContext for managing vendor state across components.
- Developed VendorGeneralInfo component to display detailed vendor information.
- Introduced AedSymbol and Money components for consistent currency representation.
- Added PromptDialog for user input prompts throughout the application.
- Implemented RelationLink component for unified related-data display in CRUD tables.
- Created InspectionTemplatesClient for API interactions related to inspection templates.
2026-05-18 12:08:42 +04:00
54d11f01b4 feat: enhance import/export functionality with detailed results dialog and improved data handling 2026-05-15 11:34:23 +04:00
fcbba6247d feat: add document sharing functionality across various modules
- Introduced ShareDocumentButton component for sharing documents.
- Added ShareDocumentDialog for email and WhatsApp sharing options.
- Integrated document sharing in estimates, invoices, inspections, job cards, bills, and purchase orders.
- Implemented useDocumentShare hook for handling share logic.
- Created DocumentShareClient for API interactions related to document sharing.
- Updated layouts and actions to include sharing options for relevant entities.
2026-05-14 12:21:01 +04:00
05b55b5721 fix: add staleTime to job card expense, parts, and services queries; update job card general info and payments received components 2026-05-13 17:20:59 +04:00
6b356d2855 fix estimate table and expense items 2026-05-13 15:55:40 +04:00
349a458c3c feat: enhance invoice and job card forms with new fields, validation, and print functionality
Co-authored-by: Copilot <copilot@github.com>
2026-05-09 02:51:19 +03:00
dd32658500 fix bugs
Co-authored-by: Copilot <copilot@github.com>
2026-05-07 15:04:05 +03:00
c7eb23dd3f fix bugs
Co-authored-by: Copilot <copilot@github.com>
2026-05-07 13:32:35 +03:00
1fda8d8d7b fixes
Co-authored-by: Copilot <copilot@github.com>
2026-05-07 11:30:23 +03:00
cdd1cbc31a fix validation issues 2026-05-07 10:35:57 +03:00
97364f4734 fix bugs phase 2 (excel ) , download sample feature
Co-authored-by: Copilot <copilot@github.com>
2026-05-01 11:04:38 +03:00
e1ef6fa2ea fix many bugs
Co-authored-by: Copilot <copilot@github.com>
2026-04-30 19:03:31 +03:00
65964605e1 updates
Co-authored-by: Copilot <copilot@github.com>
2026-04-24 12:20:10 +03:00
564e9e510f fix build 2026-04-23 15:15:21 +03:00
c0f78c6e18 updates 2026-04-23 14:38:41 +03:00
f17dd1486c fix invoice informations 2026-04-16 11:42:11 +03:00
973149e974 fix build 2026-04-15 04:59:05 +03:00
020ffccfd6 finish bills , po , jobcards relational fields creation 2026-04-13 18:48:15 +03:00
29cc9c6f4e updates 2026-04-09 15:17:07 +03:00
c5f6d2f596 make and models 2026-04-09 11:06:56 +03:00
bb02b77be2 filters , order inspections , inventory items , credit notes 2026-04-08 14:38:16 +03:00
90c84a0bda update 2026-04-07 15:05:03 +03:00
38ef10da4d updates 2026-04-07 14:45:29 +03:00
c47f7c1b6a fix build error 2026-04-07 13:05:22 +03:00
9fd7b61c5a fix build 2026-04-07 07:07:02 +03:00
11db1e6941 updates 2026-04-07 06:32:40 +03:00
24a44481a0 updates 2026-04-06 02:32:47 +03:00
5f3d208158 updates 2026-04-01 15:34:50 +03:00
13b56d4960 init 2026-03-27 16:20:46 +03:00