Skip to content
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

323 add object name inside the search #9962

Merged
merged 5 commits into from
Feb 1, 2025

Conversation

bosiraphael
Copy link
Contributor

@bosiraphael bosiraphael commented Jan 31, 2025

Closes twentyhq/core-team-issues#323

Before:
Capture d’écran 2025-01-31 à 18 11 56

After:
Capture d’écran 2025-01-31 à 18 09 58

@bosiraphael bosiraphael linked an issue Jan 31, 2025 that may be closed by this pull request
Copy link
Contributor

@greptile-apps greptile-apps bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

PR Summary

This PR enhances the command menu search functionality by adding descriptive labels to search results, making it easier for users to identify different types of records (Companies, People, Tasks, etc.).

  • Added optional description field to packages/twenty-front/src/modules/command-menu/types/Command.ts and corresponding UI components
  • Implemented descriptive labels in packages/twenty-front/src/modules/command-menu/hooks/useSearchRecords.tsx for each record type (Person, Company, Opportunity, etc.)
  • Added new styled components StyledDescription and StyledTextContainer in packages/twenty-ui/src/navigation/menu-item/components/MenuItemCommand.tsx for description display
  • Bug: Description prop not properly passed in MenuItemCommand.stories.tsx, making the new dimension ineffective

7 file(s) reviewed, 3 comment(s)
Edit PR Review Bot Settings | Greptile

Copy link
Member

@Weiko Weiko left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! 👏

@Weiko Weiko merged commit d9b8647 into main Feb 1, 2025
49 of 50 checks passed
@Weiko Weiko deleted the 323-add-object-name-inside-the-search branch February 1, 2025 07:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add object name inside the search
2 participants