-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cody: Remove system notification from non-actions #51714
Conversation
@@ -7,7 +7,7 @@ export async function getAccessToken(secretStorage: SecretStorage): Promise<stri | |||
return (await secretStorage.get(CODY_ACCESS_TOKEN_SECRET)) || null | |||
} catch (error) { | |||
await secretStorage.delete(CODY_ACCESS_TOKEN_SECRET) | |||
void vscode.window.showErrorMessage(`Failed to retreive access token for Cody: ${error}`) | |||
console.error(`Failed to retreive access token for Cody: ${error}`) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This seems unrelated to the issue. Was this an accidental commit?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this was intentional because the UI should handle the errors, and we allow users to continue with initiating the webview anyway so I think it would make more sense to display this error in UI instead of popup. wdyt?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah I agree! Makes sense
Bundle size report 📦
Look at the Statoscope report for a full comparison between the commits 730b602 and 4827a3a or learn more. Open explanation
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's fix up the changelog (add a new section for 0.1.1) and we goooood
Perfect! |
Close #51349
RE: https://sourcegraph.slack.com/archives/C04MZPE4JKD/p1683724897212539?thread_ts=1683723327.455849&cid=C04MZPE4JKD
PR to remove system notifications from non-actionable items, eg error messages as system pop up from background process etc
System notification should be handled by actionable functions individually.
VS code UX guideline: https://code.visualstudio.com/api/ux-guidelines/notifications
Test plan
Local dev.