Repository navigation
refactor(ui): consolidate formatters, print-stream tokens, toasts and downloads - #31
Merged
Merged
Conversation
generateNotebookText had no callers in the app. Removing it does not change any calculation output. Co-Authored-By: Claude Haiku 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_014R1cEN52FNk9xt68YzjQae
Bisection and Simpson share formatFixed (toFixed). Trapezoid, Newton, Rectangles and Lagrange share formatTrimmed (toFixed + trailing zeros removed). Sweep keeps its negative-zero handling as formatTrimmedSigned. Call sites pass digits explicitly where the old default differed, so displayed values are unchanged. Co-Authored-By: Claude Haiku 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_014R1cEN52FNk9xt68YzjQae
Replace Tailwind amber/indigo/emerald/red utilities and the hardcoded Euler blue with the existing brand, cyan, pos and neg tokens so light and dark themes stay consistent. Updater splash screen is unchanged. Co-Authored-By: Claude Haiku 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_014R1cEN52FNk9xt68YzjQae
Regenerate every method card from scratch: light theme tokens, large English method names, Uzbek subtitle, MathJax formula panel. The generator no longer uses the dark palette. Co-Authored-By: Claude Haiku 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_014R1cEN52FNk9xt68YzjQae
Global ToastProvider shows short-lived error and success messages at the top of the screen. The gradient border rotates as a live cue and stops when the user prefers reduced motion. Co-Authored-By: Claude Haiku 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_014R1cEN52FNk9xt68YzjQae
Errors and parse notices were rendered at the bottom of the form, where they were easy to miss. They now appear as toasts. The equation hint uses y'' - x y' + 2x y = 0.8. Co-Authored-By: Claude Haiku 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_014R1cEN52FNk9xt68YzjQae
A third toast now replaces the oldest one instead of stacking three. Co-Authored-By: Claude Haiku 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_014R1cEN52FNk9xt68YzjQae
Input and solver errors now use the shared toast instead of the inline note below the form. Co-Authored-By: Claude Haiku 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_014R1cEN52FNk9xt68YzjQae
New /download page reads the latest GitHub release, detects the visitor's platform and offers the matching installer, with all platforms listed. Also adds a Download entry to the navigation and the locale strings. Co-Authored-By: Claude Haiku 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_014R1cEN52FNk9xt68YzjQae
Co-Authored-By: Claude Haiku 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_014R1cEN52FNk9xt68YzjQae
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
This branch was successfully deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Consolidates duplicated result formatters, moves off-palette colors to theme tokens, rebuilds all Open Graph images in the light print-stream style, shows BVP/Galerkin errors as toasts, and adds a Download page that serves the latest GitHub release.
Changes
lib/format.ts; removed an unused notebook generator from Euler.brand,cyan,pos,negtokens.scripts/generate-og-images.ts(English method names, light theme) and regenerated all OG PNGs.ToastProvider(max two visible toasts, oldest closes first, rotating gradient border). BVP and Galerkin errors use it.y'' - x y' + 2x y = 0.8./downloadpage: reads the latest release, detects the platform, offers the matching installer. Linked from the nav and the About page.Testing
bun run lint: passes.bun run build: passes.formatLagrangedefault-digits case, and all call sites now pass digits explicitly.bunx tsc --noEmit: one pre-existing error incomponents/app-shell.tsx(@/public/logo.webpmodule type); not introduced here.Notes
master.api.github.comfrom the browser; if that fails it falls back to the releases page.Generated by Claude Code