-
Notifications
You must be signed in to change notification settings - Fork 108
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add cutomizable timer duration #319
Conversation
It look like there is some issues with my code, I can't fix PR right now, I will have more time tomorrow evening. Cheers |
I haven't looked at the code yet, but would it be better to store timer lengths using 1 key as an array, instead of 3 separate keys? Also, if I remember correctly, red is supposed to be for destructive actions according to the GNOME Human Interface Guidelines I think it was? I don't know if that applies to extensions, but it might be worth considering to be consistent with the rest of GNOME. Still, this is a clear improvement over the current system, nice work :) |
Yes I totally agree, I was thinking the same. I just used a simple 'int' type for each duration but it need to be unified with a single key.
It make sense, I hesitated to keep the red color anyway so I can remove it. There are some other small improvements to make, I'll try to fix it all this evening or tomorrow for final review. |
There is a weird eslint issue:
The code is the same as line 66, but it cause an error only in line 283. Should I ignore this using |
I think it's because the variables have different names, |
Thanks |
31cf5cd
to
79915b7
Compare
Thanks for reporting, icon fixed. Tested in Ubuntu 24.04 / Fedora 40. |
The pipeline failure seems to be eslint 9 complaining about arguments, we wouldn't need to try and fix it if we just drop the jsdoc stuff, since I don't think we don't really use it anyway If we drop it we just need to update the makefile, workflow definition and linter configs |
I tried to remove the jsdoc plugin but it's seams that we need to rewrite the entire Eslint config for version 9.0 (migrate-to-9.0.0) as they changed the config file format. Should we make a separate PR for this ? |
Yeah, probably a good idea |
This feature is awesome. I've been wanting long timers since I work on dual computers and need both on during my work day. This is saving me from having to remember to turn caffeine off at the end of my work day. |
7ef6741
to
dd1222c
Compare
@eonpatapon @stuarthayhurst |
Looks ok to me, do we want to merge this with a squash merge since there are a lot of small commits and fixes for previous commits? |
Remove old code
Fix translations
Fix spaces and syntax issues Remove unused vars
Fix spacing Remove trailling space Fix object-shorthand Fix spacing
Fix object-shorthand with value Rename constant with uppercase Symplify code Replace Gtk.Switch/ActionRow with Adw.SwitchRow Improve code: get durations values Fix stopwatch icon Update translations
This reverts commit 89ec49c.
Update locales Update catalan translation
Simplify code and update locales
Just a heads up, the locales don't need to be updated with every change if it's just line numbers that changed, it also makes reverting commits harder I can't see anything else to change, LGTM. I'll rebase #334 when this is merged. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok I will stop doing that, it's also make it easiest. Then, is translation reference update when installing the extension ? |
Whoops, I missed the lines that did actually change in those commits, sorry. For my own extensions, I update the translations when a feature is completely ready since I find that simpler. |
I'll run this for a couple days and let you know if anything goes wrong, otherwise it's looking good :) |
Super stoked to see this feature added! Any idea when we'll see a new release? |
Most likely with the release to add GNOME 47 support, which should be around September time. In the meantime, you could always build from source, you'll just have to increase the version number to match the current release, otherwise GNOME will 'update' it. |
Add new "Timer" menu in preferences with customizable timer duration.
This will close #296