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/1.2.0-analysis-run-opened-member-next-action.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# 1.2.0 Name the next action on the opened Demo Corp member

Open Public post from the landed Demo Corp report. The panel says that
post is open and to read Event Lineage, Keyman, and evaluation. Mean θ
stays on the report panel.
10 changes: 10 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,16 @@ 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.2.0] - 2026-08-17

### Added

- Opening **Public post** from the landed Demo Corp report now names
the next action: that post is open from Demo Corp, so read Event
Lineage, Keyman, and evaluation. The opened member is current. Mean
θ stays on the report panel. No TEPP theta is invented. No cutoff
body is invented (ADR 0016).

## [1.1.0] - 2026-08-17

### Added
Expand Down
6 changes: 4 additions & 2 deletions CLAUDE.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,5 +48,7 @@ chip name contains `Corporate entity: Demo Corp` and the persisted
mean θ. The period-report panel says Demo Corp is the opened grouping
and to read its mean θ and member posts, then open a post. Those
members land immediately under that next action, ahead of Other Corp
and the week strip. Changing the week first still focuses the report
period field. Mean θ stays on the period-report panel.
and the week strip. Opening Public post names the next action: read
Event Lineage, Keyman, and evaluation on that post. Changing the week
first still focuses the report period field. Mean θ stays on the
period-report panel.
6 changes: 4 additions & 2 deletions docs/adr/0024-seed-period-report-analysis-run.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,10 @@ focused chip name contains the visible Corporate entity caption and
the persisted mean θ. The period-report panel names the next action:
read that grouping's mean θ and member posts, then open a post. Those
members land immediately under that next action, ahead of other
groupings and the week strip. Mean θ remains on the period-report
panel. Re-seed is idempotent on `demo-report-seed-2026-w02`.
groupings and the week strip. Opening a member post names the next
action: read Event Lineage, Keyman, and evaluation on that post. Mean
θ remains on the period-report panel. Re-seed is idempotent on
`demo-report-seed-2026-w02`.

## References — APA 7th

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.1.0",
"version": "1.2.0",
"type": "module",
"scripts": {
"dev": "vite",
Expand Down
9 changes: 9 additions & 0 deletions frontend/src/App.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2248,13 +2248,22 @@ describe("App, authenticated", () => {
name: /open report post: public post/i,
});
expect(member).toHaveTextContent("θ 0.91");
expect(member).not.toHaveAttribute("aria-current");
const status = screen.getByRole("status");
const demoMean = screen.getByText(/Demo Corp: mean θ 0\.42/);
const weekChip = screen.getByRole("button", { name: /open report period 2026-W03/i });
expect(status.compareDocumentPosition(demoMean) & Node.DOCUMENT_POSITION_FOLLOWING).not.toBe(0);
expect(demoMean.compareDocumentPosition(weekChip) & Node.DOCUMENT_POSITION_FOLLOWING).not.toBe(0);
await userEvent.click(member);
await waitFor(() => expect(screen.getByText("The full body text.")).toBeInTheDocument());
expect(member).toHaveAttribute("aria-current", "true");
expect(screen.getByRole("status")).toHaveTextContent(
"Public post is open from Demo Corp. Read Event Lineage, Keyman, and evaluation on this post.",
);
expect(screen.getByRole("status")).not.toHaveTextContent("then open a post");
expect(
screen.getAllByRole("heading", { name: "Event Lineage" }).length,
).toBeGreaterThanOrEqual(2);
} finally {
HTMLElement.prototype.scrollIntoView = originalScrollIntoView;
}
Expand Down
29 changes: 27 additions & 2 deletions frontend/src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2110,7 +2110,16 @@ function comparisonChipAccessibleName(
return `Compare ${comparisonGroupingTitle(groupingKind, groupingLabel)}, mean θ ${meanTheta.toFixed(2)}`;
}

function openedReportNextAction(groupingLabel: string): string {
function openedReportNextAction(
groupingLabel: string,
openedMemberTitle?: string | null,
): string {
if (openedMemberTitle) {
return (
`${openedMemberTitle} is open from ${groupingLabel}. ` +
"Read Event Lineage, Keyman, and evaluation on this post."
);
}
return (
`${groupingLabel} is the opened grouping. Read its mean θ and member posts below, then open a post.`
);
Expand Down Expand Up @@ -2140,6 +2149,7 @@ function ReportsPanel({
openedGroupingLabel,
onOpenGrouping,
landOnComparison,
selectedPostId,
}: {
accessToken: string;
canRebuild: boolean;
Expand All @@ -2152,6 +2162,7 @@ function ReportsPanel({
openedGroupingLabel?: string | null;
onOpenGrouping?: (groupingKey: string, groupingLabel: string) => void;
landOnComparison?: boolean;
selectedPostId?: string | null;
}) {
const [payload, setPayload] = useState<PeriodReports | null>(null);
const [index, setIndex] = useState<PeriodReportIndex | null>(null);
Expand Down Expand Up @@ -2222,6 +2233,14 @@ function ReportsPanel({
groupingIsOpened(grouping, groupingKey, groupingLabel),
)
: [];
const openedMemberTitle = selectedPostId
? orderedReports
.filter((report) =>
groupingIsOpened(grouping, report.grouping_key, report.grouping_label),
)
.flatMap((report) => report.members)
.find((member) => member.post_id === selectedPostId)?.post_title
: undefined;
const reportList =
payload === null && !error ? (
<p>Loading reports...</p>
Expand Down Expand Up @@ -2271,6 +2290,11 @@ function ReportsPanel({
<button
className="post-list-item"
aria-label={`Open report post: ${member.post_title}`}
aria-current={
selectedPostId && member.post_id === selectedPostId
? "true"
: undefined
}
onClick={() => onSelectPost(member.post_id)}
>
<span className="ticket-title">{member.post_title}</span>
Expand Down Expand Up @@ -2363,7 +2387,7 @@ function ReportsPanel({
)}
{openedGroupingLabel && (
<p className="post-meta" role="status">
{openedReportNextAction(openedGroupingLabel)}
{openedReportNextAction(openedGroupingLabel, openedMemberTitle)}
</p>
)}
{openedGroupingLabel && reportList}
Expand Down Expand Up @@ -2509,6 +2533,7 @@ function PostList({ accessToken }: { accessToken: string }) {
openedGroupingLabel={openedGroupingLabel}
onOpenGrouping={openComparedGrouping}
landOnComparison={landOnComparison}
selectedPostId={selectedPostId}
/>
<section className="popup-section lineage-home">
<div className="lineage-home-header">
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.1.0"
__version__ = "1.2.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.1.0"
version = "1.2.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.