这是indexloc提供的服务,不要输入任何密码
Skip to content

Conversation

@K-Mistele
Copy link
Contributor

@K-Mistele K-Mistele commented Oct 10, 2025

What problem(s) was I solving?

The CodeLayer UI was inconsistently displaying keyboard shortcuts for the Enter key. The first-time modal (OptInTelemetryModal) and other UI components were using the Unicode character ⏎ (U+23CE) to represent the Enter key, while the standard practice across the codebase is to spell out "ENTER" as text. This created visual inconsistency and potential confusion for users.

Additionally, the keyboard shortcut format was inconsistent, sometimes showing ⌘ ENTER (with a space) instead of ⌘+ENTER (with a plus sign), which is the standard notation for key combinations.

What user-facing changes did I ship?

  • Standardized keyboard shortcut display: All Enter key references now use "ENTER" text instead of the ⏎ Unicode character
  • Consistent formatting: All keyboard combinations now use the + symbol (e.g., ⌘+ENTER instead of ⌘ ENTER)
  • Affected UI components:
    • OptInTelemetryModal: First-time setup modal's "Enable Reporting" button
    • CommandInput: "Launch Session" button
    • DenyButtons: Session denial confirmation tooltips
    • ForkViewModal: "Fork Session" button and keyboard hint text

How I implemented it

  1. Identified all occurrences: Used grep to find all instances of the Enter Unicode character (⏎ or \u23CE) across the codebase
  2. Replaced Unicode with text: Changed all characters to "ENTER" text
  3. Fixed formatting: Updated keyboard shortcut format from space-separated to plus-separated (e.g., ⌘ ENTER⌘+ENTER)
  4. Verified completeness: Confirmed no remaining Unicode Enter characters exist in the UI components

Changes were made in 4 files:

  • humanlayer-wui/src/components/OptInTelemetryModal.tsx
  • humanlayer-wui/src/components/CommandInput.tsx
  • humanlayer-wui/src/components/internal/SessionDetail/components/DenyButtons.tsx
  • humanlayer-wui/src/components/internal/SessionDetail/components/ForkViewModal.tsx

How to verify it

Manual Testing

  • Open CodeLayer for the first time (or clear settings to trigger OptInTelemetryModal) - verify the "Enable Reporting" button shows ⌘+ENTER or Ctrl+ENTER
  • Open the Command Input component - verify the "Launch Session" button shows correct keyboard hint
  • Open a session and try to deny it - verify the deny buttons show correct keyboard hints
  • Open the Fork View Modal - verify both the button and the keyboard hints at the bottom show ⌘+ENTER

Automated Testing

  • Run make check test to ensure no TypeScript errors or test failures

Description for the changelog

fix: Standardize keyboard shortcut display to use "ENTER" text instead of Unicode character across all UI components

Copy link
Contributor

@ellipsis-dev ellipsis-dev bot left a comment

Choose a reason for hiding this comment

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

Important

Looks good to me! 👍

Reviewed everything up to 21326fe in 53 seconds. Click for details.
  • Reviewed 61 lines of code in 4 files
  • Skipped 0 files when reviewing.
  • Skipped posting 5 draft comments. View those below.
  • Modify your settings and rules to customize what types of comments Ellipsis leaves. And don't forget to react with 👍 or 👎 to teach Ellipsis.
1. humanlayer-wui/src/components/CommandInput.tsx:309
  • Draft comment:
    Replaced ⏎ with 'ENTER' for consistency. Consider extracting the platform key logic (e.g., getPlatformKey) into a shared utility to minimize duplication across components.
  • Reason this comment was not posted:
    Confidence changes required: 33% <= threshold 50% None
2. humanlayer-wui/src/components/OptInTelemetryModal.tsx:134
  • Draft comment:
    Updated the keyboard shortcut display by replacing ⏎ with 'ENTER'. Consider centralizing the platform check logic for consistency with other parts of the UI.
  • Reason this comment was not posted:
    Confidence changes required: 33% <= threshold 50% None
