Skip to content

No responsiveness#1394

Merged
duckduckhero merged 3 commits intomainfrom
no-responsiveness
Aug 24, 2025
Merged

No responsiveness#1394
duckduckhero merged 3 commits intomainfrom
no-responsiveness

Conversation

@duckduckhero
Copy link
Contributor

@duckduckhero duckduckhero commented Aug 24, 2025

Summary by cubic

Unifies the Listen button’s size and copy for a more consistent UI. Replaces “Go” with “Resume,” aligns “Ended” across compact and default, and sets both variants to the same w-16 width.

Updates EN/KO i18n strings and message references to match the new labels.

@coderabbitai
Copy link
Contributor

coderabbitai bot commented Aug 24, 2025

📝 Walkthrough

Walkthrough

Standardizes ListenButton’s widths and labels by removing isCompact-driven variants. The resume/meeting-ended states now use fixed w-16 width with consistent labels (“Resume” on hover, “Ended” otherwise). Updates English and Korean locale strings to match and realigns translation reference line numbers.

Changes

Cohort / File(s) Summary
Listen button UI
apps/desktop/src/components/editor-area/note-header/listen-button.tsx
Fixed action button width to w-16 in paused and meeting-ended states; unified labels to “Resume” (hover) and “Ended” (non-hover); removed compact-mode label/width variants.
Locale updates
apps/desktop/src/locales/en/messages.po, apps/desktop/src/locales/ko/messages.po
Adjusted strings to reflect unified labels (“Resume”/“Ended”); kept “Wait…” unchanged; updated source reference line numbers; no key or structural changes.

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~10 minutes

Possibly related PRs

  • Editor area responsive #1329 — Earlier change added isCompact-based “Go”/w-12 variants in the same ListenButton, which this PR removes.
  • Minor fixes 0820 #1377 — Adjusted listen-button label/placeholder logic and locales in the same UI area, overlapping with these label standardizations.

Tip

🔌 Remote MCP (Model Context Protocol) integration is now available!

Pro plan users can now connect to remote MCP servers from the Integrations page. Connect with popular remote MCPs such as Notion and Linear to add more context to your reviews and chats.

✨ Finishing Touches
  • 📝 Generate Docstrings
🧪 Generate unit tests
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch no-responsiveness

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share
🪧 Tips

Chat

There are 3 ways to chat with CodeRabbit:

‼️ IMPORTANT
Auto-reply has been disabled for this repository in the CodeRabbit settings. The CodeRabbit bot will not respond to your replies unless it is explicitly tagged.

  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai gather interesting stats about this repository and render them as a table. Additionally, render a pie chart showing the language distribution in the codebase.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.

Support

Need help? Create a ticket on our support page for assistance with any issues or questions.

CodeRabbit Commands (Invoked using PR/Issue comments)

Type @coderabbitai help to get the list of available commands.

Other keywords and placeholders

  • Add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.
  • Add @coderabbitai summary to generate the high-level summary at a specific location in the PR description.
  • Add @coderabbitai anywhere in the PR title to generate the title automatically.

Status, Documentation and Community

  • Visit our Status Page to check the current availability of CodeRabbit.
  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

Copy link

@cubic-dev-ai cubic-dev-ai bot left a comment

Choose a reason for hiding this comment

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

No issues found across 3 files

Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 0

🧹 Nitpick comments (4)
apps/desktop/src/locales/en/messages.po (1)

269-275: Simplify placeholder hint to match flattened UI logic

The hint still carries redundant isCompact branches. Flatten it to reduce translator confusion and keep it aligned with the component logic.

Apply this diff in the PO comment:

-#. placeholder {0}: disabled ? "Wait..." : isHovered ? (isCompact ? "Resume" : "Resume") : (isCompact ? "Ended" : "Ended")
+#. placeholder {0}: disabled ? "Wait..." : isHovered ? "Resume" : "Ended"
apps/desktop/src/components/editor-area/note-header/listen-button.tsx (2)

147-154: Remove redundant isCompact ternary; hardcode width and label

Now that compact/non-compact are unified, simplify to a single class and literal label. This reduces runtime branching and improves readability.

-          `${
-            isCompact ? "w-16" : "w-16"
-          } h-9 rounded-full transition-all hover:scale-95 cursor-pointer outline-none p-0 flex items-center justify-center text-xs font-medium`,
+          "w-16 h-9 rounded-full transition-all hover:scale-95 cursor-pointer outline-none p-0 flex items-center justify-center text-xs font-medium",
-        <Trans>{isCompact ? "Resume" : "Resume"}</Trans>
+        <Trans>Resume</Trans>

222-234: Flatten ListenButton width and label logic; remove compact branching

The hover and default states always use a fixed width (w-16) and labels (“Resume” on hover, “Ended” otherwise), so the nested isCompact ternaries can be collapsed. Once the compact-specific styling and text are removed (in both the paused and ended states), the isCompact prop is no longer used and can be dropped from the component’s API and its single call site.

• In apps/desktop/src/components/editor-area/note-header/listen-button.tsx, lines 145–154 (paused state) and 222–234 (ended state):

  • Replace the interpolated width classes with a single string.
  • Simplify the <Trans> ternaries to two cases.

