Skip to content

feat: created Secrets panel dashboard with visibility mask eye toggles (#50)#70

Open
prakshithamalla-art wants to merge 1 commit into
deekshithgowda85:prodfrom
prakshithamalla-art:feat-secrets-visibility-50
Open

feat: created Secrets panel dashboard with visibility mask eye toggles (#50)#70
prakshithamalla-art wants to merge 1 commit into
deekshithgowda85:prodfrom
prakshithamalla-art:feat-secrets-visibility-50

Conversation

@prakshithamalla-art
Copy link
Copy Markdown
Contributor

Closes #50

🎯 Overview & Motivation

Previously, critical application runtime credentials—such as Groq API tokens and system database encryption salt hashes—were completely missing a dedicated dashboard interface within the console view tree matrix. Users had no secure graphical vector to configure, inspect, or maintain core infrastructure environmental keys.

This PR establishes the absolute architecture for the workspace cryptographic controls from scratch, building a beautiful, highly responsive, and secure Secrets Management console sub-panel.

To satisfy critical security audit vectors, it implements individual, localized character masking controls. This allows administrators to temporarily unmask and verify active runtime strings without accidentally exposing cleartext configurations to nearby screens or screen capture logs.


🛠️ Complete Structural Changes Implemented

1. Core Component Infrastructure Creation

  • Created a brand new route directory node and page file instance from the ground up at app/console/secrets/page.tsx.
  • Designated the module wrapper with Next.js "use client" micro-directives to support secure stateful DOM rendering cycles natively.

2. Localized Security Visibility State Machinery

  • Engineered individual, separate React useState hooks (showGroq, setShowGroq and showEncryption, setShowEncryption) rather than a unified toggle state. This guarantees that unmasking one secret does not cascade and expose other sensitive fields simultaneously.
  • Wired standard HTML <input type={showState ? "text" : "password"}> conditional bindings onto the layout forms. This lets native browser masking engines abstract key layout bits securely when inactive.

3. Stateful Visual Interactive Affordances

  • Implemented floating right-aligned icon toggle buttons within the input boundaries using Lucide-React vector symbols (Eye and EyeOff), mapping explicit access contextual titles (title="Reveal token string" / title="Hide token string") to support screen-reader accessibility layers cleanly.
  • Added a centralized handleSaveSecrets wrapper intercepting native <form onSubmit> actions, showcasing an animated runtime synchronization indicator via Lucide’s <RefreshCw className="animate-spin" />.
  • Linked transient 2-second success callback triggers changing saving variables into an automated check icon confirmation filter (<Check className="w-4 h-4" />) to communicate write confirmations flawlessly back to the user.

4. Design, Security Layouts & UX Architecture

  • Integrated a prominent warning callout banner using Lucide's AlertCircle to educate users on underlying database isolation parameters (AES-256 GCM encryption-at-rest and read-only sandbox mount injections).
  • Standardized strict dark mode/light mode utility borders, background layer gradients, and font families (font-mono tracking rules on key strings for easy typo recognition) utilizing full-suite Tailwind CSS tokens (dark:bg-zinc-900, dark:border-zinc-800).

@vercel
Copy link
Copy Markdown

vercel Bot commented May 30, 2026

@prakshithamalla-art is attempting to deploy a commit to the Deekshith Gowda HS's projects Team on Vercel.

A member of the Team first needs to authorize it.

@coderabbitai
Copy link
Copy Markdown

coderabbitai Bot commented May 30, 2026

Warning

Review limit reached

@prakshithamalla-art, we couldn't start this review because you've reached your PR review rate limit.

More reviews will be available in 54 minutes and 9 seconds. Learn how PR review limits work.

Your organization has run out of usage credits. Purchase more in the billing tab.

⌛ How to resolve this issue?

After more reviews become available, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

We recommend that you space out your commits to avoid hitting the rate limit.

🚦 How do rate limits work?

CodeRabbit enforces hourly rate limits for each developer per organization.

Our paid plans include higher PR review limits than trial, open-source, and free plans. In all cases, reviews become available again over time. During sustained high-volume PR review activity, CodeRabbit may temporarily slow when the next review becomes available.

Please see our Fair Usage Limits Policy for further information.

ℹ️ Review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: 089c7b3e-51f2-4585-9468-5de2366d4795

📥 Commits

Reviewing files that changed from the base of the PR and between d96a51d and be21940.

📒 Files selected for processing (1)
  • app/console/secrets/page.tsx
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

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.

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.

SECURITY — Toggle visibility feature for Groq and Encryption Keys in Secrets panel

1 participant