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/2.5.0-name-first-ask-after-landed-chat.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# 2.5.0 Name the first Ask after landed chat

Open Public post from the landed Demo Corp members and the first
seeded Ask is named after landed chat. 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.5.0] - 2026-08-17

### Added

- Opening Public post from the landed Demo Corp members now names the
first Ask after landed chat: What happened between these events,
then read that answer. Home list opens do not add that copy. No
TEPP theta is invented. No cutoff body is invented (ADR 0016).

## [2.4.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.4.0",
"version": "2.5.0",
"type": "module",
"scripts": {
"dev": "vite",
Expand Down
15 changes: 15 additions & 0 deletions frontend/src/App.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -1490,6 +1490,7 @@ describe("App, authenticated", () => {
expect(screen.queryByRole("status", { name: "Keyman next action" })).not.toBeInTheDocument();
expect(screen.queryByRole("status", { name: "Related next action" })).not.toBeInTheDocument();
expect(screen.queryByRole("status", { name: "Ask next action" })).not.toBeInTheDocument();
expect(screen.queryByRole("status", { name: "Ask seed next action" })).not.toBeInTheDocument();
expect(screen.queryByText("Related to Ada West")).not.toBeInTheDocument();
expect(screen.queryByText("Related to Priya Nair")).not.toBeInTheDocument();
const popup = document.querySelector(".popup-panel");
Expand Down Expand Up @@ -2384,6 +2385,17 @@ describe("App, authenticated", () => {
const ask = within(popup as HTMLElement).getByRole("heading", { name: "Ask about this lineage" });
expect(askNext.compareDocumentPosition(ask) & Node.DOCUMENT_POSITION_FOLLOWING).not.toBe(0);
expect(ask.compareDocumentPosition(affiliate) & Node.DOCUMENT_POSITION_FOLLOWING).not.toBe(0);
const askSeed = await screen.findByRole("status", { name: "Ask seed next action" });
expect(askSeed).toHaveTextContent(
"What happened between these events? is the first Ask. Read that answer next.",
);
expect(ask.compareDocumentPosition(askSeed) & Node.DOCUMENT_POSITION_FOLLOWING).not.toBe(0);
expect(askSeed.compareDocumentPosition(affiliate) & Node.DOCUMENT_POSITION_FOLLOWING).not.toBe(0);
expect(
within(popup as HTMLElement).getByRole("button", {
name: "Ask seeded question: What happened between these events?",
}),
).toHaveAttribute("aria-current", "true");
await waitFor(() => expect(document.getElementById("post-ask")).toHaveFocus());
} finally {
HTMLElement.prototype.scrollIntoView = originalScrollIntoView;
Expand Down Expand Up @@ -2669,6 +2681,9 @@ describe("App, authenticated", () => {
const askNext = screen.getByRole("status", { name: "Ask next action" });
expect(askNext.compareDocumentPosition(ask) & Node.DOCUMENT_POSITION_FOLLOWING).not.toBe(0);
expect(ask.compareDocumentPosition(affiliate) & Node.DOCUMENT_POSITION_FOLLOWING).not.toBe(0);
expect(await screen.findByRole("status", { name: "Ask seed next action" })).toHaveTextContent(
"What happened between these events? is the first Ask. Read that answer next.",
);
await waitFor(() => expect(document.getElementById("post-ask")).toHaveFocus());
});

Expand Down
26 changes: 24 additions & 2 deletions frontend/src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,15 @@ function ChatCitations({
);
}

function ChatPanel({ postId, accessToken }: { postId: string; accessToken: string }) {
function ChatPanel({
postId,
accessToken,
nameFirstAsk,
}: {
postId: string;
accessToken: string;
nameFirstAsk?: boolean;
}) {
const [question, setQuestion] = useState("");
const [exchanges, setExchanges] = useState<ChatExchange[]>([]);
const [answer, setAnswer] = useState<ChatAnswer | null>(null);
Expand Down Expand Up @@ -206,6 +214,11 @@ function ChatPanel({ postId, accessToken }: { postId: string; accessToken: strin
<h3 id="post-ask" tabIndex={-1}>
Ask about this lineage
</h3>
{nameFirstAsk && exchanges[0] ? (
<p className="post-meta" role="status" aria-label="Ask seed next action">
{firstAskNextAction(exchanges[0].question_text)}
</p>
) : null}
{!seededOnly && (
<div className="chat-input-row">
<input
Expand All @@ -230,6 +243,11 @@ function ChatPanel({ postId, accessToken }: { postId: string; accessToken: strin
key={exchange.question_text}
className="chat-suggestion-chip"
aria-label={`Ask seeded question: ${exchange.question_text}`}
aria-current={
nameFirstAsk && exchanges[0]?.question_text === exchange.question_text
? "true"
: undefined
}
onClick={() => {
if (seededOnly) return;
setQuestion(exchange.question_text);
Expand Down Expand Up @@ -290,6 +308,10 @@ function relatedNodesCurrentNextAction(personName: string): string {
return `Related nodes for ${personName} are current. Ask about this lineage next.`;
}

function firstAskNextAction(questionText: string): string {
return `${questionText} is the first Ask. Read that answer next.`;
}

function EventLineageSection({
lineage,
graph,
Expand Down Expand Up @@ -931,7 +953,7 @@ function KeymanPanel({
</p>
) : null}
{afterList && landFirstRelated && landedRelatedName && landedRelated !== null ? (
<ChatPanel postId={postId} accessToken={accessToken} />
<ChatPanel postId={postId} accessToken={accessToken} nameFirstAsk />
) : null}
</>
);
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.4.0"
__version__ = "2.5.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.4.0"
version = "2.5.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.