Verify and close out Epic E5: packages & payments (#30–#36) - #97
Merged
Merged
Conversation
Copilot
AI
changed the title
[WIP] Verify implementation of student dashboard features
Verify and close out Epic E5: packages & payments (#30–#36)
Feb 24, 2026
Taleef7
approved these changes
Feb 24, 2026
Taleef7
marked this pull request as ready for review
February 24, 2026 22:15
Contributor
There was a problem hiding this comment.
Copilot wasn't able to review any files in this pull request.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Verification pass confirming all Epic E5 features (package model, PKR pricing config, payment workflow, student dashboard summary, package selection, admin payment actions) were shipped correctly in #96. No missing implementations found; all acceptance criteria met.
Summary
Full audit of E5 against issue specs in #31–#36.
Changes
packages+payments+audit_logstables confirmed insupabase/migrations/20260224000001_create_packages_payments.sqlwith correct schema (tier_sessions in (8,12,20)), indexes, and RLS policieslib/config/pricing.tsexportsPACKAGES(PKR 8k/11k/16k) andPAYMENT_INSTRUCTIONS; no inline price literals in component filesapp/dashboard/packages/[id]/page.tsx) shows bank instructions + proof upload (5 MB, image/PDF, sanitized path); admin payments page +markPaymentPaid/markPaymentRejectedserver actions with atomic multi-table updates, best-effort rollback, and audit logPackageSummarycomponent shows tier, month window, sessions remaining, progress bar; handlespending/active/expiredstates; embedded per request on student dashboardpayment_pendingmarkPaymentPaidatomically flipspayment→paid,package→active,request→ready_to_matchwith rollback on partial failure;PaymentActions.tsxsurfaces errors viauseActionStateTesting
Notes
app/dashboard/requests/new/page.tsx(React Hook Formwatch()memoization compatibility) — unrelated to E5, not introduced herePAYMENT_INSTRUCTIONSare intentionalCONFIGURE_BEFORE_LAUNCHplaceholders per the pricing config design💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.