Skip to content

feat: UI improvements — deployment cards, HOW IT WORKS content, and layout fixes#5

Merged
DengreSarthak merged 2 commits into
mainfrom
feat/ecosystem-hub-deployment-dashboard
Jun 20, 2026
Merged

feat: UI improvements — deployment cards, HOW IT WORKS content, and layout fixes#5
DengreSarthak merged 2 commits into
mainfrom
feat/ecosystem-hub-deployment-dashboard

Conversation

@ankitkr104

@ankitkr104 ankitkr104 commented Jun 19, 2026

Copy link
Copy Markdown
Contributor

Changes in this PR:

  1. Standardise HOW IT WORKS step content (app/page.tsx + lib/i18n/locales/en.json)

    • Step 3: 'Mint EquityCoin' → 'Use or Redeem' with updated description focused on user action (payments or redemption) rather than internal minting
    • Step 4: 'Trigger Redemptions' → 'Automatic Safety Protection' with updated description explaining reserve ratio protection and peg maintenance
    • Updated howItWorksDesc to reflect the cleaner, user-facing flow
  2. Fix HOW IT WORKS card alignment (app/page.tsx)

    • Added md:items-stretch to the grid so all 4 cards match the tallest card height
    • Added flex flex-col to each card for proper vertical stretching
    • Added flex-1 to description paragraphs so they fill remaining space evenly
    • Added flex-shrink-0 to number circles and arrows to prevent squishing
    • Unified title font size to text-base across all 4 cards (was inconsistent text-lg)
  3. Remove EquityCoins and Trigger Redemptions nav buttons (app/deployments/page.tsx)

    • Removed the two bottom navigation buttons from the Deployments page
    • Removed the divider above them
    • Page now ends cleanly after the deployment cards grid
  4. Redesign deployment detail page layout (app/deployments/[id]/DeploymentDetailClient.tsx)

    • Replaced single 4-tab action panel with two dedicated cards: StableCoin card (Supply, Crash Tolerance, Reserve Ratio + Mint/Redeem) EquityCoin card (Supply, Annual Yield, Leverage + Mint/Redeem)
    • Added Deployment Health section (Total Reserve, ratio slider, Trigger Redemptions status)
    • Trigger Redemption button appears inside the detail page only when status is danger
    • Removed redundant ReserveWidget, Quick Reference, and Reserve Asset/Network rows
    • Added Crash Tolerance metric calculated from reserve ratio

Addressed Issues:

Fixes #(TODO:issue number)

Screenshots/Recordings:

TODO: If applicable, add screenshots or recordings that demonstrate the interface before and after the changes.

Additional Notes:

AI Usage Disclosure:

We encourage contributors to use AI tools responsibly when creating Pull Requests. While AI can be a valuable aid, it is essential to ensure that your contributions meet the task requirements, build successfully, include relevant tests, and pass all linters. Submissions that do not meet these standards may be closed without warning to maintain the quality and integrity of the project. Please take the time to understand the changes you are proposing and their impact. AI slop is strongly discouraged and may lead to banning and blocking. Do not spam our repos with AI slop.

Check one of the checkboxes below:

  • This PR does not contain AI-generated code at all.
  • This PR contains AI-generated code. I have read the AI Usage Policy and this PR complies with this policy. I have tested the code locally and I am responsible for it.

I have used the following AI models and tools: TODO

Checklist

  • My PR addresses a single issue, fixes a single bug or makes a single improvement.
  • My code follows the project's code style and conventions
  • If applicable, I have made corresponding changes or additions to the documentation
  • If applicable, I have made corresponding changes or additions to tests
  • My changes generate no new warnings or errors
  • I have joined the Discord server and I will share a link to this PR with the project maintainers there
  • I have read the Contribution Guidelines
  • Once I submit my PR, CodeRabbit AI will automatically review it and I will address CodeRabbit's comments.
  • I have filled this PR template completely and carefully, and I understand that my PR may be closed without review otherwise.

Summary by CodeRabbit

  • New Features

    • Added "Trigger Redemption" action button to deployment danger status panels
  • UX & UI Updates

    • Streamlined deployments page layout and removed navigation section
    • Enhanced deployment card action areas with status-specific messaging
    • Refreshed Protocol Overview section with updated step descriptions and improved grid layout

…ayout fixes

Changes in this PR:

1. Standardise HOW IT WORKS step content (app/page.tsx + lib/i18n/locales/en.json)
   - Step 3: 'Mint EquityCoin' → 'Use or Redeem' with updated description
     focused on user action (payments or redemption) rather than internal minting
   - Step 4: 'Trigger Redemptions' → 'Automatic Safety Protection' with updated
     description explaining reserve ratio protection and peg maintenance
   - Updated howItWorksDesc to reflect the cleaner, user-facing flow

