Commit Graph
2592 Commits
Author SHA1 Message Date
Juan Denis eb0e9c5d35 Fix "Service stoped successfully" and other verb toasts
Service and FTP start/stop/restart toasts built the past tense by
appending "ed" to the action, which printed "stoped" and could not be
translated. Each action now has its own string. Also points the two
uses of the undefined --radius-md token at --radius-sm, so those
corners stop rendering square.
2026-10-04 02:10:18 -04:00
Juan Denis 246eb605a7 Keep monospace for machine values only
Table columns, detail rows, the status bar, the sidebar and the
dashboard widgets showed dates, counts, enum words and labels in the
monospace face. They now use the UI face (sk-cell-dim for dim table
cells); monospace stays on hosts, IPs, ports, versions, paths, IDs,
hashes, code and logs. check-type-scale ratchets the number of
monospace rules so it only goes down.
2026-10-04 01:42:34 -04:00
Juan Denis 0223c5ebe3 Drop uppercase labels and monospace on plain text
About 200 labels were uppercase with wide letter-spacing and about 180
label, title, meta, time and count rules used the monospace face, the
"terminal dashboard" look that reads as generated rather than chosen.
Labels are now sentence case in the UI face; monospace stays on
machine values (IPs, hosts, ports, versions, paths, commands, IDs,
code, logs). Body text uses tabular figures so numbers still line up
in tables without monospace.
2026-10-04 01:28:03 -04:00
Juan Denis ddd817f768 Put all text on one seven-step type scale
Core SCSS used about 30 font sizes (9, 9.5, 10.5, 11.5, 12.5px...)
and six weights, so the same kind of text looked different on every
page. It now uses -xs..2xl (12, 13, 14, 16, 18, 24, 32px) and
three weights, following the dense-product norm: 14px body and a
12px floor, as in Primer, Carbon and Atlassian, which raised its own
minimum from 11px to 12px for legibility. Small labels that were
9-11.5px grow to 12px.

The old $font-size-* names stay as aliases on the new scale so
extension stylesheets keep compiling; check-type-scale rejects them,
raw sizes and off-scale weights in core.
2026-10-04 01:24:25 -04:00
Juan Denis a5bb7d3a7c Extract i18n keys for the last select sweep
Also lowers the logical-property ceiling to 427.
2026-10-03 23:33:07 -04:00
Juan Denis b32a90b36d Ratchet one field per job in lint
check-shared-fields fails on a native <select>, a second server
picker, or a page calling the base-domain or port-check APIs instead
of DomainField and PortField. A new exception needs a reason in the
allowlist.
2026-10-03 23:33:06 -04:00
Juan Denis d1c310bb94 Replace the last native selects with the shared dropdown
Table footers, column menus, the filter drawer, the schedule picker,
the widget editor, the log viewer and the env edit row now use the
compact shared Select. Also drops CSS left dead by the field sweep.
2026-10-03 23:33:02 -04:00
Juan Denis 075989f922 Treat an open Select as an editable control
Keyboard shortcuts and DataTable row navigation only skipped native
<select> elements. With Radix Select, Escape closed the widget editor
and arrows moved the table cursor while a list was open.
2026-10-03 23:32:58 -04:00
Juan Denis f81345ea75 Let DomainField callers state their own DNS step
Tunnel hostnames are not an A record at this server: a Cloudflare
route creates its own record and a WireGuard tunnel needs the name
pointed at the edge. hint(name) replaces the default line there.
2026-10-03 23:22:03 -04:00
Juan Denis d194d5d2ab Add a compact size to the shared dropdown
Toolbars, table footers and inline rows kept native selects because the
Radix trigger is a full-width 40px form field. size="sm" gives them a
content-width 30px trigger, so they can use the same dropdown.
2026-10-03 23:20:34 -04:00
Juan Denis fdaeddef3a Extract i18n keys for the shared-field sweep
Also lowers the logical-property ceiling to what the sweep left.
2026-10-03 23:19:50 -04:00
Juan Denis e5cd50227b Move pages onto the shared field components
Every page that picked a server now uses ServerPicker, so TargetPicker
and the templates-only picker are gone. Install commands and
connection strings are CopyFields, single-hostname inputs are
DomainFields, host ports are PortFields, and native selects are the
shared dropdown. The style guide shows each shared field.
2026-10-03 23:19:34 -04:00
Juan Denis 1451297317 Move shared widgets onto the shared field components
Log, journal, AI model and connection pickers, the capacity and
threshold panels and the deploy console toolbar use the shared
dropdown and ServerPicker; error cards and private URLs copy through
CopyButton/CopyField instead of calling the clipboard directly.
2026-10-03 23:19:28 -04:00
Juan Denis 1186594989 Move app, database and Docker panels onto shared fields
Run Container takes host and container ports as PortField rows and env
as an EnvEditor, database credentials and connection strings are
masked CopyFields, engine ports are checked live, and server, service
and database detail rows are InfoList. Native selects become the
shared dropdown.
2026-10-03 23:19:17 -04:00
Juan Denis eecb487d7a Move settings onto the shared field components
Secrets (API key, webhook secret, 2FA setup) are CopyFields that stay
masked until revealed, SMTP and firewall ports are PortFields, the
canonical and base domain inputs are DomainFields, detail rows are
InfoList, and every native select is the shared dropdown.
2026-10-03 23:19:08 -04:00
Juan Denis 965a4fdc22 Expose the shared field components in SDK 1.6.0
Extensions hand-roll their own server selects, domain inputs and copy
boxes because core never exported its versions. Exporting them keeps
an extension page looking and validating exactly like a core page.
2026-10-03 22:53:14 -04:00
Juan Denis 3f772c57f6 Add ServerPicker, CopyField, PortField and EnvEditor
One component per job, so pages stop hand-building them:
- ServerPicker: which machine; local first, capacity, capability filter
- CopyField: any value meant to be copied; secrets stay masked
- PortField: host ports checked live against /ports/check, naming the
  app that holds a taken port and offering the next free one
