Skip to content

feat: [1/2] add clickable generation status annotations - #199

Merged
dazzatronus merged 1 commit into
mainfrom
feat/generation-status-action
Sep 24, 2026
Merged

dazzatronus merged 1 commit into
mainfrom
feat/generation-status-action

Conversation

@dazzatronus

@dazzatronus dazzatronus commented Sep 24, 2026 •

Copy link
Copy Markdown
Contributor

Hosts need a way to open a cost breakdown or recovery view from a generation annotation. Add an optional onActivate callback to the existing /internal status type and render actionable annotations as native buttons beside Generate. Passive annotations remain text; error statuses still block generation.

Activation: the host must register a status provider and supply onActivate. No root-package exports are added.

Verify: npm run verify:ci passes (2,133 tests, lint, types, build and package contracts). Browser checks cover pointer, Enter and Space activation, passive/absent status and error blocking.

Order PR Change Why separate
1 #199 current Clickable status annotations Host actions and toolbar presentation
2 #200 Seed source images Model selection and stored inputs
flowchart TD
    A[Choose a generation model] --> B{Settings hook enabled and model accepts source images?}
    B -->|No| C[Keep current inputs]
    B -->|Yes| D{Image source present and references empty?}
    D -->|Yes| E[Use clip source as Image 1]
    D -->|No| C
    C --> F{Status hook registered?}
    E --> F
    F -->|No| G[Use normal generation controls]
    F -->|Yes| H[Host supplies status for current settings]
    H --> I{Error status?}
    I -->|Yes| J[Block Generate and Enter]
    I -->|No| K[Apply normal generation checks]
    H --> L{Host supplied an action?}
    L -->|No| M[Show status as text]
    L -->|Yes| N[Show status button beside Generate]
    N --> O[Click or use Enter or Space]
    O --> P[Open the host view]
Loading

Rules: model selection, status activation, generation guard.

@dazzatronus
dazzatronus marked this pull request as ready for review September 24, 2026 12:07
@dazzatronus
dazzatronus added this pull request to stack #201 September 24, 2026 12:15
@dazzatronus
dazzatronus merged commit e9eb7ce into main Sep 24, 2026
1 check passed
github-actions Bot pushed a commit that referenced this pull request Sep 24, 2026
# [2.22.0](v2.21.1...v2.22.0) (2026-09-24)

### Features

* allow hosts to activate generation status annotations ([#199](#199)) ([e9eb7ce](e9eb7ce))
@github-actions

Copy link
Copy Markdown

🎉 This PR is included in version 2.22.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant