Skip to content

Daily review 2026-06-24 - #59

Draft
NghaReformer wants to merge 1 commit into
mainfrom
daily-review/2026-06-24
Draft

Daily review 2026-06-24#59
NghaReformer wants to merge 1 commit into
mainfrom
daily-review/2026-06-24

Conversation

@NghaReformer

Copy link
Copy Markdown
Owner

Daily Review — 2026-06-24

Automated codebase audit. Full report at reports/daily/2026-06-24.md.


1. Bugs & Issues

HIGH

1.1 Hardcoded hex colors in CategoryBreakdownDonut.svelte

File: src/lib/playgrounds/bank-reconciliation/components/CategoryBreakdownDonut.svelte:31–39

Nine hex literals are defined in a CATEGORY_COLORS constant and injected into the DOM
via style="background: {seg.color}" (line 120) and as an SVG stroke attribute (line 94).
This bypasses the design system entirely — if the theme palette changes, the donut chart
will silently diverge.

Suggested fix: Add nine --chart-cat-* tokens to src/lib/theme/tokens.ts, generate
CSS vars via the existing css-generator.ts pipeline, and replace the hex literals with
var(--chart-cat-*) strings.


MEDIUM

1.2 Hardcoded #fff in EntryHistory.svelte

File: src/lib/playgrounds/journal-entry/components/EntryHistory.svelte:400

color: #fff; — white hardcoded in CSS instead of a theme token.

Suggested fix: Replace with var(--text-on-accent) or var(--bg) depending on the
element's background context.

1.3 Unknown --orange token with hardcoded hex fallback in KpiStrip.svelte

File: src/lib/components/playground/KpiStrip.svelte:76

color: var(--orange, #f59e0b)--orange is not declared in tokens.ts. The theme
defines --amber (#f5a623). The hex fallback always activates.

Suggested fix: Replace with var(--amber), or add orange to tokens.ts.


LOW

1.4 any type on dynamic component loaders

File: src/lib/contracts/playground.ts:69–72

Suppressed @typescript-eslint/no-explicit-any on Component<any> dynamic imports.
Acceptable for now; revisit when Svelte stabilises ComponentType.


2. Checks Passed Clean

Check Status
Svelte 5 runes violations Clean
i18n coverage Clean
Server boundary Clean
Unhandled async errors Clean
Technical debt markers (TODO/FIXME) Clean
Justified inline style= usage All dynamic/computed values
console.* calls 5 — all legitimate error logging

3. New Playground Ideas

3.1 VAT / TVA Calculator — Simulateur de TVA

Target: Licence 2–3 | Fixes confusion between TVA collectée vs TVA déductible and
net position (à décaisser / crédit reporté). Exposes OHADA-zone rate differences
(17.5–20 %).

3.2 Payroll Builder — Simulateur de bulletin de paie

Target: Licence 3 / professional | Gross → cotisations sociales → IRPP → net, with
country profiles (CNPS-CI, CNSS-CM, IPRES-SN). Goal-seek from desired net to gross.

3.3 Inventory Valuation — Évaluation des stocks

Target: Licence 2 | FIFO / CUMP / LIFO comparison; shows profit and COGS impact of
method choice. LIFO included comparatively (prohibited under SYSCOHADA but tested).

3.4 Financial Ratio Analyser — Analyseur de ratios financiers

Target: Licence 3 / Master | Bilan + compte de résultat → liquidity, solvency, ROE,
rotation ratios with sector benchmarks and drag-to-restructure simulation.

3.5 Cash Flow Statement Builder — Constructeur de tableau de flux

Target: Master / professional | Indirect method; learner classifies events into
operating/investing/financing, validates against SYSCOHADA-Révisé format tableau.


Generated by automated daily review routine.


Generated by Claude Code

Automated daily audit: 3 hardcoded-color violations found (CategoryBreakdownDonut
hex palette, EntryHistory #fff, KpiStrip --orange fallback). All Svelte 5 runes,
i18n, server-boundary, and a11y checks passed clean. Five new playground proposals
added (TVA, Payroll, Inventory, Ratio Analyser, Cash Flow Builder).
@vercel

vercel Bot commented Jun 24, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
ohadalearn Ready Ready Preview, Comment Jun 24, 2026 11:09pm

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants