Skip to content

fix: resolve CI lint failures from unused state vars in trading page - #12

Merged
mesayanroy merged 9 commits into
mainfrom
copilot/add-supabase-configuration
Mar 31, 2026
Merged

fix: resolve CI lint failures from unused state vars in trading page#12
mesayanroy merged 9 commits into
mainfrom
copilot/add-supabase-configuration

Conversation

Copilot AI commented Mar 31, 2026

Copy link
Copy Markdown
Contributor

CI was failing on next lint --max-warnings 0 because 14 state declarations added in the previous session were never consumed in JSX, generating @typescript-eslint/no-unused-vars warnings.

Changes

  • closeEvent<CandlestickChart>: wired the missing prop so TP/SL/manual close markers actually render on the canvas chart
  • Agent sub-tabs: replaced the flat agent template list with a 3-tab panel (📦 Agent Templates / 🚀 My Deployed Agents / ⚡ Arbitrage Demo), consuming agentSubTab, myDeployedAgents, and loadingMyAgents
  • Arbitrage demo: built out the 5-step interactive flow (scan → detect spread → review → sign → result) consuming all arb-related state (arbStep, arbPrices, arbResult, sigModalOpen, pendingArbTrade, arbRunning); on completion calls persistClosedTrade so dashboard PnL syncs immediately
  • My Deployed Agents tab: renders user's own agents fetched from /api/agents/list as selectable cards; clicking selects the agent and returns to the chart panel
// closeEvent now passed so the chart marker renders on TP/SL trigger
<CandlestickChart
  candles={candles}
  tpLevel={position?.tp ?? null}
  slLevel={position?.sl ?? null}
  entryLevel={position?.entryPrice ?? null}
  closeEvent={closeEvent}   // ← was missing
/>

@vercel

vercel Bot commented Mar 31, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
0x402-pubsub Ready Ready Preview, Comment Mar 31, 2026 5:18am

Copilot AI and others added 6 commits March 31, 2026 00:13
- Add AnimatePresence to framer-motion import
- Add PaymentExecutorSection component with agent selection, task input,
  Freighter signing flow, and animated invoice panel
- Add AgentInfo, InvoiceData, ExecutorStep types and helpers
- Render PaymentExecutorSection at bottom of WorkflowPage return

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

Co-authored-by: mesayanroy <169074736+mesayanroy@users.noreply.github.com>
- Add comment explaining 28-byte Stellar memo text limit
- Add comment explaining 2 s ledger polling interval

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

Co-authored-by: mesayanroy <169074736+mesayanroy@users.noreply.github.com>
…entCard

- AgentBuilder: add optional agentWallet field in configure step; use agentWallet || walletAddress as owner_wallet on deploy
- AgentCard: add Strategy button with animated modal (file upload + notes textarea) using framer-motion AnimatePresence

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

Co-authored-by: mesayanroy <169074736+mesayanroy@users.noreply.github.com>
…pload

- AgentBuilder: validate agentWallet as Stellar public key (G + 55 base32 chars); show inline error and disable 'Next' when invalid
- AgentCard: add role=button, tabIndex, and onKeyDown to file upload area for keyboard accessibility

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

Co-authored-by: mesayanroy <169074736+mesayanroy@users.noreply.github.com>
- app/devs/page.mdx: Full redesign with sticky left sidebar, FAQ
  accordions using <details>/<summary>, 12 comprehensive Q&A topics
  covering 0x402 protocol, Freighter wallet, payment flow, CLI,
  QStash, A2A routing, AI models, and monitoring. Breadcrumb nav,
  code blocks with syntax classes, and env vars reference table.

- app/docs/page.mdx: Redesign with sidebar navigation, hero banner,
  collapsible API reference sections (Run Agent, Analytics, A2A),
  retains PaymentWorkflowDiagram and BackboneDiagram imports, adds
  QStash topic table and complete environment variable reference.

Both pages use the app's design tokens: #00FFE5 teal, #0A0A0F bg,
#FFB800 amber, font-syne/font-mono, rgba(255,255,255,0.08) borders.
Pure HTML <details> accordions — no React hooks required.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

Co-authored-by: mesayanroy <169074736+mesayanroy@users.noreply.github.com>
…trategy upload, GitBook devs page

Agent-Logs-Url: https://github.com/mesayanroy/0x402-pubsub/sessions/b2ecbc7c-d96d-49e0-bbd7-4003b123d3f2

Co-authored-by: mesayanroy <169074736+mesayanroy@users.noreply.github.com>
Copilot AI changed the title [WIP] Add Supabase configuration variables feat: .env.local setup, 0x402 payment executor, multi-wallet agent builder, strategy upload, GitBook devs page Mar 31, 2026
Copilot AI requested a review from mesayanroy March 31, 2026 00:37
…user agents, arb demo setup

Agent-Logs-Url: https://github.com/mesayanroy/0x402-pubsub/sessions/aea206d4-551a-4f4c-86cd-9d06de567760

Co-authored-by: mesayanroy <169074736+mesayanroy@users.noreply.github.com>
Copilot stopped work on behalf of mesayanroy due to an error March 31, 2026 01:53
Copilot stopped work on behalf of mesayanroy due to an error March 31, 2026 02:56
Copilot AI changed the title feat: .env.local setup, 0x402 payment executor, multi-wallet agent builder, strategy upload, GitBook devs page Trading page: TP/SL close-point chart, arbitrage agent demo, deployed-agent selector, instant dashboard PnL sync Mar 31, 2026
Copilot AI changed the title Trading page: TP/SL close-point chart, arbitrage agent demo, deployed-agent selector, instant dashboard PnL sync fix: resolve CI lint failures from unused state vars in trading page Mar 31, 2026
@mesayanroy
mesayanroy marked this pull request as ready for review March 31, 2026 05:25
@mesayanroy
mesayanroy merged commit bb6959d into main Mar 31, 2026
8 checks 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