Skip to content

chore(dashboard): redesign project cards with menu and compact status - #5388

Merged
Rui-V-Almeida merged 26 commits into
mainfrom
rui/projects-redesign
Nov 20, 2026
Merged

Rui-V-Almeida merged 26 commits into
mainfrom
rui/projects-redesign

Conversation

@Rui-V-Almeida

@Rui-V-Almeida Rui-V-Almeida commented Nov 16, 2026 •

Copy link
Copy Markdown
Member

Checklist

  • No breaking changes
  • Tests pass
  • New features have new tests
  • Documentation is updated (if applicable)
  • Title of the PR is in the correct format

🤖 Generated with nhost-code

Goal

The organization projects page shows each project as a card. The old card stacked a region flag, a failed deployment warning triangle, a multi part deployment message and an arrow, so a page with many projects felt noisy and quick actions were missing. This branch redesigns the card around a per card menu (Copy subdomain, Copy region, Settings), plain region text with a flag and city tooltip, the repository name without the branch, and a one line deployment status made of a coloured dot and words. It also gives the projects, members and organization settings pages one shared width, renames the organization "General" page to "Settings" in the menu and page title, and makes the Create project and Add member buttons smaller.

Type: Enhancement

Changes

  • Card layout and link layering: ProjectCard keeps the project link as an absolute layer under the whole card. The menu button and the region trigger sit above it at z-20, so using them never opens the project while a click anywhere else still does. The top row holds the name and the menu with the region text below. The bottom row holds the repository and last deployment on the left and the status pill on the right. The card rests at border plus bg-muted/10 and moves to border-primary/50 plus bg-muted/20 on hover instead of the old glow. The grid is grid-cols-1, sm:grid-cols-2 and xl:grid-cols-3 with auto-rows-fr, so wide screens show three wider cards of equal height.
  • Per card menu: the new ProjectCardMenu is an ellipsis icon button labelled Actions for <name> (<region>). It opens a Radix dropdown with Copy subdomain, Copy region (only when region.name is set) and a Settings link to /orgs/<org>/projects/<subdomain>/settings. Copy items call the shared copy util, which shows a toast. A closedWithPointer ref prevents focus return when the menu closes after a pointer interaction, so no focus ring lingers, while keyboard users still get focus back on the trigger.
  • Region text: ProjectRegion replaces ProjectRegionFlag. It renders the region code (falling back to the city, then Unknown region) as a transparent button with aria-label="Region: <city> (<code>)". The tooltip shows the flag image and the city plus code. A failed flag load is remembered per country code, so a later region change shows its flag again.
  • Repository line: ProjectRepository shows the GitHub icon (aria-hidden) and owner/repo only, dropping the production branch.
  • Last deployment line: ProjectLastDeployment no longer uses DeploymentStatusMessage. It maps the latest pipeline run status (or the legacy deployment status for older projects) to succeeded, failed, aborted, running or other, takes the end time with a fallback to the start time, and renders an aria-hidden dot (bg-success, bg-destructive, pulsing muted, or muted) next to text such as Deployed 3 hours ago, Deploy failed 3 hours ago, Deploy aborted 3 hours ago or Deploying now. Projects with a repository but no runs show No deployments yet. Projects without a repository show no deployment line, matching the rest of the dashboard.
  • Removed components: DeploymentFailedWarning and DeploymentStatusMessage (with its tests) are deleted because the deployment line now carries the failed state. No other consumers remain.
  • Shared tokens: Tailwind gains max-w-page (1280px), used by the projects header and grid, members, member invites and organization settings pages (previously max-w-5xl). It also gains a success colour backed by a new --success CSS variable with separate light and dark values.
  • Page headers and naming: the Create project and Add member buttons move to size="xs". Projects, Members and Settings headings use font-normal text-3xl. The organization sidebar item and settings page heading change from "General" to "Settings", and DashboardNavigation.test.tsx is updated to match.
  • Tests: new component tests cover ProjectCardMenu, ProjectRegion and ProjectLastDeployment, and ProjectsGrid.test.tsx covers the new card contents.

Key files

  • dashboard/src/features/orgs/components/projects/ProjectsGrid/ (+90/-36): card layout, link layering, grid columns and tests.
  • dashboard/src/features/orgs/components/projects/ProjectCardMenu/ (+176/-0): new actions menu and tests.
  • dashboard/src/features/orgs/components/projects/ProjectRegion/ (+132/-19), replacing ProjectRegionFlag/ (-80): region text, tooltip and tests.
  • dashboard/src/features/orgs/components/projects/ProjectLastDeployment/ (+170/-5): outcome mapping, one line rendering and tests.
  • dashboard/src/features/orgs/components/projects/ProjectRepository/ProjectRepository.tsx (+2/-6): repository name without branch.
  • Removed DeploymentFailedWarning/ and deployments/components/DeploymentStatusMessage/ (-195).
  • dashboard/tailwind.config.js, dashboard/src/styles/globals.css (+6/-0): max-w-page and success tokens.
  • Org pages and navigation (pages/orgs/[orgSlug]/{members/index,members/invites,settings}.tsx, MembersHeader.tsx, OrganizationNavigation.tsx and its test) (+9/-9): shared width, header sizing and the Settings rename.

@Rui-V-Almeida Rui-V-Almeida self-assigned this Nov 16, 2026
@github-actions

github-actions Bot commented Nov 16, 2026 •

Copy link
Copy Markdown
Contributor

Vercel Deployment Info - dashboard

@Rui-V-Almeida
Rui-V-Almeida marked this pull request as ready for review November 18, 2026 12:53
@Rui-V-Almeida Rui-V-Almeida changed the title chore(dashboard): projects redesign chore(dashboard): redesign project cards with menu and compact status Nov 18, 2026
@PVUL
PVUL self-requested a review November 19, 2026 12:18

@PVUL PVUL left a comment •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we change Org General to Org Settings? the url even calls it settings.

Screenshot 2026-11-19 at 3 32 27 PM

@Rui-V-Almeida
Rui-V-Almeida marked this pull request as draft November 19, 2026 16:33
@Rui-V-Almeida
Rui-V-Almeida marked this pull request as ready for review November 19, 2026 19:25
@Rui-V-Almeida
Rui-V-Almeida marked this pull request as draft November 20, 2026 09:36
@Rui-V-Almeida
Rui-V-Almeida marked this pull request as ready for review November 20, 2026 09:43
@Rui-V-Almeida

Copy link
Copy Markdown
Member Author

Agreed, renamed General to Settings in the main menu and page title to match the URL.

@Rui-V-Almeida
Rui-V-Almeida requested a review from PVUL November 20, 2026 11:02

@PVUL PVUL left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice! LGTM.

@Rui-V-Almeida

Copy link
Copy Markdown
Member Author

Great, tks!!

@Rui-V-Almeida
Rui-V-Almeida merged commit a8c938a into main Nov 20, 2026
10 checks passed
@Rui-V-Almeida
Rui-V-Almeida deleted the rui/projects-redesign branch November 20, 2026 18:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants