-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: support spaces follow and unfollow (#293)
* feat: add placeholder page for followings * feat: redirect logged user to timeline when on homepage * feat: add proposals timeline for followed spaces * fix: fix proposal links when outside space route * fix: fix invalid argument type * chore: remove unused import * fix: fix missing redirection on internal page nav * fix: handle network dynamically * feat: show space name in proposals list * fix: avoid "no proposals" message flashing while logging in * fix: remove auto redirection to timeline * fix(ux): link space name to space * fix: resolve author domain name * fix: fix ignored space showing props * fix(ui): fix proposal title not being truncated * fix: rename routes * fix: add sidebar to timeline pages * fix(ui): add back right sidebar * chore: remove debug output * fix(ui): fix icon alignment * chore: put back line break * refactor: rename function to avoid confusion * chore: return early on empty arg * fiix(ux): fix missing message when user has no followed spaces * fix(ux): fix feed app nav on small screen * fix(ui): show right sidebar on explore page * refactor: DRY * fix(ux): redirect guest user to landing when visiting /home * fix: reset proposals on account change * fix: highlighted voted proposals * refactor: code improvement * refactor: use nested routes for home and explore page * chore: remove leftover * fix: improve routes * chore: remove extra DIV * fix: fix appNav visibility on small screen * fix(ui): show search form on home and explore page * refactor: improve code * refactor: delegate logged in user checking to parent route * refactor: fix order * refactor: use computed value * refactor: upgrade Follow to first class citizen * fix: add missing function to unsupported networks * fix: skip timeline for unsupported wallet * refactor: move `loadFollows` to `useAccount` composable * refactor: improve typing * feat: replace space's star button by follow/unfollow status * refactor: move starredSpaces to useAccount * refactor: rename variable for consistency * fix: auto load followed spaces for connected account * fix: keep sidebar order when mixing starred and followed spaces * fix: fix sidebar spaces not loading for guest user * feat: support custom order for multiple wallets * rerfactor: code improvement * fix: fix followed space status not being loaded * refactor: DRY * refactor: avoid using computed value when not depending on ref * refactor: remove redundant condition * fix: fix wrong typing * refactor: avoid using computed value for simple values * feat: support offchain spaces follow and unfollow * fix: add follow/unfollow to all networks type * chore: update changeset * chore: add missing line break * refactor: use simple spaceId instead of Space object * fix(ui): show loading icon while toggling space following * fix(ux): disable button while working * fix(ui): allow sidebar scrolling * fix: handle client_error thrown by sequencer * fix(ui): make sidebar scrollable * fix(ui): remove tooltip on follow/unfollow button * fix(ui): add red border to unfollow button * fix: remove favorite feature on offchain spaces for starknet accounts * Merge branch 'master' into show-followed-spaces-in-sidebar * fix: remove network from space Id * fix: move bookmarks to a Store * refactor: code improvement * refactor: code DRYing * fix: populate spaces store * fix: fix spaces fetching for multiple network type * fix: fix variable name * chore: code cleaning * fix(ux): add missing loading icon while loading follow list in sidebar * chore: remove debug output * fix: finish merge conflict * fix: finish merge conflict * fix: enable follow for offchain spaces * fix: more refactoring * fix: fix actions to always use offchain network * fix: prevent event bubbling on follow button * Update apps/ui/src/stores/followedSpaces.ts Co-authored-by: Wiktor Tkaczyński <wiktor.tkaczynski@gmail.com> --------- Co-authored-by: Wiktor Tkaczyński <wiktor.tkaczynski@gmail.com>
- Loading branch information
Showing
12 changed files
with
224 additions
and
15 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
"@snapshot-labs/sx": patch | ||
--- | ||
|
||
add space follow and unfollow support for OffchainEthereumSig |
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -621,6 +621,8 @@ export function createActions( | |
}; | ||
}) | ||
); | ||
} | ||
}, | ||
followSpace: () => {}, | ||
unfollowSpace: () => {} | ||
}; | ||
} |
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Oops, something went wrong.