Design: Create a channel and More, refined (one search, fixed action bar, folding parts, quick path)

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-11-07 10:07:13 +00:00
co-authored by Claude Opus 5.5
parent 77171dac26
commit 8cbea94b1d
4 changed files with 225 additions and 0 deletions
+224
View File
@@ -0,0 +1,224 @@
#!/usr/bin/env python3
"""
Orbit Companion: Create a channel and More, refined (Paul, 7 November 2026, after testing Smart setup v2 on his phone:
"not scrolling to the bottom, search could include the collections, collapsible columns, tidy up the flow, More could do
with a finer look"). Design proof only, drawn as SVG and converted and exported with FigCraft, in the Orbit Night look.
The refinements: one search for everything (titles, collections, networks, genres); the action bar fixed at the foot so
nothing needs scrolling to; filters and day parts that fold away; a quick path where the Director does the work and you
review; a review page that says how the week will feel; More reorganised into who's watching, what needs you, your
channels, and settings.
"""
import importlib.util
import subprocess
from pathlib import Path
HERE = Path(__file__).resolve().parent
spec = importlib.util.spec_from_file_location('comp', HERE / 'build-companion.py')
k = importlib.util.module_from_spec(spec); spec.loader.exec_module(k)
t, rr, header, tabbar, phone, W, H = k.t, k.rr, k.header, k.tabbar, k.phone, k.W, k.H
c = k.LOOKS['Orbit Night']
GREEN, RED = '#7EE0A8', '#FF6B6B'
def steps(active, y=104):
names = ['Shows', 'Shape', 'When', 'Review']
o = ''
for i, n in enumerate(names):
x = 24 + i * 88
o += rr(x, y, 80, 4, 2, c['accent'] if i <= active else c['surface'])
o += t(x, y + 20, n, 11, c['ink'] if i == active else c['muted'], 700 if i == active else 500)
return o
def bar(primary, secondary=None, note=None):
"""The action bar, fixed at the foot above the tabs: always in reach, never scrolled to."""
o = rr(0, 666, W, 96, 0, c['deep']) + rr(0, 666, W, 1, 0, c['surface'])
if note: o += t(24, 688, note, 12, c['muted'], 600)
y = 698 if note else 686
if secondary:
o += rr(24, y, 120, 48, 24, c['surface']) + t(84, y + 30, secondary, 15, c['ink'], 700, 'middle')
o += rr(154, y, W - 178, 48, 24, c['accent']) + t(154 + (W - 178) / 2, y + 30, primary, 16, c['on'], 800, 'middle')
else:
o += rr(24, y, W - 48, 48, 24, c['accent']) + t(W / 2, y + 30, primary, 16, c['on'], 800, 'middle')
return o
def pill(x, y, label, on=False, w=None):
w = w or 18 + len(label) * 7.4
return rr(x, y, w, 30, 15, c['accent'] if on else c['surface']) + t(x + w / 2, y + 20, label, 13, c['on'] if on else c['ink'], 700, 'middle'), w
def check(x, y, on):
return rr(x, y, 24, 24, 7, c['accent'] if on else 'none', '' if on else f'stroke="{c["accent"]}" stroke-width="2"') + (
f'<path d="M{x + 6} {y + 12}L{x + 10} {y + 16}L{x + 18} {y + 8}" fill="none" stroke="{c["on"]}" stroke-width="2.6" stroke-linecap="round"/>' if on else '')
def chevron(x, y, down=True, col=None):
d = f'M{x - 5} {y - 3}L{x} {y + 3}L{x + 5} {y - 3}' if down else f'M{x - 3} {y - 5}L{x + 3} {y}L{x - 3} {y + 5}'
return f'<path d="{d}" fill="none" stroke="{col or c["muted"]}" stroke-width="2" stroke-linecap="round"/>'
def start():
o = header(c, 'New channel', back=True)
o += t(24, 132, 'How would you like to start?', 20, c['ink'], 700)
# The quick path first: the Director does the picking, shaping and checking; you review.
o += rr(24, 152, W - 48, 196, 18, c['raised'], f'stroke="{c["accent"]}" stroke-width="2"')
o += t(44, 184, 'Let the Director build it', 18, c['ink'], 800) + t(W - 44, 184, 'QUICK', 11, c['accent'], 800, 'end')
o += t(44, 206, 'Say what you fancy. It finds the shows in your', 13, c['muted']) + t(44, 224, 'library, lays out the day, and you check it.', 13, c['muted'])
o += rr(44, 240, W - 88, 46, 12, c['deep']) + t(60, 269, '90s supernatural and sci-fi mysteries', 14, c['ink'])
o += t(44, 314, 'Try:', 12, c['muted'], 700)
x = 78
for s in ['Crunchyroll', 'Cosy Christmas', 'HBO']:
p, w = pill(x, 296, s); o += p; x += w + 6
o += rr(24, 362, W - 48, 132, 18, c['surface'])
o += t(44, 394, 'Build it yourself', 18, c['ink'], 800) + t(W - 44, 394, 'CUSTOM', 11, c['muted'], 800, 'end')
o += t(44, 416, 'Pick every show: search, browse a collection', 13, c['muted']) + t(44, 434, 'or a network. The Director still helps.', 13, c['muted'])
o += t(44, 470, 'Shows · Shape · When · Review', 12, c['muted'], 600)
o += rr(24, 508, W - 48, 64, 14, c['deep']) + t(44, 536, 'Or start from a channel you already have', 13, c['muted']) + t(44, 556, 'Copy 701 The Unknown', 14, c['ink'], 700)
return o + bar('Build it for me', 'Myself') + tabbar(c, 'More')
def search():
o = header(c, 'New channel', back=True) + steps(0)
# One search: titles, collections, networks and genres together.
o += rr(24, 138, W - 48, 48, 24, c['surface'], f'stroke="{c["accent"]}" stroke-width="2"')
o += f'<circle cx="50" cy="161" r="7" fill="none" stroke="{c["muted"]}" stroke-width="2"/><path d="M55 166L60 171" stroke="{c["muted"]}" stroke-width="2" stroke-linecap="round"/>'
o += t(70, 167, 'crunch', 16, c['ink'], 600) + rr(126, 150, 2, 20, 1, c['accent'])
y = 210
o += t(24, y, 'COLLECTIONS', 11, c['muted'], 800, extra='letter-spacing="1.5"'); y += 12
o += rr(24, y, W - 48, 58, 14, c['surface']) + rr(36, y + 11, 36, 36, 9, c['raised']) + t(54, y + 34, 'C', 16, c['accent'], 800, 'middle')
o += t(84, y + 26, 'Crunchyroll', 16, c['ink'], 700) + t(84, y + 45, '1,567 titles · complete', 12, c['muted']) + chevron(W - 44, y + 29, False)
y += 74
o += t(24, y, 'NETWORKS', 11, c['muted'], 800, extra='letter-spacing="1.5"'); y += 12
o += rr(24, y, W - 48, 50, 14, c['surface']) + t(40, y + 31, 'Crunchyroll', 15, c['ink'], 700) + t(W - 44, y + 31, '15 shows', 12, c['muted'], 600, 'end')
y += 66
o += t(24, y, 'TITLES', 11, c['muted'], 800, extra='letter-spacing="1.5"'); y += 12
for name, meta, on in [('Crunch Time', 'Series · 2019 · Comedy', False), ('Crunchy Roll Theater', 'Series · 2008 · Anime', False)]:
o += rr(24, y, W - 48, 50, 14, c['surface']) + t(40, y + 22, name, 15, c['ink'], 700) + t(40, y + 39, meta, 12, c['muted']) + check(W - 60, y + 13, on)
y += 58
o += t(24, y + 14, 'Search covers your titles, collections, networks', 12, c['muted']) + t(24, y + 31, 'and genres together.', 12, c['muted'])
return o + bar('Next: shape', note='12 chosen · see them ›') + tabbar(c, 'More')
def collection():
o = header(c, 'Crunchyroll', back=True) + steps(0)
o += rr(24, 138, W - 48, 86, 16, c['raised'])
o += t(44, 166, 'Collection · 1,567 titles', 13, c['muted'], 600) + t(44, 190, 'Read in full from your library', 13, GREEN, 700)
o += rr(W - 150, 158, 106, 40, 20, c['accent']) + t(W - 97, 183, 'Add all', 15, c['on'], 800, 'middle')
o += t(44, 212, '1,512 in your library copy · 55 still being read', 11, c['muted'])
# Refine folds away: closed until wanted.
o += rr(24, 236, W - 48, 46, 12, c['surface']) + t(40, 265, 'Refine', 15, c['ink'], 700)
x = 104
for s in ['Shows', 'Teen']:
p, w = pill(x, 244, s + ' ×', True); o += p; x += w + 6
o += chevron(W - 44, 259)
y = 296
for name, meta, on in [('Dragon Ball Z', 'Series · 1989 · TV-PG · 291 episodes', True), ('Mobile Suit Gundam SEED', 'Series · 2002 · TV-14 · 50 episodes', True),
('Naruto', 'Series · 2002 · TV-PG · 220 episodes', True), ('Yu Yu Hakusho', 'Series · 1992 · TV-14 · 112 episodes', False),
('Trigun', 'Series · 1998 · TV-PG · 26 episodes', False), ('Saint Seiya', 'Series · 1986 · TV-PG · 114 episodes', True)]:
o += rr(24, y, W - 48, 54, 14, c['surface']) + t(40, y + 24, name, 15, c['ink'], 700) + t(40, y + 42, meta, 12, c['muted']) + check(W - 60, y + 15, on)
y += 60
return o + bar('Next: shape', note='4 of 6 shown chosen · 86 chosen in all ›') + tabbar(c, 'More')
def shape():
o = header(c, 'Shape the day', back=True) + steps(1)
o += rr(24, 138, W - 48, 50, 12, c['deep']) + t(40, 160, 'The Director balanced this for you.', 13, c['ink'], 600) + t(40, 178, 'Tap a part of the day to change it.', 12, c['muted'])
y = 202
parts = [('Daytime', '06:00 to 17:00', 28, 650, 77, False), ('Evening', '17:00 to 22:00', 31, 284, 35, True), ('Late', '22:00 to 06:00', 22, 64, 56, False)]
for name, hours, n, have, need, open_ in parts:
h = 196 if open_ else 66
o += rr(24, y, W - 48, h, 16, c['surface'])
o += t(40, y + 27, name, 17, c['ink'], 800) + t(130, y + 27, hours, 12, c['muted'], 600) + (f'<path d="M{W - 49} {y + 25}L{W - 44} {y + 19}L{W - 39} {y + 25}" fill="none" stroke="{c["muted"]}" stroke-width="2" stroke-linecap="round"/>' if open_ else chevron(W - 44, y + 22))
# How full the part is against a week: never runs dry when the bar is full.
frac = min(1, have / (need * 3))
o += rr(40, y + 42, W - 210, 6, 3, c['deep']) + rr(40, y + 42, (W - 210) * frac, 6, 3, GREEN if have >= need else c['accent'])
o += t(W - 44, y + 49, f'{n} titles · {have} h', 11, c['muted'], 600, 'end')
if open_:
yy = y + 64
for title, star, rating in [('Mobile Suit Gundam 00', True, 'TV-14'), ('Kaze no Stigma', True, 'TV-14'), ('Robot Carnival', False, 'NR')]:
o += f'<text x="40" y="{yy + 24}" font-size="18" fill="{c["accent"] if star else c["muted"]}">{"★" if star else "☆"}</text>'
o += t(66, yy + 22, title, 14, c['ink'], 700) + t(66, yy + 38, rating, 11, c['muted'])
o += rr(W - 120, yy + 8, 76, 28, 14, c['raised']) + t(W - 82, yy + 27, 'Move ▾', 12, c['ink'], 700, 'middle')
yy += 42
y += h + 10
return o + bar('Next: when', note='★ comes round more often · 3 of 3 starred') + tabbar(c, 'More')
def review():
o = header(c, 'Review', back=True) + steps(3)
o += rr(24, 138, W - 48, 92, 16, c['raised'])
o += t(44, 168, 'Orbit Sakura', 22, c['ink'], 800) + t(W - 44, 168, '702', 22, c['accent'], 800, 'end')
x = 44
for s in ['Shaped', 'All day', 'All year']:
p, w = pill(x, 182, s); o += p; x += w + 6
# The week, in plain words, with a gauge.
o += rr(24, 244, W - 48, 104, 16, c['surface'])
o += t(44, 272, 'Your week', 15, c['ink'], 800) + t(W - 44, 272, '995 hours', 15, GREEN, 800, 'end')
o += rr(44, 288, W - 88, 10, 5, c['deep']) + rr(44, 288, W - 88, 10, 5, GREEN)
o += t(44, 318, 'About 6 weeks before anything repeats.', 13, c['muted']) + t(44, 336, 'Every part of the day has enough.', 13, c['muted'])
# Balance, small.
o += rr(24, 362, W - 48, 86, 16, c['surface']) + t(44, 388, 'Balance', 15, c['ink'], 800)
for i, (n, f, col) in enumerate([('Day', .9, GREEN), ('Eve', .85, GREEN), ('Late', .7, GREEN)]):
xx = 44 + i * 108
o += t(xx, 414, n, 12, c['muted'], 700) + rr(xx, 422, 92, 8, 4, c['deep']) + rr(xx, 422, 92 * f, 8, 4, col)
# Clashes, folded.
o += rr(24, 462, W - 48, 58, 16, c['surface']) + t(44, 488, '38 are also on Vortex', 15, c['ink'], 700) + t(44, 506, 'Fine to keep: never on both at once', 12, c['muted']) + chevron(W - 44, 491, False)
o += rr(24, 534, W - 48, 58, 16, c['surface']) + t(44, 560, 'Then watch it', 15, c['ink'], 700) + t(44, 578, 'After this programme on the TV', 12, c['muted'])
o += rr(W - 92, 549, 48, 28, 14, c['accent']) + f'<circle cx="{W - 58}" cy="563" r="11" fill="{c["on"]}"/>'
return o + bar('Create and switch on', 'Back') + tabbar(c, 'More')
def more():
o = header(c, 'More')
# Who's watching, as faces.
o += t(24, 130, "WHO'S WATCHING", 11, c['muted'], 800, extra='letter-spacing="1.5"')
for i, (name, col, on) in enumerate([('Adult', '#45B8F5', True), ('Kids', '#FF4FA3', False)]):
x = 24 + i * 84
o += f'<circle cx="{x + 28}" cy="168" r="26" fill="{col}"/>' + (f'<circle cx="{x + 28}" cy="168" r="30" fill="none" stroke="{c["accent"]}" stroke-width="3"/>' if on else '')
o += t(x + 28, 214, name, 12, c['ink'] if on else c['muted'], 700, 'middle')
o += t(W - 24, 172, 'Adult needs the PIN', 11, c['muted'], 600, 'end')
# What needs you, with a count.
o += rr(24, 232, W - 48, 64, 16, c['raised']) + t(44, 260, "Director's Chair", 16, c['ink'], 800) + t(44, 280, 'A Bond night and 2 titles to place', 12, c['muted'])
o += f'<circle cx="{W - 64}" cy="264" r="14" fill="{c["accent"]}"/>' + t(W - 64, 269, '3', 13, c['on'], 800, 'middle') + chevron(W - 40, 264, False)
# Your channels as tiles, sideways.
o += t(24, 324, 'YOUR CHANNELS', 11, c['muted'], 800, extra='letter-spacing="1.5"') + t(W - 24, 324, 'See all', 12, c['accent'], 700, 'end')
for i, (n, name, sub) in enumerate([('701', 'The Unknown', 'Shaped · on'), ('702', 'Sakura', 'Shaped · on')]):
x = 24 + i * 150
o += rr(x, 336, 140, 110, 16, c['surface']) + t(x + 14, 364, n, 18, c['accent'], 800) + t(x + 14, 390, name, 15, c['ink'], 700) + t(x + 14, 410, sub, 12, c['muted'])
o += t(x + 14, 432, 'Edit', 12, c['accent'], 700)
o += rr(324, 336, 44, 110, 16, c['surface'], f'stroke="{c["accent"]}" stroke-width="2" stroke-dasharray="5 5"') + t(346, 397, '+', 26, c['accent'], 700, 'middle')
# Settings as a tidy list.
o += rr(24, 466, W - 48, 162, 16, c['surface'])
for i, (label, value) in enumerate([('Look', 'Follows the TV'), ('Add to home screen', ''), ('About Orbit Companion', '')]):
y = 466 + i * 54
if i: o += rr(40, y, W - 80, 1, 0, c['raised'])
o += t(44, y + 33, label, 15, c['ink'], 600) + t(W - 64, y + 33, value, 13, c['muted'], 500, 'end') + chevron(W - 44, y + 28, False)
return o + tabbar(c, 'More')
def board():
screens = [('More, reorganised', more), ('New channel · quick or custom', start), ('One search for everything', search), ('Inside a collection', collection), ('Shape the day · folding parts', shape), ('Review · how the week will feel', review)]
width = 80 + len(screens) * 460
o = [rr(0, 0, width, 1620, 0, '#050F24')]
o.append(t(80, 110, 'Create a channel and More, refined', 64, '#FFFFFF', 800) + t(80, 160, "From Paul's test of Smart setup v2: nothing to scroll to, one search, parts that fold, and a quick path where the Director does the work.", 28, '#B7CBE8'))
for i, (label, fn) in enumerate(screens):
o.append(phone(80 + i * 460, 220, fn(), 1.0, label))
notes = ['Action bar fixed at the foot, with a count of what you chose: nothing ever needs scrolling to.',
'One search box finds titles, collections, networks and genres together: typing "crunch" finds the Crunchyroll collection.',
'Collections open as their own page, with Add all, Refine that folds away, and a note when one is still being read.',
'Four steps, not five: Name moves to Review, where the Director suggests one.',
'Shape shows each part of the day folded, with a bar for how full it is against a week; open one to star or move a show.',
'Review says how the week will feel, shows the balance, folds clashes into one line, and offers Watch after this programme.',
'More: who is watching as faces, what needs you with a count, your channels as tiles, and settings as a tidy list.']
for i, n in enumerate(notes):
o.append(t(80, 1200 + i * 48, '• ' + n, 26, '#DCE6F5'))
svg = f'<svg xmlns="http://www.w3.org/2000/svg" width="{width}" height="1620" viewBox="0 0 {width} 1620">{"".join(o)}</svg>'
(HERE / 'orbit-companion-create-v3.svg').write_text(svg)
subprocess.run(['figcraft-cli', 'convert', str(HERE / 'orbit-companion-create-v3.svg'), str(HERE / 'orbit-companion-create-v3.figcraft')], check=True, stdout=subprocess.DEVNULL)
subprocess.run(['figcraft-cli', 'export', str(HERE / 'orbit-companion-create-v3.figcraft'), '--out', str(HERE / 'orbit-companion-create-v3.png')], check=True, stdout=subprocess.DEVNULL)
if __name__ == '__main__':
board()
Binary file not shown.
Binary file not shown.

After

Width:  |  Height:  |  Size: 738 KiB

File diff suppressed because one or more lines are too long

After

Width:  |  Height:  |  Size: 51 KiB