Repository navigation
feat(frontend): show the total streams on mainnet - #40
Merged
Merged
Conversation
The app never displayed the protocol-wide stream count: the dashboard shows the connected wallet's streams and /organisations showed only streams linked to an organisation, so the 11 streams opened on mainnet were visible only in the raw /api/stats JSON. - /organisations: the readout now shows "Streams on mainnet" (get-stream-nonce, opened by anyone) beside "From organisations" (linked to a listed team), and /api/organisations returns streamsCreated. - Home page: a live line under the hero buttons, "N streams on mainnet · N organisations", linking to /organisations. It renders nothing until the numbers arrive, so no placeholder figure is ever shown.
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
- /organisations: "Organisations" and "Streams" now sit side by side at the same size, with "From organisations" and "Newest" below. - Dashboard overview: a "StackStream on mainnet" panel at the top shows streams created and organisations registered, linking to /organisations. It also shows before a wallet is connected, and the wallet's own figures now sit under a "Your streams" heading. - Both read one shared hook (useNetworkStats) over /api/stats, which the home page line now uses too. Every new stream or registration, by anyone, raises the numbers within about a minute.
This branch was successfully deployed
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.
The site never showed the total number of streams. It was only visible in
/api/statsJSON./organisations: the readout now shows Streams on mainnet (all streams, fromget-stream-nonce) next to From organisations (streams linked to a listed team)./organisations. It renders nothing until the numbers load, so no placeholder figure is ever shown.Verified locally against mainnet: 11 streams and 1 organisation, checked on both screens. Tests, lint and the webpack build are clean.