Skip to content

Redesign card and panel to match SSH Docker visual style#15

Draft
Copilot wants to merge 2 commits intomasterfrom
copilot/improve-card-and-panel-design
Draft

Redesign card and panel to match SSH Docker visual style#15
Copilot wants to merge 2 commits intomasterfrom
copilot/improve-card-and-panel-design

Conversation

Copy link
Contributor

Copilot AI commented Mar 14, 2026

The Task Tracker card and panel used a flat, fully-colored card design. This updates both to match the SSH Docker card/panel style from gensyn/ssh_docker.

Card (task-tracker-card.js)

  • Replaced full-colored-card with colored header-only + standard card background for content
  • Added state badge (semi-transparent pill) in header
  • Replaced circular button with a pill-shaped action button (✓ Mark as done) in the content area
  • Switched to full re-render pattern (_render() on every set hass()) — removes the brittle "build once, update cells" approach
  • Table text now uses var(--primary-text-color) / var(--secondary-text-color)

Panel (task-tracker-panel.js)

  • Each task card gets same header-only coloring via inline style="background:${_stateColor(state)}"
  • State badge in header; mark-done moved from header icon to bottom action button row
  • Removed obsolete .task-card.done / .task-card.inactive flat-color CSS rules

Shared

  • _stateColor(state) added to both components: due#e74c3c, done#27ae60, inactive#3498db
  • Card version bumped 1.0.02.0.0 in const.py to bust HA's resource cache
Original prompt

This section details on the original issue you should resolve

<issue_title>Card and panel could look better</issue_title>
<issue_description>I really like the layout/design of the card and panel at https://github.com/gensyn/ssh_docker/tree/main/frontend.</issue_description>

<agent_instructions>Please change the Task Tracker card and panel to mimic the SSH Docker card and panel?</agent_instructions>

Comments on the Issue (you are @copilot in this section)


💬 Send tasks to Copilot coding agent from Slack and Teams to turn conversations into code. Copilot posts an update in your thread when it's finished.

Co-authored-by: gensyn <36128035+gensyn@users.noreply.github.com>
Copilot AI changed the title [WIP] Update Task Tracker card and panel design Redesign card and panel to match SSH Docker visual style Mar 14, 2026
Copilot AI requested a review from gensyn March 14, 2026 14:17
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.

Card and panel could look better

2 participants