Skip to content

Configuration and script errors are hard to read and easy to miss #211

Closed

Description

@Seb-GRAF

Problem

When the configuration fails to load, or a widget's script or action fails, StableBar shows a small icon and puts the message where few people find it, in words that assume JSON knowledge.

  • A configuration error is an orange triangle in the bar's top-right corner. Its message is only in the tooltip, and clicking opens Settings (BarView.swift:100-107).
  • The message comes from errorMessage (ConfigurationLoader.swift:73-91): the JSON path followed by Swift's DecodingError text, such as widgets.3.style: The data couldn't be read…. The menu shows the same string as a disabled item (StableBarApp.swift:371-374).
  • A script or action failure is an 8 pt red dot on the widget with the message only in .help(error) (BarView.swift:415-419). It is colour only, and VoiceOver gets no label for it.
  • Some messages point at the wrong thing. StableBar --validate examples/presentation/config.json, without the example's theme package installed, prints Package file does not exist: package.json. (WidgetPackage.swift:175) instead of naming the missing theme.
  • Some copy assumes the reader edits JSON, such as "Package … is a theme. Select it with the theme key instead of packages." (WidgetPackage.swift:182).

Proposal

  • Clicking the error shows the file, the cause in plain words and next steps: open the file, or Settings → Status.
  • Lead with what happened. Keep the JSON path as detail below it.
  • Give the script error indicator a VoiceOver label and a shape or text, not only colour.
  • Name the missing theme or package when its package.json can't be found.

Possible today

Partly. Hovering the triangle or dot shows the raw message, and StableBar --validate PATH prints it in a terminal.

Related

Checked on main 4160f7f. The --validate output was reproduced; the bar indicators were read from code, not checked in a running app.

Triaged by Claude Code via T3 Code (Claude Opus 5.5).

Activity

  1. added
    accessibility
    enhancement
    on Oct 22, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    accessibilityenhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions