feat(habitica): add Habitica task dashboard#799
Merged
Conversation
Noctalia users can now connect Habitica from the shell, see their avatar and stats, inspect active work, and score supported tasks without switching context. The submission follows the registry shape with a real preview image, English strings, README documentation, and local-only credential/cache ignores. Constraint: The registry requires the manifest repository field to point at noctalia-dev/noctalia-plugins. Constraint: The preview image must be 16:9 at 960x540. Rejected: Submit a mock preview | reviewers need a faithful capture of the real plugin UI Confidence: high Scope-risk: narrow Directive: Keep settings.json and cache/ ignored; do not include local Habitica credentials or cached account data. Tested: JSON validation for manifest.json and i18n/en.json Tested: preview.png verified as 960x540 PNG generated from a real Noctalia screenshot Tested: Local grep checks matching the registry code-quality patterns for hardcoded user-facing strings, hardcoded numeric style fields, and console.log Tested: Credential scan found only code field names and empty defaults, not credential values Not-tested: Full GitHub Actions run before PR creation
Contributor
Automatic Code Quality ReviewFile: habitica/BarWidget.qml
+ tooltip += "\n" + (main?.hpText() || pluginApi?.tr("tooltip.hpFallback")) + " - " + (main?.xpText() || pluginApi?.tr("tooltip.xpFallback")) + " - " + (main?.goldText() || pluginApi?.tr("tooltip.goldFallback")) |
The automatic code-quality review flagged a low-priority translation fallback pattern. The tooltip fallbacks now assign translated labels to local variables before composing the string, keeping behavior unchanged while satisfying the registry guidance. Constraint: Address review automation without changing plugin behavior. Confidence: high Scope-risk: narrow Tested: Local grep check for pluginApi.tr fallback expressions
Contributor
Author
|
Addressed in |
spiros132
reviewed
May 12, 2026
spiros132
left a comment
Collaborator
There was a problem hiding this comment.
Some feedback about the PR! :D
The review asked to rely on plugin settings for defaults and cache state, use standard debug logging, and move remaining user-facing runtime text into translations. The Habitica plugin now keeps its cache in pluginSettings, removes the extra cache file setup, and initializes settings edit values through bindings. Constraint: PR 799 review requested pluginSettings as the cache source instead of separate files Rejected: Keep FileView plus cache directory | review explicitly asked to avoid the separate cache files Confidence: high Scope-risk: narrow Tested: jq empty habitica/manifest.json habitica/i18n/en.json; git diff --check; local emulation of repository code-quality and manifest checks; user-confirmed runtime test with Habitica credentials
1298a11 to
438f75f
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds
habitica, a Noctalia Shell plugin for Habitica users.The plugin provides:
Why
Habitica is a task manager/game used for daily routines and habits. This plugin lets users check and score their current Habitica work directly from Noctalia without opening the web or mobile app.
Testing
habitica/manifest.jsonandhabitica/i18n/en.jsonwithpython -m json.toolhabitica/preview.pngis a 960x540 PNGtext,label, anddescriptionstringsborder.width,spacing,pointSize,radius, andmarginstyle fieldsconsole.logNotes
settings.jsonandcache/are ignored so local Habitica credentials and cached API responses are not published.