This repository was archived by the owner on Nov 2, 2026. It is now read-only.
Repository navigation
feat: speed in the ports, tests for card and editor (0.2.0) - #12
Merged
Merged
Conversation
- Each port with link shows its speed (1G, 2.5G, 100, 10) in the lower half, next to the trunk mark, so its state does not rest on colour alone; show_speed: false turns it off. - Card and editor are tested in happy-dom (rendering, options, clicks, errors, re-reading, SFP row, card picker); npm test enforces a minimum coverage. Closes #6 Closes #7 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2 tasks done
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 subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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.
Summary
1G,2.5G,100,10) in its lower half, next to the trunk markT, so the state does not rest on colour alone. New optionshow_speed(default on, also in the settings dialog). The link and PoE symbols stay at the top; nothing overlaps (checked in a sections view at 1500 and 390 px).npm testnow runs with coverage and fails below 95 % lines/statements/functions and 90 % branches.Closes #6
Closes #7
The card page in ha-managed-switch (
docs/card.md) gets the new option in a separate pull request.Test plan
npm run typecheck,npm test(32 tests, coverage above the thresholds),npm run buildpassCHANGELOG.md, README, AGENTS.md updated🤖 Generated with Claude Code