- EnvEditor: KEY=value rows for forms; a pasted .env fills the rows
Call sites move onto them in the following commits.
2026-10-03 22:50:21 -04:00
Juan Denis 2f52c87a39 Add /ports/check and /ports/suggest
The deploy paths already know which host ports are taken (app rows,
slot rows, Docker mappings, a bind test) but only used that to pick a
port silently. Exposing it lets the shared port input say "8001 is
used by shop-api" and offer the next free port, instead of failing
at deploy time.
2026-10-03 22:46:54 -04:00
Juan Denis 30a3bfda82 Add DomainField, one input for picking a domain
Every screen that asked for a domain had its own input: a copied
regex in service settings, a separate "give it a subdomain" modal, a
bare required field on the Domains page. DomainField offers a managed
subdomain (label + base domain) or the user's own domain, normalizes
what is pasted, and says what will happen with DNS before submit.
attachDomain() sends either kind to the right endpoint.

Service settings now has one add-domain flow instead of an attach
form plus a subdomain modal, and the Domains page add modal uses the
same field.
2026-10-03 21:16:02 -04:00
Juan Denis 3e7aedbf17 Move extension, engine and server-template cards onto CatalogCard
The three remaining catalogs each had their own card: a 140px cover
banner with source, category, first-party and trust badges on
Extensions, a legacy SharedCard on Server Templates, and a bespoke
button card in the engine drawer. All three now use the shared
CatalogCard: one tag, author and trust as plain text, an outline
action, and a flat surface. Server-template facts also get singular
forms ("1 package", not "1 packages").
2026-10-03 21:12:32 -04:00
Juan Denis 29dc925e6e Add CatalogCard and move Templates onto it
Extensions, templates, server templates and database engines each
drew their own card with their own badges. CatalogCard is the one
shape for browsable things: icon, name, version line, one plain-text
tag, a two-line description, facts and one action. Templates is the
first user; the icon-only website/docs markers and the hover-reveal
deploy button went with the old card.
2026-10-03 21:08:14 -04:00
Juan Denis e691a0842e Lower the logical-property ceiling to 438 2026-10-03 21:06:05 -04:00
Juan Denis 2b1028f29a Put the Databases header on the shared top bar
The explorer drew its own toolbar with an h1 titled differently from
the sidebar entry and a hand-rolled New menu. It now uses PageLayout
like the other workbench pages, with the shared button and dropdown
primitives; the tree and workspace below are unchanged.
2026-10-03 21:04:15 -04:00
Juan Denis 5930ed5ac4 Put Docker on the shared page shell
Docker was the one list page with its own layout: an inner sidebar
for Containers/Images/Volumes, an Inventory panel repeating the KPI
counts, and a bespoke workbar title. It now uses PageLayout like every
other standalone page, with those sections as top-bar tabs and the
target picker, prune and create actions in the bar. /docker redirects
to /docker/containers so the first tab lights up. The old sidebar,
workbar and container-card CSS was unused and is removed.
2026-10-03 21:02:19 -04:00
Juan Denis 595a686981 Cut filler subtitles and the Marketplace kicker
Section headings in Settings, the new-service wizard, Agent Fleet and
restore points each had a one-line description that restated the
heading. The Installed section header said "installed" three times.
Only lines that say something specific (what disabling a module does,
install instructions, user data) are kept.
2026-10-03 20:54:39 -04:00
Juan Denis c7ea5ef3db Drop the servers hex-colour baseline to zero 2026-10-03 20:54:35 -04:00
Juan Denis d4aaede728 Flatten gradient surfaces, drop dead servers CSS
Detail headers and table heads used a top-lit gradient plus a radial
accent wash. They are now a flat surface, matching every other card.
The old Servers card layout (hero, health panel, card grid, empty
state) was no longer referenced anywhere and carried most of the
remaining gradients, so it goes.
2026-10-03 20:51:29 -04:00
Juan Denis 93a3cd783e Let GET /api/v1/servers accept a scoped API key
Vela holds one ServerKit API key as a host-side secret and polls the
fleet list, so this read route moves from bare @jwt_required() to
auth_required() + require_scope('servers:read') — a deliberate,
per-route jwt_only_census exception, not a sweep. JWT callers are
unchanged; a restricted key without servers:read gets 403 from the
scope middleware, no credentials get 401.

