In Swarm City, a deal is created when a Seeker and a Provider accept each other in a request made by the Seeker.
How it could work:
A hashtagItem shows the number of replies (hashtagItems).
When the user taps on a hashtagItem, the detail view opens. Here, the full repliesList is shown.
The client gets real-time updates on the number and content of the replies.
How the API could work:
The API could keep a cache for every hashtag. The hashtagItem's key is the dealHash. The replies are in an array in the hashtagItem object. The number of replies is the array length.
With every update the API emits a hashtagItemChanged event.
Abstract:
In Swarm City, a deal is created when a Seeker and a Provider accept each other in a request made by the Seeker.
How it could work:
A hashtagItem shows the number of replies (hashtagItems).
When the user taps on a hashtagItem, the detail view opens. Here, the full repliesList is shown.
The client gets real-time updates on the number and content of the replies.
How the API could work:
The API could keep a cache for every hashtag. The hashtagItem's key is the dealHash. The replies are in an array in the hashtagItem object. The number of replies is the array length.
With every update the API emits a hashtagItemChanged event.
What it looks like:
Userflow: https://invis.io/ABGM89SX3V5#/293499475_-Hashtag--contractadress---dealhash-_REPLYING_IV ( > in Invision, hold shift to see clickable areas)
route: /hashtag/[contractadress]
On page /hashtag/[contractadress], each hashtagItem has a reply-icon and the total number of replies in the right top corner.
route: /hashtag/[contractadress]/[dealhash]
In the detailview of an item, the replies are shown below the dotted divider line in a chronological repliesList (newest on top).
Each reply consist of:
Desktop view:
Invisionlinks with login (for inspect mode!): mobile: https://projects.invisionapp.com/d/main#/console/13838256/293499475/inspect desktop: https://projects.invisionapp.com/d/main#/console/14147648/294446715/inspect
Documentation / references
♡