Review of "Nookdo" version 1.0 (1)

Details Page Preview

A small, beautifully animated to-do list in your top bar. Add, complete and clear tasks from a smooth popup, with optional gentle reminders that pop up on a timer only while you still have something to do. Shortcut: Super+Alt+T

Extension Homepage
https://github.com/sfaisaldev/nookdo

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 4

Shexli found 4 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

  • taskStore.js:44
    GLib.file_get_contents(legacy)
  • taskStore.js:56
    GLib.file_get_contents(this._path)

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

  • indicator.js:172
    this._bar = new St.Widget({style_class: 'nookdo-bar', y_expand: true})
  • indicator.js:174
            this._checkIcon = new St.Icon({
                icon_name: 'object-select-symbolic',
                icon_size: 12,
                style_class: 'nookdo-check-icon',
            })
  • indicator.js:198
            this._del = new St.Button({
                style_class: 'nookdo-del',
                child: new St.Icon({icon_name: 'window-close-symbolic', icon_size: 12}),
                can_focus: true,
                opacity: 0,
                y_align: Clutter.ActorAlign.CENTER,
            })
  • indicator.js:300
            this._edit = new St.Entry({
                style_class: 'nookdo-edit-entry',
                text: this.task.text,
                can_focus: true,
                x_expand: true,
            })
  • indicator.js:189
    this._label = new St.Label({style_class: 'nookdo-label', reactive: true, x_expand: true})
  • indicator.js:194
    this._meta = new St.Label({style_class: 'nookdo-meta'})
  • indicator.js:180
            this.check = new St.Button({
                style_class: 'nookdo-check',
                child: this._checkIcon,
                can_focus: true,
                y_align: Clutter.ActorAlign.CENTER,
            })
  • indicator.js:164
            this.row = new St.BoxLayout({
                style_class: 'nookdo-row',
                reactive: true,
                track_hover: true,
                x_expand: true,
            })

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

  • indicator.js:172
    this._bar = new St.Widget({style_class: 'nookdo-bar', y_expand: true})
  • indicator.js:174
            this._checkIcon = new St.Icon({
                icon_name: 'object-select-symbolic',
                icon_size: 12,
                style_class: 'nookdo-check-icon',
            })
  • indicator.js:198
            this._del = new St.Button({
                style_class: 'nookdo-del',
                child: new St.Icon({icon_name: 'window-close-symbolic', icon_size: 12}),
                can_focus: true,
                opacity: 0,
                y_align: Clutter.ActorAlign.CENTER,
            })
  • indicator.js:300
            this._edit = new St.Entry({
                style_class: 'nookdo-edit-entry',
                text: this.task.text,
                can_focus: true,
                x_expand: true,
            })
  • indicator.js:189
    this._label = new St.Label({style_class: 'nookdo-label', reactive: true, x_expand: true})
  • indicator.js:194
    this._meta = new St.Label({style_class: 'nookdo-meta'})
  • indicator.js:159
            this.actor = new St.Widget({
                layout_manager: new RevealLayout(),
                clip_to_allocation: true,
                x_expand: true,
            })
  • indicator.js:180
            this.check = new St.Button({
                style_class: 'nookdo-check',
                child: this._checkIcon,
                can_focus: true,
                y_align: Clutter.ActorAlign.CENTER,
            })
  • indicator.js:164
            this.row = new St.BoxLayout({
                style_class: 'nookdo-row',
                reactive: true,
                track_hover: true,
                x_expand: true,
            })

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

  • indicator.js:220
    this._del.connect('clicked', () => this.popup.removeTask(this))
  • indicator.js:218
    this._del.connect('key-focus-in', () => (this._del.opacity = 255))
  • indicator.js:307
    ct.connect('activate', () => this.finishEdit(true))
  • indicator.js:315
    ct.connect('key-focus-out', () => this.finishEdit(true))
  • indicator.js:308
            ct.connect('key-press-event', (_a, event) => {
                if (event.get_key_symbol() === Clutter.KEY_Escape) {
                    this.finishEdit(false);
                    return Clutter.EVENT_STOP;
                }
                return Clutter.EVENT_PROPAGATE;
            })
  • indicator.js:221
            this._label.connect('button-press-event', (_a, event) => {
                if (event.get_click_count() === 2) {
                    this.startEdit();
                    return Clutter.EVENT_STOP;
                }
                return Clutter.EVENT_PROPAGATE;
            })
  • indicator.js:219
    this.check.connect('clicked', () => this.popup.toggleTask(this))
  • indicator.js:211
            this.row.connect('notify::hover', () => {
                this._del.ease({
                    opacity: this.row.hover || this._del.has_key_focus() ? 255 : 0,
                    duration: 160,
                    mode: M.EASE_OUT_QUAD,
                });
            })

All Versions

Version Status
1.0 (1) Unreviewed