Release govoplan-reporting v0.1.21: preserve calculated measure bindings

This commit is contained in:
2026-09-08 01:32:52 +02:00
parent d7e7890291
commit f2e42cecfe
8 changed files with 125 additions and 17 deletions
+12 -7
View File
@@ -34,6 +34,7 @@ import { FormGrid,
SelectionListItem,
SelectionListItemContent,
StatusBadge,
TableActionGroup,
ToggleSwitch,
hasScope,
WorkspaceActionBar,
@@ -543,7 +544,7 @@ function ReportTable({ execution, onDrill }: { execution: ReportExecution; onDri
const [page, setPage] = useState(0);
useEffect(() => setPage(0), [execution.execution_id]);
const columns = useMemo<DataGridColumn<Record<string, unknown>>[]>(() => {
const result = execution.schema.map((field) => ({
const result: DataGridColumn<Record<string, unknown>>[] = execution.schema.map((field) => ({
id: field.name,
header: humanize(field.name),
width: "1fr",
@@ -559,16 +560,20 @@ function ReportTable({ execution, onDrill }: { execution: ReportExecution; onDri
result.push({
id: "drill",
header: "Detail",
columnType: "actions",
sticky: "end",
resizable: false,
align: "right",
width: 74,
minWidth: 74,
maxWidth: 74,
render: (row) => (
<IconButton
label="Show authorized contributing rows"
icon={<ChevronRight size={16} />}
variant="ghost"
onClick={() => onDrill(row)}
/>
<TableActionGroup actions={[{
id: "drill",
label: "Show authorized contributing rows",
icon: <ChevronRight size={16} aria-hidden="true" />,
onClick: () => onDrill(row)
}]} />
)
});
}