Add Workspace switcher to Referrals page#1464
Conversation
| sx={{ | ||
| minWidth: 240, | ||
| '& .MuiInputBase-input': { fontWeight: 600, color: 'primary.dark' }, | ||
| }} | ||
| textInputProps={{ | ||
| InputProps: { | ||
| startAdornment: ( | ||
| <InputAdornment | ||
| position='start' | ||
| aria-hidden='true' | ||
| sx={{ ml: 1, mr: 0 }} | ||
| > | ||
| <Box | ||
| component='span' | ||
| sx={{ | ||
| width: 12, | ||
| height: 12, | ||
| borderRadius: '50%', | ||
| bgcolor: 'primary.main', | ||
| }} | ||
| /> | ||
| </InputAdornment> |
There was a problem hiding this comment.
I have a couple concerns about the dot + main color on the select component. I started typing up a comment here, but then decided I'll put my design comments in a thread over in Figma, for better separation of concerns :) Figma thread
Code-wise, if we do end up choosing to establish this pattern as part of our design language, I would prefer to put the custom styling in a thin presentational wrapper around GenericSelect. We could call it something like AccentedSelect, PrimaryColorSelect, BrandedSelect, etc. The dot and custom color could live there, and the component would pass the rest of its props down directly to the GenericSelect it renders.
There was a problem hiding this comment.
I believe the purpose is probably to bring some visual attention to the context switcher on the page and differentiate it from other "input"-type selectors.
Looks like your question is still open in Figma. For now, I just moved the adornment into its own component (within the same file) and added a note saying we can pull it out to another component or variant for re-use when needed.
Even if designs change, I think it'll be non-blocking for merge because nobody will see this functionality yet (not until we add any Workspace records)
Description
Issue: https://github.com/open-path/Green-River/issues/9204
Depends on Backend PR: greenriver/hmis-warehouse#6455
Opened against #1456 because it depends on referral refactor
WorkspaceSelectanduseWorkspaceSelectorare implemented generically (not CE-specific) so they can be re-used if we introduce workspace switchers elsewhere, such as the User Dashboard.See issue for how to test
Type of change
New feature
Checklist before requesting review