Skip to content

refactor: remove client active/inactive status - #138

Closed
its-mash wants to merge 2 commits into
mainfrom
remove-client-status
Closed

refactor: remove client active/inactive status#138
its-mash wants to merge 2 commits into
mainfrom
remove-client-status

Conversation

@its-mash

@its-mash its-mash commented Mar 3, 2026

Copy link
Copy Markdown
Member

Summary

  • Remove has_active_tokens field from gateway and Tauri OAuth client response structs
  • Remove clients_with_tokens in-memory HashSet from GatewayState
  • Remove Active/Inactive and Connected/Inactive status badges from the Clients page (both card view and detail panel)
  • Downgrade delete handler from write lock to read lock (no longer mutates state)
  • Update E2E test that checked for status indicators

The status was unreliable since it was tracked in-memory only (lost on gateway restart) and provided no actionable information to users.

Test plan

  • cargo clippy --workspace -- -D warnings passes
  • cargo test --workspace --lib passes (32 tests)
  • pnpm typecheck passes
  • pnpm test:ts passes (182 tests)
  • Pre-commit hooks pass (fmt, clippy, eslint, typecheck)

its-mash added 2 commits March 3, 2026 15:42
The has_active_tokens field and clients_with_tokens in-memory set tracked
whether clients had been issued tokens to show Active/Inactive status badges
in the UI. This status was unreliable (in-memory only, lost on restart) and
not needed. Removes the status badges from the clients page, the tracking
state from the gateway, and the field from both gateway and Tauri response
structs.

Signed-off-by: Mohammod Al Amin Ashik <maa.ashik00@gmail.com>
@its-mash its-mash closed this Mar 4, 2026
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