Repository navigation
feat(den): rename organization from Members page - #1482
Merged
Merged
Conversation
added 4 commits
April 17, 2026 15:38
- Owners can update the display name (2-120 chars) via a new PATCH route. - Slug stays immutable to keep dashboard URLs stable. - Adds updateOrganizationName helper in orgs.ts.
- Adds an 'Organization' settings card above the Members tabs with inline rename for workspace owners. - Non-owners see a read-only summary explaining who can rename. - Wires a new updateOrganizationName mutation through OrgDashboardProvider that calls PATCH /v1/orgs/:orgId.
PR #1476 introduced a build step that reads apps/desktop/package.json to bake in a default latest-app-version, but packaging/docker/Dockerfile.den does not ship the Tauri desktop sources. As a result, the den-dev Docker stack fails to build after the PR landed. Gracefully fall back to 0.0.0 (matching the runtime default) when the file is absent, and allow a DEN_API_LATEST_APP_VERSION env override so deployers can still pin a real value.
Captured via Chrome MCP against packaging/docker/den-dev-up.sh: - before: Members page shows Organization card with Rename button. - editing: inline form with the current name pre-filled. - after: new name shown with success state, sidebar also updated.
Contributor
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
The dashboard has been inlining the same card style (rounded-[30px] + p-6 + shadow-[0_18px_48px_-34px_rgba(15,23,42,0.22)]) on every form surface. Per Den visual language we do not use drop shadows, so the repeated shadow class is both incorrect and a copy-paste risk. - Add ee/apps/den-web/app/(den)/_components/ui/card.tsx exporting DenCard with two size presets (comfortable + spacious). Shadows are explicitly omitted and the component is designed so they cannot be re-introduced via className (no tokens ever emit shadow utilities). - Replace all five inline cards in manage-members-screen.tsx with DenCard. - Replace the reused sibling card in api-keys-screen.tsx with DenCard. - Re-capture members-rename screenshots against the refactored UI.
Member
Author
|
Added a follow-up commit: extracted a reusable
Other screens still using inline shadow-laden cards are out of scope for this PR; I left them for a follow-up so this diff stays reviewable. |
benjaminshafii
pushed a commit
that referenced
this pull request
May 15, 2026
* feat(den-api): add PATCH /v1/orgs/:orgId to rename organization - Owners can update the display name (2-120 chars) via a new PATCH route. - Slug stays immutable to keep dashboard URLs stable. - Adds updateOrganizationName helper in orgs.ts. * feat(den-web): rename organization from Members page - Adds an 'Organization' settings card above the Members tabs with inline rename for workspace owners. - Non-owners see a read-only summary explaining who can rename. - Wires a new updateOrganizationName mutation through OrgDashboardProvider that calls PATCH /v1/orgs/:orgId. * fix(den-api): tolerate missing apps/desktop/package.json in Docker build PR #1476 introduced a build step that reads apps/desktop/package.json to bake in a default latest-app-version, but packaging/docker/Dockerfile.den does not ship the Tauri desktop sources. As a result, the den-dev Docker stack fails to build after the PR landed. Gracefully fall back to 0.0.0 (matching the runtime default) when the file is absent, and allow a DEN_API_LATEST_APP_VERSION env override so deployers can still pin a real value. * docs(den-web): add rename organization screenshots Captured via Chrome MCP against packaging/docker/den-dev-up.sh: - before: Members page shows Organization card with Rename button. - editing: inline form with the current name pre-filled. - after: new name shown with success state, sidebar also updated. * refactor(den-web): extract DenCard primitive and drop drop shadows The dashboard has been inlining the same card style (rounded-[30px] + p-6 + shadow-[0_18px_48px_-34px_rgba(15,23,42,0.22)]) on every form surface. Per Den visual language we do not use drop shadows, so the repeated shadow class is both incorrect and a copy-paste risk. - Add ee/apps/den-web/app/(den)/_components/ui/card.tsx exporting DenCard with two size presets (comfortable + spacious). Shadows are explicitly omitted and the component is designed so they cannot be re-introduced via className (no tokens ever emit shadow utilities). - Replace all five inline cards in manage-members-screen.tsx with DenCard. - Replace the reused sibling card in api-keys-screen.tsx with DenCard. - Re-capture members-rename screenshots against the refactored UI.
benjaminshafii
pushed a commit
that referenced
this pull request
May 15, 2026
* feat(den-api): add PATCH /v1/orgs/:orgId to rename organization - Owners can update the display name (2-120 chars) via a new PATCH route. - Slug stays immutable to keep dashboard URLs stable. - Adds updateOrganizationName helper in orgs.ts. * feat(den-web): rename organization from Members page - Adds an 'Organization' settings card above the Members tabs with inline rename for workspace owners. - Non-owners see a read-only summary explaining who can rename. - Wires a new updateOrganizationName mutation through OrgDashboardProvider that calls PATCH /v1/orgs/:orgId. * fix(den-api): tolerate missing apps/desktop/package.json in Docker build PR #1476 introduced a build step that reads apps/desktop/package.json to bake in a default latest-app-version, but packaging/docker/Dockerfile.den does not ship the Tauri desktop sources. As a result, the den-dev Docker stack fails to build after the PR landed. Gracefully fall back to 0.0.0 (matching the runtime default) when the file is absent, and allow a DEN_API_LATEST_APP_VERSION env override so deployers can still pin a real value. * docs(den-web): add rename organization screenshots Captured via Chrome MCP against packaging/docker/den-dev-up.sh: - before: Members page shows Organization card with Rename button. - editing: inline form with the current name pre-filled. - after: new name shown with success state, sidebar also updated. * refactor(den-web): extract DenCard primitive and drop drop shadows The dashboard has been inlining the same card style (rounded-[30px] + p-6 + shadow-[0_18px_48px_-34px_rgba(15,23,42,0.22)]) on every form surface. Per Den visual language we do not use drop shadows, so the repeated shadow class is both incorrect and a copy-paste risk. - Add ee/apps/den-web/app/(den)/_components/ui/card.tsx exporting DenCard with two size presets (comfortable + spacious). Shadows are explicitly omitted and the component is designed so they cannot be re-introduced via className (no tokens ever emit shadow utilities). - Replace all five inline cards in manage-members-screen.tsx with DenCard. - Replace the reused sibling card in api-keys-screen.tsx with DenCard. - Re-capture members-rename screenshots against the refactored UI.
This branch was successfully deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
/v1/orgs/:orgIdendpoint (owner-only) onden-apito update an organization's display name. Slug stays immutable so dashboard URLs do not break.updateOrganizationNamemutation throughOrgDashboardProviderso the web app can call the endpoint./o/:orgSlug/dashboard/members). Owners see a Rename button that swaps in an inline edit form; non-owners see a read-only summary explaining who can rename.fix(den-api)) that tolerates a missingapps/desktop/package.jsonwhen building the den-api container. PR feat(den): gate desktop updates by supported version #1476 added a build step that reads the Tauri package.json, butpackaging/docker/Dockerfile.dendoes not ship those sources, which had brokenpackaging/docker/den-dev-up.sh. We fall back to `0.0.0` (matching the runtime default) and let deployers override viaDEN_API_LATEST_APP_VERSION.UX notes
Screenshots
Before (Members page with Organization card + Rename button, owner):
Editing (inline form with current name pre-filled):
After (new name + success state, sidebar also updated):
Screenshots are also committed under `ee/apps/den-web/docs/screenshots/`.
Testing
End-to-end via Chrome MCP against the Docker dev stack:
Commands for reviewers:
```bash
cd _repos/openwork
packaging/docker/den-dev-up.sh # prints web/api URLs and env file path
then Chrome MCP:
/ → signup (use OTP from `docker logs `)
create org → /o//dashboard/members
click Rename → edit → Save
```
Out of scope