Review of "Ponyx" version 1.0 (1)

Details Page Preview

A notch at the top of the screen that expands on hover to show what's playing, the week ahead and your Claude usage limits. Privacy: to show Claude usage, Ponyx reads Claude Code's sign-in token from ~/.claude/.credentials.json (read-only) and sends it only to api.anthropic.com. If Claude Code isn't signed in, nothing is sent. Synced lyrics are looked up on lrclib.net and can be turned off in preferences.

Extension Homepage
https://github.com/codehilman/ponyx

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 5

Shexli found 5 issues that may need reviewer attention.

EGO-X-003 warning

extensions should not call run_dispose in extension code

Extension code should not call `run_dispose()`.

GObject.Object.run_dispose

  • extension.js:1579
    this._wallClock.run_dispose()

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:558
    this._album = new St.Label({style_class: 'ponyx-album'})
  • extension.js:546
    this._appBadge = new St.Icon({style_class: 'ponyx-app-badge', x_align: Clutter.ActorAlign.END, y_align: Clutter.ActorAlign.END})
  • extension.js:539
    this._art = new St.Bin({style_class: 'ponyx-art', x_expand: true, y_expand: true})
  • extension.js:540
            this._artPlaceholder = new St.Icon({
                icon_name: 'audio-x-generic-symbolic',
                style_class: 'ponyx-art-placeholder',
                x_align: Clutter.ActorAlign.CENTER,
                y_align: Clutter.ActorAlign.CENTER,
            })
  • extension.js:557
    this._artist = new St.Label({style_class: 'ponyx-artist'})
  • extension.js:728
    this._claudeStatus = new St.Label({style_class: 'ponyx-status'})
  • extension.js:316
    this._compactArt = new St.Bin({style_class: 'ponyx-compact-art', y_align: Clutter.ActorAlign.CENTER})
  • extension.js:341
            this._compactBadge = new St.Widget({
                layout_manager: new Clutter.BinLayout(),
                y_align: Clutter.ActorAlign.CENTER,
            })
  • extension.js:323
            this._compactClock = new St.BoxLayout({
                style_class: 'ponyx-compact-clock',
                x_expand: true,
                x_align: Clutter.ActorAlign.CENTER,
                y_align: Clutter.ActorAlign.CENTER,
            })
  • extension.js:329
    this._compactDate = new St.Label({style_class: 'ponyx-compact-date', y_align: Clutter.ActorAlign.CENTER})
  • extension.js:336
    this._compactEnd = end
  • extension.js:318
    this._compactGlyph = new St.Label({text: '✻', style_class: 'ponyx-glyph', y_align: Clutter.ActorAlign.CENTER})
  • extension.js:354
    this._compactPct = new St.Label({style_class: 'ponyx-compact-pct', y_align: Clutter.ActorAlign.CENTER})
  • extension.js:338
    this._compactRing = new UsageRing('ponyx-ring-small', 2)
  • extension.js:315
    this._compactStart = start
  • extension.js:330
    this._compactTime = new St.Label({style_class: 'ponyx-compact-time', y_align: Clutter.ActorAlign.CENTER})
  • extension.js:678
    this._days = new St.BoxLayout({style_class: 'ponyx-days', x_expand: true, x_align: Clutter.ActorAlign.END})
  • extension.js:570
    this._elapsed = new St.Label({style_class: 'ponyx-seek-time', y_align: Clutter.ActorAlign.CENTER})
  • extension.js:683
    this._eventDot = new St.Widget({style_class: 'ponyx-event-dot', y_align: Clutter.ActorAlign.CENTER})
  • extension.js:686
    this._eventMore = new St.Label({style_class: 'ponyx-event-more', y_align: Clutter.ActorAlign.CENTER})
  • extension.js:682
    this._eventRow = new St.BoxLayout({style_class: 'ponyx-event'})
  • extension.js:684
    this._eventTime = new St.Label({style_class: 'ponyx-event-time', y_align: Clutter.ActorAlign.CENTER})
  • extension.js:685
    this._eventTitle = new St.Label({style_class: 'ponyx-event-title', x_expand: true, y_align: Clutter.ActorAlign.CENTER})
  • extension.js:644
    this._lyricNow = new St.Label({style_class: 'ponyx-lyric-now'})
  • extension.js:650
    this._lyricPlain = new St.Label({style_class: 'ponyx-lyric-plain'})
  • extension.js:630
            this._lyricsBox = new St.BoxLayout({
                style_class: 'ponyx-lyrics',
                orientation: Clutter.Orientation.VERTICAL,
                clip_to_allocation: true,
                x_expand: true,
                y_expand: true,
                visible: false,
            })
  • extension.js:533
            this._mediaContent = new St.BoxLayout({
                style_class: 'ponyx-media-content',
                orientation: Clutter.Orientation.VERTICAL,
                x_expand: true,
            })
  • extension.js:588
            this._mediaEmpty = new St.BoxLayout({
                style_class: 'ponyx-empty',
                orientation: Clutter.Orientation.VERTICAL,
                x_align: Clutter.ActorAlign.CENTER,
                y_align: Clutter.ActorAlign.CENTER,
            })
  • extension.js:693
    this._miniStatus = new St.Label({style_class: 'ponyx-status'})
  • extension.js:690
    this._miniUsage = new St.BoxLayout({style_class: 'ponyx-mini-usage', orientation: Clutter.Orientation.VERTICAL})
  • extension.js:727
    this._models = new St.BoxLayout({style_class: 'ponyx-models', orientation: Clutter.Orientation.VERTICAL})
  • extension.js:677
    this._month = new St.Label({style_class: 'ponyx-month', y_align: Clutter.ActorAlign.CENTER})
  • extension.js:653
            this._plainScroll = new St.ScrollView({
                style_class: 'ponyx-lyrics-scroll',
                hscrollbar_policy: St.PolicyType.NEVER,
                vscrollbar_policy: St.PolicyType.EXTERNAL,
                overlay_scrollbars: true,
                x_expand: true,
                y_expand: true,
       
  • extension.js:726
    this._plan = new St.Label({style_class: 'ponyx-plan'})
  • extension.js:733
            this._refreshButton = new St.Button({
                style_class: 'ponyx-pill-button',
                label: 'Refresh',
                can_focus: true,
                y_align: Clutter.ActorAlign.CENTER,
            })
  • extension.js:571
    this._remaining = new St.Label({style_class: 'ponyx-seek-time ponyx-seek-remaining', y_align: Clutter.ActorAlign.CENTER})
  • extension.js:639
            this._syncedBox = new St.BoxLayout({
                style_class: 'ponyx-lyrics-synced',
                orientation: Clutter.Orientation.VERTICAL,
                x_expand: true,
            })
  • extension.js:368
            this._ticker = new St.Widget({
                style_class: 'ponyx-ticker',
                clip_to_allocation: true,
                // Size comes only from x_expand, so the ticker never asks for the width of its own text.
                min_width: 0,
                natural_width: 0,
                x_expand: tr
  • extension.js:385
    this._tickerFade = new St.Widget({style_class: 'ponyx-ticker-fade'})
  • extension.js:386
    this._tickerFadeStart = new St.Widget({style_class: 'ponyx-ticker-fade-start'})
  • extension.js:379
    this._tickerTrack = new St.BoxLayout({style_class: 'ponyx-ticker-track'})
  • extension.js:556
    this._title = new St.Label({style_class: 'ponyx-title'})
  • extension.js:732
    this._updated = new St.Label({style_class: 'ponyx-updated', x_expand: true, y_align: Clutter.ActorAlign.CENTER})

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:558
    this._album = new St.Label({style_class: 'ponyx-album'})
  • extension.js:546
    this._appBadge = new St.Icon({style_class: 'ponyx-app-badge', x_align: Clutter.ActorAlign.END, y_align: Clutter.ActorAlign.END})
  • extension.js:539
    this._art = new St.Bin({style_class: 'ponyx-art', x_expand: true, y_expand: true})
  • extension.js:540
            this._artPlaceholder = new St.Icon({
                icon_name: 'audio-x-generic-symbolic',
                style_class: 'ponyx-art-placeholder',
                x_align: Clutter.ActorAlign.CENTER,
                y_align: Clutter.ActorAlign.CENTER,
            })
  • extension.js:557
    this._artist = new St.Label({style_class: 'ponyx-artist'})
  • extension.js:728
    this._claudeStatus = new St.Label({style_class: 'ponyx-status'})
  • extension.js:316
    this._compactArt = new St.Bin({style_class: 'ponyx-compact-art', y_align: Clutter.ActorAlign.CENTER})
  • extension.js:341
            this._compactBadge = new St.Widget({
                layout_manager: new Clutter.BinLayout(),
                y_align: Clutter.ActorAlign.CENTER,
            })
  • extension.js:323
            this._compactClock = new St.BoxLayout({
                style_class: 'ponyx-compact-clock',
                x_expand: true,
                x_align: Clutter.ActorAlign.CENTER,
                y_align: Clutter.ActorAlign.CENTER,
            })
  • extension.js:329
    this._compactDate = new St.Label({style_class: 'ponyx-compact-date', y_align: Clutter.ActorAlign.CENTER})
  • extension.js:336
    this._compactEnd = end
  • extension.js:318
    this._compactGlyph = new St.Label({text: '✻', style_class: 'ponyx-glyph', y_align: Clutter.ActorAlign.CENTER})
  • extension.js:354
    this._compactPct = new St.Label({style_class: 'ponyx-compact-pct', y_align: Clutter.ActorAlign.CENTER})
  • extension.js:338
    this._compactRing = new UsageRing('ponyx-ring-small', 2)
  • extension.js:315
    this._compactStart = start
  • extension.js:330
    this._compactTime = new St.Label({style_class: 'ponyx-compact-time', y_align: Clutter.ActorAlign.CENTER})
  • extension.js:678
    this._days = new St.BoxLayout({style_class: 'ponyx-days', x_expand: true, x_align: Clutter.ActorAlign.END})
  • extension.js:570
    this._elapsed = new St.Label({style_class: 'ponyx-seek-time', y_align: Clutter.ActorAlign.CENTER})
  • extension.js:683
    this._eventDot = new St.Widget({style_class: 'ponyx-event-dot', y_align: Clutter.ActorAlign.CENTER})
  • extension.js:686
    this._eventMore = new St.Label({style_class: 'ponyx-event-more', y_align: Clutter.ActorAlign.CENTER})
  • extension.js:682
    this._eventRow = new St.BoxLayout({style_class: 'ponyx-event'})
  • extension.js:684
    this._eventTime = new St.Label({style_class: 'ponyx-event-time', y_align: Clutter.ActorAlign.CENTER})
  • extension.js:685
    this._eventTitle = new St.Label({style_class: 'ponyx-event-title', x_expand: true, y_align: Clutter.ActorAlign.CENTER})
  • extension.js:644
    this._lyricNow = new St.Label({style_class: 'ponyx-lyric-now'})
  • extension.js:650
    this._lyricPlain = new St.Label({style_class: 'ponyx-lyric-plain'})
  • extension.js:630
            this._lyricsBox = new St.BoxLayout({
                style_class: 'ponyx-lyrics',
                orientation: Clutter.Orientation.VERTICAL,
                clip_to_allocation: true,
                x_expand: true,
                y_expand: true,
                visible: false,
            })
  • extension.js:533
            this._mediaContent = new St.BoxLayout({
                style_class: 'ponyx-media-content',
                orientation: Clutter.Orientation.VERTICAL,
                x_expand: true,
            })
  • extension.js:588
            this._mediaEmpty = new St.BoxLayout({
                style_class: 'ponyx-empty',
                orientation: Clutter.Orientation.VERTICAL,
                x_align: Clutter.ActorAlign.CENTER,
                y_align: Clutter.ActorAlign.CENTER,
            })
  • extension.js:693
    this._miniStatus = new St.Label({style_class: 'ponyx-status'})
  • extension.js:690
    this._miniUsage = new St.BoxLayout({style_class: 'ponyx-mini-usage', orientation: Clutter.Orientation.VERTICAL})
  • extension.js:727
    this._models = new St.BoxLayout({style_class: 'ponyx-models', orientation: Clutter.Orientation.VERTICAL})
  • extension.js:677
    this._month = new St.Label({style_class: 'ponyx-month', y_align: Clutter.ActorAlign.CENTER})
  • extension.js:653
            this._plainScroll = new St.ScrollView({
                style_class: 'ponyx-lyrics-scroll',
                hscrollbar_policy: St.PolicyType.NEVER,
                vscrollbar_policy: St.PolicyType.EXTERNAL,
                overlay_scrollbars: true,
                x_expand: true,
                y_expand: true,
       
  • extension.js:726
    this._plan = new St.Label({style_class: 'ponyx-plan'})
  • extension.js:733
            this._refreshButton = new St.Button({
                style_class: 'ponyx-pill-button',
                label: 'Refresh',
                can_focus: true,
                y_align: Clutter.ActorAlign.CENTER,
            })
  • extension.js:571
    this._remaining = new St.Label({style_class: 'ponyx-seek-time ponyx-seek-remaining', y_align: Clutter.ActorAlign.CENTER})
  • extension.js:639
            this._syncedBox = new St.BoxLayout({
                style_class: 'ponyx-lyrics-synced',
                orientation: Clutter.Orientation.VERTICAL,
                x_expand: true,
            })
  • extension.js:368
            this._ticker = new St.Widget({
                style_class: 'ponyx-ticker',
                clip_to_allocation: true,
                // Size comes only from x_expand, so the ticker never asks for the width of its own text.
                min_width: 0,
                natural_width: 0,
                x_expand: tr
  • extension.js:385
    this._tickerFade = new St.Widget({style_class: 'ponyx-ticker-fade'})
  • extension.js:386
    this._tickerFadeStart = new St.Widget({style_class: 'ponyx-ticker-fade-start'})
  • extension.js:379
    this._tickerTrack = new St.BoxLayout({style_class: 'ponyx-ticker-track'})
  • extension.js:556
    this._title = new St.Label({style_class: 'ponyx-title'})
  • extension.js:732
    this._updated = new St.Label({style_class: 'ponyx-updated', x_expand: true, y_align: Clutter.ActorAlign.CENTER})

EGO-L-003 warning

signals connected by extension should be disconnected in disable()

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

Disconnect all signals

  • extension.js:739
    this._refreshButton.connect('clicked', () => this._refreshUsage(true))
  • extension.js:608
            this._seek.connect('drag-begin', () => {
                this._seekDragging = true;
            })
  • extension.js:611
            this._seek.connect('drag-end', () => {
                this._seekDragging = false;
                this._commitSeek();
            })
  • extension.js:615
            this._seek.connect('notify::value', () => {
                if (this._seekUpdating)
                    return;
                // Keyboard and scroll changes arrive without a drag; drags commit on release.
                if (this._seekDragging)
                    this._showSeekTimes(this._seek.value * (this.
  • extension.js:395
    this._ticker.connect('notify::width', () => this._queueTickerRestart())
  • extension.js:294
            this.actor.connect('button-release-event', (_actor, event) => {
                if (this._expanded || event.get_button() !== Clutter.BUTTON_PRIMARY)
                    return Clutter.EVENT_PROPAGATE;
                this._open();
                return Clutter.EVENT_STOP;
            })
  • extension.js:291
    this.actor.connect('notify::hover', () => this._onHoverChanged())
  • extension.js:292
    this.actor.connect('notify::width', () => this._centerChildren())
  • extension.js:293
    this.actor.connect('scroll-event', (_actor, event) => this._onScroll(event))

EGO-L-004 warning

main loop sources should be removed in disable()

Main loop sources assigned in `enable()` are missing matching removals in `disable()` or its helper methods.

Remove main loop sources

  • extension.js:1427
                this._lyricsTimer = GLib.timeout_add(GLib.PRIORITY_DEFAULT, LYRICS_TICK_MS, () => {
                    this._showLyricLine();
                    return GLib.SOURCE_CONTINUE;
                })
  • extension.js:956
            this._popupTimer = GLib.timeout_add(GLib.PRIORITY_DEFAULT, POPUP_MS, () => {
                this._popupTimer = 0;
                this._hidePopup();
                return GLib.SOURCE_REMOVE;
            })
  • extension.js:1116
            this._refreshTimer = GLib.timeout_add_seconds(GLib.PRIORITY_DEFAULT, seconds, () => {
                this._refreshUsage();
                return GLib.SOURCE_CONTINUE;
            })
  • extension.js:1416
                this._seekTimer = GLib.timeout_add(GLib.PRIORITY_DEFAULT, SEEK_POLL_MS, () => {
                    this._pollPosition();
                    return GLib.SOURCE_CONTINUE;
                })
  • extension.js:275
            this._tickTimer = GLib.timeout_add_seconds(GLib.PRIORITY_DEFAULT, TICK_SECONDS, () => {
                this._syncCalendar();
                this._syncUsage();
                return GLib.SOURCE_CONTINUE;
            })

All Versions

Version Status
1.0 (1) Unreviewed