feat(platforms): add Teltonika to the add device menu - #1173
Merged
Conversation
Teltonika (type 1281) was registered as a platform but never offered anywhere in the UI. Add it to the "Add a device" list on the add page, alongside the other OEM gateways. Give it the standard streamline install config so /add/teltonika generates a registration command for platform 1281 instead of rendering a download page with no link, matching how Advantech and AXIS are set up. TOA (1228) is a private, dedicated package and is intentionally left out. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_018YfRBMvuTVpXniu6MNi5jo
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.
Changes
Requested by @yusuke in Slack: add Teltonika to the Add a device menu and to the Platform list under Products.
Teltonika (type
1281) was already registered as a platform in #1142 — icon, name, and type mapping — but it was never offered anywhere in the UI.frontend/src/pages/AddPage.tsx— addedteltonikato the "Add a device" list, positioned after IDY with the other OEM gateways.frontend/src/platforms/teltonika/index.tsx— added the standard streamlineinstallationconfig. Without it,/add/teltonikawould renderAddDownloadwith no link (a dead button) instead ofAddDevice. Withcommand: true,useAutoRegistrationsendsplatform: 1281and the API generates the registration command — the same setup Advantech and AXIS use.Platform list under Products: no frontend change needed. That dropdown is driven by the API's
platformTypes.visibleflag, and Evan has already handled the DB update —1281now returnsname: "Teltonika"(Titlecase) withvisible: true, so it appears in the list with the correct label and picks up the existing platform icon automatically.TOA (
1228) is a private, dedicated package and is intentionally left out, per the request.Verification
npm run typecheckpasses — the only output is the pre-existingtsconfigTS5101 deprecations onbaseUrl/downlevelIteration, which are unrelated to this change and present onmain.platformTypesreturns1281 / "Teltonika" / visible: true.1281and running the generated registration command on a real Teltonika device. Worth a manual pass before release.Generated by Claude Code