Review of "AI Usage Meter" version 1 (1)

Details Page Preview

Shows Claude, Codex and Antigravity usage limits in the top bar, using the codexbar CLI.

Extension Homepage
https://github.com/poriol/gnome-shell-extension-ai-usage-meter

No comments.

FAQ

Files

Note: Binary files aren't shown on the web site. To see all files, please download the extension zipfile.

Shexli (experimental) warning 2

Shexli found 2 issues that may need reviewer attention.

EGO-L-002 warning

objects created by extension should be destroyed in disable()

Objects assigned in `enable()` are missing matching `.destroy()` calls in `disable()` or its helper methods.

Destroy all objects

  • extension.js:155
            this._bar = new UsageBar({
                style_class: 'aiu-bar aiu-bar-panel',
                y_align: Clutter.ActorAlign.CENTER,
            })
  • extension.js:159
            this._label = new St.Label({
                style_class: 'aiu-label',
                y_align: Clutter.ActorAlign.CENTER,
            })
  • extension.js:172
            this._locked = new St.Icon({
                gicon: Gio.FileIcon.new(dir.get_child('icons').get_child('locked-symbolic.svg')),
                style_class: 'aiu-locked',
                style: `color: ${DANGER_COLOR};`,
                y_align: Clutter.ActorAlign.CENTER,
                visible: false,
            
  • extension.js:181
    this._spend = new St.BoxLayout({style_class: 'aiu-spend-box', visible: false})
  • extension.js:183
            this._spendLabel = new St.Label({
                style_class: 'aiu-label',
                style: `color: ${SPEND_COLOR};`,
                y_align: Clutter.ActorAlign.CENTER,
            })
  • extension.js:165
            this._unknown = new St.Icon({
                gicon: Gio.FileIcon.new(dir.get_child('icons').get_child('closed-symbolic.svg')),
                style_class: 'aiu-unknown',
                y_align: Clutter.ActorAlign.CENTER,
                visible: false,
            })

EGO-L-005 warning

owned object references should be released in disable()

Owned references that are cleaned up in `disable()` should also be released with `null` or `undefined`.

Destroy all objects

  • extension.js:155
            this._bar = new UsageBar({
                style_class: 'aiu-bar aiu-bar-panel',
                y_align: Clutter.ActorAlign.CENTER,
            })
  • extension.js:159
            this._label = new St.Label({
                style_class: 'aiu-label',
                y_align: Clutter.ActorAlign.CENTER,
            })
  • extension.js:181
    this._spend = new St.BoxLayout({style_class: 'aiu-spend-box', visible: false})
  • extension.js:165
            this._unknown = new St.Icon({
                gicon: Gio.FileIcon.new(dir.get_child('icons').get_child('closed-symbolic.svg')),
                style_class: 'aiu-unknown',
                y_align: Clutter.ActorAlign.CENTER,
                visible: false,
            })
  • extension.js:154
    this.actor = new St.BoxLayout({style_class: 'aiu-provider'})

All Versions

Version Status
1.1.2 (4) Unreviewed
1.1.1 (3) Rejected
1.1 (2) Rejected
1 (1) Unreviewed

Previous Reviews on this Version

poriol posted a review
Superseded by 1.1.2, please reject this version and review 1.1.2 instead.