GenerationQueue shows each job's picture or where it stands, its prompt and its progress, with Cancel, Retry and Remove as its state allows; new rows fold in. GenerationGrid lays a run's results out in their shape: breathing while they come, the picture once done, why one failed with Retry. VariationPicker shows the chosen variation large over thumbnails and ways on from it. ABCompareView sets two to four models' answers side by side, blind until a verdict. ImageCompare points to data_display::BeforeAfter. primitives::framed and checked_ratio now serve previews and generative alike. AGENTS.md records that gpui reads a &str picture as a web address, and that grid rows overgrow tiles that keep a ratio.
41 lines
1.1 KiB
Rust
41 lines
1.1 KiB
Rust
mod panel;
|
|
mod results;
|
|
|
|
use gpui::{AnyElement, App, IntoElement, ParentElement, Window, div};
|
|
|
|
use super::Page;
|
|
use crate::script::Step;
|
|
|
|
pub const PAGE: Page = Page {
|
|
number: 25,
|
|
slug: "generative",
|
|
title: "Generative",
|
|
summary: "Making pictures, sound and video with a model: the prompt and its settings, the queue and what comes back, the canvas, and the models behind them.",
|
|
render,
|
|
script: SCRIPT,
|
|
};
|
|
|
|
const SCRIPT: &[Step] = &[
|
|
Step::DownAt("gen-enhancer", 356.0, 124.0),
|
|
Step::UpAt("gen-enhancer", 356.0, 124.0),
|
|
Step::Wait(1400),
|
|
Step::Shot("suggested"),
|
|
Step::DownAt("gen-queue", 426.0, 280.0),
|
|
Step::UpAt("gen-queue", 426.0, 280.0),
|
|
Step::Wait(400),
|
|
Step::Shot("retried"),
|
|
Step::DownAt("gen-ab", 181.0, 147.0),
|
|
Step::UpAt("gen-ab", 181.0, 147.0),
|
|
Step::Wait(300),
|
|
Step::Shot("verdict"),
|
|
];
|
|
|
|
fn render(window: &mut Window, cx: &mut App) -> AnyElement {
|
|
div()
|
|
.child(panel::panel(window, cx))
|
|
.child(results::queue(window, cx))
|
|
.child(results::results(window, cx))
|
|
.child(results::variations(window, cx))
|
|
.into_any_element()
|
|
}
|