fix(web): add workspace context to domain and project creation #536

Merged
jason.woltje merged 2 commits from fix/workspace-domain-project-create into main 2026-02-27 10:28:40 +00:00

2 Commits

Author SHA1 Message Date
cb363cfd92 fix(web): address review findings — workspace ID threading and error handling
All checks were successful
ci/woodpecker/push/web Pipeline was successful
- Thread workspaceId into fetchDomains() so X-Workspace-Id header is sent
- Guard useEffect against null workspaceId with early return; add workspaceId to dep array
- Add catch block in handleCreate to surface errors via setError
- Remove console.log from handleEdit

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-27 04:24:46 -06:00
2abb405e5f fix(web): add workspace context to domain and project creation
All checks were successful
ci/woodpecker/push/web Pipeline was successful
- Implement create domain dialog on settings/domains page with name,
  slug (auto-generated from name), and description fields
- Add workspaceId parameter to createDomain, updateDomain, and
  deleteDomain API functions so the X-Workspace-Id header is sent
- Use useWorkspaceId hook in domains page so the workspace context
  is available for all domain mutations

Project creation (SS-WS-002) already passes workspaceId via
useWorkspaceId hook in projects/page.tsx — no changes needed there.

Fixes #534

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-27 04:18:05 -06:00