- Notifications
You must be signed in to change notification settings - Fork928
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Uh oh!
There was an error while loading.Please reload this page.
Conversation
Thanks for drafting this up. Some notes:
|
f0ssel commentedMay 31, 2022 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
|
f0ssel commentedMay 31, 2022 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
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 likemap
andfilter
instead of loops, and we're trying to avoidlet
.
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 touseSelector
.
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 |
misskniss commentedJun 2, 2022
This is going to be done via the backend with#1972 |
Uh oh!
There was an error while loading.Please reload this page.
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: