Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions packages/cli/assets/design/components.css
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,8 @@
.mk-entry:active { transform: scale(.96); }
.mk-entry .glyph { font-size: 40px; line-height: 1; }
.mk-entry.is-wide { grid-column: 1 / -1; min-height: 104px; }
.mk-entry .hint { margin-top: -2px; font-size: var(--mk-text-xs); font-weight: 600; color: var(--mk-ink-3); }
.mk-entry.has-attention .hint { color: var(--mk-warn); }
/* One small signal when something needs attention, never a full value */
.mk-entry.has-attention::after {
content: ""; position: absolute; top: 14px; right: 14px; width: 12px; height: 12px; border-radius: 50%;
Expand Down
6 changes: 4 additions & 2 deletions packages/cli/assets/design/gallery.html
Original file line number Diff line number Diff line change
Expand Up @@ -275,6 +275,8 @@
.mk-entry:active { transform: scale(.96); }
.mk-entry .glyph { font-size: 40px; line-height: 1; }
.mk-entry.is-wide { grid-column: 1 / -1; min-height: 104px; }
.mk-entry .hint { margin-top: -2px; font-size: var(--mk-text-xs); font-weight: 600; color: var(--mk-ink-3); }
.mk-entry.has-attention .hint { color: var(--mk-warn); }
/* One small signal when something needs attention, never a full value */
.mk-entry.has-attention::after {
content: ""; position: absolute; top: 14px; right: 14px; width: 12px; height: 12px; border-radius: 50%;
Expand Down Expand Up @@ -529,9 +531,9 @@ <h2 class="sec">Example screens · tap the tiles</h2>
<div class="mk-display" style="margin:10px 2px 6px">Good evening</div>
<div class="mk-stale-banner" style="margin:0 0 16px">The gate is open</div>
<div class="mk-entries">
<button class="mk-entry has-attention"><span class="glyph">🚗</span>Gate</button>
<button class="mk-entry has-attention"><span class="glyph">🚗</span>Gate<span class="hint">Open</span></button>
<button class="mk-entry"><span class="glyph">🏡</span>House</button>
<button class="mk-entry"><span class="glyph">🪟</span>Shutters</button>
<button class="mk-entry"><span class="glyph">🪟</span>Shutters<span class="hint">Closed</span></button>
<button class="mk-entry"><span class="glyph">🛏️</span>Bedrooms</button>
<button class="mk-entry"><span class="glyph">🌡️</span>Heating</button>
<button class="mk-entry"><span class="glyph">📷</span>Cameras</button>
Expand Down
8 changes: 6 additions & 2 deletions packages/cli/assets/design/guide.md
Original file line number Diff line number Diff line change
Expand Up @@ -76,8 +76,12 @@ and close it. Lay it out that way.
9. **Each resident gets their own home screen.** A guest allowed only the
gate sees one tile, or lands straight on the gate page.

An entry tile may carry one small signal when something needs attention
(`.mk-entry.has-attention`, e.g. the gate is open): never a full value.
An entry tile may tell, discreetly, the state of the one thing it opens
(`.mk-entry .hint`: "Closed" under "Gate"), so residents know without
opening it. Keep it to a word or two in small, calm text, only for tiles about
a single device, and add the attention dot (`.mk-entry.has-attention`) when
that state needs looking at (the gate is open). Never a full value, a number
list or a reading of several sensors.

## Principles

Expand Down
2 changes: 1 addition & 1 deletion packages/cli/assets/starter/app/app/theme.ts

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions packages/cli/design/gallery.template.html
Original file line number Diff line number Diff line change
Expand Up @@ -153,9 +153,9 @@ <h2 class="sec">Example screens · tap the tiles</h2>
<div class="mk-display" style="margin:10px 2px 6px">Good evening</div>
<div class="mk-stale-banner" style="margin:0 0 16px">The gate is open</div>
<div class="mk-entries">
<button class="mk-entry has-attention"><span class="glyph">🚗</span>Gate</button>
<button class="mk-entry has-attention"><span class="glyph">🚗</span>Gate<span class="hint">Open</span></button>
<button class="mk-entry"><span class="glyph">🏡</span>House</button>
<button class="mk-entry"><span class="glyph">🪟</span>Shutters</button>
<button class="mk-entry"><span class="glyph">🪟</span>Shutters<span class="hint">Closed</span></button>
<button class="mk-entry"><span class="glyph">🛏️</span>Bedrooms</button>
<button class="mk-entry"><span class="glyph">🌡️</span>Heating</button>
<button class="mk-entry"><span class="glyph">📷</span>Cameras</button>
Expand Down
2 changes: 1 addition & 1 deletion packages/cli/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@miakapp/cli",
"version": "4.1.0",
"version": "4.1.1",
"description": "Agent-first Miakapp command line: check, build, publish, activate and roll back home interfaces",
"type": "module",
"engines": {
Expand Down
2 changes: 1 addition & 1 deletion packages/cli/src/version.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,4 @@
*/
export const PACKAGE_NAME = '@miakapp/cli';

export const CLI_VERSION = '4.1.0';
export const CLI_VERSION = '4.1.1';
Loading