Skip to content
Source
Sign inSign up
pingdotgg/t3code

feat(web,mobile): background wakes fold under one Worked-for row per prompt #24692

Closedt3dotgg(GitHub profile, opens in a new tab)wants to merge 16 commits intomain fromt3/response-group-foldsopened View on GitHub

Showing 24 changed files with 57 additions and 7 deletions (loading 21).

x
0 of 24 viewed, 24 left
12 additions and 0 deletionsapps/mobile/src/features/review/reviewModel.test.tsModified
View file
@@ -3,6 +3,8 @@
import {
applyReviewDiffMetadata,
buildReviewParsedDiff,
+ getReviewSectionIdForCheckpoint,
+ parseReviewRangeSectionId,
resolveReviewSelectedSectionId,
type ReviewSectionItem,
} from "./reviewModel";
@@ -304,3 +306,13 @@
expect(applyReviewDiffMetadata(parsed, null)).toEqual(parsed);
});
});
+​
+describe("review range sections", () => {
+ it("round-trips a response group's turn range through its section id", () => {
+ const id = getReviewSectionIdForCheckpoint({ checkpointTurnCount: 9, rangeFromTurnCount: 4 });
+ expect(id).toBe("turns:4:9");
+ expect(parseReviewRangeSectionId(id)).toEqual({ fromTurnCount: 4, toTurnCount: 9 });
+ expect(getReviewSectionIdForCheckpoint({ checkpointTurnCount: 9 })).toBe("turn:9");
+ expect(parseReviewRangeSectionId("turn:9")).toBeNull();
+ });
+});
22 additions and 5 deletionsapps/mobile/src/features/review/reviewModel.tsModified
View file
@@ -103,7 +103,9 @@
​