Skip to content

Fully working again?#532

Open
jonrandy wants to merge 5 commits into
bwinton:mainfrom
jonrandy:main
Open

Fully working again?#532
jonrandy wants to merge 5 commits into
bwinton:mainfrom
jonrandy:main

Conversation

@jonrandy
Copy link
Copy Markdown

@jonrandy jonrandy commented Feb 12, 2026

I had OpenCode have a bash at getting it all working again... seems to have worked!

Note: I had to npm install --legacy-peer-deps

@bwinton
Copy link
Copy Markdown
Owner

bwinton commented Feb 12, 2026

Seems like it's not entirely working… 😉
But thank you for the update! If you can get the CI passing, I would love to merge this.

@bwinton
Copy link
Copy Markdown
Owner

bwinton commented Feb 12, 2026

(Also, if you felt like taking over maintainership, I'd be more than happy to pass it along.)

@jonrandy
Copy link
Copy Markdown
Author

CI is passing now 👍

@jkrehm
Copy link
Copy Markdown

jkrehm commented Mar 17, 2026

Curious: does this fix the issue where you can't snooze except by right-clicking on an inactive tab and choosing one of the default options? If so, ❤️.

@jonrandy
Copy link
Copy Markdown
Author

It seems to fix everything... feel free to test

Comment thread bin/generate-manifest.js
}, packageMeta.webextensionManifest);
const manifest = Object.assign(
{
name: 'SnoozeTabs',
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Given everything else in this block, what do you think about making this packageMeta.display_name and adding that to the package.json?

Comment thread package.json
"GA_TRACKING_ID": "UA-90911916-2",
"productionLocales": "en-US,ar,bn-BD,bs,cak,cs,de,dsb,el,es-AR,es-CL,es-ES,es-MX,fa,fr,fy-NL,he,hsb,hu,id,it,ja,ka,kab,ms,nb-NO,nl,nn-NO,pt-BR,pt-PT,ro,ru,sk,sl,sq,sr,sv-SE,te,tr,uk,zh-CN,zh-TW"
},
"webextensionManifest": {
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is there a reason we moved this out of here and into the generateManifest.js file?

Comment thread package.json
"bundle:css": "npm run lint:sass && shx mkdir -p dist/popup && node-sass src/popup/snooze.scss > dist/popup/snooze.css",
"package": "cross-env NODE_ENV=production npm run build && web-ext build -s dist --overwrite-dest && mv web-ext-artifacts/*.zip addon.xpi",
"package:dev": "cross-env NODE_ENV=development npm run build && web-ext build -s dist --overwrite-dest && mv web-ext-artifacts/*.zip addon-dev.xpi",
"bundle:js": "NODE_OPTIONS=--openssl-legacy-provider npm run lint:js && NODE_OPTIONS=--openssl-legacy-provider webpack",
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This seems like a lot of duplication. Can we set it once in a more common place, and let it be picked up from there?

Comment thread package.json
},
"engines": {
"node": ">=8.9.4"
"node": ">=16.0.0"
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could we make this node 18, to match the circleci config?

Comment thread package.json
"contributors": [
"Les Orchard <me@lmorchard.com> (http://lmorchard.com/)"
],
"contributors": ["Les Orchard <me@lmorchard.com> (http://lmorchard.com/)"],
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

At this point, maybe you should add yourself to the list of contributors… 😉

Comment thread src/background.js
function flashFavicon(tab) {
// FIX 3: executeScript on a freshly-created tab can fire before the page is
// ready, producing "Actor 'Conduits' destroyed" rejections. We catch
// and log rather than letting them become unhandled.
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we wait for the page to be ready instead?

Comment thread src/background.js
return messageOps.confirm(message);
}

// FIX 1: Use browser.tabs.sendMessage (not chrome.tabs.sendMessage).
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should remove the comments that have already been implemented.

Comment thread src/popup/snooze.scss
@import 'node_modules/rc-calendar/assets/index';
@import 'node_modules/rc-time-picker/assets/index';
@import 'node_modules/photon-colors/colors.scss';
@import '../../node_modules/rc-calendar/assets/index';
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why was this change needed?

Comment thread src/lib/confirm-bar.js
'message': message
});
sendShowUpdate(showCheckbox);
const bar = document.createElement('div');
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd prefer to leave this as confirmationBar to indicate what it's for…

@jonrandy
Copy link
Copy Markdown
Author

In all honesty - I didn't make ANY of the changes that fixed the add-on - Opencode did - I was just the monkey testing the add-on in the browser and giving feedback. I always wanted SnoozeTabs to work again, and also wanted to test out the capabilities of Opencode... so that's what I did.

I'm super busy with my day-to-day work right now and unfortunately don't really have much time for more on this. I did scan over your review comments though, and they do seem sensible.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants