pelagia-portal/App/app/(portal)/admin/companies
Hardik bad67f66c4
Some checks failed
PR checks / checks (pull_request) Failing after 3s
feat(companies): move add/edit from dialog to dedicated pages
The company form outgrew the modal once the branding (logo/stamp) section
was added. Add/edit now live on their own routes:
- /admin/companies/new
- /admin/companies/[id]/edit

- createCompany returns the new id and the create flow lands on the edit
  page so logo/stamp can be uploaded immediately
- list "+ Add Company" is a link; row "Edit" navigates to the edit page
- branding is its own card on the edit page (independent uploads)
- list page no longer mints a presigned URL per company (moved to edit)

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-21 01:45:59 +05:30
..
[id]/edit feat(companies): move add/edit from dialog to dedicated pages 2026-06-21 01:45:59 +05:30
new feat(companies): move add/edit from dialog to dedicated pages 2026-06-21 01:45:59 +05:30
actions.ts feat(companies): move add/edit from dialog to dedicated pages 2026-06-21 01:45:59 +05:30
companies-table.tsx feat(companies): move add/edit from dialog to dedicated pages 2026-06-21 01:45:59 +05:30
company-branding-uploader.tsx feat(po): per-company logo, stamp & brand bar on exported POs 2026-06-21 01:17:23 +05:30
company-form.tsx feat(companies): move add/edit from dialog to dedicated pages 2026-06-21 01:45:59 +05:30
page.tsx feat(companies): move add/edit from dialog to dedicated pages 2026-06-21 01:45:59 +05:30