Fix Ably 503 auth error, add live trading page, localStorage draft persistence, owner profiles, CI/CD + Docker - #7
Merged
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Agent-Logs-Url: https://github.com/mesayanroy/0x402-pubsub/sessions/8e45e2e0-c696-4e98-9a09-ae8b27875079 Co-authored-by: mesayanroy <169074736+mesayanroy@users.noreply.github.com>
… profiles, CI/CD, Docker Agent-Logs-Url: https://github.com/mesayanroy/0x402-pubsub/sessions/8e45e2e0-c696-4e98-9a09-ae8b27875079 Co-authored-by: mesayanroy <169074736+mesayanroy@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Fix Ably token request error and improve payment request protocol
Fix Ably 503 auth error, add live trading page, localStorage draft persistence, owner profiles, CI/CD + Docker
Mar 29, 2026
mesayanroy
marked this pull request as ready for review
March 29, 2026 22:30
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Ably was unconditionally attempting a Realtime connection even when
ABLY_API_KEYis absent, causing503token-request errors to flood the console. Several UX gaps existed (agent builder losing state on navigation, no owner attribution on agent cards). No containerisation or CI pipeline was present.Ably 503 — graceful degradation
useMarketplaceFeednow probes/api/ably/tokenbefore instantiatingAbly.Realtime. A non-2xx response setsconnectionState: 'unavailable'and returns silently instead of triggering Ably's auth-error retry loop.AgentBuilder — localStorage draft persistence
Form state + current step persisted to
localStorage(agent_builder_draft/agent_builder_step) on every change. Draft is restored on mount with a dismissible banner; cleared on successful deploy./trading— live trading pageNew page at
/tradingwith:AreaChart, 1500 ms ticks) with breakout resistance/supportReferenceLines, and dynamic TP/SL + liquidation price overlaysAgent owner profiles
AgentCardrenders a coloured avatar + clickable truncated owner address linking to their dashboard profile instead of inert plain text.CI/CD + Docker
.github/workflows/ci.yml—lint-and-type-check→build(artefact upload) →docker-build(main only); all jobs scoped topermissions: contents: readDockerfile(standalone Next.js runner) +docker-compose.yml(web + optional consumers service)output: 'standalone'added tonext.config.mjs📱 Kick off Copilot coding agent tasks wherever you are with GitHub Mobile, available on iOS and Android.