-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
8414 add records selection context inside the command menu #8610
8414 add records selection context inside the command menu #8610
Conversation
Will be awesome! Some feedbacks: Dark Mode issueNeed two escape to remove the selectionWhen focus is on "Type anything" first escape remove the focus on the input, second escape remove the selection Removing the selection in breadcrumb should remove the selection on table/kanbansIf i press ⌫ or escape, should also deselect the record on the left Header sizeShould be 56px to match. Check all the header paddings Chip should be 32px heighput the border inside or make the chip 30px if the border are outside Delete doesn't workCleanShot.2024-11-20.at.18.51.22.mp4Icon identifiersPeople icon identifiers should be rounded Tasks & Notes should use their colored icon image identifiers Empty state in wrongly aligned |
display: flex; | ||
`; | ||
|
||
const CommandMenuContextRecordChipAvatars = ({ |
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.
1 type per file, 1 component per file
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.
add stories
@@ -11,10 +11,10 @@ export const MainContextStoreComponentInstanceIdSetterEffect = () => { | |||
const context = useContext(ContextStoreComponentInstanceContext); | |||
|
|||
useEffect(() => { | |||
setMainContextStoreComponentInstanceId(context?.instanceId ?? null); | |||
setMainContextStoreComponentInstanceId(context?.instanceId ?? 'app'); |
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.
make a constant
export const useContextStoreCurrentObjectMetadataIdOrThrow = ( | ||
instanceId?: string, | ||
) => { | ||
const contextStoreCurrentObjectMetadataIdComponent = |
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.
naming
import { useFindManyRecords } from '@/object-record/hooks/useFindManyRecords'; | ||
import { useRecoilComponentValueV2 } from '@/ui/utilities/state/component-state/hooks/useRecoilComponentValueV2'; | ||
|
||
export const useContextStoreSelectedRecords = ({ |
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.
useFindManyRecordSelectedInContextStore
Closes #8414
Enregistrement.de.l.ecran.2024-11-20.a.16.27.44.mov