Skip to content

Self-hosted, Self-Improving, Federated Everything App — dev management, agent orchestration, persistent mind, digital twin, second brain, and creative pipeline from a single dashboard over Tailscale to port the user into the OS

address review: drop tab roles for aria-pressed, split running/queued counts, basename in STATUS log, accurate mlx_video header note

Adam Eivybf3ab99d20c8
diff --git a/client/src/components/media/BatchQueuePanel.jsx b/client/src/components/media/BatchQueuePanel.jsx
index 1f2e125625..3739b0540c 100644
--- a/client/src/components/media/BatchQueuePanel.jsx
+++ b/client/src/components/media/BatchQueuePanel.jsx
@@ -17,17 +17,29 @@ const STATUS_ICON = {
error: { Icon: AlertCircle, color: 'text-port-error' },
};
-export default function BatchQueuePanel({ queue, inFlightCount, onRemove, onClear, summarize }) {
+export default function BatchQueuePanel({ queue, onRemove, onClear, summarize }) {
if (!queue.length) return null;
+ // Compute status text from the queue itself so callers don't have to
+ // pass in pre-aggregated counts. Distinguishing "running" (1, the actively
+ // processing job) from "queued" (pending count) is more accurate than the
+ // earlier "X in flight" copy, which lumped both together.
const completedCount = queue.filter((q) => q.status === 'complete' || q.status === 'error').length;
+ const runningCount = queue.filter((q) => q.status === 'running').length;
+ const pendingCount = queue.filter((q) => q.status === 'pending').length;
+ const queueStatusText =
+ runningCount > 0 && pendingCount > 0
+ ? `${runningCount} running, ${pendingCount} queued`
+ : runningCount > 0
+ ? `${runningCount} running`
+ : pendingCount > 0
+ ? `${pendingCount} queued`
+ : 'idle';
return (
<div className="bg-port-card border border-port-border rounded-xl p-5 space-y-3">
<div className="flex items-center justify-between">
<h2 className="text-sm font-medium text-gray-300">
Batch queue
- <span className="ml-2 text-xs text-gray-500">
- {inFlightCount > 0 ? `${inFlightCount} in flight` : 'idle'}
- </span>
+ <span className="ml-2 text-xs text-gray-500">{queueStatusText}</span>
</h2>
{completedCount > 0 && (
<button
diff --git a/client/src/pages/VideoGen.jsx b/client/src/pages/VideoGen.jsx
index 5d11f03c34..01b08d2716 100644
--- a/client/src/pages/VideoGen.jsx
+++ b/client/src/pages/VideoGen.jsx
@@ -10,7 +10,8 @@
* - text: pure text-to-video
* - image: image-to-video (one source image, current I2V behavior)
* - fflf: first frame + last frame (two images — backend support is
- * experimental; mlx_video CLI consumes only the first today)
+ * experimental; mlx_video only supports a single conditioning
+ * frame, so when both are provided the last is ignored)
* - extend: pick a previous render → its last frame becomes the source
* image for a new image-to-video generation
*
@@ -411,8 +412,6 @@ export default function VideoGen() {
const notConnected = status && status.connected === false;
const canEnqueue = prompt.trim() && !notConnected;
- const pendingCount = queue.filter((q) => q.status === 'pending').length;
- const inFlightCount = pendingCount + (runningQueueId ? 1 : 0);
return (
<div className="space-y-6">
@@ -457,16 +456,18 @@ export default function VideoGen() {
</div>
{/* Mode switch — segmented control above the form. Sets state that
- both the form rendering and the submit payload react to. */}
- <div className="bg-port-card border border-port-border rounded-xl p-1.5 flex flex-wrap gap-1" role="tablist" aria-label="Video generation mode">
+ both the form rendering and the submit payload react to.
+ Implemented as plain toggle buttons with `aria-pressed` rather than
+ WAI-ARIA Tabs, since the mode-specific inputs aren't structured as
+ tabpanels and we don't implement roving-tabindex/arrow-key focus. */}
+ <div className="bg-port-card border border-port-border rounded-xl p-1.5 flex flex-wrap gap-1" role="group" aria-label="Video generation mode">
{MODES.map(({ id, label, icon: Icon, desc }) => {
const active = mode === id;
return (
<button
key={id}
type="button"
- role="tab"
- aria-selected={active}
+ aria-pressed={active}
onClick={() => handleModeChange(id)}
disabled={generating}
className={`flex-1 min-w-[140px] flex items-center justify-center gap-2 px-3 py-2 rounded-lg text-sm font-medium transition-colors disabled:opacity-50 ${
@@ -811,7 +812,6 @@ export default function VideoGen() {
<BatchQueuePanel
queue={queue}
- inFlightCount={inFlightCount}
onRemove={removeFromQueue}
onClear={clearCompletedQueue}
summarize={(item) => (
diff --git a/scripts/generate_win.py b/scripts/generate_win.py
index 5fb81f0d02..1747bce5df 100644
--- a/scripts/generate_win.py
+++ b/scripts/generate_win.py
@@ -79,16 +79,21 @@ def main():
# STATUS log to the actual branch the script will take based on whether
# --image was also provided, so users/logs aren't misled into thinking we
# ran an I2V flow when we're really running T2V.
+ #
+ # STATUS lines are forwarded over SSE to the browser, so log just the
+ # basename rather than the absolute server path to avoid leaking
+ # filesystem layout to the client.
if args.last_image:
+ last_image_name = os.path.basename(args.last_image)
if args.image:
log(
- f'STATUS:Last-frame image supplied ({args.last_image}) — '
+ f'STATUS:Last-frame image supplied ({last_image_name}) — '
'currently advisory; using single-image I2V with --image as '
'the only conditioning frame'
)
else:
log(
- f'STATUS:Last-frame image supplied ({args.last_image}) without --image — '
+ f'STATUS:Last-frame image supplied ({last_image_name}) without --image — '
'currently advisory and ignored for mode selection; continuing with T2V'
)