Repository navigation
ci: check every merge to the end, every page under the CSP, styles only in assets - #842
Merged
Merged
Conversation
- ci.yml cancelled a running check whenever a newer push came, on main too: a quick next merge left the one before it unchecked (#823 and #826 were). It now cancels only on pull requests, as docker-publish.yml already does. - docker-all-in-one.yml was a stub that only said to use docker-publish.yml; it goes. - FORCE_JAVASCRIPT_ACTIONS_TO_NODE24 did nothing any more: every pinned action, and every action inside the composite ones, runs on Node 24. - The shellcheck, hadolint and actionlint commands had their line continuations flattened into runs of spaces; back on two lines each. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
AGENTS.md settles that styles live in frontend/src/assets/*.css, yet 14 components still had <style> blocks (about 360 lines). Each block now sits in the CSS file its component's pages already load: the skeletons and CommandFailure in main.css, the install and directions dialogs in modals.css, the licence plate in settings.css, the map's key, trip list and filters in map.css, the phone GPS key in tripLines.css and the statistics layout in statistics.css. All their classes are the component's own, so dropping the scoping changes nothing, with three exceptions: - SkeletonCard's .status-card__body rule was a copy of the global one. - Statistics' :deep(canvas) becomes a plain descendant selector. - The install button (.btn) and the coordinates field (.form-control) were held by the scoped attribute against rules that load later; they are nested under their dialog instead. The slider theme MapFilterPanel @imported is a script import now. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The rule that styles live in src/assets/*.css was only written down, so 14 components drifted from it unnoticed. eslint-plugin-vue's no-restricted-block and no-restricted-static-attribute now hold it, in pnpm check locally and in CI's frontend lint. A :style binding, which sets a custom property through the DOM, is left alone. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The smoke test only opened the dashboard, the map and the statistics, so the trip log, charge history, planner, logs and route editor never ran under the production nginx and Content-Security-Policy. Each is now opened up to its heading and something of its own, with no violation. That showed a leak: the settings test that switches the car through battery, plug-in and plain hybrid saved each choice on the demo server, which kept plain hybrid and so took the charge history away from any test running alongside. The car's settings and its list are now answered in that test, from the car's real settings, and nothing is saved. The demo car's VIN is one constant in the fixtures. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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.
A review of CI (all twelve workflows, the shared setup action, the e2e tests and recent run timings), with what it found fixed. One commit per finding.
1. Every merge to main is checked to the end
ci.ymlcancelled a running check whenever a newer push came, onmaintoo, so a quick next merge left the one before it unchecked: of the last 50 runs on main, those of #823 and #826 never finished. It now cancels on pull requests only, asdocker-publish.ymlalready does.2. The smoke test opens every page
It opened only the dashboard, the map and the statistics, so the trip log, charge history, Planner, logs and route editor never ran under the production nginx and Content-Security-Policy, which is what the test is for. Each now opens up to its heading and something of its own, with no violation (the route editor on a saved trip of the last month, found through the API).
Adding them exposed a leak in
settings.spec.ts: the test that switches the car through battery, plug-in and plain hybrid saved each choice on the demo server. The server kept "plain hybrid", which took the charge history away from any test running alongside. That test now answers the car's settings and its car list itself, from the car's real settings, and saves nothing. The demo VIN is one constant infixtures.ts.3. Styles only in assets, and lint holds it
AGENTS.md settles "no
<style>blocks in components", yet 14 components had them (about 360 lines). Each block moved into the CSS file its component's pages already load:main.css,modals.css,settings.css,map.css,tripLines.cssandstatistics.css. All the classes are the component's own, so dropping the scoping changes nothing, except where noted:SkeletonCard's.status-card__bodyrule was a copy of the global one, and goes.:deep(canvas)in the statistics becomes a plain descendant selector..btn) and the directions dialog's coordinates field (a.form-control) won only through the scoped attribute against rules that load later. They are nested under their dialog instead, which keeps the same specificity.MapFilterPanel@imported is a script import.ESLint now fails on a
<style>block or astyleattribute in a component (vue/no-restricted-block,vue/no-restricted-static-attribute), inpnpm checkand in CI's frontend lint. A:stylebinding, which sets a custom property through the DOM, is left alone. AGENTS.md says so.4-6. Cleanup
docker-all-in-one.yml, a stub that only said to usedocker-publish.yml, goes.FORCE_JAVASCRIPT_ACTIONS_TO_NODE24goes from ten workflows: every pinned action, and every action inside the composite ones (trivy-action, setup-trivy, upload-pages-artifact, cosign-installer), already runs on Node 24.Checked, left as is
A NuGet cache (restore takes 7 to 17 s), the pnpm store and the Playwright browser (both already cached). Changed-file skipping, pinned actions, timeouts and least-privilege permissions are in place throughout.
Testing
pnpm checkpasses (2373 tests). actionlint passes on the workflows.styleattribute and a<style>block, and pass the tree.🤖 Generated with Claude Code