-
Notifications
You must be signed in to change notification settings - Fork 2.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fixes for shared boards #2581
fixes for shared boards #2581
Conversation
I discovered when running locally, you need to make sure to build the webapp and server before building the plugin. Locally, the I updated my test server to this PR. You can test it out here - |
} | ||
}, [teamId, match.params.boardId, match.params.viewId]) | ||
}, [teamId, match.params.boardId, match.params.viewId, me]) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: probably a super tiny optimization is to pass use the me?.id
as dependency, that way your user changes doesn't necesarilly retrigger this effect.
webapp/src/router.tsx
Outdated
@@ -159,9 +159,13 @@ const FocalboardRouter = (props: Props): JSX.Element => { | |||
<ChangePasswordPage/> | |||
</FBRoute>} | |||
|
|||
<FBRoute path='/shared/:boardId?/:viewId?/:cardId?'> | |||
<FBRoute path='/workspace/:workspaceId/shared/:boardId?/:viewId?/:cardId?'> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is here for backward compatibility, I guess, do we need the previous one (without the team or workspace) URL too?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also, you can use an array of paths in the path
attribute, so probably makes sense to pass the array of all the valid urls that are for shared boards in one single route.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also, some routes later, we have a redirect from /workspace/:workspaceId/shared/:boardId?/:viewId?/:cardId?
for this specific case, so we should fix that there, I guess.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, just a couple of suggestions.
/update-branch |
/update-branch |
/update-branch |
/update-branch |
Summary
Updates necessary for Shared Boards to work with permission changes.
Ticket Link
Fixes #2502