Skip to content

[WIP] Experimental feature: Sankey chart #12490

[WIP] Experimental feature: Sankey chart

[WIP] Experimental feature: Sankey chart #12490

Triggered via pull request January 12, 2025 22:37
Status Failure
Total duration 1m 21s
Artifacts

check.yml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

20 errors and 14 warnings
typecheck: packages/desktop-client/src/components/reports/Overview.tsx#L370
Argument of type '"net-worth-card" | "cash-flow-card" | "spending-card" | "summary-card" | "calendar-card" | "sankey-card"' is not assignable to parameter of type '"net-worth-card" | "cash-flow-card" | "spending-card" | "markdown-card" | "summary-card" | "calendar-card" | "custom-report"'.
typecheck: packages/desktop-client/src/components/reports/Overview.tsx#L563
Property 'type' does not exist on type 'never'.
typecheck: packages/desktop-client/src/components/reports/Overview.tsx#L565
Property 'i' does not exist on type 'never'.
typecheck: packages/desktop-client/src/components/reports/Overview.tsx#L567
Property 'meta' does not exist on type 'never'.
typecheck: packages/desktop-client/src/components/reports/Overview.tsx#L570
Property 'i' does not exist on type 'never'.
typecheck: packages/desktop-client/src/components/reports/reports/Sankey.tsx#L33
Type 'SankeyWidget' does not satisfy the constraint 'Widget'.
typecheck: packages/desktop-client/src/components/reports/reports/Sankey.tsx#L192
Type '{ data: { x: string; y: number; assets: string; debt: string; change: string; networth: string; date: string; }[]; start: string; end: string; }' is not assignable to type 'DataEntity'.
typecheck: packages/desktop-client/src/components/reports/reports/SankeyCard.tsx#L108
Type '{ data: { x: string; y: number; assets: string; debt: string; change: string; networth: string; date: string; }[]; start: string; end: string; }' is missing the following properties from type 'DataEntity': intervalData, totalDebts, totalAssets, netAssets, and 2 more.
typecheck: packages/desktop-client/src/hooks/useFeatureFlag.ts#L5
Property 'sankeyChart' is missing in type '{ goalTemplatesEnabled: false; actionTemplating: false; upcomingLengthAdjustment: false; contextMenus: false; openidAuth: false; }' but required in type 'Record<FeatureFlag, boolean>'.
typecheck
Process completed with exit code 2.
lint: packages/desktop-client/src/components/reports/Overview.tsx#L563
Replace `(enableSankey·&&·item.type·===·'sankey-card')` with `enableSankey·&&·item.type·===·'sankey-card'`
lint: packages/desktop-client/src/components/reports/graphs/SankeyGraph.tsx#L3
Replace `·Layer,·Rectangle,·ResponsiveContainer,·Sankey,·Tooltip·` with `⏎··Layer,⏎··Rectangle,⏎··ResponsiveContainer,⏎··Sankey,⏎··Tooltip,⏎`
lint: packages/desktop-client/src/components/reports/graphs/SankeyGraph.tsx#L4
Replace `·balanceTypeOpType,·DataEntity,·RuleConditionEntity·` with `⏎··balanceTypeOpType,⏎··DataEntity,⏎··RuleConditionEntity,⏎`
lint: packages/desktop-client/src/components/reports/graphs/SankeyGraph.tsx#L14
Replace `·amountToCurrency,·amountToInteger,·integerToAmount·` with `⏎··amountToCurrency,⏎··amountToInteger,⏎··integerToAmount,⏎`
lint: packages/desktop-client/src/components/reports/graphs/SankeyGraph.tsx#L45
Replace `············` with `··········`
lint: packages/desktop-client/src/components/reports/graphs/SankeyGraph.tsx#L47
Replace `············` with `··········`
migrations
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
typecheck
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
lint
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
lint: packages/desktop-client/src/components/reports/ChooseGraph.tsx#L16
`./graphs/SankeyGraph` import should occur before import of `./graphs/StackedBarGraph`
lint: packages/desktop-client/src/components/reports/Overview.tsx#L44
There should be at least one empty line between import groups
lint: packages/desktop-client/src/components/reports/Overview.tsx#L45
There should be at least one empty line between import groups
lint: packages/desktop-client/src/components/reports/Overview.tsx#L45
`../../hooks/useFeatureFlag` import should occur before import of `../../hooks/useNavigate`
lint: packages/desktop-client/src/components/reports/Overview.tsx#L45
'useFeatureFlag' is defined but never used. Allowed unused vars must match /^(_|React)/u
lint: packages/desktop-client/src/components/reports/Overview.tsx#L46
`./reports/SankeyCard` import should occur before import of `./reports/SpendingCard`
lint: packages/desktop-client/src/components/reports/ReportRouter.tsx#L11
`./reports/Sankey` import should occur before import of `./reports/Spending`
lint: packages/desktop-client/src/components/reports/ReportTopbar.tsx#L25
There should be at least one empty line between import groups
lint: packages/desktop-client/src/components/reports/ReportTopbar.tsx#L26
`../../hooks/useFeatureFlag` import should occur before import of `../../icons/v1`
lint: packages/desktop-client/src/components/reports/graphs/SankeyGraph.tsx#L1
There should be at least one empty line between import groups
test
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636