8000 Remove unused translation keys, CSS, embedded files and dependencies · Issue #311 · alexbeeken/skrongle-mini · GitHub
[go: up one dir, main page]

Skip to content

Remove unused translation keys, CSS, embedded files and dependencies #311

Backlog

Description

@alexbeeken

Translation keys: 21 of 2,838 in en.yaml are referenced nowhere (126 lines over the six files), after leaving out 139 keys whose names are built when the program runs:

auth.login.or, auth.register.or, common.js.close (sent to every page), docs.documentation, docs.js.copied, docs.js.copy, docs.js.selected, editor.js.answer_true, editor.js.answer_false, landing.every_way_lead, landing.small_h2, the eight landing.spec_* keys, profile.account.and, profile.password.too_many, study.counts.n_mastered, study.counts.n_of_m_passed, study.counts.n_weak.

Four more go with the dead code in the other issues: study.via.legacy, sprint.describe.hear_type, sprint.history.sorted_wrongly, courses.editor.loads_notice.

CSS, about 45 lines of static/style.css: .ai-row, .switch-ctl, .switch-input, .when-on, .when-off (:1424-1432); .land-small, .land-specs (:1212-1231); .profile-delete (:962-965); .content-report* (:1945-1948); .chip-alert; .field-problem; .has-prefix, .field-prefix, .field-info; .face-en; .theming; and .sprint-banner in sprint.css:75.

Embedded and never served: i18n/README.md (the folder is embedded with no filter, src/i18n.rs:36); data/test-courses/test-course/AUTHORING.md (src/mcp/format.rs:13).

Dependencies: futures-core and http are declared and not used directly (every use is axum::http::…); axum's matched-path feature is not used. They stay in the tree through axum, so the binary does not shrink; the manifest just stops claiming them.

Scripts: scripts/dev-start-orphan-check.sh is referenced by nothing. scripts/bundle-core.sh --check is run by no workflow or test, so a stale static/core.js is not caught: add it to CI. scripts/e2e-lint.sh:6,63-64 and docs/testing.md:922 scan e2e/journeys.ts, which does not exist.

No template and no static file is orphaned.

From the code review of 24 November 2026. Line numbers are as of 0.5.0 (2547b36).

Activity

  1. added
    review
    on Nov 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    review

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      0