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
5 changes: 5 additions & 0 deletions CHANGELOG.d/2.3.0-focus-ask-after-priya-related.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# 2.3.0 Focus Ask after Priya related

Open Public post from the landed Demo Corp members and the Ask heading
takes focus after Priya Nair related nodes are current. Home list
opens do not.
9 changes: 9 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,15 @@ All notable changes to this project are documented here. Format follows
[Keep a Changelog](https://keepachangelog.com/en/1.1.0/); versioning follows
[Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [2.3.0] - 2026-08-17

### Added

- Opening Public post from the landed Demo Corp members now focuses
the Ask heading after Priya Nair related nodes are current. Home
list opens do not steal that focus. No TEPP theta is invented. No
cutoff body is invented (ADR 0016).

## [2.2.0] - 2026-08-17

### Added
Expand Down
2 changes: 1 addition & 1 deletion frontend/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "frontend",
"private": true,
"version": "2.2.0",
"version": "2.3.0",
"type": "module",
"scripts": {
"dev": "vite",
Expand Down
5 changes: 3 additions & 2 deletions frontend/src/App.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -1483,6 +1483,7 @@ describe("App, authenticated", () => {
expect(screen.getAllByLabelText("A-100 lineage").length).toBeGreaterThanOrEqual(2);
expect(screen.getAllByLabelText("Open post: Pricing renegotiation follow-up").length).toBeGreaterThanOrEqual(2);
expect(document.getElementById("post-event-lineage")).not.toHaveFocus();
expect(document.getElementById("post-ask")).not.toHaveFocus();
expect(
screen.queryByRole("status", { name: "Event Lineage next action" }),
).not.toBeInTheDocument();
Expand Down Expand Up @@ -2308,7 +2309,6 @@ describe("App, authenticated", () => {
expect(
screen.getAllByRole("heading", { name: "Event Lineage" }).length,
).toBeGreaterThanOrEqual(2);
expect(document.getElementById("post-event-lineage")).toHaveFocus();
const popup = document.querySelector(".popup-panel");
expect(popup).not.toBeNull();
const currentNode = within(popup as HTMLElement).getByLabelText("Open post: Public post");
Expand Down Expand Up @@ -2379,6 +2379,7 @@ describe("App, authenticated", () => {
expect(askNext.compareDocumentPosition(affiliate) & Node.DOCUMENT_POSITION_FOLLOWING).not.toBe(
0,
);
await waitFor(() => expect(document.getElementById("post-ask")).toHaveFocus());
} finally {
HTMLElement.prototype.scrollIntoView = originalScrollIntoView;
}
Expand Down Expand Up @@ -2642,7 +2643,6 @@ describe("App, authenticated", () => {
expect(screen.getByText("Constructive stance: 2")).toBeInTheDocument();
expect(screen.getAllByText(/Ada West/).length).toBeGreaterThan(0);
expect(screen.getAllByLabelText("A-100 lineage").length).toBeGreaterThanOrEqual(2);
expect(document.getElementById("post-event-lineage")).toHaveFocus();
expect(screen.getByRole("status", { name: "Event Lineage next action" })).toHaveTextContent(
"Public post is current in Event Lineage. Read Keyman and evaluation next.",
);
Expand All @@ -2657,6 +2657,7 @@ describe("App, authenticated", () => {
expect(await screen.findByRole("status", { name: "Ask next action" })).toHaveTextContent(
"Related nodes for Priya Nair are current. Ask about this lineage next.",
);
await waitFor(() => expect(document.getElementById("post-ask")).toHaveFocus());
});

it("lets post_admin rebuild the period report", async () => {
Expand Down
9 changes: 9 additions & 0 deletions frontend/src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -684,6 +684,15 @@ function KeymanPanel({
};
}, [accessToken, landFirstRelated, related]);

useEffect(() => {
if (!landFirstRelated || !landedRelatedName || landedRelated === null) {
return;
}
const heading = document.getElementById("post-ask");
heading?.focus();
heading?.scrollIntoView?.({ block: "nearest" });
}, [landFirstRelated, landedRelatedName, landedRelated]);

useEffect(() => {
if (!focusPerson) return;
const requestId = ++relatedRequest.current;
Expand Down
2 changes: 1 addition & 1 deletion lineageweave/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,4 +55,4 @@
"sentence_excerpts",
]

__version__ = "2.2.0"
__version__ = "2.3.0"
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[project]
name = "lineageweave"
version = "2.2.0"
version = "2.3.0"
description = "Reconstructs git-branch-style lineage DAGs from scattered short records using multi-channel score fusion and LLM adjudication."
readme = "README.md"
license = { text = "MIT" }
Expand Down
2 changes: 1 addition & 1 deletion uv.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.