Add history window controls and expand taxonomy pack support

- add 3Y/5Y/10Y financial history filtering and reorganize normalization details UI
- add new fiscal taxonomy surface/income bridge/KPI packs and update Rust taxonomy loading
- auto-detect Homebrew SQLite for native `sqlite-vec` in local dev/e2e with docs and env guidance
This commit is contained in:
2026-03-18 23:40:28 -04:00
parent f8426c4dde
commit 17de3dd72d
102 changed files with 14978 additions and 1316 deletions

View File

@@ -1,5 +1,6 @@
"use client";
import { cn } from "@/lib/utils";
import type {
DetailFinancialRow,
DimensionBreakdownRow,
@@ -27,12 +28,14 @@ type StatementRowInspectorProps = {
rowKey: string,
unit: SurfaceFinancialRow["unit"],
) => string;
showHeader?: boolean;
className?: string;
};
function InspectorField(props: { label: string; value: string }) {
return (
<div className="py-1.5">
<p className="text-[10px] uppercase tracking-[0.16em] text-[color:var(--terminal-muted)]">
<p className="text-[11px] text-[color:var(--terminal-muted)]">
{props.label}
</p>
<p className="text-sm font-medium text-[color:var(--terminal-bright)]">
@@ -57,16 +60,25 @@ export function StatementRowInspector(props: StatementRowInspectorProps) {
: null;
return (
<section className="border-t border-[color:var(--line-weak)] pt-4">
<header className="mb-3">
<h3 className="text-sm font-semibold text-[color:var(--terminal-bright)]">
Row Details
</h3>
<p className="text-xs text-[color:var(--terminal-muted)]">
Inspect compact-surface resolution, raw drill-down rows, and
dimensional evidence.
</p>
</header>
<section
className={cn(
props.showHeader === false
? ""
: "border-t border-[color:var(--line-weak)] pt-4",
props.className,
)}
>
{props.showHeader === false ? null : (
<header className="mb-3">
<h3 className="text-sm font-semibold text-[color:var(--terminal-bright)]">
Row Details
</h3>
<p className="text-xs text-[color:var(--terminal-muted)]">
Inspect compact-surface resolution, raw drill-down rows, and
dimensional evidence.
</p>
</header>
)}
{!selection ? (
<p className="text-sm text-[color:var(--terminal-muted)]">
@@ -132,7 +144,7 @@ export function StatementRowInspector(props: StatementRowInspectorProps) {
{selection.detailRows.length > 0 ? (
<div className="border-t border-[color:var(--line-weak)] pt-3">
<p className="text-[10px] uppercase tracking-[0.16em] text-[color:var(--terminal-muted)]">
<p className="text-[11px] text-[color:var(--terminal-muted)]">
Raw Detail Labels
</p>
<div className="mt-2 flex flex-wrap gap-2">