2. Fix HOW IT WORKS card alignment (app/page.tsx)
   - Added md:items-stretch to the grid so all 4 cards match the tallest card height
   - Added flex flex-col to each card for proper vertical stretching
   - Added flex-1 to description paragraphs so they fill remaining space evenly
   - Added flex-shrink-0 to number circles and arrows to prevent squishing
   - Unified title font size to text-base across all 4 cards (was inconsistent text-lg)

3. Remove EquityCoins and Trigger Redemptions nav buttons (app/deployments/page.tsx)
   - Removed the two bottom navigation buttons from the Deployments page
   - Removed the divider above them
   - Page now ends cleanly after the deployment cards grid

4. Redesign deployment detail page layout (app/deployments/[id]/DeploymentDetailClient.tsx)
   - Replaced single 4-tab action panel with two dedicated cards:
     StableCoin card (Supply, Crash Tolerance, Reserve Ratio + Mint/Redeem)
     EquityCoin card (Supply, Annual Yield, Leverage + Mint/Redeem)
   - Added Deployment Health section (Total Reserve, ratio slider, Trigger Redemptions status)
   - Trigger Redemption button appears inside the detail page only when status is danger
   - Removed redundant ReserveWidget, Quick Reference, and Reserve Asset/Network rows
   - Added Crash Tolerance metric calculated from reserve ratio
@coderabbitai

coderabbitai Bot commented Jun 19, 2026

Copy link
Copy Markdown
🚥 Pre-merge checks | ✅ 4
✅ Passed checks (4 passed)
Check name Status Explanation
Title check ✅ Passed The title accurately captures the main focus of the changeset: UI improvements across deployment cards, HOW IT WORKS content updates, and layout adjustments on multiple pages.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch feat/ecosystem-hub-deployment-dashboard

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 2

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In `@app/deployments/`[id]/DeploymentDetailClient.tsx:
- Around line 339-342: The "Trigger Redemption →" button in
DeploymentDetailClient.tsx lacks both a click handler and localization. Add an
onClick handler to the button element that navigates to the trigger-redemption
path or invokes the appropriate mutation handler to enable the intended flow.
Additionally, extract the hardcoded "Trigger Redemption →" text string to your
i18n resource file and replace it with the corresponding i18n translation hook
call to comply with localization standards.

In `@app/deployments/page.tsx`:
- Around line 111-119: Extract the hardcoded user-facing strings from the two
conditional blocks checking d.status (the "⚡ Approaching 150% threshold" text in
the warning block and the "⚠ Reserve below 150% — redemptions active" text in
the danger block) and move them to your i18n locale resource files. Then update
the respective paragraph elements in both the d.status === "warning" and
d.status === "danger" blocks to use your translation function (such as
useTranslation hook) to render these externalized strings instead of hardcoding
them in the JSX.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yml

Review profile: ASSERTIVE

Plan: Pro

Run ID: 6b65829c-4600-49db-995a-dcc85d0db1f5

📥 Commits

Reviewing files that changed from the base of the PR and between 76124f2 and a9b118a.

📒 Files selected for processing (4)
  • app/deployments/[id]/DeploymentDetailClient.tsx
  • app/deployments/page.tsx
  • app/page.tsx
  • lib/i18n/locales/en.json

Comment thread app/deployments/[id]/DeploymentDetailClient.tsx Outdated
Comment thread app/deployments/page.tsx
@ankitkr104 ankitkr104 added enhancement New feature or request GSoC 2026 Work completed under GSoC 2026 labels Jun 19, 2026
@ankitkr104 ankitkr104 requested a review from sach2004 June 19, 2026 08:10
- Replace hardcoded 'Trigger Redemption →' button with Link to /force-redemption
  and use tDetail('triggerRedemptionCta') for i18n compliance
- Add useTranslations to deployments/page.tsx ContractCard and replace
  hardcoded warning/danger status strings with tDeploy('warningStatus')
  and tDeploy('dangerStatus')
- Add triggerRedemptionCta, warningStatus, dangerStatus keys to en.json
@ankitkr104 ankitkr104 removed the GSoC 2026 Work completed under GSoC 2026 label Jun 19, 2026

@sach2004 sach2004 left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i reviewed this PR for any major bugs, and i didnt find any and there are no blockers

@DengreSarthak DengreSarthak merged commit b4cfb6d into main Jun 20, 2026
4 checks passed
@ankitkr104 ankitkr104 added the GSoC 2026 Work completed under GSoC 2026 label Jun 21, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request GSoC 2026 Work completed under GSoC 2026

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants