chore: initialize repository baseline
Import the existing Electron + React + TypeScript app as the version-control baseline before the scanner rework (C# input/capture sidecar, resolution-anchored layout profiles, OCR preprocessing, eval harness, rescan-merge, GOOD interop). Housekeeping in this commit: - Remove orphaned temp_inputhelper_block.ts (duplicate of the input-helper script). - Ignore .claude/scheduled_tasks.lock local session state. - Add .gitattributes to normalize line endings (LF in repo). Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
import type { AppSnapshot } from "../../../types/domain";
|
||||
import type { BuildSuggestion } from "../../../types/domain";
|
||||
|
||||
interface UseBuildsViewModelInput {
|
||||
snapshot: AppSnapshot;
|
||||
}
|
||||
|
||||
export interface BuildsViewModel {
|
||||
visibleBuilds: Array<{
|
||||
build: BuildSuggestion;
|
||||
}>;
|
||||
}
|
||||
|
||||
export function useBuildsViewModel({ snapshot }: UseBuildsViewModelInput): BuildsViewModel {
|
||||
return {
|
||||
visibleBuilds: snapshot.builds.slice(0, 9).map((build) => ({ build })),
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user