Skip to content

feat: release, disable and enable projects, redeploy reasons, live per-project breakdown - #29

Merged
AmrMsCLL merged 2 commits into
mainfrom
feat/project-releases
Nov 5, 2026
Merged

AmrMsCLL merged 2 commits into
mainfrom
feat/project-releases

Conversation

@AmrMsCLL

@AmrMsCLL AmrMsCLL commented Nov 5, 2026

Copy link
Copy Markdown
Member

Includes #28 (volume browsing, plain switches, steady secret columns, roomier logs) as its first commit; close #28. Goes with Project-Graphite/platform#47.

Release, disable, enable

A Release card on each Project page, for owners:

  • the running version and an enabled or disabled pill;
  • a version picker listing every version the project has deployed, newest first, with when and who (read from the history of platform/deploy/<slug>/values, so every entry is an image that was built and deployed before), and Deploy this version;
  • an Enabled switch; disabling asks first.

Each action is a commit to deploy/<slug>/values through the platform GitHub App (IMAGE_TAG=<tag>, or adding or removing ENABLED=false), with a message naming you, so git stays the record and Deploy applies it about a minute later (platform#47). Needs PLATFORM_APP_CLIENT_ID and PLATFORM_APP_PRIVATE_KEY in /etc/graphite/console.env; without them the card says so.

Why a project needs a redeploy

The pill appears when the project's env file is newer than its last rollout. It now lists why: each secret added, changed, restored, removed or edited on the host since then, with who and when, on the Project page and in the Overview pill's tooltip. A file edited by hand with no stored change shows as ".env edited on the host". Editing only a secret's description no longer counts.

Also

  • The Overview's live chart breaks the hovered second down by project, as the history ranges do.
  • A project's Secrets section uses the same collapsible card as the log panels (shared Collapsible).
  • Browse is the right-most button on every volume; Delete sits to its left when the volume is unused.

Checks

tsc (server and web), oxlint, npm run build, test/secrets.spec.ts, test/platform.spec.ts, test/volumes.spec.ts, test/backups.spec.ts, test/alerts.spec.ts. Not run: the GitHub App calls and the pages in a browser.

…ret columns and roomier logs

Browse said "There is no volume" for every volume: realpath resolved the
/proc/1/root link to the console's own root. Paths are now joined under the
volume, kept inside it, and refused when any part is a link, without realpath.

graphite-ui's Toggle draws a card around its label, which broke the access
table; a small Switch (MUI's, with an inline or hidden label and an optional
description) replaces it everywhere. The Secrets table has fixed column widths,
so collapsing a project no longer moves the columns. Log lines drop their time,
source and level columns: the level is a coloured edge, time and source a faint
line above, and the message has the full width.
…er-project breakdown

A Release card on each Project page (owners) shows the running version and
whether the project is enabled, lists every version the project has deployed
(from the history of platform's deploy/<slug>/values) and deploys a chosen one,
and disables or enables the project. Each is a commit to that file through the
platform GitHub App, so git stays the record and Deploy applies it.

"Needs redeploy" now says why: each secret added, changed, restored, removed or
edited on the host since the last rollout, with who and when, on the Project
page and in the Overview pill's tooltip. Description-only edits no longer count.

The Overview's live chart breaks the hovered second down by project. The
project's Secrets section uses the same collapsible card as the log panels,
and Browse is the right-most button on every volume.
@github-actions github-actions Bot added the size/xl Over 600 changed lines, excluding lockfiles label Nov 5, 2026
@AmrMsCLL
AmrMsCLL merged commit 38de36e into main Nov 5, 2026
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size/xl Over 600 changed lines, excluding lockfiles

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant