Repository navigation
chore(dashboard): redesign project cards with menu and compact status - #5388
Merged
Merged
Conversation
Contributor
Vercel Deployment Info - dashboard
|
Rui-V-Almeida
marked this pull request as ready for review
November 18, 2026 12:53
PVUL
self-requested a review
November 19, 2026 12:18
PVUL
requested changes
Nov 19, 2026
Rui-V-Almeida
marked this pull request as draft
November 19, 2026 16:33
Rui-V-Almeida
marked this pull request as ready for review
November 19, 2026 19:25
Rui-V-Almeida
marked this pull request as draft
November 20, 2026 09:36
Rui-V-Almeida
marked this pull request as ready for review
November 20, 2026 09:43
Member
Author
|
Agreed, renamed General to Settings in the main menu and page title to match the URL. |
Member
Author
|
Great, tks!! |
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.

Checklist
🤖 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
ProjectCardkeeps the project link as an absolute layer under the whole card. The menu button and the region trigger sit above it atz-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 atborderplusbg-muted/10and moves toborder-primary/50plusbg-muted/20on hover instead of the old glow. The grid isgrid-cols-1,sm:grid-cols-2andxl:grid-cols-3withauto-rows-fr, so wide screens show three wider cards of equal height.ProjectCardMenuis an ellipsis icon button labelledActions for <name> (<region>). It opens a Radix dropdown with Copy subdomain, Copy region (only whenregion.nameis set) and a Settings link to/orgs/<org>/projects/<subdomain>/settings. Copy items call the sharedcopyutil, which shows a toast. AclosedWithPointerref 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.ProjectRegionreplacesProjectRegionFlag. It renders the region code (falling back to the city, thenUnknown region) as a transparent button witharia-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.ProjectRepositoryshows the GitHub icon (aria-hidden) andowner/repoonly, dropping the production branch.ProjectLastDeploymentno longer usesDeploymentStatusMessage. 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 anaria-hiddendot (bg-success,bg-destructive, pulsing muted, or muted) next to text such asDeployed 3 hours ago,Deploy failed 3 hours ago,Deploy aborted 3 hours agoorDeploying now. Projects with a repository but no runs showNo deployments yet. Projects without a repository show no deployment line, matching the rest of the dashboard.DeploymentFailedWarningandDeploymentStatusMessage(with its tests) are deleted because the deployment line now carries the failed state. No other consumers remain.max-w-page(1280px), used by the projects header and grid, members, member invites and organization settings pages (previouslymax-w-5xl). It also gains asuccesscolour backed by a new--successCSS variable with separate light and dark values.size="xs". Projects, Members and Settings headings usefont-normal text-3xl. The organization sidebar item and settings page heading change from "General" to "Settings", andDashboardNavigation.test.tsxis updated to match.ProjectCardMenu,ProjectRegionandProjectLastDeployment, andProjectsGrid.test.tsxcovers 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), replacingProjectRegionFlag/(-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.DeploymentFailedWarning/anddeployments/components/DeploymentStatusMessage/(-195).dashboard/tailwind.config.js,dashboard/src/styles/globals.css(+6/-0):max-w-pageandsuccesstokens.pages/orgs/[orgSlug]/{members/index,members/invites,settings}.tsx,MembersHeader.tsx,OrganizationNavigation.tsxand its test) (+9/-9): shared width, header sizing and the Settings rename.