Skip to content

#1476 as-a-shop-owner-i-can-manually-trigger-a-backfill-of-transac#1477

Merged
chrisjsimpson merged 2 commits intomasterfrom
1476-as-a-shop-owner-i-can-manually-trigger-a-backfill-of-transac
Nov 8, 2025
Merged

#1476 as-a-shop-owner-i-can-manually-trigger-a-backfill-of-transac#1477
chrisjsimpson merged 2 commits intomasterfrom
1476-as-a-shop-owner-i-can-manually-trigger-a-backfill-of-transac

Conversation

@github-actions
Copy link

@github-actions github-actions bot commented Nov 8, 2025

Pull request related issue: #1476. Please pull these awesome changes in!

@chrisjsimpson chrisjsimpson force-pushed the 1476-as-a-shop-owner-i-can-manually-trigger-a-backfill-of-transac branch from 8e99354 to 6243a66 Compare November 8, 2025 21:15
Add a user-friendly admin dashboard interface that allows shop owners
to manually backfill data from Stripe without using CLI commands.

Features:
- Multi-type selection: backfill transactions, subscriptions, persons, and invoices
- All data types selected by default for convenience
- Background task processing with @background_task decorator
- Loading spinner and disabled button during submission
- User-friendly language throughout (no technical jargon)
- Immediate feedback with flash messages
- Safe and idempotent - can be run multiple times

Changes:
- Added `do_backfill_data()` background task in `subscribie/blueprints/admin/__init__.py`
- Added `admin_backfill_form()` route at `/admin/backfill` in `subscribie/blueprints/admin/__init__.py`
- Created new template `subscribie/blueprints/admin/templates/admin/backfill_data.html`
- Updated dashboard with "Backfill Data from Stripe" link in `subscribie/blueprints/admin/templates/admin/dashboard.html`
- Preserved legacy API endpoint `/admin/backfill/transactions/<days>`

The backfill process runs asynchronously, allowing shop owners to
continue using the dashboard while synchronisation completes.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
@chrisjsimpson chrisjsimpson force-pushed the 1476-as-a-shop-owner-i-can-manually-trigger-a-backfill-of-transac branch from 6243a66 to cdc1902 Compare November 8, 2025 21:27
@chrisjsimpson chrisjsimpson merged commit 6ae5079 into master Nov 8, 2025
3 checks passed
@github-actions
Copy link
Author

github-actions bot commented Nov 8, 2025

🚀 PR was released in v0.1.248 🚀

@github-actions github-actions bot added the released This issue/pull request has been released. label Nov 8, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

released This issue/pull request has been released.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant