Skip to content

docs(pomodoro-timer): give every setting its config.json key - #384

Open
ChuckBuilds wants to merge 1 commit into
mainfrom
docs/pomodoro-timer-keys
Open

docs(pomodoro-timer): give every setting its config.json key#384
ChuckBuilds wants to merge 1 commit into
mainfrom
docs/pomodoro-timer-keys

Conversation

@ChuckBuilds

@ChuckBuilds ChuckBuilds commented Sep 3, 2026

Copy link
Copy Markdown
Owner

What was missing

The pomodoro README is already one of the strongest in the repo — real rendered screenshots, an MQTT reference, Home Assistant automation examples. But it documented all 46 settings by their web-UI label only:

| Font | (blank) | Path to a TTF relative to the LEDMatrix root… |

Not one of the 46 JSON keys appeared anywhere in the file. Anyone editing config/config.json directly, or reading a key back out of a log line, had nothing to map font_pathFont. Every other plugin README documents by key, so this was also the odd one out.

All four tables now carry both:

| Font | font_path | (blank) | Path to a TTF relative to the LEDMatrix root… |

Verified against the schema: 46 properties, 46 documented, none missing. Rows that cover several settings at once (the phase colours, the five labels, username/password) list each key.

Also added: the schema ranges that were absent (work_minutes 1–180, publish_interval_seconds 1–60, labels 24 chars), and a minimal config.json example.

Two corrections

Checking the claims against web_interface/templates/v3/partials/plugin_config.html in the core turned up two that were wrong:

  • enabled is not a form field. The template explicitly skips it — {# Skip 'enabled' field - it's handled by the header toggle #} — so the table now says so rather than implying a checkbox in the list.
  • Advanced settings are a collapsed section, not a toggle. Flat properties flagged x-advanced are grouped into one collapsed Advanced Settings section after the basic fields.

Root README

The plugin was missing from the root README's Available Plugins listing entirely, so it gains a Productivity section with its hero preview. update_readme_previews.py now also looks for plugins/<id>/assets/hero.png, because this plugin ships its own renderer and keeps its images beside the plugin rather than in docs/assets/.

Three other plugins are missing from that listing too — filed separately as #385.

Checks

Docs only. 1.3.4 → 1.3.5.

🤖 Generated with Claude Code

The README documented all 46 settings by their web-UI label only -- "Font",
"Burndown Indicator", "How Paused Looks" -- so none of the JSON keys appeared
anywhere. Anyone editing config/config.json directly, or reading a key back
out of a log line, had no way to map one to the other. Every table now carries
the key beside the label.

Two claims corrected while checking them against the core's config template:
"enabled" is the toggle in the tab header, not a field in the form, and the
advanced settings are grouped into a collapsed "Advanced Settings" section
rather than hidden behind a toggle.

The plugin was also missing from the root README's plugin listing entirely, so
it gains a Productivity section. update_readme_previews.py now looks for a
plugin-local assets/hero.png as well as docs/assets/<id>/hero.png, since this
plugin ships its own renderer and keeps its images beside the plugin.

No functional change; check_plugin.py passes 8/8 with all four goldens
matching.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
@coderabbitai

coderabbitai Bot commented Sep 3, 2026

Copy link
Copy Markdown
Contributor

Important

  • 🔍 Trigger review

This repository does not receive automatic reviews because it has fewer than 10 stars.

⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Team

Run ID: c4c86173-c11d-4407-853b-884327027f62


Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@codacy-production

Copy link
Copy Markdown

Up to standards ✅

🟢 Issues 0 issues

Results:
0 new issues

View in Codacy

🟢 Metrics 0 complexity

Metric Results
Complexity 0

View in Codacy

NEW Get contextual insights on your PRs based on Codacy's metrics, along with PR and Jira context, without leaving GitHub. Enable AI reviewer
TIP This summary will be updated as you push new changes.

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.

1 participant