Skip to content

Device Size Support#1232

Merged
jeffredodd merged 3 commits into
Fiestaboard:mainfrom
DarthXoc:feat-device-size
Jun 19, 2026
Merged

Device Size Support#1232
jeffredodd merged 3 commits into
Fiestaboard:mainfrom
DarthXoc:feat-device-size

Conversation

@DarthXoc

Copy link
Copy Markdown
Contributor

Description

  • Added support for plugins to read a board's width (columns) and height (rows)
  • This allows for plugins to dynamically adjust their content between Flagship (22x6) and Note (15x3)
    • Example using Date & Time: Thursday, August 27 (Flagship), Thu, Aug 27 (Note)

Type of Change

  • Bug fix
  • New feature
  • New plugin
  • Documentation update
  • Refactor / maintenance

Checklist

  • I have tested my changes locally
  • I have added/updated tests where applicable
  • I have updated documentation where applicable
  • My code follows the project's coding standards

Note

I'm a Swift developer, so I'm admittedly using Claude Code quite a bit for this. If you notice anything amiss, just let me know!

# Notes
- Added support for plugins to read a board's width (columns) and height (rows)
- This allows for plugins to dynamically adjust their content between Flagship (22x6) and Note (15x3)
- Example using Date & Time: `Thursday, August 27` (Flagship), `Thu, Aug 27` (Note)
@github-actions github-actions Bot added patch backend dependencies Pull requests that update a dependency file docs frontend plugin labels Jun 19, 2026
Signed-off-by: Jason Cox <DarthXoc@users.noreply.github.com>
@github-actions github-actions Bot added patch and removed patch labels Jun 19, 2026
@DarthXoc

Copy link
Copy Markdown
Contributor Author

@jeffredodd Noticed today that you're working on adding Note array support in #1185. If you're planning on also making that width and height data available to plugins in that PR, I can close this PR and just hold off on updating some plugins that would benefit from having dynamic string sizing support.

Platform Tests failed on ruff before pytest ran:

- B017: assert the specific AttributeError (not blind Exception) for the
  frozen BoardContext assignment in test_devices.py
- I001: sort _DEFAULT_CACHE_KEY into the base import block
- ruff format: collapse over-wrapped lines in registry.py and
  test_plugin_board_context.py (both well under the 120-col limit)

ruff 0.15.18 'check' and 'format --check' now pass across src/ plugins/ tests/ scripts/; affected suites (96 tests) green.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@github-actions github-actions Bot added patch and removed patch labels Jun 19, 2026
@jeffredodd jeffredodd enabled auto-merge June 19, 2026 23:26
@jeffredodd

Copy link
Copy Markdown
Member

@DarthXoc Nah lets get this merged and I can build from it with Arrays! Thanks for contributing!

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Docs review

Verdict: looks-good - voice, format, and accuracy all check out.

Checked:

  • docs/development/PLUGIN_DEVELOPMENT.md - new Board awareness section: BoardContext attributes (device_type, cols/width, rows/height) verified against src/devices.py at the PR head. Flagship 22x6 / Note 15x3 dimensions match DEVICE_DIMENSIONS. Code example is accurate. Table separator style matches existing PLUGIN_DEVELOPMENT.md style. Reference to plugins/date_time/init.py as a worked example resolves.
  • plugins/date_time/README.md - three new rows in the Formatted table plus the follow-on paragraph. Variable names, descriptions, and examples cross-checked against the code and manifest. The *_adaptive / date_pretty descriptions accurately reflect the narrow = board.width < 22 branch in init.py.
  • plugins/date_time/docs/SETUP.md - same three rows plus the blockquote callout. Accurate and concise.

No branding confusion (FiestaBoard vs Vestaboard), no PII, no dead links.

Bot: Auto-review by claude-docs-review.yml.

@jeffredodd jeffredodd added this pull request to the merge queue Jun 19, 2026
Merged via the queue into Fiestaboard:main with commit e9738f1 Jun 19, 2026
20 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backend dependencies Pull requests that update a dependency file docs frontend patch plugin

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants