Repository navigation
feat(frontend): public organisations directory - #35
Merged
Merged
Conversation
stream-factory stores organisations in a map, which Clarity cannot enumerate: the contract knows how many are registered but not who. The directory reads every successful register-dao call from the chain's transaction history, then reads each organisation's live record (name, status, tracked streams) back from the contract, so every entry comes from the chain and links to its registration receipt. The headline total is get-dao-count; any registration the history scan cannot list is counted and disclosed rather than hidden. - /organisations: readout of the live count, a card per organisation (newest first), a "your team could be next" card and a three-step join section, all linking to registration. - GET /api/organisations: the same data for other sites, documented in the integration guide. Cached for a minute per instance, like /api/stats. - The landing nav moves into a shared SiteNav with an Organisations link, and the footer links the page. - Entrance animation respects prefers-reduced-motion.
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
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.
Adds
/organisations, a public page listing every organisation registered on StackStream, read live from the chain.How it works. The contract can count organisations but can't list them, because Clarity maps aren't enumerable. So the page reads every successful
register-daocall from the transaction history, then reads each organisation's current record back from the contract. Every card links to its registration receipt on the explorer. The headline number comes fromget-dao-count, and any registration the history scan misses is counted and shown rather than hidden.What's included
/organisations: a live count, one card per organisation (newest first), a "your team could be next" card, and a three-step join section.GET /api/organisations: the same data for other sites, added to the integration guide.Verified locally