Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions bun.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 1 addition & 3 deletions packages/review-editor/components/ReviewSidebar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ import { CodeAnnotation, type CodeAnnotationScope, type EditorAnnotation, type A
import { Button } from '@plannotator/ui/components/ui/button';
import { DecisionNoteField } from '@plannotator/ui/components/DecisionControl';
import { useDismissablePopover } from '@plannotator/ui/hooks/useDismissablePopover';
import { submitHint } from '@plannotator/ui/utils/platform';
import { CommentMeta } from './CommentMeta';
import { EditorAnnotationCard } from '@plannotator/ui/components/EditorAnnotationCard';
import { CommentActions } from './CommentActions';
Expand Down Expand Up @@ -208,8 +207,7 @@ const GeneralCommentComposer: React.FC<{
onCancel={() => onOpenChange(false)}
placeholder="Add a general comment..."
/>
<div className="mt-2 flex items-center justify-between gap-2">
<span className="text-[10px] leading-snug text-muted-foreground">{submitHint}</span>
<div className="mt-2 flex items-center justify-end gap-2">
<Button size="xs" data-general-comment-add onClick={submit} title="Add the comment to this review">
Add comment
</Button>
Expand Down
9 changes: 2 additions & 7 deletions packages/ui/components/DecisionControl.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ import { ActionMenuDivider, ActionMenuItem } from './ActionMenu';
import { ConfirmDialog, type ConfirmDialogProps } from './ConfirmDialog';
import { useDismissablePopover } from '../hooks/useDismissablePopover';
import { useCompactTouchLayout } from '../hooks/useIsMobile';
import { submitHint } from '../utils/platform';
import { cn } from '../lib/utils';
import type {
DecisionActionId,
Expand Down Expand Up @@ -228,8 +227,7 @@ export const DecisionNoteDialog: React.FC<{
disabled={disabled}
autoFocus={!isCompactTouchLayout}
/>
<div className="mt-3 flex items-center justify-between gap-2">
<span className="text-[11px] leading-snug text-muted-foreground">{submitHint}</span>
<div className="mt-3 flex items-center justify-end gap-2">
<Button
variant={toneButtonVariant(composer.tone)}
size="xs"
Expand Down Expand Up @@ -571,10 +569,7 @@ export const DecisionControl: React.FC<DecisionControlProps> = ({
onCancel={backToMenu}
placeholder={activeItem.composer.placeholder}
/>
<div className="mt-2 flex items-center justify-between gap-2 px-0.5">
<span className="text-[11px] leading-snug text-muted-foreground">
{submitHint} send · Esc back, note kept
</span>
<div className="mt-2 flex items-center justify-end gap-2 px-0.5">
<Button
variant={toneButtonVariant(activeItem.composer.tone)}
size="xs"
Expand Down
Loading