Repository navigation
Refactoring 2026-08 - #81
Merged
Merged
Conversation
AI-generated PR feedback was:
- `CalculatorForm.vue:129-179` manipulates `window.history` directly and installs its own `popstate` listener. Vue Router therefore does not know when calculator query parameters change; `useRoute().query` can remain stale. It works today because nothing else observes the query, but it creates two sources of truth. Prefer `useRouter().push()` and watching `useRoute().query`.
- Internal navigation still uses ordinary `<a>` elements in `SiteHeader.vue`, `SiteFooter.vue`, and the content components. Consequently, every navigation performs a full reload and bypasses NuxtLink prefetching/client routing. Using `<NuxtLink>` would make this a more idiomatic Nuxt migration. Matomo would then need route-change tracking.
- `CalculatorForm.vue` is becoming a “god component.” Its 256 lines handle calculation orchestration, result conversion, localization, analytics, clipboard access, URL synchronization, history events, KaTeX rendering, and markup. I would extract at least query synchronization and analytics into composables/utilities. Result rendering could also become separate components.
- `CalculatorForm.vue:223-249` unnecessarily uses `v-html` for LaTeX derived partly from user input. The parser currently restricts allowable characters, so I did not find an exploitable input, but this remains a fragile HTML-injection sink. Text interpolation followed by KaTeX auto-rendering would preserve escaping.
- `CalculatorForm.vue:113-120` uses the deprecated `document.execCommand("copy")` workaround. `navigator.clipboard.writeText()` should be primary, with the textarea approach only as a compatibility fallback.
- `site.js:3` uses `Object.freeze()` and describes the returned locale copy as immutable, but the freeze is shallow; nested objects and `fieldOptions` arrays remain mutable. Either deep-freeze it or avoid claiming immutability.
- Each non-class JavaScript or Vue file needs file-level JSDoc with an `@file` tag explaining what this file is for.
70 convert project to nuxt
…ate-test-cases-and-a-github-pipeline
Can't believe this was wrong for all these years. I'm sorry to all the students I might have confused.
…github-pipeline 68 create test cases and a GitHub pipeline
feat: add ESLint configuration and scripts for linting chore: update Playwright configuration to include web server setup refactor: replace hardcoded routes in sitemap generation with shared public routes feat: create shared public routes module for consistent route management refactor: remove global setup file for Playwright tests test: enhance site tests with dynamic route data and additional accessibility checks chore: simplify static server implementation for Playwright tests
…ments Refactoring 2026 08 improvements
Migrate to bootstrap 5 and Nuxt fonts
…omatically-deploy-to-web-hosting-using-gh-actions
the long name was annoying
This reverts commit 58c5d77.
This workflow now also handles the deployment
Reason: GitHub uses the following format in its pipeline reports: CI/CD / Browser tests (pull_request) The slash in "CI/CD" makes this hard to read.
…web-hosting-using-gh-actions 75 automatically deploy to web hosting using gh actions
Closed
Linting complained about the empty <template></template> tag.
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.
The architecture of the project was heavily refactored to make it more state-of-the-art. However, from a user perspective nothing changed. The look-and-feel is exactly the same as before.
The following things were changed:
The math engine itself was not changed (except for some small formatting/JSDoc issues and a minor bug regarding matrix exponentiation with exponent 0).
I used Codex / GPT 5.6 Sol for large parts of the refactoring. However, I reviewed and tested all the code manually too.