• Drop the isCompact prop from the ListenButton signature (line 58) and from the WhenInactiveAndMeetingEnded helper (lines 209–211).

• In apps/desktop/src/components/editor-area/note-header/index.tsx, line 106: remove isCompact={isCompact} from the <ListenButton … /> usage.

Example diffs:

--- a/apps/desktop/src/components/editor-area/note-header/listen-button.tsx
@@ lines 145-154
-        className={cn(
-          `${
-            isCompact ? "w-16" : "w-16"
-          } h-9 rounded-full transition-all hover:scale-95 cursor-pointer outline-none p-0 flex items-center justify-center text-xs font-medium`,
-          "bg-red-100 border-2 border-red-400 text-red-600",
-        )}
+        className={cn(
+          "w-16 h-9 rounded-full transition-all hover:scale-95 cursor-pointer outline-none p-0 flex items-center justify-center text-xs font-medium",
+          "bg-red-100 border-2 border-red-400 text-red-600",
+        )}
@@ lines 153-154
-        <Trans>{isCompact ? "Resume" : "Resume"}</Trans>
+        <Trans>Resume</Trans>
--- a/apps/desktop/src/components/editor-area/note-header/listen-button.tsx
@@ lines 222-234
-        className={cn(
-          `${
-            isCompact ? "w-16" : "w-16"
-          } h-9 rounded-full transition-all outline-none p-0 flex items-center justify-center text-xs font-medium`,
-          "bg-neutral-200 border-2 border-neutral-400 text-neutral-600",
-        )}
+        className={cn(
+          "w-16 h-9 rounded-full transition-all outline-none p-0 flex items-center justify-center text-xs font-medium",
+          "bg-neutral-200 border-2 border-neutral-400 text-neutral-600",
+        )}
...
-      <Trans>
-        {disabled ? "Wait..." : isHovered ? (isCompact ? "Resume" : "Resume") : (isCompact ? "Ended" : "Ended")}
-      </Trans>
+      <Trans>{disabled ? "Wait..." : isHovered ? "Resume" : "Ended"}</Trans>
--- a/apps/desktop/src/components/editor-area/note-header/listen-button.tsx
@@ line 58
-export default function ListenButton({ sessionId, isCompact = false }: { sessionId: string; isCompact?: boolean }) {
+export default function ListenButton({ sessionId }: { sessionId: string }) {
--- a/apps/desktop/src/components/editor-area/note-header/index.tsx
@@ line 106
-      {isInNoteMain && <ListenButton sessionId={sessionId} isCompact={isCompact} />}
+      {isInNoteMain && <ListenButton sessionId={sessionId} />}
apps/desktop/src/locales/ko/messages.po (1)

269-275: Mirror the simplified placeholder hint in KO catalog

As with EN, remove redundant compact branches in the hint to match the flattened UI and reduce translator ambiguity.

-#. placeholder {0}: disabled ? "Wait..." : isHovered ? (isCompact ? "Resume" : "Resume") : (isCompact ? "Ended" : "Ended")
+#. placeholder {0}: disabled ? "Wait..." : isHovered ? "Resume" : "Ended"
📜 Review details

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

💡 Knowledge Base configuration:

  • MCP integration is disabled by default for public repositories
  • Jira integration is disabled by default for public repositories
  • Linear integration is disabled by default for public repositories

You can enable these sources in your CodeRabbit configuration.

📥 Commits

Reviewing files that changed from the base of the PR and between dbac383 and b724d87.

📒 Files selected for processing (3)
  • apps/desktop/src/components/editor-area/note-header/listen-button.tsx (3 hunks)
  • apps/desktop/src/locales/en/messages.po (12 hunks)
  • apps/desktop/src/locales/ko/messages.po (12 hunks)
🧰 Additional context used
📓 Path-based instructions (1)
**/*.{js,ts,tsx,rs}

⚙️ CodeRabbit configuration file

**/*.{js,ts,tsx,rs}: 1. No error handling.
2. No unused imports, variables, or functions.
3. For comments, keep it minimal. It should be about "Why", not "What".

Files:

  • apps/desktop/src/components/editor-area/note-header/listen-button.tsx
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (2)
  • GitHub Check: ci (macos, macos-latest)
  • GitHub Check: ci (windows, windows-latest)
🔇 Additional comments (2)
apps/desktop/src/locales/en/messages.po (1)

443-446: LGTM: Reference realignments and label consistency

These entries reflect reference shifts and the standardized labels (“Resume”, “Ended”, “Stop”, etc.). No msgid/msgstr regressions detected.

Also applies to: 621-624, 662-666, 679-683, 1142-1145, 1226-1229, 1322-1325, 1467-1470, 1516-1519

apps/desktop/src/locales/ko/messages.po (1)

443-446: LGTM: Reference realignments and standardized labels

Entries reflect source line shifts and label standardization. No msgid/msgstr integrity issues spotted.

Also applies to: 621-624, 662-666, 679-683, 1142-1145, 1226-1229, 1322-1325, 1467-1470, 1516-1519

@duckduckhero duckduckhero merged commit 16e6548 into main Aug 24, 2025
12 checks passed
@ComputelessComputer ComputelessComputer deleted the no-responsiveness branch December 14, 2025 15:21
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.

1 participant