Skip to content

Improve error handling by replacing console.error/FIXME with Quasar notifications #1036

@WillyEverGreen

Description

@WillyEverGreen

Problem

Currently, several components handle errors by logging them to the console with console.error and //FIXME or //TODO comments indicating that a proper alert is needed. This results in a poor user experience, as users are not informed when an operation fails.

Goal

Improve user-facing error handling by replacing these console logs with UI notifications using the Quasar Framework's Notify plugin, consistent with existing patterns in the codebase.

Affected files

The following files contain console.error calls marked with //FIXME or //TODO comments:

  • MetisSelection.vue
  • MetisWidget.vue
  • DelayAndForwardingChart.vue
  • DelayChart.vue
  • DiscoChart.vue
  • PrefixHegemonyChart.vue
  • NetworkDelayChart.vue
  • NetworkDelayAlarmsChart.vue
  • CountryHegemonyChart.vue
  • Latencymon.vue

Proposed solution

  • Import useQuasar from quasar
  • Initialize it in the component:
    const $q = useQuasar();

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions