Skip to content

feat(dashboard): View Plan detail modals for locks and goals - #29

Merged
Mackenzie-OO7 merged 4 commits into
Lokt-In:stagingfrom
Princeobeten:feat/view-plan-modal
Jul 20, 2026
Merged

Mackenzie-OO7 merged 4 commits into
Lokt-In:stagingfrom
Princeobeten:feat/view-plan-modal

Conversation

@Princeobeten

Copy link
Copy Markdown
Collaborator

Adds the "View Plan" link to every lock and goal row, opening a read-only breakdown from the mock.

  • LockPlanModal: principal, term, APY, unlock date, projected yield, and the maturity total (amount + projected_yield). No performance-fee row — the contract charges none.
  • GoalPlanModal: goal, target, saved so far, deadline, frequency, per-deposit amount, and the withdraw action. Per the design, the goal row now shows Top Up + View Plan, and the destructive withdraw lives inside View Plan (which hands off to the existing payout/confirm modal). Withdrawing early still forfeits 1%, so that button stays red.

Princeobeten and others added 3 commits July 16, 2026 11:44
Adds the "View Plan" link to every lock and goal row, opening a read-only
breakdown from the mock.

- LockPlanModal: principal, term, APY, unlock date, projected yield, and the
  maturity total (amount + projected_yield). No performance-fee row — the
  contract charges none.
- GoalPlanModal: goal, target, saved so far, deadline, frequency, per-deposit
  amount, and the withdraw action. Per the design, the goal row now shows
  Top Up + View Plan, and the destructive withdraw lives inside View Plan
  (which hands off to the existing payout/confirm modal). Withdrawing early
  still forfeits 1%, so that button stays red.
@Mackenzie-OO7

Mackenzie-OO7 commented Jul 17, 2026 •

Copy link
Copy Markdown
Collaborator

the 'top up' option should not be available for goals that have been met (either by the user reaching the target amount or the goal deadline has reached). now, it is available for every goal, whether it is done or still in progress. for finished goals, they should only have the "withdraw" option

Per review (Lokt-In#29): topping up a goal that's already met makes no sense. A goal is
finished when its deadline has passed or the target is fully funded
(targetStatus 'matured'); in that state the row now offers Withdraw rather than
Top Up. It reads 'Withdraw early' (red) when the target was reached before the
deadline, since the contract still forfeits 1% then, and 'Withdraw Now'
(cyan) once the deadline has passed. In-progress goals keep Top Up.
@Mackenzie-OO7
Mackenzie-OO7 merged commit b9b041e into Lokt-In:staging Jul 20, 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.

2 participants