Scope choice: the existing servers:read catalog entry already covers
'list servers, agents, and metrics', and the serverkit-gui read routes
(capabilities/frame/surface, sibling repo) take the same scope, so one
key scope serves the whole Vela polling surface.

The census ceiling ratchets down to 600 and the migration inventory is
regenerated, as both ratchets require. tests/test_servers_api_key_scope.py
pins the four cases: scoped key 200, wrong-scope key 403, JWT 200,
anonymous 401.
2026-10-03 00:31:36 -04:00
github-actions[bot] 8a13bdde62 chore: bump version to 1.11.16 [skip ci] 2026-10-02 02:55:09 +00:00
Juan Denis 4c70658f90 Harden the Cloud tunnel per review
Session keys must name their purpose, and both loopback legs skip
environment proxies so the grant and bearer token never leave the box.
In the tunnel the API always goes through the relay, which attaches the
grant, and the two raw root anchors become router Links so they stay
under the /t/<device> prefix.
2026-10-01 22:47:48 -04:00
github-actions[bot] d8ff654620 chore: bump version to 1.11.15 [skip ci] 2026-10-02 02:43:21 +00:00
Juan Denis 73a53b8692 Classify the Cloud tunnel route and threads
The connect-session route authenticates by the loopback-only Cloud
grant rather than a session, and the tunnel's Socket.IO bridge starts
two raw threads; both guards failed CI until they were recorded.
2026-10-01 22:36:22 -04:00
Juan Denis 4eecee8bf0 Reject trailing newline in Postfix install hostname
re.match with $ accepted 'host\n'. Use fullmatch and pin the
GHSA-mc93-rc3x-fpgq fix with a regression test so the bash -c form
cannot return.
2026-10-01 22:22:00 -04:00
Juan Denis 39024497ee Bump js-yaml and brace-expansion in frontend
js-yaml override 4.3.1 -> 4.3.2 and brace-expansion 1.1.18 ->
1.1.21 clear the merge-key CPU and brace-rewrite ReDoS alerts.
2026-10-01 22:04:09 -04:00
Juan Denis 94619c2d81 Bump PyJWT to 2.15.1 for security advisories
Clears the open PyJWT Dependabot alerts (HS/asymmetric key
confusion bypasses, empty HMAC keys, JWKS redirect/fetch issues,
RecursionError DoS, is_pem_format ReDoS, options-dict mutation).
2026-10-01 22:04:09 -04:00
Juan Denis c7b6f145d1 Serve the panel through the Cloud relay tunnel
Until now the connect client refused every http and sio stream, so
Open panel in ServerKit Cloud showed a blank page. The client now
bridges them to the loopback listener, the panel serves its page
under the relay's /t/<device>/ prefix, and the SPA prefixes its
router, API and Socket.IO paths from it. The Cloud grant is checked
against Cloud's JWKS before signing in the panel user with the same
email; panel two-factor still applies.
2026-09-29 23:19:34 -04:00
Juan Denis 4f79416280 Sync bundled registry index: tramo 1.0.3 2026-09-29 21:34:28 -04:00
Juan Denis d413150010 Sync bundled registry index: Minecraft last 2026-09-29 20:08:11 -04:00
Juan Denis 5358ba42ab Render every Marketplace cover image at one size
Registry logos drew at 44px beside 92px bundled icons, and the white
tile was picked by whether bundled art existed rather than by what
rendered, so a registry-only logo like Minecraft's sat on the gradient
meant for white glyphs. The cover now picks its tile from the image it
actually shows, and a failed logo drops back to the gradient.
2026-09-29 20:08:06 -04:00
Juan Denis 312cf2ba3b Sync bundled registry index: tramo 1.0.2 2026-09-29 19:59:07 -04:00
Juan Denis 79ba873663 Stop map callbacks shadowing the translator t
TagsPanel and RemoteAccess named their .map item t, so every t('...')
inside called a tag or tunnel object and crashed the page as soon as a
tag or tunnel existed.
2026-09-29 19:52:15 -04:00
Juan Denis 1d037c2ef3 Sync bundled registry index: tramo 1.0.1 2026-09-29 19:43:45 -04:00
github-actions[bot] 22865272ed chore: bump version to 1.11.14 [skip ci] 2026-09-29 12:53:30 +00:00
Juan Denis d7f4e6f9b1 Document slot deploys and the schema-change rule 2026-09-28 22:27:14 -04:00
Juan Denis 9eafe6709e Point compose app actions at the live slot project
Plan 87 phase E, compose part. For a compose app on slots, the live
release is a slot project, not the project its own compose file names.
Status maps to the live project only (a stopped standby never reads as
a degraded app), start/stop/restart and sleep/wake act on it, container
listings show the live and standby projects, and an image update runs
as a queued slot deploy instead of recreating the stack in place.
2026-09-28 22:27:13 -04:00
Juan Denis d0b11714e7 Deploy compose apps through A/B slots
Plan 87 phase C. A compose app on slots runs each slot as its own
project, <name>-a / <name>-b, rendered from the merged compose config:
container_name stripped, only the web service published, on the
slot's loopback port, and every named volume pinned to the name it has
today. Without the pin compose prefixes volumes with the project name
and slot B would start on empty ones; the real-Docker leg checks this.

