Remove em and en dashes: resync the vendored design system and clean up Tinker's own files #118

Open
opened 2026-11-22 19:55:55 -05:00 by jared · 0 comments
Owner

LotusGuild/web_template#3 (merged 2026-11-22, upstream 8286bb2) removed every em and en dash from the shared design system. That's house style: no em or en dashes anywhere, including UI text, titles, comments, docs and messages.

Where Tinker stands

Location Dashes
Vendored assets/js/base.js and assets/css/base.css (both have local edits) 152
Tinker's own files 317, across 73 files (counting the characters and — / –)

Some of them are visible to users. For example:

  • the page title in views/layout_header.php is <page> &mdash; <app>;
  • views/error_500.php has the title 500 &mdash; Something Went Wrong.

What to do

  1. Resync the vendored files without losing Tinker's local edits. Diff each file against the upstream version it came from, then apply that diff on top of upstream 8286bb2.
    • The upstream dash commit changes comments, plus a few strings users see:
      • empty values in lt.fmt show -;
      • the boot line reads ALL SYSTEMS NOMINAL: <app>;
      • the offline banner and toast use a colon or a comma.
  2. Switch page titles to Page | App. lt.boot now gets the app name from the title with split(' | '), so this keeps the two consistent.
  3. Replace the dashes in Tinker's own files:
    • in prose, use a colon, comma, parentheses or a hyphen;
    • in number ranges, use - or "to";
    • where a placeholder means "no value", use -.
  4. Add a CI check so they don't come back. Pulse's step "No em or en dashes" in .gitea/workflows/ci.yml is the one to copy. It also catches &mdash;, &ndash;, the JS escapes and the numeric entities.
  5. UI change: take before and after screenshots for review.

Find them with: git grep -nP '[\x{2013}\x{2014}]|&[mn]dash;'

LotusGuild/web_template#3 (merged 2026-11-22, upstream `8286bb2`) removed every em and en dash from the shared design system. That's house style: no em or en dashes anywhere, including UI text, titles, comments, docs and messages. ## Where Tinker stands | Location | Dashes | |---|---| | Vendored `assets/js/base.js` and `assets/css/base.css` (both **have local edits**) | 152 | | Tinker's own files | **317, across 73 files** (counting the characters and `&mdash;` / `&ndash;`) | Some of them are visible to users. For example: - the page title in `views/layout_header.php` is `<page> &mdash; <app>`; - `views/error_500.php` has the title `500 &mdash; Something Went Wrong`. ## What to do 1. **Resync the vendored files without losing Tinker's local edits.** Diff each file against the upstream version it came from, then apply that diff on top of upstream `8286bb2`. - The upstream dash commit changes comments, plus a few strings users see: - empty values in `lt.fmt` show `-`; - the boot line reads `ALL SYSTEMS NOMINAL: <app>`; - the offline banner and toast use a colon or a comma. 2. **Switch page titles to `Page | App`.** `lt.boot` now gets the app name from the title with `split(' | ')`, so this keeps the two consistent. 3. **Replace the dashes in Tinker's own files:** - in prose, use a colon, comma, parentheses or a hyphen; - in number ranges, use `-` or "to"; - where a placeholder means "no value", use `-`. 4. **Add a CI check** so they don't come back. Pulse's step "No em or en dashes" in `.gitea/workflows/ci.yml` is the one to copy. It also catches `&mdash;`, `&ndash;`, the JS escapes and the numeric entities. 5. **UI change:** take before and after screenshots for review. Find them with: `git grep -nP '[\x{2013}\x{2014}]|&[mn]dash;'`
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: LotusGuild/tinker_tickets#118