Skip to content

Conversation

@banzhe
Copy link
Collaborator

@banzhe banzhe commented Dec 13, 2024

feat: add Enter key support for folder and tag input dialogs
style: use TooltipPortal to prevent TooltipContent from being incorrectly hidden
refactor: add BadgeSpan component and update usage in PageCard to avoid react validateDOMNesting error

@banzhe banzhe requested review from Ray-D-Song and Copilot December 13, 2024 04:41
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Copilot reviewed 5 out of 7 changed files in this pull request and generated no comments.

Files not reviewed (2)
  • packages/web/src/components/edit-folder-dialog.tsx: Evaluated as low risk
  • packages/web/src/components/edit-tag-dialog.tsx: Evaluated as low risk
Comments suppressed due to low confidence (6)

packages/web/src/components/page-card.tsx:46

  • The variable name 'showcaseSate' appears to be a typo. It should be renamed to 'showcaseState' to match the correct spelling.
const [showcaseSate, setShowcaseState] = useState(page.isShowcased)

packages/web/src/components/page-card.tsx:53

  • The variable 'showcaseSate' should be 'showcaseState' to match the correct state variable name.
setShowcaseState(showcaseSate === 1 ? 0 : 1)

packages/web/src/components/page-card.tsx:152

  • The variable 'showcaseSate' should be 'showcaseState' to match the correct state variable name.
updateShowcase({ id: page.id, isShowcased: showcaseSate === 1 ? 0 : 1 })

packages/web/src/components/page-card.tsx:156

  • The variable 'showcaseSate' should be 'showcaseState' to match the correct state variable name.
showcaseSate === 1 ? <EyeOff className="w-5 h-5" /> : <Eye className="w-5 h-5" />

packages/web/src/components/page-card.tsx:163

  • The variable 'showcaseSate' should be 'showcaseState' to match the correct state variable name.
showcaseSate === 1 ? 'Remove from showcase' : 'Show in showcase'

packages/web/src/components/new-folder-dialog.tsx:47

  • Ensure that the new onKeyDown behavior is covered by tests to verify that pressing 'Enter' triggers the handleSubmit function correctly.
onKeyDown={e => e.key === 'Enter' && handleSubmit()}

@Ray-D-Song Ray-D-Song merged commit d376e3f into main Dec 13, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants