Skip to content

chore(lib): drop dead MobileTerminalSection type alias - #322

Merged
nedtwigg merged 1 commit into
mainfrom
chore/drop-dead-mobile-terminal-section
Jul 28, 2026
Merged

chore(lib): drop dead MobileTerminalSection type alias#322
nedtwigg merged 1 commit into
mainfrom
chore/drop-dead-mobile-terminal-section

Conversation

@dormouse-bot

Copy link
Copy Markdown
Collaborator

Removes the dead exported type alias MobileTerminalSection in lib/src/components/MobileTerminalUi.tsx.

export type MobileTerminalSection = MobileTerminalKeyboardMode; has no references anywhere in the monorepo — a repo-wide search over .ts/.tsx finds only the definition itself, and no barrel re-exports it. It's a leftover alias from the SectionKeyboardMode naming; the live section props and every other consumer use MobileTerminalKeyboardMode directly.

Scope is limited to deleting the one orphaned alias. The broader question of whether the parallel activeSection/defaultSection/onSectionChange prop triple should be collapsed into the keyboardMode triple is left for a maintainer, since that touches the Storybook stories that exercise it.

No test accompanies this change — it's a pure dead-code removal with no runtime behavior; tsc -b in CI confirms nothing referenced the removed type.

Unused across the whole monorepo — a repo-wide search finds only the
definition, and nothing re-exports it. Leftover from the Section -> KeyboardMode
rename; live code uses MobileTerminalKeyboardMode directly.
@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Jul 28, 2026

Copy link
Copy Markdown

Deploying mouseterm with  Cloudflare Pages  Cloudflare Pages

Latest commit: 149614b
Status: ✅  Deploy successful!
Preview URL: https://823a7299.mouseterm.pages.dev
Branch Preview URL: https://chore-drop-dead-mobile-termi.mouseterm.pages.dev

View logs

@dormouse-bot

Copy link
Copy Markdown
Collaborator Author

CI note: every build/test check is green (Build & Test, Standalone Smoketest, Visual Regression, Storybook Publish, UI Tests, review). The one red is Cloudflare Pages, which failed instantly — startedAt and completedAt are the same second (2026-07-28T09:33:06Z), so no deploy build actually ran.

This is a transient external-deploy hiccup, not something this change could cause: it only deletes an unused TypeScript type, the website build is exercised and passing via the Storybook/UI/Visual-Regression checks, and Cloudflare Pages succeeded on the sibling PRs open right now (#321, #320, #317). Cloudflare is also reporting an active minor incident. The Pages deploy should go green on the next push; re-running it (or merging) needs no code change here.

@nedtwigg
nedtwigg merged commit 7358d0d into main Jul 28, 2026
7 checks passed
@nedtwigg
nedtwigg deleted the chore/drop-dead-mobile-terminal-section branch July 28, 2026 20:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants