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.d/1.3.0-focus-event-lineage-from-report-member.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# 1.3.0 Focus Event Lineage from a report member

Open Public post from the landed Demo Corp members and the popup Event
Lineage heading takes focus. Home list opens do not.
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,14 @@ 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).

## [1.3.0] - 2026-08-17

### Added

- Opening Public post from the landed Demo Corp members focuses the
popup Event Lineage heading, matching the next-action copy. Home
post-list opens do not steal that focus. No TEPP theta is invented.

## [1.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": "1.2.0",
"version": "1.3.0",
"type": "module",
"scripts": {
"dev": "vite",
Expand Down
3 changes: 3 additions & 0 deletions frontend/src/App.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -1470,6 +1470,7 @@ describe("App, authenticated", () => {
// page, not a flat list -- two SVGs (home + popup) share the fork.
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();
});

it("shows a seeded Ask exchange without an orchestrator round-trip", async () => {
Expand Down Expand Up @@ -2264,6 +2265,7 @@ describe("App, authenticated", () => {
expect(
screen.getAllByRole("heading", { name: "Event Lineage" }).length,
).toBeGreaterThanOrEqual(2);
expect(document.getElementById("post-event-lineage")).toHaveFocus();
} finally {
HTMLElement.prototype.scrollIntoView = originalScrollIntoView;
}
Expand Down Expand Up @@ -2527,6 +2529,7 @@ 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();
});

it("lets post_admin rebuild the period report", async () => {
Expand Down
24 changes: 21 additions & 3 deletions frontend/src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -1163,6 +1163,7 @@ function PostDetailPopup({
canExtract,
graph,
liveBodyWarning,
focusEventLineage,
onClose,
onSelectPost,
}: {
Expand All @@ -1171,6 +1172,7 @@ function PostDetailPopup({
canExtract: boolean;
graph: LineageGraph | null;
liveBodyWarning?: string | null;
focusEventLineage?: boolean;
onClose: () => void;
onSelectPost?: (postId: string) => void;
}) {
Expand Down Expand Up @@ -1231,6 +1233,15 @@ function PostDetailPopup({
fetchPostVocEvidence(accessToken, postId).then(setVocEvidence).catch(() => setVocEvidence(null));
}, [postId, accessToken]);

useEffect(() => {
if (!focusEventLineage || !post) {
return;
}
const heading = document.getElementById("post-event-lineage");
heading?.focus();
heading?.scrollIntoView?.({ block: "nearest" });
}, [focusEventLineage, post]);

return (
<div className="popup-backdrop" onClick={onClose}>
<div className="popup-panel" onClick={(event) => event.stopPropagation()}>
Expand Down Expand Up @@ -1372,7 +1383,9 @@ function PostDetailPopup({
/>

<section className="popup-section">
<h3>Event Lineage</h3>
<h3 id="post-event-lineage" tabIndex={-1}>
Event Lineage
</h3>
<EventLineageSection
lineage={lineage}
graph={graph}
Expand Down Expand Up @@ -1573,6 +1586,7 @@ function analysisRunDigestPrefix(digest: string): string {
type SelectPostOptions = {
liveAfterCutoff?: boolean;
knowledgeCutoff?: string;
fromReportMember?: boolean;
};

/**
Expand Down Expand Up @@ -2153,7 +2167,7 @@ function ReportsPanel({
}: {
accessToken: string;
canRebuild: boolean;
onSelectPost: (postId: string) => void;
onSelectPost: (postId: string, options?: SelectPostOptions) => void;
period: string;
onSelectPeriod: (periodCode: string) => void;
grouping: string;
Expand Down Expand Up @@ -2295,7 +2309,7 @@ function ReportsPanel({
? "true"
: undefined
}
onClick={() => onSelectPost(member.post_id)}
onClick={() => onSelectPost(member.post_id, { fromReportMember: true })}
>
<span className="ticket-title">{member.post_title}</span>
<span className="post-badge">θ {member.theta_eap.toFixed(2)}</span>
Expand Down Expand Up @@ -2442,6 +2456,7 @@ function PostList({ accessToken }: { accessToken: string }) {
const [openedGroupingKey, setOpenedGroupingKey] = useState<string | null>(null);
const [openedGroupingLabel, setOpenedGroupingLabel] = useState<string | null>(null);
const [landOnComparison, setLandOnComparison] = useState(false);
const [openedFromReportMember, setOpenedFromReportMember] = useState(false);

function openReportFromAnalysisRun(
periodCode: string,
Expand Down Expand Up @@ -2479,12 +2494,14 @@ function PostList({ accessToken }: { accessToken: string }) {
setSelectedPostId(postId);
setOpenedAfterCutoff(Boolean(options?.liveAfterCutoff));
setOpenedCutoffIso(options?.knowledgeCutoff ?? null);
setOpenedFromReportMember(Boolean(options?.fromReportMember));
}

function closeSelectedPost() {
setSelectedPostId(null);
setOpenedAfterCutoff(false);
setOpenedCutoffIso(null);
setOpenedFromReportMember(false);
}

useEffect(() => {
Expand Down Expand Up @@ -2572,6 +2589,7 @@ function PostList({ accessToken }: { accessToken: string }) {
liveBodyWarning={
openedAfterCutoff ? analysisRunOpenedBodyWarning(openedCutoffIso) : null
}
focusEventLineage={openedFromReportMember}
onClose={closeSelectedPost}
onSelectPost={selectPost}
/>
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__ = "1.2.0"
__version__ = "1.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 = "1.2.0"
version = "1.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.