feat(orchestrator): hub page for requirements 085 to 099
085 calm Match deck: no header hourglass, centred bare empty state, the release card as a deck card (Cancel, Skip, Release), fixed card height. 086 motion: vanish() fade everywhere with a lint test, view transitions, a lub-dub heartbeat for working objects, confetti that lands and fades. 087 time readout under the pivot of every analog clock. 088 prune dialog grouped by prefix with tri-state boxes, search, stepper and sticky footer. 089 one-row task toolbar with Filter and Actions menus and a filter chip. 090 card border by state colour with a soft glow and owner avatars. 091 draggable limit lines with staged changes and one Save, a Limits menu with the matrix, View toggles, the GPU cause in its tooltip. 093 request chips Open, Expired, Stale, Failed, All and a signed Delete. 094 closed cards leave the deck within 5 s; open in Claude stamps. 095 compact agent message box with Post/Call, attach, mic and Send in the field. 096 Reject on an expired card drops it silently as Drop (expired). 097 Show filter in Match's right-click menu. 098 docked speech bubbles carry the speaker's avatar and a skip button. 099 Match card headlines cut to 120 characters with the full title in the tooltip; the code box keeps the whole command. tests/test_hub_path_links.py: a unicode fixture without German. Full make test green through the queue (2605 tests, ruff, shellcheck, markdownlint). Gate missed on the operator's word: break 7 %, the E2E specs (13 new, 15 updated) run next. 🎯 Fix: 92 % 💥 Break: 7 % 💸 Tokens: – ⏱️ Velocity: – 🛡️ Security: 100 % 🏆 Score: 86 🚦 Gate: ⛔ break 7 % > 5 Created-with: https://s.veen.world/skills Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
8ee52644c8
commit
6323f087bc
95 files changed
+5807
-704
No files matched your search
@@ -3,6 +3,9 @@ const Dial = (() => {
|
||||
const SIZE = 140;
|
||||
const RADIUS = 58;
|
||||
const TICKS = 60;
|
||||
const READOUT = 24;
|
||||
const MINUTE = 60;
|
||||
const SECOND = 1000;
|
||||
|
||||
/**
|
||||
* @param value - a value on the dial, min to max.
|
||||
@@ -57,7 +60,66 @@ const Dial = (() => {
|
||||
return Array.from({length: TICKS}, (_, at) => ({at, long: at % page === 0}));
|
||||
}
|
||||
|
||||
return {SIZE, RADIUS, TICKS, point, clamp, fromAngle, stepped, ticks};
|
||||
/**
|
||||
* @param value - a value on the dial, fractions allowed.
|
||||
* @param max - the value a full turn stands for.
|
||||
* @returns the hand's angle from the top, clockwise, in degrees.
|
||||
*/
|
||||
function angle(value, max) {
|
||||
return (value * 360) / max;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param seconds - seconds left, rounded up to whole seconds and never below 0.
|
||||
* @returns them as m:ss, the readout of a clock that runs out.
|
||||
*/
|
||||
function countdown(seconds) {
|
||||
const whole = Math.max(0, Math.ceil(seconds));
|
||||
return `${Math.floor(whole / MINUTE)}:${String(whole % MINUTE).padStart(2, "0")}`;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param epoch - a moment in epoch milliseconds.
|
||||
* @returns its local time of day as HH:MM:SS, the readout of a wall clock.
|
||||
*/
|
||||
function wall(epoch) {
|
||||
const at = new Date(epoch);
|
||||
return [at.getHours(), at.getMinutes(), at.getSeconds()].map((part) => String(part).padStart(2, "0")).join(":");
|
||||
}
|
||||
|
||||
/**
|
||||
* @param until - the epoch seconds the clock runs out at.
|
||||
* @param per - how many seconds one value of the dial stands for: 60 on a face of minutes, 1 on one of seconds.
|
||||
* @returns (epoch milliseconds) => {at, value, text}: at the hand's exact place in dial values, value the whole
|
||||
* values left rounded up, text the seconds left as m:ss; all three stop at 0.
|
||||
*/
|
||||
function counting(until, per) {
|
||||
return (epoch) => {
|
||||
const left = Math.max(0, until - epoch / SECOND);
|
||||
return {at: left / per, value: Math.ceil(left / per), text: countdown(left)};
|
||||
};
|
||||
}
|
||||
|
||||
/**
|
||||
* @returns (epoch milliseconds) => {at, value, text}: a wall clock on a face of 60, its hand sweeping the seconds
|
||||
* of the minute, value the whole second and text the local time of day as HH:MM:SS.
|
||||
*/
|
||||
function walled() {
|
||||
return (epoch) => {
|
||||
const at = new Date(epoch);
|
||||
return {at: at.getSeconds() + at.getMilliseconds() / SECOND, value: at.getSeconds(), text: wall(epoch)};
|
||||
};
|
||||
}
|
||||
|
||||
/**
|
||||
* @param progress - how far a sweep is, 0 to 1.
|
||||
* @returns the share of the way the hand has turned: fast at first, slowing into its place.
|
||||
*/
|
||||
function eased(progress) {
|
||||
return 1 - (1 - progress) ** 3;
|
||||
}
|
||||
|
||||
return {SIZE, RADIUS, TICKS, READOUT, point, clamp, fromAngle, stepped, ticks, angle, countdown, wall, counting, walled, eased};
|
||||
})();
|
||||
if (typeof module === "object" && module.exports) {
|
||||
module.exports = Dial;
|
||||
|
||||
Reference in new issue
Block a user