fix(github-app-selector): Fix error handling#6654
Conversation
Confidence Score: 2/5The component renders a blank UI for new users (the primary onboarding path) and can still throw in certain error states; merging as-is leaves GitHub authorization broken for first-time users. Both action buttons are now gated behind dashboard/src/components/GitHubAppSelector.vue — specifically the
|
| Filename | Overview |
|---|---|
| dashboard/src/components/GitHubAppSelector.vue | Partial error-handling refactor: nests both action buttons inside a requiresReAuth guard that evaluates to undefined for new users, leaving the component blank in the primary onboarding case; requiresReAuth still throws when error.messages is absent. |
Flowchart
%%{init: {'theme': 'neutral'}}%%
flowchart TD
A[options resource loads] --> B{options.loading?}
B -- yes --> C[Show LoadingText]
B -- no --> D{options.authorized?}
D -- yes --> E[Show repo/branch selectors]
D -- no --> F{"!!requiresReAuth?"}
F -- "true - Bad credentials error" --> G[Show Re-authorize + Connect buttons]
F -- "false or undefined" --> H{"error.messages[0] truthy?"}
H -- yes --> I[Show ErrorMessage only - no recovery action]
H -- no --> J[Render nothing - new users land here]
Reviews (6): Last reviewed commit: "fix(github-app-selector): Show proper gh..." | Re-trigger Greptile
Codecov Report❌ Patch coverage is
❌ Your patch status has failed because the patch coverage (47.45%) is below the target coverage (75.00%). You can increase the patch coverage or adjust the target coverage. Additional details and impacted files@@ Coverage Diff @@
## develop #6654 +/- ##
============================================
+ Coverage 50.17% 62.85% +12.67%
============================================
Files 990 117 -873
Lines 83021 18093 -64928
Branches 523 526 +3
============================================
- Hits 41659 11373 -30286
+ Misses 41330 6688 -34642
Partials 32 32
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
|
@greptileai rereview |
c6e6494 to
350bb5a
Compare
|
@greptileai rereview |
350bb5a to
278e7a9
Compare
|
@greptileai rereview |
No description provided.