opt: disable spell check for API key textarea#1544
Conversation
Greptile SummaryThis PR adds Confidence Score: 5/5Safe to merge — minimal, targeted UX fix with no logic changes. The change adds a single boolean HTML attribute to two textarea elements, both of which are API key inputs. The fix is complete (covers both code paths), correct, and carries no risk. No files require special attention. Important Files Changed
Flowchart%%{init: {'theme': 'neutral'}}%%
flowchart TD
A[User opens Channel Dialog] --> B{Edit existing channel?}
B -- Yes --> C[Reveal mode Textarea\nspellCheck=false]
B -- No --> D[Create mode Textarea\nspellCheck=false]
C --> E[Browser spell check disabled\nNo red squiggles on API key]
D --> E
Reviews (1): Last reviewed commit: "fix: disable spell check for API key tex..." | Re-trigger Greptile |
There was a problem hiding this comment.
Code Review
This pull request updates the ChannelsActionDialog component to disable spell checking on API key input fields. The reviewer recommended also disabling auto-capitalization and auto-correction for these fields to prevent mobile browsers from automatically modifying the sensitive input, ensuring data integrity across different devices.
| className='min-h-[80px] resize-y pr-10 font-mono text-sm md:col-span-6' | ||
| autoComplete='new-password' | ||
| data-form-type='other' | ||
| spellCheck={false} |
There was a problem hiding this comment.
| className='min-h-[80px] resize-y font-mono text-sm md:col-span-6' | ||
| autoComplete='new-password' | ||
| data-form-type='other' | ||
| spellCheck={false} |
API Key 的输入框应该显式禁用拼写检查,不然浏览器可能会为输入框启用拼写检查,会导致那个输入框如果key多的话会满屏红波浪线。