Stateful services (a database, cache or queue with a named volume)
cannot run twice. They move once, on an explicit previewed split, into
a shared <name>-data project that both slots reach by the same names.

The webhook, template-update and rollback paths deploy through the
engine instead of stopping the stack. The --scale web=2 rolling
restart and the Webhook.zero_downtime flag are deleted: it assumed a
service named web, ignored its own health result, and no UI set it.
Compose slot images get immutable per-deployment tags and are pruned
with the rest.
2026-09-28 22:26:44 -04:00
Juan Denis 0749508599 Run release commands and DB snapshots before the switch
Plan 87 phase D. Both slots share the database, so what changes it
runs once, before the switch, while the old release still serves:
the app's managed databases are dumped (a warning, never a blocker),
then the release command runs in a one-off container of the new
image. A failed release aborts the deploy with the live slot
untouched. The command comes from the app's setting, the Procfile
release: line, or serverkit.yaml; a rollback never re-runs it.

Rolling code back never rolls the database back: after a switch
back the slot card offers the pre-deploy snapshot as an explicit
second step with a data-loss warning. stop_old_before_release is
the announced-downtime fallback for schema changes that cannot stay
backward-compatible for one deploy.
2026-09-28 21:41:52 -04:00
Juan Denis c697e7247b Show slot deploys in the console and app detail
Plan 87 phase F. A slot deploy job lists its real stages (Preflight,
Build, Boot slot X, Health gate, Switch, Watch) and advances through
them as the engine reaches each one, so PipelineStrip renders them
unchanged. The overview gets a slot card: which release is live,
which is the standby and how long it stays warm, with Switch back;
when slots are off it lists why the app does or does not qualify.
Settings gains the opt-in, watch window, standby minutes and the
shared-volume confirmation.
2026-09-28 21:33:45 -04:00
Juan Denis 8bd78d69cd Point container actions at the live slot
Plan 87 phase E, single-container part. Start, stop and restart act
on the live slot's container (stopping the app also stops its warm
standby), container listings show the live slot as web and the
standby separately, and status, stats, logs and the terminal follow
app.container_id, which the switch now updates.

A vhost restore point records which slot the captured file pointed
at, read from the file itself, and restoring it starts that slot
first, so a restore never points nginx at a stopped standby.
2026-09-28 21:32:41 -04:00
Juan Denis f77aaa1f4d Deploy single-container apps through A/B slots
Plan 87 phase B. An app that opts in keeps two slots, like the
panel updater's two installs. A deploy boots the new release in the
idle slot on its own loopback port while the live one serves, holds
it to the health gate, then switches nginx by moving app.port to the
new slot and rewriting the vhost, so every app.port reader follows
without edits. A watch window switches back on its own if the
release falls over; the old slot stays warm for an instant switch
back, then is stopped (not removed) by a standby sweep.

Opting in adopts the running container as slot a with no restart.
Eligibility is shown with reasons and re-checked on every deploy;
opting out folds the slots back on the next in-place deploy. Slot
images are never pruned and slot ports stay reserved.
2026-09-28 21:29:33 -04:00