Skip to content
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

Merged
merged 5 commits into from
May 10, 2023
Merged

Conversation

abeatrix
Copy link
Contributor

@abeatrix abeatrix commented May 10, 2023

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.

@cla-bot cla-bot bot added the cla-signed label May 10, 2023
@@ -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}`)
Copy link
Contributor

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?

Copy link
Contributor Author

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?

Copy link
Contributor

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

@sourcegraph-buildkite
Copy link
Collaborator

sourcegraph-buildkite commented May 10, 2023

Bundle size report 📦

Initial size Total size Async size Modules
0.00% (0.00 kb) 0.00% (+0.64 kb) 0.01% (+0.64 kb) 0.00% (0)

Look at the Statoscope report for a full comparison between the commits 730b602 and 4827a3a or learn more.

Open explanation
  • Initial size is the size of the initial bundle (the one that is loaded when you open the page)
  • Total size is the size of the initial bundle + all the async loaded chunks
  • Async size is the size of all the async loaded chunks
  • Modules is the number of modules in the initial bundle

Copy link
Contributor

@philipp-spiess philipp-spiess left a 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

@philipp-spiess
Copy link
Contributor

Perfect!

@sourcegraph-bot
Copy link
Contributor

📖 Storybook live preview

@abeatrix abeatrix merged commit de01b7b into main May 10, 2023
10 of 13 checks passed
@abeatrix abeatrix deleted the bee/cody-selection branch May 10, 2023 14:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Codebase inference triggers when cody is not being used
4 participants