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
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,10 @@

### Fixed

- Keep ordinary folder names on one line in Overview while wrapping unusually long names.

- Keep HTML preview controls in place while the preview reloads, so switching to Source after a save cannot hit the wrong control.

- Keep indexing visible while an existing workspace republishes its index. Overview tables now keep readable columns, Members spans the page, and crowded maps stay compact. Cards have space below the view tabs, and graph nodes are easier to hover and select.

- Windows harness shutdown accepts an already-reaped child while retaining errors for a child that has not exited.
Expand Down
1 change: 1 addition & 0 deletions web/bundled-views/group/overview-style.css
Original file line number Diff line number Diff line change
Expand Up @@ -353,6 +353,7 @@
width: 60px;
}
.gv-ov-folders .gv-ov-folder {
width: max-content;
max-width: 160px;
white-space: normal;
overflow-wrap: anywhere;
Expand Down
17 changes: 17 additions & 0 deletions web/src/html-note.css
Original file line number Diff line number Diff line change
Expand Up @@ -301,6 +301,7 @@ button.html-note-viewer__ghost svg {
}

.notes-shell .ontology-pane__html-actions {
position: relative;
display: flex;
flex: none;
align-items: center;
Expand All @@ -310,6 +311,22 @@ button.html-note-viewer__ghost svg {
font-size: var(--fs-sm);
}

.notes-shell .ontology-pane__html-actions .html-note-viewer__state {
position: absolute;
z-index: 2;
top: 100%;
right: 0;
padding: 3px var(--sp-4);
border: 1px solid var(--border);
border-radius: var(--r-sm);
background: var(--surface-alt);
font-size: var(--fs-xs);
}

.notes-shell .ontology-pane__html-actions .html-note-viewer__state:empty {
display: none;
}

.notes-shell .ontology-pane__html-actions:empty {
display: none;
}
Expand Down
9 changes: 9 additions & 0 deletions web/tests/e2e/group-overview.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,15 @@ test("All notes opens on its Briefing and offers the Overview", async ({ page })
// the Overview, and only the Members table scrolls sideways, never the page.
await page.setViewportSize({ width: 1000, height: 820 });
await expect(members.getByRole("row", { name: /Untyped/ })).toBeVisible();
const folder = frame.locator(".gv-ov-folders tbody button").first();
await folder.evaluate((button) => {
button.textContent = "attachments/";
});
expect(
await folder.evaluate((button) => button.getBoundingClientRect().height),
).toBeLessThanOrEqual(
(await folder.evaluate((button) => Number.parseFloat(getComputedStyle(button).lineHeight))) + 1,
);
await frame
.locator(".gv-ov-folders tbody button")
.first()
Expand Down
33 changes: 33 additions & 0 deletions web/tests/e2e/html-notes.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,39 @@ test("groups typed properties and root metadata in one collapsed disclosure", as
await expect(aliases.getByRole("textbox")).toBeVisible();
});

test("keeps HTML view controls still while the preview reloads", async ({ page }) => {
await page.goto(prototypeRoute);
const state = page.locator(".ontology-pane__html-actions .html-note-viewer__state");
await expect(state).toBeEmpty();
const source = page.getByRole("button", { name: "Source", exact: true });
const before = await source.boundingBox();
expect(before).not.toBeNull();

let release = () => {};

const held = new Promise<void>((resolve) => {
release = resolve;
});

await page.route("**/api/v1/html-viewers", async (route) => {
await held;
await route.continue();
});

try {
await page.getByRole("button", { name: "Refresh", exact: true }).click();
await expect(state).toHaveText("Loading prototype…");
expect(await source.boundingBox()).toEqual(before);
} finally {
release();
}

await expect(state).toBeEmpty();
expect(await source.boundingBox()).toEqual(before);
await chooseView(page, "Source");
await expect(page.getByLabel("Note source")).toContainText("Interactive sales prototype");
});

test("keeps the HTML document usable with expanded metadata in a short viewport", async ({
page,
}) => {
Expand Down
Loading