Skip to content

fix(ui): neutralise Ingest Queued button when queue is empty - #61

Merged
francescobianco merged 1 commit into
openapi:mainfrom
mountaincoding:fix/issue-8-ingest-button
Nov 30, 2026
Merged

francescobianco merged 1 commit into
openapi:mainfrom
mountaincoding:fix/issue-8-ingest-button

Conversation

@mountaincoding

Copy link
Copy Markdown
Contributor

What and why

Closes #8.

The Ingest Queued button retains its suggested-action styling when the queue is empty, even though it is disabled.

Move the styling logic into _update_ingest_button() so the accent is applied only when sources are queued. The existing label and sensitivity logic remain unchanged.

Testing

  • make test passes.
  • Tested with make start on Ubuntu 24.04.
  • Tested within the GNOME 51 Flatpak runtime using GSK_RENDERER=cairo (workaround for UTM graphics issues).
  • Verified that the button is neutral when the queue is empty, highlighted when a source is queued, and neutral again after ingestion.

Screenshots

Before (empty queue):

before-fix

After (empty queue and pending source):

real-final realfinal2

Checklist

  • make test passes
  • UI changes follow the GNOME HIG (and include a screenshot)
  • Any AI assistance used is mentioned in the description

@francescobianco

francescobianco commented Nov 30, 2026 •

Copy link
Copy Markdown
Member

Thank you so much, Crystal! 🙏

This is exactly the fix the issue asked for: the accent now follows the queue, and moving it into _update_ingest_button() keeps everything in one place. The before/after screenshots and the testing on both Ubuntu and the Flatpak runtime made the review very easy. Thank you for that care.

#8 is yours, and this PR will close it. I'll merge as soon as CI has run.

We'd be honoured to welcome you to the Openapi® contributors group if you'd like to join: https://github.com/openapi/contributors. It's a small PR adding a row with your name, plus an optional badge for your profile. Entirely up to you, of course. 🙂

Welcome aboard, and thank you again!

@francescobianco
francescobianco merged commit cf9a24b into openapi:main Nov 30, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Hide or neutralise the "Ingest Queued" button when nothing is queued

2 participants