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

Miscellaneous fixes #502

Merged
merged 3 commits into from
Nov 13, 2023
Merged

Miscellaneous fixes #502

merged 3 commits into from
Nov 13, 2023

Conversation

floryst
Copy link
Collaborator

@floryst floryst commented Nov 10, 2023

  • Allow selection of text in the message list
  • completely disconnect the ResizeObserver on unmount
  • Log out global errors and use a fallback message for error reporting

@floryst floryst requested a review from PaulHax November 10, 2023 22:42
Copy link

netlify bot commented Nov 10, 2023

Deploy Preview for volview-dev ready!

Name Link
🔨 Latest commit c9c6270
🔍 Latest deploy log https://app.netlify.com/sites/volview-dev/deploys/654eb1c1d39d0f0008bbc5ac
😎 Deploy Preview https://deploy-preview-502--volview-dev.netlify.app/
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

Copy link
Collaborator

@PaulHax PaulHax left a comment

Choose a reason for hiding this comment

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

Objectively better

@@ -5,7 +5,11 @@ export function useGlobalErrorHook() {
const messageStore = useMessageStore();

const onError = (event: ErrorEvent) => {
messageStore.addError('Application error (click for details)', event.error);
console.error(event);
Copy link
Collaborator

Choose a reason for hiding this comment

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

Good! Thinking we should send more errors to Sentry via:
Sentry.captureException https://docs.sentry.io/platforms/javascript/usage/

or

Sentry.init({
  dsn: 'https://your-sentry-server-dsn',
  integrations: [
    new CaptureConsole({
      levels: ['error']
    })
  ],
...

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I like this idea! I'll cover this in a later PR.

@floryst floryst added this pull request to the merge queue Nov 13, 2023
Merged via the queue into main with commit 4da7fc8 Nov 13, 2023
6 checks passed
@floryst floryst deleted the misc-fixes branch March 21, 2024 16:26
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.

2 participants