Skip to content

build(deps): greentechhub-ui v0.10.0; tables use refresh_event - #8

Merged
GreenMachine582 merged 1 commit into
devfrom
feat/gth-ui-0.10
Sep 25, 2026
Merged

GreenMachine582 merged 1 commit into
devfrom
feat/gth-ui-0.10

Conversation

@GreenMachine582

Copy link
Copy Markdown
Owner

Summary

Moves PyFinBot onto greentechhub-ui v0.10.0.

  • Tables: gth_data_table(..., refresh_event="stocksChanged" / "transactionsChanged") replaces the hand-rolled _table_refresh.html out-of-band hook (deleted). Same behaviour — after a save the table re-queries page 1 with its current sort and filters — but the hook now lives inside the table wrapper, so no OOB swap.
  • Error toasts (new in v0.10.0, no code here): failed htmx requests now toast on their own. Web 404s surface their HTTPException detail ("Stock not found", "Transaction not found", "Unknown report"); the 422 form/import/email errors stay inline; the 401 + HX-Redirect login redirect is unchanged.

How it was verified

ruff check src tests; pytest — 270 passed (refresh assertions updated to the new gth-table-refresh hook, plus one for the transactions table). Checked greentechhub-ui @ …@v0.10.0 resolves with pip download.

Breaking changes

None.

🤖 Generated with Claude Code

gth_data_table(refresh_event=...) replaces the hand-rolled _table_refresh.html out-of-band hook. v0.10.0 also toasts failed htmx requests on its own: web 404s now surface their HTTPException detail (e.g. "Stock not found").

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@GreenMachine582
GreenMachine582 merged commit cf9f35c into dev Sep 25, 2026
4 checks passed
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.

1 participant