3. humanlayer-wui/src/components/internal/SessionDetail/components/DenyButtons.tsx:15
  • Draft comment:
    Replaced ⏎ with 'ENTER' in the sendKey variable. The update improves clarity in the keyboard shortcut display.
  • Reason this comment was not posted:
    Confidence changes required: 33% <= threshold 50% None
4. humanlayer-wui/src/components/internal/SessionDetail/components/ForkViewModal.tsx:456
  • Draft comment:
    Updated the shortcut label to use 'ENTER' instead of ⏎. This ensures consistent UI messaging.
  • Reason this comment was not posted:
    Confidence changes required: 33% <= threshold 50% None
5. humanlayer-wui/src/components/internal/SessionDetail/components/ForkViewModal.tsx:466
  • Draft comment:
    Replaced ⏎ with 'ENTER' in the instructional text for forking. This update maintains consistency across shortcut displays.
  • Reason this comment was not posted:
    Confidence changes required: 33% <= threshold 50% None

Workflow ID: wflow_66ZmWJVABzitUf1l

You can customize Ellipsis by changing your verbosity settings, reacting with 👍 or 👎, replying to comments, or adding code review rules.

…ortcuts

- Changed all instances of ⏎ (U+23CE) to 'ENTER' text
- Updated keyboard shortcut format from '⌘ ENTER' to '⌘+ENTER' for consistency
- Affected components: OptInTelemetryModal, CommandInput, DenyButtons, ForkViewModal

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
@K-Mistele K-Mistele force-pushed the fix/keyboard-shortcuts-enter-unicode branch from 21326fe to c77eecd Compare October 10, 2025 19:42
Copy link
Contributor

@ellipsis-dev ellipsis-dev bot left a comment

Choose a reason for hiding this comment

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

Important

Looks good to me! 👍

Reviewed c77eecd in 50 seconds. Click for details.
  • Reviewed 63 lines of code in 4 files
  • Skipped 0 files when reviewing.
  • Skipped posting 5 draft comments. View those below.
  • Modify your settings and rules to customize what types of comments Ellipsis leaves. And don't forget to react with 👍 or 👎 to teach Ellipsis.
1. humanlayer-wui/src/components/CommandInput.tsx:310
  • Draft comment:
    Updated shortcut text to 'ENTER' instead of using ⏎. Consider centralizing this string if reused.
  • Reason this comment was not posted:
    Confidence changes required: 0% <= threshold 50% None
2. humanlayer-wui/src/components/OptInTelemetryModal.tsx:134
  • Draft comment:
    Standardized the keyboard shortcut text to 'ENTER' in the telemetry modal.
  • Reason this comment was not posted:
    Confidence changes required: 0% <= threshold 50% None
3. humanlayer-wui/src/components/internal/SessionDetail/components/DenyButtons.tsx:15
  • Draft comment:
    Updated keyboard shortcut text to use 'ENTER' instead of ⏎ for consistency.
  • Reason this comment was not posted:
    Confidence changes required: 0% <= threshold 50% None
4. humanlayer-wui/src/components/internal/SessionDetail/components/ForkViewModal.tsx:456
  • Draft comment:
    Replaced ⏎ with 'ENTER' in the fork session button shortcut for consistency.
  • Reason this comment was not posted:
    Confidence changes required: 0% <= threshold 50% None
5. humanlayer-wui/src/components/internal/SessionDetail/components/ForkViewModal.tsx:465
  • Draft comment:
    Updated fork action label from '⌘⏎ Fork' to '⌘+ENTER Fork' for clarity.
  • Reason this comment was not posted:
    Confidence changes required: 0% <= threshold 50% None

Workflow ID: wflow_iq7V5BglJJIPR3NU

You can customize Ellipsis by changing your verbosity settings, reacting with 👍 or 👎, replying to comments, or adding code review rules.

@K-Mistele K-Mistele merged commit 70966ec into main Oct 10, 2025
5 checks 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.

2 participants