c8d4f22b59
The HTML export feed, sidebar tree, and TUI session tree did not handle the developer role, so plan content injected after /plan approval (and any other developer messages) was hidden from /export and shown as a bare [developer] label in /tree. Renders developer messages in the main feed with a dimmed .developer-message style, labels them in the sidebar tree, counts them in header stats, and shows their content in the TUI tree selector so search matches the body. Closes #753. Co-Authored-By: omp <noreply@oh-my-pi.dev>
19 lines
645 B
TypeScript
19 lines
645 B
TypeScript
import { describe, expect, it } from "bun:test";
|
|
import { TEMPLATE } from "../../src/export/html/template.generated";
|
|
|
|
describe("HTML export template developer message support", () => {
|
|
it("renders developer-role messages in the main feed", () => {
|
|
expect(TEMPLATE).toContain("msg.role === 'developer'");
|
|
expect(TEMPLATE).toContain("developer-message");
|
|
});
|
|
|
|
it("labels developer entries in the sidebar tree", () => {
|
|
expect(TEMPLATE).toContain("tree-role-developer");
|
|
expect(TEMPLATE).toContain("developer:");
|
|
});
|
|
|
|
it("counts developer messages in header stats", () => {
|
|
expect(TEMPLATE).toContain("developerMessages");
|
|
});
|
|
});
|