Skip to content

feat(downloads): inline EA credentials on each card - #3

Merged
ghwmelite-dotcom merged 1 commit into
mainfrom
feat/inline-ea-credentials
Jul 1, 2026
Merged

feat(downloads): inline EA credentials on each card#3
ghwmelite-dotcom merged 1 commit into
mainfrom
feat/inline-ea-credentials

Conversation

@ghwmelite-dotcom

Copy link
Copy Markdown
Owner

Summary

Fixes the confusion where a journaling-only user had to visit the copy-trading "Copier" page to fetch API credentials. Now the credentials appear inline on each EA download card, right where you download and configure the EA.

Changes (frontend only — DownloadsPage.tsx)

  • Inline "EA Credentials" panel on every EA card (Master / Follower / Journal):
    • Account ID + API Key shown with Copy buttons (from the account list).
    • API Secret is one-time, so it's exposed via a "Regenerate to reveal secret" action — confirms (warns old keys stop working), calls the existing POST /accounts/:id/regenerate-keys, and reveals a fresh Key + Secret once with a save-now note.
    • Cards with no matching account link to the Copier page instead.
  • "Where to find these" callout added to the Master/Journal setup steps, using the real page name (Copier) consistently.

Bug fixes (regressions from #2 — currently live)

PR #2 placed — / → inside JS string literals (not JSX text), where entities render literally. The live site currently shows "zero drops real-time" (journal card) and "Tools Options" (troubleshooting). Both fixed here — JS strings use the real character; JSX text keeps entities.

Verification

  • Diff audited: no HTML entities remain inside JS strings; components/imports wired; panel placement + card structure confirmed.
  • tsc / vite build not runnable locally (no node_modules in this workspace) — CI Typecheck gates the deploy. Regenerate reuses the same endpoint the Accounts page already uses.

🤖 Generated with Claude Code

…essions

Bring account credentials to the point of use so a journaling-only user no
longer has to hunt on the copy-trading ("Copier") page for keys.

- Add an "EA Credentials" panel to every EA download card showing the
  matching account's Account ID + API Key with Copy buttons. The one-time
  API Secret is exposed via a "Regenerate to reveal secret" action (reuses
  POST /accounts/:id/regenerate-keys), which reveals a fresh Key + Secret
  once with a save-now warning. Cards with no matching account link to the
  Copier page instead.
- Add a shared "Where to find these" callout to the Master/Journal setup
  steps, and use the real page name ("Copier") consistently.
- Fix two rendering bugs shipped in #2: `—` / `→` were placed
  inside JS string literals (journal card description, troubleshooting),
  where they render literally instead of as — / →. JS strings now use the
  real character; JSX text keeps HTML entities.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@ghwmelite-dotcom
ghwmelite-dotcom merged commit 985b6a5 into main Jul 1, 2026
2 checks passed
@ghwmelite-dotcom
ghwmelite-dotcom deleted the feat/inline-ea-credentials branch July 1, 2026 22:56
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.

1 participant