Skip to content

fix(devices): register devices as enabled and surface toggle feedback#236

Merged
vernu merged 1 commit into
mainfrom
dev
Jun 13, 2026
Merged

fix(devices): register devices as enabled and surface toggle feedback#236
vernu merged 1 commit into
mainfrom
dev

Conversation

@vernu

@vernu vernu commented Jun 13, 2026

Copy link
Copy Markdown
Owner

No description provided.

The 2.8 Kotlin client stopped sending `enabled` on registration, so the
backend created devices with the schema default `enabled: false` ("Disabled"),
which users could not activate. Default new registrations to enabled on the
server (so existing 2.8 clients are fixed without an app update), still gated
by the device-limit check, and send `enabled = true` from onboarding.

Also make the gateway toggle always give feedback: show a success toast on
enable/disable and surface the server's reason (e.g. device-limit 429) on
failure instead of silently snapping back.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@vernu vernu self-assigned this Jun 13, 2026
@vercel

vercel Bot commented Jun 13, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
textbee Building Building Jun 13, 2026 4:28pm

Request Review

@vernu vernu merged commit d6c41a4 into main Jun 13, 2026
7 of 8 checks passed
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.

1 participant