Repository navigation
Pin HDMI inputs to Home and name them by device type - #43
Open
nathantsmith wants to merge 2 commits into
Open
nathantsmith wants to merge 2 commits into
nathantsmith wants to merge 2 commits into
Conversation
The Home editor now reads the TV's reported HDMI ports and lists each one under a new Inputs section in Not on Home. A pinned input is saved as hdmi-N with its port in appRecords, so it survives a restart before discovery runs again. Opening it uses the existing bounded setSource path and viewer handoff, with the same truthful errors. Discovery runs only from the visible editor, never at hidden startup, and a missing API or failure lists no inputs. Input IDs contain no dot, so they cannot fall back to a native app ID, and an hdmi-N Home entry without its saved record is dropped rather than invented. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01CMDnnMF9Nkx6MeRaQGVGEW
The TV reports only each port's type and number, so inputs appeared as HDMI 1, 2 and 3. Each input row in Settings > Samsung > Inputs now has a Device button that opens a device type list for that port. The type sets the input's name and icon in Inputs, the Home editor and Home, and is saved by port in a new devices preference whether or not the input is pinned. Choosing HDMI clears it; unknown saved types are dropped, and a failed save keeps the previous type with a retry. Eight original outlines (HDMI plug, controller, handheld, cable box, disc, laptop, streaming stick, soundbar) share the utility icons' grid and stroke. The PlayStation mark comes from Simple Icons (CC0, pinned). Simple Icons no longer publishes Xbox or Nintendo marks, so those types use the generic outlines. Icon metrics were remeasured; existing values are unchanged. The Inputs page now uses one row per port with its Device button beside it, so four ports fit within the stage. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01CMDnnMF9Nkx6MeRaQGVGEW
nathantsmith
marked this pull request as ready for review
November 21, 2026 02:00
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.
What this does
Lets HDMI inputs be used from Home, and gives them recognisable names and icons.
Inputs on Home. Opening the Home editor also reads the TV's HDMI source records. Each reported port appears once under a new Inputs section in Not on Home and can be added, removed, reordered and undone like an app. OK on a Home input uses the existing bounded
FrameDevice.setSourcepath, so it rediscovers sources, requests that exact port and then opens Samsung's viewer, with the same truthful errors. A pinned input is saved inappRecordsashdmi-Nwith its port number, so it stays on Home after a restart before discovery runs again. Input IDs contain no dot, so they never fall back to a native app ID, and anhdmi-NHome entry without its saved record is dropped rather than invented. Discovery runs only from the visible editor, never at hidden startup; a missing API or failure lists no inputs.Device types. The TV reports only each port's type and number (CEC and Source-menu names are not available to the app), so inputs appeared as HDMI 1, 2, 3. Each row in Settings → Samsung → Inputs now has a Device button (Right from the input). It opens a radio list for that port: HDMI (default), Apple TV, PlayStation, Xbox, Nintendo Switch, Games console, Cable box, Blu-ray player, Computer, Streaming stick, Soundbar. OK applies and saves immediately; a storage failure keeps the previous type with Try again. The type sets the name and icon in Inputs, the Home editor and Home. Types are saved by port in a new
devicespreference (e.g.{"1": "playstation"}); HDMI removes the entry, and unknown saved types or ports are dropped.The Inputs page now uses one row per port with its Device button beside it, so the list fits within the stage.
Icons. Eight original outlines (
device-hdmi,-console,-handheld,-settop,-disc,-computer,-stick,-soundbar) on the utility 24-unit grid with the same 1.6 round stroke. The PlayStation mark is from Simple Icons (CC0, pinned commit recorded inADDITIONAL-SOURCES.json). Simple Icons no longer publishes Xbox or Nintendo marks, so those types use the generic controller and handheld outlines.metrics.jswas regenerated; existing entries are unchanged.Preference model
This adds a
devicesfield and aninputfield onappRecordsentries. Older builds ignoredevicesand would treat anhdmi-Nrecord as an app ID that fails to launch with an error. Happy to open an issue first if you'd prefer to discuss the model change.Checks run
npm run check: ES5 lint, widget checks, 10 device tests passnpm run check:tools: 15 tests passCLEANFRAME_PUBLIC_FONTS=1 npm run check:browser: 441 checks, 0 failures, no page errors. New coverage: editor listing, section heading, pinning and stored record, reload persistence, Home launch selecting the exact port before viewer handoff, missing-port error, unavailable API, no invented inputs, device picker contents and fit, Right reaching Device, save by port, name/icon in Inputs/editor/Home after reload, failed save with retry, reset to HDMI, invalid saved labels. The existing HDMI chooser test now counts switch buttons only.npm run check:public: passedcheck:browserunder.local/qa/(editor-inputs.png,inputs-named.png,input-device-picker.png).Tested on a TV
Tested on a 2024 The Frame (LS03D, Tizen 9.0), installed as an independent build signed with an SDK-generated identity and a Public-level certificate. The installed build contained these commits plus an unrelated personal wallpaper; the inputs code was identical.
VIDEOSOURCEand switch sources on this model.