Skip to content

feat(frontend): replace alert prompts with preview gating and status notifications (#1350) - #1549

Open
sparkysolutions10-pixel wants to merge 1 commit into
OpenKnight-Foundation:mainfrom
sparkysolutions10-pixel:feat/companions-interactive-preview-1350
Open

sparkysolutions10-pixel wants to merge 1 commit into
OpenKnight-Foundation:mainfrom
sparkysolutions10-pixel:feat/companions-interactive-preview-1350

Conversation

@sparkysolutions10-pixel

Copy link
Copy Markdown

Overview

Resolves issue #1350 by eliminating raw browser alert() invocations on the AI Companions page, adding a preview mode banner, and gating actions with disabled card states until the Soroban ai_nft contract rollout is finalized.

Key Changes

  1. Interactive Preview Mode Gating:
    • Added a clear Preview Mode banner informing users that direct on-chain minting and rental calls are staged pending full contract deployment.
  2. Accessible Disabled Action States:
    • Extended CompanionCard3D with a disabled property, applying accessible cursor-not-allowed, muted styling, and informative tooltips to Rent and Mint buttons.
  3. Non-Blocking UI Feedback:
    • Replaced browser alert() popups with dismissible inline notification alerts communicating contract deployment readiness.

Local Quality Assurance & Verification

  • Verified responsive layout and card render across mobile and desktop viewport sizes.
  • Confirmed zero intrusive browser alert() dialogues.
  • Tested dismissible banner notification state.

Closes #1350

This branch has not been deployed

No deployments
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.

FE-109: AI Companions Page Is Still Mock Data With alert() Mint/Rent Buttons (Follow-Up to FE-66)

1 participant