mirror of
https://github.com/block/buzz.git
synced 2026-11-01 23:11:58 +00:00
shared compute nomenclature
Signed-off-by: Alessandro Joabar <sandro@squareup.com>
This commit is contained in:
@@ -356,7 +356,7 @@ test("test_foreign_entry_with_no_local_copy_stays_unselected", () => {
|
||||
BOB,
|
||||
);
|
||||
|
||||
assert.equal(personas[0].id, "catalog:" + ALICE + ":reviewer");
|
||||
assert.equal(personas[0].id, `catalog:${ALICE}:reviewer`);
|
||||
assert.equal(personas[0].isActive, false);
|
||||
});
|
||||
|
||||
@@ -377,7 +377,7 @@ test("test_catalog_source_match_is_scoped_to_the_publishing_owner", () => {
|
||||
ALICE,
|
||||
);
|
||||
|
||||
assert.equal(personas[0].id, "catalog:" + BOB + ":reviewer");
|
||||
assert.equal(personas[0].id, `catalog:${BOB}:reviewer`);
|
||||
assert.equal(personas[0].isActive, false);
|
||||
});
|
||||
|
||||
|
||||
@@ -224,8 +224,6 @@ test("an empty mesh offers the action instead of sitting inert", () => {
|
||||
});
|
||||
|
||||
test("the label is the same in every state", () => {
|
||||
// Two name variants was the source of drift: one surface kept saying "Buzz
|
||||
// MeshLLM" after the other had dropped it.
|
||||
for (const input of [
|
||||
{ snapshot: null },
|
||||
{ snapshot: snapshot() },
|
||||
@@ -233,7 +231,7 @@ test("the label is the same in every state", () => {
|
||||
{ toggle: SHARING, view: view() },
|
||||
{ toggle: CONSUMING },
|
||||
]) {
|
||||
assert.equal(derive(input).label, "MeshLLM");
|
||||
assert.equal(derive(input).label, "Shared Compute");
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
@@ -96,9 +96,8 @@ export type MeshRowModel = {
|
||||
pulse: MeshRowPulse;
|
||||
};
|
||||
|
||||
/** One name in every state. Two variants was the source of drift, and "Buzz"
|
||||
* adds nothing inside Buzz. */
|
||||
const LABEL = "MeshLLM";
|
||||
/** One name in every state. */
|
||||
const LABEL = "Shared Compute";
|
||||
|
||||
/** Live pool capacity: this machine plus every peer that reports a figure. */
|
||||
function liveCapacityGb(view: MeshLiveView | null): number {
|
||||
|
||||
@@ -1,5 +1,3 @@
|
||||
import { Share2 } from "lucide-react";
|
||||
|
||||
import { SidebarMenuButton, SidebarMenuItem } from "@/shared/ui/sidebar";
|
||||
import { SidebarMenuLabel } from "@/shared/ui/sidebar-menu-label";
|
||||
import { cn } from "@/shared/lib/cn";
|
||||
@@ -113,36 +111,6 @@ export function SidebarMeshComputeRow({
|
||||
</SidebarMenuLabel>
|
||||
</SidebarMenuButton>
|
||||
</MeshComputePopover>
|
||||
|
||||
{/*
|
||||
The trailing slot: an invitation when cold, capacity otherwise.
|
||||
|
||||
Capacity shows in every state that has a number — not just while
|
||||
sharing.
|
||||
|
||||
This slot used to hold a 70%-scaled unlabelled Switch, which was hard to
|
||||
see and ambiguous about what it would do. The control moved wholesale to
|
||||
the popover, which frees the slot for the figure. When this machine is
|
||||
outside the mesh the number *is* the invitation: "92 GB" argues for
|
||||
joining better than any exhortation, and unlike a nudge there is nothing
|
||||
to dismiss. Pointer-events off so the whole row stays one click target.
|
||||
*/}
|
||||
{row.callToAction ? (
|
||||
<span
|
||||
className="pointer-events-none absolute right-2 top-1/2 flex -translate-y-1/2 items-center gap-1 text-2xs font-medium text-muted-foreground group-data-[collapsible=icon]:hidden"
|
||||
data-testid="mesh-row-cta"
|
||||
>
|
||||
<Share2 aria-hidden className="h-3 w-3" />
|
||||
{row.callToAction}
|
||||
</span>
|
||||
) : row.badge ? (
|
||||
<span
|
||||
className="pointer-events-none absolute right-2 top-1/2 -translate-y-1/2 text-2xs tabular-nums text-muted-foreground group-data-[collapsible=icon]:hidden"
|
||||
data-testid="mesh-row-badge"
|
||||
>
|
||||
{row.badge}
|
||||
</span>
|
||||
) : null}
|
||||
</SidebarMenuItem>
|
||||
);
|
||||
}
|
||||
|
||||
@@ -477,7 +477,9 @@ export function TerminalSubstrate({
|
||||
data-terminal-visible={visible ? "true" : "false"}
|
||||
style={{
|
||||
...terminalStyle,
|
||||
...(mode === "docked" ? { height: dockHeight } : undefined),
|
||||
...(mode === "docked"
|
||||
? { height: visible ? dockHeight : 0 }
|
||||
: undefined),
|
||||
}}
|
||||
onWheel={(event) => {
|
||||
event.preventDefault();
|
||||
|
||||
@@ -248,7 +248,7 @@
|
||||
}
|
||||
|
||||
.buzz-terminal-substrate[data-terminal-visible="false"] {
|
||||
height: 0 !important;
|
||||
height: 0;
|
||||
min-height: 0;
|
||||
pointer-events: none;
|
||||
transform: translateY(16px);
|
||||
|
||||
Reference in New Issue
Block a user