Review of "CodexBar" version 24

Details Page Preview

The port of Codexbar for GNOME. Featured on official codebar repo by steipete. All Codexbar CLI supported providers can be used here.

Extension Homepage
https://github.com/InledGroup/codexbar-gnome

No comments.

Diff Against

Files

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

Shexli (experimental) warning 4 manual_review 1

Shexli found 5 issues that may need reviewer attention.

EGO-X-004 warning

extensions should avoid synchronous file IO in shell code

Shell code should avoid synchronous file IO APIs like `GLib.file_get_contents()` and `Gio.File.load_contents()`.

File Operations

  • extension.js:373
    mo.load_contents(null)

EGO-A-005 manual_review

extensions should not access the clipboard directly

Direct clipboard access via `St.Clipboard.get_default()` requires reviewer scrutiny.

Review Guidelines

  • extension.js:2024
    St.Clipboard.get_default()

EGO-A-004 warning

extension files should not contain excessive ungated console logging

File contains 6 ungated console.log/warn/error calls (threshold: 5).

No excessive logging

  • extension.js:585
    console.error(e, "CodexBar: Failed to parse providers")
  • extension.js:626
    console.error(error, "CodexBar: refresh failed")
  • extension.js:777
    console.error(error, `CodexBar: API error for ${provider.name}`)
  • extension.js:841
              console.error(
                error,
                `CodexBar: error running provider ${provider.name}`,
              )
  • extension.js:1044
    console.error(`[CodexBar] could not open ${uri}: ${e}`)
  • extension.js:1125
    console.error(`[CodexBar] could not open ${url}: ${e}`)

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:303
    this._footerSection = new PopupMenu.PopupMenuSection()
  • extension.js:301
    this._historySection = new PopupMenu.PopupMenuSection()
  • extension.js:158
        this._refreshBtn = new St.Button({
          child: refreshContent,
          style_class: "codexbar-header-button",
          y_align: Clutter.ActorAlign.CENTER,
        })
  • extension.js:143
        this._refreshIcon = new St.Icon({
          icon_name: "view-refresh-symbolic",
          icon_size: 16,
        })
  • extension.js:149
        this._refreshSpinner = new St.Label({
          text: "◐",
          style_class: "codexbar-refresh-spinner",
          visible: false,
          y_align: Clutter.ActorAlign.CENTER,
        })
  • extension.js:286
        this._tabsContainer = new St.BoxLayout({
          style_class: "codexbar-tabs-container",
          orientation: Clutter.Orientation.HORIZONTAL,
        })

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:322
        this._indicator.menu.connect("open-state-changed", (_menu, isOpen) => {
          if (!isOpen) {
            setScrollbarVisible(false);
            return;
          }
          if (this._loading) return;
          if (Date.now() - this._lastRefreshAt < 10000) return;
          this._requestRefresh();
        })
  • extension.js:163
    this._refreshBtn.connect("clicked", () => this._requestRefresh())
  • extension.js:237
        this._tabsScroll.connect("enter-event", (_actor, event) => {
          const related = event.get_related();
          if (!related || !this._tabsScroll.contains(related)) {
            setScrollbarVisible(true);
          }
          return Clutter.EVENT_PROPAGATE;
        })
  • extension.js:245
        this._tabsScroll.connect("leave-event", (_actor, event) => {
          const related = event.get_related();
          if (!related || !this._tabsScroll.contains(related)) {
            setScrollbarVisible(false);
          }
          return Clutter.EVENT_PROPAGATE;
        })
  • extension.js:253
        this._tabsScroll.connect("notify::hover", () => {
          setScrollbarVisible(this._tabsScroll.hover);
        })
  • extension.js:257
        this._tabsScroll.connect("scroll-event", (_actor, event) => {
          setScrollbarVisible(true);
          const hadj = this._tabsScroll.get_hadjustment();
          if (!hadj) return Clutter.EVENT_PROPAGATE;
    
          const dir = event.get_scroll_direction();
          if (dir === Clutter.ScrollDirection.SMOOTH
  • extension.js:1139
        dialog.connect("destroy", () => {
          if (this._aboutDialog === dialog) this._aboutDialog = null;
        })

All Versions

Previous Reviews on this Version

Inled Group posted a review
I have seen some shexli errors, will upload update, sorry.
Inled Group auto- rejected
Auto-rejected because of new version 25 was uploaded