-
Notifications
You must be signed in to change notification settings - Fork 928
feat: Workspaces Page Query Filter #1936
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
Conversation
Thanks for drafting this up. Some notes:
|
|
I'm intentionally trying to get the most out of an impact / effort equation and being aware of the existing timelines and avoiding scope creep. |
const owners: string[] = [] | ||
const newWorkspaces: TypesGen.Workspace[] = [] | ||
const phrases = input.split(" ") | ||
for (const p of phrases) { |
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.
We usually use things like map
and filter
instead of loops, and we're trying to avoid let
.
|
||
const WorkspacesPage: React.FC = () => { | ||
const xServices = useContext(XServiceContext) | ||
const [authState] = useActor(xServices.authXService) | ||
const { me } = authState.context |
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.
When you only need one thing out of an xservice, it's better to useSelector
.
Not sure if I'm giving the kind of review you're looking for, let me know! It sounds like you want styling work to follow this up so I'm wondering if we want to merge it soon or hold off - I think what we don't want to do is merge this but not merge style improvements by the Community launch. |
Nope really just wanted to illustrate the idea, not wanting this code merged |
This is going to be done via the backend with #1972 |
Discussion at #1820
I wanted to get a proof of concept working so I could hand this off to a more skilled frontend engineer.
I think the big points here I wanted to make are: