Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,19 @@ and listed with their assets on the
section says so in its last line, and the new tool `instructions` with the
upstream's `prefix` returns its full text. Where too many upstreams leave
no useful share, the last ones are named as left out.
- **A service's name stays readable in a narrow overview card.** With the
detail open beside the list, the fixed columns (usage, pin, state,
actions) left a row's name no room, and the build tag ran into the
usage graph. Where the card is narrow, the usage now gives way in every
row and in the group's head; the usage page shows it all the same.
- **The pool's join command no longer shows the whole fingerprint.** The
dashboard shows its first digits only, so a screenshot of the page does
not carry it; a click on the command (or Copy) copies it whole.
- **The pool's public links say what "Off" leaves.** A member's own
public links, Cloudflare Quick Tunnels from a service's globe button,
need no pool; the settings now say so beside the mode.
- **What's new leaves out a bracket's part that names a decision record
anywhere in it**, not only at its start.

## [0.41.0] - 2026-11-05

Expand Down
6 changes: 6 additions & 0 deletions ui/src/components/PoolPublicLinks.vue
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,12 @@ const close = (host: string) => run(host, async () => {
<label>Members tagged <input v-model="form.tag" class="input" placeholder="every member" /></label>
<button type="submit" class="btn btn-sm btn-primary" :disabled="!!busy"><span v-if="busy === 'save'" class="spinner" /> Save</button>
</form>
<!-- The pool only offers its domain (ADR-0092); a service's own Quick Tunnel (ADR-0090) needs no pool. -->
<p class="muted small" data-testid="pool-public-links-quick">
<template v-if="form.mode === 'off'">Off: the pool offers no domain. A member’s public links</template>
<template v-else>The public links of a member not using the pool’s domain</template>
still open as Cloudflare Quick Tunnels (a random <span class="mono">trycloudflare.com</span> address) from a service’s globe button; the pool does not govern those.
</p>
<p v-if="!admin.token" class="muted small" data-testid="pool-public-links-no-token">
The coordinator has no Cloudflare token: put one (Tunnel: Edit, DNS: Edit for the zone, Access: Read) into <span class="mono">cloudflare.token</span> in its directory, or <span class="mono">DEVSTACK_CLOUDFLARE_TOKEN</span>.
</p>
Expand Down
8 changes: 8 additions & 0 deletions ui/src/components/RowUsage.vue
Original file line number Diff line number Diff line change
Expand Up @@ -40,4 +40,12 @@ const mem = computed(() => (stack.history.get(props.seriesKey) ?? []).map((p) =>
line-height: 1.2;
min-width: 52px;
}
/* In a narrow group card the usage gives way, in every row and the head
alike, so the name keeps its room beside pin, state and actions; the
usage page has it all the same. */
@container members (max-width: 600px) {
.row-usage {
display: none;
}
}
</style>
1 change: 1 addition & 0 deletions ui/src/lib/changelog.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,7 @@ describe('withoutAdr (ADR-0006 addendum)', () => {
expect(withoutAdr("Not code-signed. ADR-0017 is amended for ADR-0041's profiles. `doctor` says so.")).toBe('Not code-signed. `doctor` says so.');
expect(withoutAdr('ADR-0023 holds; `AGENTS.md` says so. ADR-0091 names ADR-0092.')).toBe('');
expect(withoutAdr('kept (`a`, `b`, ...) as is')).toBe('kept (`a`, `b`, ...) as is');
expect(withoutAdr('**A stop** (ADR-0095, amending ADR-0068): no longer offered.')).toBe('**A stop**: no longer offered.');
});

it('leaves out a bullet that was only about ADRs', () => {
Expand Down
4 changes: 2 additions & 2 deletions ui/src/lib/changelog.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ const REFERENCE = /^\[[^\]]+\]:\s/;
const ADR_LINK = /\[(ADR-\d{4}[^\]]*)\]\([^)]*\)/g;
/** A bracket, links in it included: `([#128](https://...), ADR-0025)`. */
const BRACKET = /(\s?)\(((?:[^()]|\[[^\]]*\]\([^)]*\))*)\)/g;
/** A part of a bracket about an ADR: `ADR-0051`, `ADR-0024 point 7 amended`, `ADR-0046's list itself is unchanged`. */
const ADR_PART = /^ADR-\d{4}\b/;
/** A part of a bracket about an ADR: `ADR-0051`, `ADR-0024 point 7 amended`, `ADR-0046's list itself is unchanged`, `amending ADR-0068`. */
const ADR_PART = /\bADR-\d{4}\b/;
/** A sentence about an ADR: `ADR-0017 is amended for ADR-0041's profiles.` */
const ADR_SENTENCE = /(?<=^|[.!?]\s+)ADR-\d{4}.*?\.(?=\s|$)\s*/g;

Expand Down
5 changes: 5 additions & 0 deletions ui/src/views/OverviewView.vue
Original file line number Diff line number Diff line change
Expand Up @@ -316,6 +316,11 @@ onBeforeUnmount(() => window.removeEventListener('keydown', onKey));
gap: 8px;
font-size: 13px;
}
/* A group's card is what its rows measure their room against (RowUsage),
not the window: the detail beside the list narrows it at any width. */
.list > .section {
container: members / inline-size;
}
.members {
list-style: none;
margin: 0;
Expand Down
26 changes: 23 additions & 3 deletions ui/src/views/pool/PoolOverview.vue
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,14 @@ const me = computed(() => o.value?.me);
const nodes = computed(() => o.value?.nodes ?? []);
const approved = computed(() => me.value?.state === 'approved');

/** The join command as it shows: the fingerprint cut to its first digits, so
* that a screenshot of the page does not carry it; a copy has it whole. */
const joinShown = computed(() => {
const j = o.value?.join;
if (!j) return '';
return j.fingerprint ? j.command.replace(j.fingerprint, `${j.fingerprint.slice(0, 6)}…`) : j.command;
});

async function copyJoin() {
const c = o.value?.join?.command;
if (!c) return;
Expand Down Expand Up @@ -110,7 +118,7 @@ const onProvisioned = computed(() => !(me.value?.no_provisioned ?? myMember.valu
<p v-else-if="me.state === 'removed'" class="err"><Icon name="xCircle" :size="14" /> This machine was removed from the pool.</p>
<div v-if="approved && o?.join" class="join-cmd" data-testid="pool-join-command">
<span class="muted small">Another machine joins with</span>
<code class="mono">{{ o.join.command }}</code>
<button type="button" class="cmd mono" title="Copy the command, with the whole fingerprint" data-testid="pool-join-shown" @click="copyJoin">{{ joinShown }}</button>
<button type="button" class="btn btn-xs" title="Copy the command" data-testid="pool-join-copy" @click="copyJoin">
<Icon name="copy" :size="13" /> Copy
</button>
Expand Down Expand Up @@ -227,9 +235,21 @@ const onProvisioned = computed(() => !(me.value?.no_provisioned ?? myMember.valu
gap: 8px;
margin-top: 10px;
}
.join-cmd code {
.join-cmd .cmd {
flex: 1 1 16rem;
min-width: 0;
padding: 4px 8px;
border: 1px solid var(--border);
border-radius: 6px;
background: var(--surface-3);
color: var(--text);
font-size: 12px;
word-break: break-all;
text-align: left;
overflow-wrap: anywhere;
cursor: copy;
}
.join-cmd .cmd:hover {
border-color: var(--accent);
}
.due-card {
border-color: color-mix(in srgb, var(--warn) 45%, var(--border));
Expand Down