Skip to content

add creator key bundle management page - #1024

Merged
Chucks1093 merged 1 commit into
accesslayerorg:devfrom
aishagbadamosi:Create-creator-bundle-management-page-for-creating-and-tracking-key-bundles
Sep 27, 2026
Merged

Chucks1093 merged 1 commit into
accesslayerorg:devfrom
aishagbadamosi:Create-creator-bundle-management-page-for-creating-and-tracking-key-bundles

Conversation

@aishagbadamosi

Copy link
Copy Markdown
Contributor
  • Add a creator bundle management page at /creator/:id/bundles (with a /creators/:id/bundles alias), linked from the creator dashboard.
  • Create form: select creator keys with quantities, set a discounted bundle price, and choose an expiry (1–90 days, default The price is validated against a 20% price floor — bundle price must be at least 80% of list price and strictly below it. Submission sends a create_bundle contract call.
  • Active bundles: shows purchase counts and a live countdown per bundle. Cancelling submits cancel_bundle, optimistically stamping cancelledAt so the bundle leaves the active list immediately, with rollback on failure and a query invalidation on settle.
  • Archive: expired and cancelled bundles move here automatically, derived from a single shared ticking clock rather than a separate expiry task.
  • Add bundle.service.ts for the bundle types and paginated listing, plus bundle.utils.ts for pricing, validation, status, and partition helpers.
  • Expose submitCreatorContractCall from useCreatorContractActions so bundle hooks submit calls through the same seam as existing creator mutations. On-chain wiring is still simulated, as it is elsewhere in this file, so create_bundle/cancel_bundle do not hit the network yet.
  • List bundles via a cursor-paginated GET /creators/:creatorId/bundles; the endpoint shape is assumed pending a backend contract.

closes #984

Summary

  • Add a creator bundle management page at /creator/:id/bundles (with a /creators/:id/bundles alias), linked from the creator dashboard.
  • Create form: select creator keys with quantities, set a discounted bundle price, and choose an expiry (1–90 days, default The price is validated against a 20% price floor — bundle price must be at least 80% of list price and strictly below it. Submission sends a create_bundle contract call.

closes #984

Testing

  • pnpm lint
  • pnpm build

Checklist

  • Linked issue or backlog item
  • Scope is limited to the stated change
  • Updated docs if behavior or setup changed
  • Added screenshots for UI changes when relevant

- Add a creator bundle management page at `/creator/:id/bundles` (with a
  `/creators/:id/bundles` alias), linked from the creator dashboard.
- **Create form**: select creator keys with quantities, set a discounted bundle
  price, and choose an expiry (1–90 days, default 14). The price is validated
  against a 20% price floor — bundle price must be at least 80% of list price
  and strictly below it. Submission sends a `create_bundle` contract call.
- **Active bundles**: shows purchase counts and a live countdown per bundle.
  Cancelling submits `cancel_bundle`, optimistically stamping `cancelledAt` so
  the bundle leaves the active list immediately, with rollback on failure and a
  query invalidation on settle.
- **Archive**: expired and cancelled bundles move here automatically, derived
  from a single shared ticking clock rather than a separate expiry task.
- Add `bundle.service.ts` for the bundle types and paginated listing, plus
  `bundle.utils.ts` for pricing, validation, status, and partition helpers.
- Expose `submitCreatorContractCall` from `useCreatorContractActions` so
  bundle hooks submit calls through the same seam as existing creator
  mutations. **On-chain wiring is still simulated**, as it is elsewhere in this
  file, so `create_bundle`/`cancel_bundle` do not hit the network yet.
- List bundles via a cursor-paginated `GET /creators/:creatorId/bundles`; the
  endpoint shape is assumed pending a backend contract.

closes accesslayerorg#984
@drips-wave

drips-wave Bot commented Sep 27, 2026

Copy link
Copy Markdown

@aishagbadamosi Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits.

You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀

Learn more about application limits

@Chucks1093
Chucks1093 merged commit 0a57a11 into accesslayerorg:dev Sep 27, 2026
1 check 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.

Create creator bundle management page for creating and tracking key bundles

2 participants