Skip to content

refactor: uppercase status for consistency#1538

Merged
tyler-dane merged 2 commits intomainfrom
feat/tbd
Mar 16, 2026
Merged

refactor: uppercase status for consistency#1538
tyler-dane merged 2 commits intomainfrom
feat/tbd

Conversation

@tyler-dane
Copy link
Copy Markdown
Contributor

@tyler-dane tyler-dane commented Mar 16, 2026

Simple renaming follow up to #1535


Note

Medium Risk
Changes the GoogleConnectionStatus string contract across core types, backend metadata assessment, websocket payload expectations, and multiple web UI paths; any missed caller could mis-handle connection state. Mostly mechanical renames plus a small UI icon change, so behavior should be stable if all references were updated.

Overview
Standardizes Google Calendar connectionStatus values to uppercase (NOT_CONNECTED/CONNECTED/RECONNECT_REQUIRED) across the shared GoogleConnectionStatus type, backend UserMetadataService assessment logic, and websocket/user-metadata tests.

Updates web client state handling to match the new enum values (including auto-import gating in useGcalSync and defaults in useConnectGoogle) and swaps the “connected” sidebar icon from CheckCircleIcon to LinkIcon (with adjusted color). Also includes small test/typing cleanup (UserApi cast) and removal of an unused React import.

Written by Cursor Bugbot for commit 6458171. This will update automatically on new commits. Configure here.

- Replaced `CheckCircleIcon` with `LinkIcon` in the Google connection status to better represent the connection state.
- Adjusted type definitions and related components to reflect the icon change, ensuring consistency across the application.
- Cleaned up unused imports in the `TaskCircleIcon` component for improved code clarity.
…rcase

- Updated all instances of Google connection status values to use uppercase naming conventions: "NOT_CONNECTED", "CONNECTED", and "RECONNECT_REQUIRED".
- Adjusted related tests and components to reflect these changes, ensuring consistency across the application.
- Improved clarity and maintainability of the user metadata handling logic by adhering to a unified naming standard.
@tyler-dane tyler-dane marked this pull request as ready for review March 16, 2026 00:53
@tyler-dane tyler-dane merged commit b92d3b6 into main Mar 16, 2026
8 checks passed
@tyler-dane tyler-dane deleted the feat/tbd branch March 16, 2026 00:53
Copy link
Copy Markdown
Contributor

@cursor cursor Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cursor Bugbot has reviewed your changes and found 1 potential issue.

Fix All in Cursor

Bugbot Autofix is ON, but it could not run because the branch was deleted or merged before autofix could start.

| "not_connected"
| "reconnect_required"
| "NOT_CONNECTED"
| "RECONNECT_REQUIRED"
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Inconsistent casing within GoogleUiState type values

Low Severity

The GoogleUiState type now mixes UPPER_CASE ("NOT_CONNECTED", "RECONNECT_REQUIRED") with snake_case ("checking", "connected_healthy", "connected_repairing", "connected_attention"). Before this PR, all values were consistently snake_case. In a PR aiming for casing consistency, this introduces a new inconsistency within a single union type.

Fix in Cursor Fix in Web

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