Skip to content

feat: dark mode input revamp#6546

Merged
helloanoop merged 2 commits intomainfrom
feat/dark-mode-input-revamp
Dec 29, 2025
Merged

feat: dark mode input revamp#6546
helloanoop merged 2 commits intomainfrom
feat/dark-mode-input-revamp

Conversation

@helloanoop
Copy link
Contributor

@helloanoop helloanoop commented Dec 29, 2025

  • Dropdown font size reduced to sm
  • Input box revamped to be compact

Summary by CodeRabbit

  • New Features

    • Added compact editor mode for denser form field rendering.
  • Bug Fixes & Improvements

    • Standardized input styling and spacing across auth, request, and settings panels for visual consistency.
    • Updated theme tokens to improve contrast and clarity; dark themes now use transparent inputs with refined borders.
  • Style

    • Reduced label font sizes and tightened vertical spacing.
    • Improved placeholder contrast and opacity for better readability.

✏️ Tip: You can customize this high-level summary in your review settings.

Copilot AI review requested due to automatic review settings December 29, 2025 16:44
@coderabbitai
Copy link
Contributor

coderabbitai bot commented Dec 29, 2025

Note

Other AI code review bot(s) detected

CodeRabbit has detected other AI code review bot(s) in this pull request and will avoid duplicating their findings in the review comments. This may lead to a less comprehensive review.

Walkthrough

This PR tightens form spacing, introduces a compact rendering flag for SingleLineEditor, and migrates many modal-specific theme tokens to generic input tokens while updating dark-theme input appearances and several label typography tokens.

Changes

Cohort / File(s) Summary
Auth — StyledWrappers (labels)
packages/bruno-app/src/components/**/Auth/*/StyledWrapper.js
Label typography updated: theme.font.size.basetheme.font.size.sm and color: theme.colors.text.subtext1 added across auth variants (ApiKey, AwsV4, Basic, Bearer, Digest, NTLM, Wsse, OAuth2 variants).
Auth — Index files (UI spacing & editors)
packages/bruno-app/src/components/**/Auth/*/index.js
Labels reduced spacing (font-medium mb-2mb-1), wrapper spacing adjusted (mb-2mb-3), and isCompact prop added to SingleLineEditor usages across many auth components.
SingleLineEditor (compact support)
packages/bruno-app/src/components/SingleLineEditor/StyledWrapper.js, packages/bruno-app/src/components/SingleLineEditor/index.js
Introduces $isCompact conditional styles (heights, CodeMirror sizes, cursor metrics). index.js forwards $isCompact to the styled wrapper.
Theme token migration — modal.input → input
packages/bruno-app/src/components/**/StyledWrapper.js, packages/bruno-app/src/components/InheritableSettingsInput/index.js, packages/bruno-app/src/components/SettingsInput/index.js, packages/bruno-app/src/components/Sidebar/NewRequest/StyledWrapper.js
Replaced theme.modal.input.* references with theme.input.* for bg, border, focusBorder in multiple components.
GlobalSearchModal — refactor & rgba usage
packages/bruno-app/src/components/GlobalSearchModal/StyledWrapper.js
Reworked colors to use rgba and theme tokens, adjusted paddings, hover/selected backgrounds, badges, and scrollbar/result item spacing.
Dropdown / Environment / Response UI tweaks
packages/bruno-app/src/components/Dropdown/StyledWrapper.js, packages/bruno-app/src/components/Environments/EnvironmentSelector/*, packages/bruno-app/src/components/Response*/**/StyledWrapper.js, packages/bruno-app/src/components/RunnerResults/StyledWrapper.js
Font-size and border-token updates (e.g., modal.input.borderborder.border1), minor spacing and typography adjustments.
Dark themes — input visuals
packages/bruno-app/src/themes/dark/*.js
Input backgrounds changed to 'transparent', border tokens updated (SURFACE0 → SURFACE1 or BORDER2), placeholder opacity reduced (0.75 → 0.6), and primary accent representation adjusted in dark.js.

Sequence Diagram(s)

(Skipped — changes are presentational and styling-focused; no new multi-component control-flow introduced that meets the diagram criteria.)

Estimated code review effort

🎯 3 (Moderate) | ⏱️ ~35 minutes

Possibly related PRs

Suggested reviewers

  • lohit-bruno
  • naman-bruno
  • bijin-bruno

Poem

Tokens slip from modal halls to inputs light,
Labels shrink and editors tuck up tight,
Dark themes breathe transparent, borders gleam,
A compact rhythm hums through every seam. ✨

Pre-merge checks and finishing touches

✅ Passed checks (3 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title 'feat: dark mode input revamp' accurately reflects the PR's main changes: input styling refactored to be more compact with theme token updates, and dropdown font sizes reduced.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
✨ Finishing touches
  • 📝 Generate docstrings
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch feat/dark-mode-input-revamp

📜 Recent review details

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 6e5f56d and c7795de.

📒 Files selected for processing (3)
  • packages/bruno-app/src/components/InheritableSettingsInput/index.js
  • packages/bruno-app/src/components/SingleLineEditor/StyledWrapper.js
  • packages/bruno-app/src/themes/dark/dark.js
🚧 Files skipped from review as they are similar to previous changes (3)
  • packages/bruno-app/src/components/SingleLineEditor/StyledWrapper.js
  • packages/bruno-app/src/themes/dark/dark.js
  • packages/bruno-app/src/components/InheritableSettingsInput/index.js
⏰ 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). (6)
  • GitHub Check: Playwright E2E Tests
  • GitHub Check: CLI Tests
  • GitHub Check: Unit Tests
  • GitHub Check: SSL Tests - Windows
  • GitHub Check: SSL Tests - macOS
  • GitHub Check: SSL Tests - Linux

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

Comment @coderabbitai help to get the list of available commands and usage tips.

@github-actions
Copy link

github-actions bot commented Dec 29, 2025

CLI Test Results

  1 files  ±0  140 suites  ±0   57s ⏱️ -9s
235 tests ±0  235 ✅ ±0  0 💤 ±0  0 ❌ ±0 
301 runs  ±0  300 ✅ ±0  1 💤 ±0  0 ❌ ±0 

Results for commit c7795de. ± Comparison against base commit 0d536fb.

♻️ This comment has been updated with latest results.

Copy link
Contributor

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.

Pull request overview

This PR revamps the dark mode input styling to achieve a more compact, modern appearance. The changes unify the theme structure by migrating from theme.modal.input to theme.input across the codebase, make input backgrounds transparent for better visual consistency, and introduce a new isCompact prop to the SingleLineEditor component for reduced height in auth forms.

Key changes:

  • Input backgrounds changed to transparent and placeholder opacity reduced from 0.75 to 0.6 across all dark themes
  • SingleLineEditor component enhanced with isCompact mode for reduced vertical spacing
  • Dropdown font size reduced from base to sm for a more compact UI

Reviewed changes

Copilot reviewed 64 out of 64 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
packages/bruno-app/src/themes/dark/*.js Updated all dark theme input configurations to use transparent backgrounds, adjusted borders, and reduced placeholder opacity to 0.6
packages/bruno-app/src/components/SingleLineEditor/index.js Added isCompact prop support to enable compact mode
packages/bruno-app/src/components/SingleLineEditor/StyledWrapper.js Implemented dynamic sizing based on isCompact prop with reduced heights and adjusted cursor positioning
packages/bruno-app/src/components/RequestPane/Auth/*/index.js Applied isCompact prop to all auth form inputs and adjusted label styling (removed font-medium, changed margins)
packages/bruno-app/src/components/RequestPane/Auth/*/StyledWrapper.js Updated label styles to use smaller font size (sm) and muted color (subtext1)
packages/bruno-app/src/components/CollectionSettings/Auth/*/index.js Applied same compact styling and isCompact prop as request pane auth components
packages/bruno-app/src/components/CollectionSettings/Auth/*/StyledWrapper.js Updated label styles to match request pane conventions
packages/bruno-app/src/components/Sidebar/NewRequest/StyledWrapper.js Migrated from theme.modal.input to theme.input for consistent theming
packages/bruno-app/src/components/Modal/StyledWrapper.js Migrated input styling to use theme.input instead of theme.modal.input
packages/bruno-app/src/components/*/StyledWrapper.js (multiple) Migrated all input styling references from theme.modal.input to theme.input
packages/bruno-app/src/components/GlobalSearchModal/StyledWrapper.js Updated to use unified theme properties, improved styling with theme-based rgba colors, and better visual consistency
packages/bruno-app/src/components/Dropdown/StyledWrapper.js Reduced font size from base to sm for more compact dropdown appearance
packages/bruno-app/src/components/Environments/EnvironmentSelector/*.js Adjusted tab header padding and font size to match compact design
Comments suppressed due to low confidence (3)

packages/bruno-app/src/themes/dark/catppuccin-frappe.js:131

  • The placeholder opacity is set to 0.75 here, but other dark themes in this PR use 0.6 for consistency (see dark.js, dark-pastel.js, nord.js, vscode.js, dark-monochrome.js lines 138-140). Consider updating this to 0.6 to maintain consistency across all dark themes.
    packages/bruno-app/src/themes/dark/catppuccin-macchiato.js:131
  • The placeholder opacity is set to 0.75 here, but other dark themes in this PR use 0.6 for consistency (see dark.js, dark-pastel.js, nord.js, vscode.js, dark-monochrome.js lines 138-140). Consider updating this to 0.6 to maintain consistency across all dark themes.
    packages/bruno-app/src/themes/dark/catppuccin-mocha.js:131
  • The placeholder opacity is set to 0.75 here, but other dark themes in this PR use 0.6 for consistency (see dark.js, dark-pastel.js, nord.js, vscode.js, dark-monochrome.js lines 138-140). Consider updating this to 0.6 to maintain consistency across all dark themes.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

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: 1

Caution

Some comments are outside the diff and can’t be posted inline due to platform limitations.

⚠️ Outside diff range comments (2)
packages/bruno-app/src/components/ResponseExample/ResponseExampleResponsePane/ResponseExampleStatusInput/StyledWrapper.js (1)

63-63: Inconsistency with PR objectives: Dropdown font size not updated.

The PR objectives state "Dropdown font size reduced to sm", but this suggestion item (which appears in the dropdown) still uses theme.font.size.base. Should this be changed to theme.font.size.sm to align with the PR objectives?

🔎 Proposed fix
-      font-size: ${(props) => props.theme.font.size.base};
+      font-size: ${(props) => props.theme.font.size.sm};
packages/bruno-app/src/components/RequestPane/Auth/OAuth2/ClientCredentials/StyledWrapper.js (1)

36-40: CSS syntax error: trailing colon after selector.

.tippy-content: has an invalid trailing colon that will cause the nested styles to be ignored. This appears to be a pre-existing issue but worth fixing while you're in this file.

🔎 Proposed fix
-        .tippy-content: {
+        .tippy-content {
           width: fit-content;
           max-width: none !important;
           min-width: 100px;
         }
🧹 Nitpick comments (10)
packages/bruno-app/src/components/CollectionSettings/Presets/StyledWrapper.js (1)

11-18: Clean up redundant CSS properties.

The .textbox styles contain duplicates and conflicts that should be cleaned:

  • box-shadow: none; appears twice (lines 13 & 16)
  • border-radius conflicts (0px on line 14, 3px on line 18)
  • Line 11's hardcoded border is immediately overridden by line 20's themed border
🔎 Proposed cleanup
  .textbox {
-    border: 1px solid #ccc;
    padding: 0.15rem 0.45rem;
    box-shadow: none;
-    border-radius: 0px;
    outline: none;
-    box-shadow: none;
    transition: border-color ease-in-out 0.1s;
    border-radius: 3px;
    background-color: ${(props) => props.theme.input.bg};
    border: 1px solid ${(props) => props.theme.input.border};

    &:focus {
      border: solid 1px ${(props) => props.theme.input.focusBorder} !important;
      outline: none !important;
    }
  }
packages/bruno-app/src/components/GlobalSearchModal/StyledWrapper.js (1)

197-261: Consider reducing duplication in method badge styles.

The 11 method badge variants follow an identical pattern (color, rgba background at 0.1/0.12 opacity, rgba border at 0.2 opacity). While the current explicit approach is clear and maintainable, you could optionally reduce ~55 lines to a helper or CSS custom properties if this pattern expands further.

Given the straightforward nature and good readability of the current implementation, this is a minor optimization that can be deferred.

packages/bruno-app/src/components/Dropdown/StyledWrapper.js (1)

56-56: Good refactor: hardcoded value replaced with theme token.

Replacing the hardcoded 0.8125rem with theme.font.size.sm improves maintainability and ensures consistency across the theme.

packages/bruno-app/src/components/Preferences/ProxySettings/StyledWrapper.js (1)

9-16: Consider removing duplicate border declaration.

The .textbox has a hardcoded border: 1px solid #ccc on Line 9 that's immediately overridden by the themed border on Line 16. While harmless, it adds unnecessary noise.

🔎 Proposed cleanup
 .textbox {
-  border: 1px solid #ccc;
   padding: 0.15rem 0.45rem;
   box-shadow: none;
   outline: none;
   transition: border-color ease-in-out 0.1s;
   border-radius: 3px;
   background-color: ${(props) => props.theme.input.bg};
   border: 1px solid ${(props) => props.theme.input.border};
packages/bruno-app/src/components/CollectionSettings/ClientCertSettings/StyledWrapper.js (1)

25-34: Consider cleaning up redundant CSS declarations.

The .textbox has several redundant declarations:

  • border: 1px solid #ccc (Line 25) overridden by themed border (Line 34)
  • border-radius: 0px (Line 28) overridden by border-radius: 3px (Line 32)
  • box-shadow: none appears twice (Lines 27, 30)

While not causing issues, these add noise to the stylesheet.

🔎 Proposed cleanup
 .textbox {
-  border: 1px solid #ccc;
   padding: 0.15rem 0.45rem;
   box-shadow: none;
-  border-radius: 0px;
   outline: none;
-  box-shadow: none;
   transition: border-color ease-in-out 0.1s;
   border-radius: 3px;
   background-color: ${(props) => props.theme.input.bg};
   border: 1px solid ${(props) => props.theme.input.border};
packages/bruno-app/src/components/Cookies/StyledWrapper.js (1)

23-32: Consider removing redundant CSS declarations.

Similar to other files in this PR, the .textbox contains redundant declarations:

  • border: 1px solid #ccc (Line 23) overridden by themed border (Line 32)
  • border-radius: 0px (Line 26) overridden by border-radius: 3px (Line 30)
  • box-shadow: none duplicated (Lines 25, 28)
🔎 Proposed cleanup
 .textbox {
   line-height: 1.42857143;
-  border: 1px solid #ccc;
   padding: 0.45rem;
   box-shadow: none;
-  border-radius: 0px;
   outline: none;
-  box-shadow: none;
   transition: border-color ease-in-out 0.1s;
   border-radius: 3px;
   background-color: ${(props) => props.theme.input.bg};
   border: 1px solid ${(props) => props.theme.input.border};
packages/bruno-app/src/components/CollectionSettings/ProxySettings/StyledWrapper.js (1)

9-18: Consider cleaning up redundant CSS declarations.

The .textbox follows the same pattern of redundancy seen in other files:

  • border: 1px solid #ccc (Line 9) overridden by themed border (Line 18)
  • border-radius: 0px (Line 12) overridden by border-radius: 3px (Line 16)
  • box-shadow: none duplicated (Lines 11, 14)
🔎 Proposed cleanup
 .textbox {
-  border: 1px solid #ccc;
   padding: 0.15rem 0.45rem;
   box-shadow: none;
-  border-radius: 0px;
   outline: none;
-  box-shadow: none;
   transition: border-color ease-in-out 0.1s;
   border-radius: 3px;
   background-color: ${(props) => props.theme.input.bg};
   border: 1px solid ${(props) => props.theme.input.border};
packages/bruno-app/src/components/SingleLineEditor/StyledWrapper.js (1)

1-1: Unused css import.

The css helper is imported but not used in this file. Consider removing it.

🔎 Proposed fix
-import styled, { css } from 'styled-components';
+import styled from 'styled-components';
packages/bruno-app/src/themes/dark/dark.js (1)

132-142: Remove commented-out code.

Lines 135-136 contain commented-out alternatives that should be cleaned up.

🔎 Proposed fix
   input: {
     bg: 'transparent',
     border: palette.border.BORDER2,
-    // bg: palette.background.SURFACE1,
-    // border: palette.background.SURFACE1,
     focusBorder: rgba(palette.accents.PRIMARY, 0.8),
     placeholder: {
       color: palette.text.SUBTEXT1,
       opacity: 0.6
     }
   },
packages/bruno-app/src/components/CollectionSettings/Auth/NTLMAuth/index.js (1)

31-31: Minor formatting: Empty line in content object.

There's an empty line after domain: ntlmAuth.domain || '' at Line 31. Consider removing for consistency with other handler functions in this file.

🔎 Suggested cleanup
         content: {
           username: username || '',
           password: ntlmAuth.password || '',
           domain: ntlmAuth.domain || ''
-
         }
📜 Review details

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 0d536fb and 6e5f56d.

📒 Files selected for processing (64)
  • packages/bruno-app/src/components/CollectionSettings/Auth/ApiKeyAuth/StyledWrapper.js
  • packages/bruno-app/src/components/CollectionSettings/Auth/ApiKeyAuth/index.js
  • packages/bruno-app/src/components/CollectionSettings/Auth/AwsV4Auth/StyledWrapper.js
  • packages/bruno-app/src/components/CollectionSettings/Auth/AwsV4Auth/index.js
  • packages/bruno-app/src/components/CollectionSettings/Auth/BasicAuth/StyledWrapper.js
  • packages/bruno-app/src/components/CollectionSettings/Auth/BasicAuth/index.js
  • packages/bruno-app/src/components/CollectionSettings/Auth/BearerAuth/StyledWrapper.js
  • packages/bruno-app/src/components/CollectionSettings/Auth/BearerAuth/index.js
  • packages/bruno-app/src/components/CollectionSettings/Auth/DigestAuth/StyledWrapper.js
  • packages/bruno-app/src/components/CollectionSettings/Auth/DigestAuth/index.js
  • packages/bruno-app/src/components/CollectionSettings/Auth/NTLMAuth/StyledWrapper.js
  • packages/bruno-app/src/components/CollectionSettings/Auth/NTLMAuth/index.js
  • packages/bruno-app/src/components/CollectionSettings/Auth/WsseAuth/StyledWrapper.js
  • packages/bruno-app/src/components/CollectionSettings/Auth/WsseAuth/index.js
  • packages/bruno-app/src/components/CollectionSettings/ClientCertSettings/StyledWrapper.js
  • packages/bruno-app/src/components/CollectionSettings/Presets/StyledWrapper.js
  • packages/bruno-app/src/components/CollectionSettings/ProxySettings/StyledWrapper.js
  • packages/bruno-app/src/components/Cookies/StyledWrapper.js
  • packages/bruno-app/src/components/Dropdown/StyledWrapper.js
  • packages/bruno-app/src/components/Environments/EnvironmentSelector/StyledWrapper.js
  • packages/bruno-app/src/components/Environments/EnvironmentSelector/index.js
  • packages/bruno-app/src/components/GlobalSearchModal/StyledWrapper.js
  • packages/bruno-app/src/components/InheritableSettingsInput/index.js
  • packages/bruno-app/src/components/Modal/StyledWrapper.js
  • packages/bruno-app/src/components/Preferences/ProxySettings/StyledWrapper.js
  • packages/bruno-app/src/components/RequestPane/Auth/ApiKeyAuth/StyledWrapper.js
  • packages/bruno-app/src/components/RequestPane/Auth/ApiKeyAuth/index.js
  • packages/bruno-app/src/components/RequestPane/Auth/AwsV4Auth/StyledWrapper.js
  • packages/bruno-app/src/components/RequestPane/Auth/AwsV4Auth/index.js
  • packages/bruno-app/src/components/RequestPane/Auth/BasicAuth/StyledWrapper.js
  • packages/bruno-app/src/components/RequestPane/Auth/BasicAuth/index.js
  • packages/bruno-app/src/components/RequestPane/Auth/BearerAuth/StyledWrapper.js
  • packages/bruno-app/src/components/RequestPane/Auth/BearerAuth/index.js
  • packages/bruno-app/src/components/RequestPane/Auth/DigestAuth/StyledWrapper.js
  • packages/bruno-app/src/components/RequestPane/Auth/DigestAuth/index.js
  • packages/bruno-app/src/components/RequestPane/Auth/NTLMAuth/StyledWrapper.js
  • packages/bruno-app/src/components/RequestPane/Auth/NTLMAuth/index.js
  • packages/bruno-app/src/components/RequestPane/Auth/OAuth2/AdditionalParams/index.js
  • packages/bruno-app/src/components/RequestPane/Auth/OAuth2/AuthorizationCode/StyledWrapper.js
  • packages/bruno-app/src/components/RequestPane/Auth/OAuth2/AuthorizationCode/index.js
  • packages/bruno-app/src/components/RequestPane/Auth/OAuth2/ClientCredentials/StyledWrapper.js
  • packages/bruno-app/src/components/RequestPane/Auth/OAuth2/ClientCredentials/index.js
  • packages/bruno-app/src/components/RequestPane/Auth/OAuth2/Implicit/StyledWrapper.js
  • packages/bruno-app/src/components/RequestPane/Auth/OAuth2/Implicit/index.js
  • packages/bruno-app/src/components/RequestPane/Auth/OAuth2/PasswordCredentials/StyledWrapper.js
  • packages/bruno-app/src/components/RequestPane/Auth/OAuth2/PasswordCredentials/index.js
  • packages/bruno-app/src/components/RequestPane/Auth/WsseAuth/StyledWrapper.js
  • packages/bruno-app/src/components/RequestPane/Auth/WsseAuth/index.js
  • packages/bruno-app/src/components/ResponseExample/ResponseExampleResponsePane/ResponseExampleStatusInput/StyledWrapper.js
  • packages/bruno-app/src/components/ResponsePane/RunnerTimeline/StyledWrapper.js
  • packages/bruno-app/src/components/ResponsePane/Timeline/StyledWrapper.js
  • packages/bruno-app/src/components/RunnerResults/StyledWrapper.js
  • packages/bruno-app/src/components/SettingsInput/index.js
  • packages/bruno-app/src/components/Sidebar/NewRequest/StyledWrapper.js
  • packages/bruno-app/src/components/SingleLineEditor/StyledWrapper.js
  • packages/bruno-app/src/components/SingleLineEditor/index.js
  • packages/bruno-app/src/themes/dark/catppuccin-frappe.js
  • packages/bruno-app/src/themes/dark/catppuccin-macchiato.js
  • packages/bruno-app/src/themes/dark/catppuccin-mocha.js
  • packages/bruno-app/src/themes/dark/dark-monochrome.js
  • packages/bruno-app/src/themes/dark/dark-pastel.js
  • packages/bruno-app/src/themes/dark/dark.js
  • packages/bruno-app/src/themes/dark/nord.js
  • packages/bruno-app/src/themes/dark/vscode.js
🧰 Additional context used
📓 Path-based instructions (1)
**/*.{js,jsx,ts,tsx}

📄 CodeRabbit inference engine (CODING_STANDARDS.md)

**/*.{js,jsx,ts,tsx}: Use 2 spaces for indentation. No tabs, just spaces
Stick to single quotes for strings. For JSX/TSX attributes, use double quotes (e.g., )
Always add semicolons at the end of statements
No trailing commas
Always use parentheses around parameters in arrow functions, even for single params
For multiline constructs, put opening braces on the same line, and ensure consistency. Minimum 2 elements for multiline
No newlines inside function parentheses
Space before and after the arrow in arrow functions. () => {} is good
No space between function name and parentheses. func() not func ()
Semicolons go at the end of the line, not on a new line
Names for functions need to be concise and descriptive
Add in JSDoc comments to add more details to the abstractions if needed
Add in meaningful comments instead of obvious ones where complex code flow is explained properly

Files:

  • packages/bruno-app/src/components/CollectionSettings/ClientCertSettings/StyledWrapper.js
  • packages/bruno-app/src/components/ResponsePane/Timeline/StyledWrapper.js
  • packages/bruno-app/src/components/Sidebar/NewRequest/StyledWrapper.js
  • packages/bruno-app/src/components/RequestPane/Auth/ApiKeyAuth/StyledWrapper.js
  • packages/bruno-app/src/components/RequestPane/Auth/OAuth2/ClientCredentials/StyledWrapper.js
  • packages/bruno-app/src/components/CollectionSettings/Auth/DigestAuth/StyledWrapper.js
  • packages/bruno-app/src/components/RequestPane/Auth/DigestAuth/StyledWrapper.js
  • packages/bruno-app/src/components/ResponseExample/ResponseExampleResponsePane/ResponseExampleStatusInput/StyledWrapper.js
  • packages/bruno-app/src/components/SettingsInput/index.js
  • packages/bruno-app/src/components/InheritableSettingsInput/index.js
  • packages/bruno-app/src/components/RequestPane/Auth/BearerAuth/StyledWrapper.js
  • packages/bruno-app/src/components/Dropdown/StyledWrapper.js
  • packages/bruno-app/src/themes/dark/catppuccin-macchiato.js
  • packages/bruno-app/src/components/RequestPane/Auth/OAuth2/PasswordCredentials/StyledWrapper.js
  • packages/bruno-app/src/components/RequestPane/Auth/OAuth2/AdditionalParams/index.js
  • packages/bruno-app/src/components/GlobalSearchModal/StyledWrapper.js
  • packages/bruno-app/src/components/CollectionSettings/Auth/DigestAuth/index.js
  • packages/bruno-app/src/components/CollectionSettings/Auth/AwsV4Auth/StyledWrapper.js
  • packages/bruno-app/src/components/CollectionSettings/ProxySettings/StyledWrapper.js
  • packages/bruno-app/src/components/RequestPane/Auth/BearerAuth/index.js
  • packages/bruno-app/src/themes/dark/vscode.js
  • packages/bruno-app/src/components/CollectionSettings/Auth/WsseAuth/StyledWrapper.js
  • packages/bruno-app/src/components/RequestPane/Auth/AwsV4Auth/index.js
  • packages/bruno-app/src/components/ResponsePane/RunnerTimeline/StyledWrapper.js
  • packages/bruno-app/src/components/RequestPane/Auth/WsseAuth/index.js
  • packages/bruno-app/src/components/RequestPane/Auth/ApiKeyAuth/index.js
  • packages/bruno-app/src/components/RequestPane/Auth/OAuth2/Implicit/index.js
  • packages/bruno-app/src/components/RequestPane/Auth/BasicAuth/StyledWrapper.js
  • packages/bruno-app/src/components/RequestPane/Auth/OAuth2/Implicit/StyledWrapper.js
  • packages/bruno-app/src/components/Preferences/ProxySettings/StyledWrapper.js
  • packages/bruno-app/src/themes/dark/catppuccin-frappe.js
  • packages/bruno-app/src/components/CollectionSettings/Auth/ApiKeyAuth/index.js
  • packages/bruno-app/src/themes/dark/catppuccin-mocha.js
  • packages/bruno-app/src/components/Cookies/StyledWrapper.js
  • packages/bruno-app/src/components/RunnerResults/StyledWrapper.js
  • packages/bruno-app/src/components/CollectionSettings/Auth/BasicAuth/StyledWrapper.js
  • packages/bruno-app/src/components/RequestPane/Auth/BasicAuth/index.js
  • packages/bruno-app/src/components/CollectionSettings/Auth/BearerAuth/StyledWrapper.js
  • packages/bruno-app/src/themes/dark/dark-pastel.js
  • packages/bruno-app/src/components/SingleLineEditor/StyledWrapper.js
  • packages/bruno-app/src/components/CollectionSettings/Auth/ApiKeyAuth/StyledWrapper.js
  • packages/bruno-app/src/components/CollectionSettings/Auth/NTLMAuth/index.js
  • packages/bruno-app/src/components/Environments/EnvironmentSelector/StyledWrapper.js
  • packages/bruno-app/src/components/RequestPane/Auth/OAuth2/AuthorizationCode/StyledWrapper.js
  • packages/bruno-app/src/components/SingleLineEditor/index.js
  • packages/bruno-app/src/components/RequestPane/Auth/NTLMAuth/StyledWrapper.js
  • packages/bruno-app/src/themes/dark/dark-monochrome.js
  • packages/bruno-app/src/components/RequestPane/Auth/OAuth2/PasswordCredentials/index.js
  • packages/bruno-app/src/components/RequestPane/Auth/DigestAuth/index.js
  • packages/bruno-app/src/components/RequestPane/Auth/NTLMAuth/index.js
  • packages/bruno-app/src/components/CollectionSettings/Presets/StyledWrapper.js
  • packages/bruno-app/src/components/Modal/StyledWrapper.js
  • packages/bruno-app/src/components/RequestPane/Auth/WsseAuth/StyledWrapper.js
  • packages/bruno-app/src/components/RequestPane/Auth/OAuth2/ClientCredentials/index.js
  • packages/bruno-app/src/themes/dark/nord.js
  • packages/bruno-app/src/components/CollectionSettings/Auth/WsseAuth/index.js
  • packages/bruno-app/src/components/RequestPane/Auth/OAuth2/AuthorizationCode/index.js
  • packages/bruno-app/src/components/CollectionSettings/Auth/NTLMAuth/StyledWrapper.js
  • packages/bruno-app/src/components/RequestPane/Auth/AwsV4Auth/StyledWrapper.js
  • packages/bruno-app/src/components/Environments/EnvironmentSelector/index.js
  • packages/bruno-app/src/components/CollectionSettings/Auth/AwsV4Auth/index.js
  • packages/bruno-app/src/components/CollectionSettings/Auth/BasicAuth/index.js
  • packages/bruno-app/src/components/CollectionSettings/Auth/BearerAuth/index.js
  • packages/bruno-app/src/themes/dark/dark.js
🧠 Learnings (6)
📓 Common learnings
Learnt from: CR
Repo: usebruno/bruno PR: 0
File: CODING_STANDARDS.md:0-0
Timestamp: 2025-12-05T20:31:33.005Z
Learning: Applies to **/*.{jsx,tsx} : Use styled component's theme prop to manage CSS colors and not CSS variables when in the context of a styled component or any React component using the styled component
📚 Learning: 2025-12-05T20:31:33.005Z
Learnt from: CR
Repo: usebruno/bruno PR: 0
File: CODING_STANDARDS.md:0-0
Timestamp: 2025-12-05T20:31:33.005Z
Learning: Applies to **/*.{jsx,tsx} : Use styled component's theme prop to manage CSS colors and not CSS variables when in the context of a styled component or any React component using the styled component

Applied to files:

  • packages/bruno-app/src/components/CollectionSettings/ClientCertSettings/StyledWrapper.js
  • packages/bruno-app/src/components/ResponsePane/Timeline/StyledWrapper.js
  • packages/bruno-app/src/components/Sidebar/NewRequest/StyledWrapper.js
  • packages/bruno-app/src/components/RequestPane/Auth/ApiKeyAuth/StyledWrapper.js
  • packages/bruno-app/src/components/RequestPane/Auth/OAuth2/ClientCredentials/StyledWrapper.js
  • packages/bruno-app/src/components/CollectionSettings/Auth/DigestAuth/StyledWrapper.js
  • packages/bruno-app/src/components/RequestPane/Auth/DigestAuth/StyledWrapper.js
  • packages/bruno-app/src/components/ResponseExample/ResponseExampleResponsePane/ResponseExampleStatusInput/StyledWrapper.js
  • packages/bruno-app/src/components/SettingsInput/index.js
  • packages/bruno-app/src/components/InheritableSettingsInput/index.js
  • packages/bruno-app/src/components/RequestPane/Auth/BearerAuth/StyledWrapper.js
  • packages/bruno-app/src/components/Dropdown/StyledWrapper.js
  • packages/bruno-app/src/components/RequestPane/Auth/OAuth2/PasswordCredentials/StyledWrapper.js
  • packages/bruno-app/src/components/GlobalSearchModal/StyledWrapper.js
  • packages/bruno-app/src/components/CollectionSettings/Auth/AwsV4Auth/StyledWrapper.js
  • packages/bruno-app/src/components/CollectionSettings/ProxySettings/StyledWrapper.js
  • packages/bruno-app/src/themes/dark/vscode.js
  • packages/bruno-app/src/components/CollectionSettings/Auth/WsseAuth/StyledWrapper.js
  • packages/bruno-app/src/components/ResponsePane/RunnerTimeline/StyledWrapper.js
  • packages/bruno-app/src/components/RequestPane/Auth/BasicAuth/StyledWrapper.js
  • packages/bruno-app/src/components/RequestPane/Auth/OAuth2/Implicit/StyledWrapper.js
  • packages/bruno-app/src/components/Preferences/ProxySettings/StyledWrapper.js
  • packages/bruno-app/src/components/Cookies/StyledWrapper.js
  • packages/bruno-app/src/components/RunnerResults/StyledWrapper.js
  • packages/bruno-app/src/components/CollectionSettings/Auth/BasicAuth/StyledWrapper.js
  • packages/bruno-app/src/components/CollectionSettings/Auth/BearerAuth/StyledWrapper.js
  • packages/bruno-app/src/components/SingleLineEditor/StyledWrapper.js
  • packages/bruno-app/src/components/CollectionSettings/Auth/ApiKeyAuth/StyledWrapper.js
  • packages/bruno-app/src/components/Environments/EnvironmentSelector/StyledWrapper.js
  • packages/bruno-app/src/components/RequestPane/Auth/OAuth2/AuthorizationCode/StyledWrapper.js
  • packages/bruno-app/src/components/RequestPane/Auth/NTLMAuth/StyledWrapper.js
  • packages/bruno-app/src/components/CollectionSettings/Presets/StyledWrapper.js
  • packages/bruno-app/src/components/Modal/StyledWrapper.js
  • packages/bruno-app/src/components/RequestPane/Auth/WsseAuth/StyledWrapper.js
  • packages/bruno-app/src/themes/dark/nord.js
  • packages/bruno-app/src/components/CollectionSettings/Auth/NTLMAuth/StyledWrapper.js
  • packages/bruno-app/src/components/RequestPane/Auth/AwsV4Auth/StyledWrapper.js
  • packages/bruno-app/src/themes/dark/dark.js
📚 Learning: 2025-12-05T20:31:33.005Z
Learnt from: CR
Repo: usebruno/bruno PR: 0
File: CODING_STANDARDS.md:0-0
Timestamp: 2025-12-05T20:31:33.005Z
Learning: Applies to **/*.{jsx,tsx} : Styled Components are used as wrappers to define both self and children components style; Tailwind classes are used specifically for layout based styles

Applied to files:

  • packages/bruno-app/src/components/CollectionSettings/ClientCertSettings/StyledWrapper.js
  • packages/bruno-app/src/components/ResponsePane/Timeline/StyledWrapper.js
  • packages/bruno-app/src/components/Sidebar/NewRequest/StyledWrapper.js
  • packages/bruno-app/src/components/RequestPane/Auth/ApiKeyAuth/StyledWrapper.js
  • packages/bruno-app/src/components/RequestPane/Auth/OAuth2/ClientCredentials/StyledWrapper.js
  • packages/bruno-app/src/components/CollectionSettings/Auth/DigestAuth/StyledWrapper.js
  • packages/bruno-app/src/components/RequestPane/Auth/DigestAuth/StyledWrapper.js
  • packages/bruno-app/src/components/ResponseExample/ResponseExampleResponsePane/ResponseExampleStatusInput/StyledWrapper.js
  • packages/bruno-app/src/components/InheritableSettingsInput/index.js
  • packages/bruno-app/src/components/RequestPane/Auth/BearerAuth/StyledWrapper.js
  • packages/bruno-app/src/components/Dropdown/StyledWrapper.js
  • packages/bruno-app/src/components/RequestPane/Auth/OAuth2/PasswordCredentials/StyledWrapper.js
  • packages/bruno-app/src/components/GlobalSearchModal/StyledWrapper.js
  • packages/bruno-app/src/components/CollectionSettings/Auth/AwsV4Auth/StyledWrapper.js
  • packages/bruno-app/src/components/CollectionSettings/ProxySettings/StyledWrapper.js
  • packages/bruno-app/src/components/CollectionSettings/Auth/WsseAuth/StyledWrapper.js
  • packages/bruno-app/src/components/RequestPane/Auth/BasicAuth/StyledWrapper.js
  • packages/bruno-app/src/components/RequestPane/Auth/OAuth2/Implicit/StyledWrapper.js
  • packages/bruno-app/src/components/Cookies/StyledWrapper.js
  • packages/bruno-app/src/components/RunnerResults/StyledWrapper.js
  • packages/bruno-app/src/components/CollectionSettings/Auth/BasicAuth/StyledWrapper.js
  • packages/bruno-app/src/components/CollectionSettings/Auth/BearerAuth/StyledWrapper.js
  • packages/bruno-app/src/components/SingleLineEditor/StyledWrapper.js
  • packages/bruno-app/src/components/CollectionSettings/Auth/ApiKeyAuth/StyledWrapper.js
  • packages/bruno-app/src/components/Environments/EnvironmentSelector/StyledWrapper.js
  • packages/bruno-app/src/components/RequestPane/Auth/OAuth2/AuthorizationCode/StyledWrapper.js
  • packages/bruno-app/src/components/RequestPane/Auth/NTLMAuth/StyledWrapper.js
  • packages/bruno-app/src/components/CollectionSettings/Presets/StyledWrapper.js
  • packages/bruno-app/src/components/Modal/StyledWrapper.js
  • packages/bruno-app/src/components/RequestPane/Auth/WsseAuth/StyledWrapper.js
  • packages/bruno-app/src/components/CollectionSettings/Auth/NTLMAuth/StyledWrapper.js
  • packages/bruno-app/src/components/RequestPane/Auth/AwsV4Auth/StyledWrapper.js
📚 Learning: 2025-12-17T21:41:24.730Z
Learnt from: naman-bruno
Repo: usebruno/bruno PR: 6407
File: packages/bruno-app/src/components/Environments/ConfirmCloseEnvironment/index.js:5-41
Timestamp: 2025-12-17T21:41:24.730Z
Learning: Do not suggest PropTypes validation for React components in the Bruno codebase. The project does not use PropTypes, so reviews should avoid proposing PropTypes and rely on the existing typing/validation approach (e.g., TypeScript or alternative runtime checks) if applicable. This guideline applies broadly to all JavaScript/JSX components in the repo.

Applied to files:

  • packages/bruno-app/src/components/CollectionSettings/ClientCertSettings/StyledWrapper.js
  • packages/bruno-app/src/components/ResponsePane/Timeline/StyledWrapper.js
  • packages/bruno-app/src/components/Sidebar/NewRequest/StyledWrapper.js
  • packages/bruno-app/src/components/RequestPane/Auth/ApiKeyAuth/StyledWrapper.js
  • packages/bruno-app/src/components/RequestPane/Auth/OAuth2/ClientCredentials/StyledWrapper.js
  • packages/bruno-app/src/components/CollectionSettings/Auth/DigestAuth/StyledWrapper.js
  • packages/bruno-app/src/components/RequestPane/Auth/DigestAuth/StyledWrapper.js
  • packages/bruno-app/src/components/ResponseExample/ResponseExampleResponsePane/ResponseExampleStatusInput/StyledWrapper.js
  • packages/bruno-app/src/components/SettingsInput/index.js
  • packages/bruno-app/src/components/InheritableSettingsInput/index.js
  • packages/bruno-app/src/components/RequestPane/Auth/BearerAuth/StyledWrapper.js
  • packages/bruno-app/src/components/Dropdown/StyledWrapper.js
  • packages/bruno-app/src/themes/dark/catppuccin-macchiato.js
  • packages/bruno-app/src/components/RequestPane/Auth/OAuth2/PasswordCredentials/StyledWrapper.js
  • packages/bruno-app/src/components/RequestPane/Auth/OAuth2/AdditionalParams/index.js
  • packages/bruno-app/src/components/GlobalSearchModal/StyledWrapper.js
  • packages/bruno-app/src/components/CollectionSettings/Auth/DigestAuth/index.js
  • packages/bruno-app/src/components/CollectionSettings/Auth/AwsV4Auth/StyledWrapper.js
  • packages/bruno-app/src/components/CollectionSettings/ProxySettings/StyledWrapper.js
  • packages/bruno-app/src/components/RequestPane/Auth/BearerAuth/index.js
  • packages/bruno-app/src/themes/dark/vscode.js
  • packages/bruno-app/src/components/CollectionSettings/Auth/WsseAuth/StyledWrapper.js
  • packages/bruno-app/src/components/RequestPane/Auth/AwsV4Auth/index.js
  • packages/bruno-app/src/components/ResponsePane/RunnerTimeline/StyledWrapper.js
  • packages/bruno-app/src/components/RequestPane/Auth/WsseAuth/index.js
  • packages/bruno-app/src/components/RequestPane/Auth/ApiKeyAuth/index.js
  • packages/bruno-app/src/components/RequestPane/Auth/OAuth2/Implicit/index.js
  • packages/bruno-app/src/components/RequestPane/Auth/BasicAuth/StyledWrapper.js
  • packages/bruno-app/src/components/RequestPane/Auth/OAuth2/Implicit/StyledWrapper.js
  • packages/bruno-app/src/components/Preferences/ProxySettings/StyledWrapper.js
  • packages/bruno-app/src/themes/dark/catppuccin-frappe.js
  • packages/bruno-app/src/components/CollectionSettings/Auth/ApiKeyAuth/index.js
  • packages/bruno-app/src/themes/dark/catppuccin-mocha.js
  • packages/bruno-app/src/components/Cookies/StyledWrapper.js
  • packages/bruno-app/src/components/RunnerResults/StyledWrapper.js
  • packages/bruno-app/src/components/CollectionSettings/Auth/BasicAuth/StyledWrapper.js
  • packages/bruno-app/src/components/RequestPane/Auth/BasicAuth/index.js
  • packages/bruno-app/src/components/CollectionSettings/Auth/BearerAuth/StyledWrapper.js
  • packages/bruno-app/src/themes/dark/dark-pastel.js
  • packages/bruno-app/src/components/SingleLineEditor/StyledWrapper.js
  • packages/bruno-app/src/components/CollectionSettings/Auth/ApiKeyAuth/StyledWrapper.js
  • packages/bruno-app/src/components/CollectionSettings/Auth/NTLMAuth/index.js
  • packages/bruno-app/src/components/Environments/EnvironmentSelector/StyledWrapper.js
  • packages/bruno-app/src/components/RequestPane/Auth/OAuth2/AuthorizationCode/StyledWrapper.js
  • packages/bruno-app/src/components/SingleLineEditor/index.js
  • packages/bruno-app/src/components/RequestPane/Auth/NTLMAuth/StyledWrapper.js
  • packages/bruno-app/src/themes/dark/dark-monochrome.js
  • packages/bruno-app/src/components/RequestPane/Auth/OAuth2/PasswordCredentials/index.js
  • packages/bruno-app/src/components/RequestPane/Auth/DigestAuth/index.js
  • packages/bruno-app/src/components/RequestPane/Auth/NTLMAuth/index.js
  • packages/bruno-app/src/components/CollectionSettings/Presets/StyledWrapper.js
  • packages/bruno-app/src/components/Modal/StyledWrapper.js
  • packages/bruno-app/src/components/RequestPane/Auth/WsseAuth/StyledWrapper.js
  • packages/bruno-app/src/components/RequestPane/Auth/OAuth2/ClientCredentials/index.js
  • packages/bruno-app/src/themes/dark/nord.js
  • packages/bruno-app/src/components/CollectionSettings/Auth/WsseAuth/index.js
  • packages/bruno-app/src/components/RequestPane/Auth/OAuth2/AuthorizationCode/index.js
  • packages/bruno-app/src/components/CollectionSettings/Auth/NTLMAuth/StyledWrapper.js
  • packages/bruno-app/src/components/RequestPane/Auth/AwsV4Auth/StyledWrapper.js
  • packages/bruno-app/src/components/Environments/EnvironmentSelector/index.js
  • packages/bruno-app/src/components/CollectionSettings/Auth/AwsV4Auth/index.js
  • packages/bruno-app/src/components/CollectionSettings/Auth/BasicAuth/index.js
  • packages/bruno-app/src/components/CollectionSettings/Auth/BearerAuth/index.js
  • packages/bruno-app/src/themes/dark/dark.js
📚 Learning: 2025-12-05T20:31:33.005Z
Learnt from: CR
Repo: usebruno/bruno PR: 0
File: CODING_STANDARDS.md:0-0
Timestamp: 2025-12-05T20:31:33.005Z
Learning: Applies to **/*.{jsx,tsx} : Styled Component CSS might also change layout but Tailwind classes shouldn't define colors

Applied to files:

  • packages/bruno-app/src/components/ResponsePane/Timeline/StyledWrapper.js
  • packages/bruno-app/src/components/Sidebar/NewRequest/StyledWrapper.js
  • packages/bruno-app/src/components/RequestPane/Auth/ApiKeyAuth/StyledWrapper.js
  • packages/bruno-app/src/components/RequestPane/Auth/OAuth2/ClientCredentials/StyledWrapper.js
  • packages/bruno-app/src/components/CollectionSettings/Auth/DigestAuth/StyledWrapper.js
  • packages/bruno-app/src/components/RequestPane/Auth/DigestAuth/StyledWrapper.js
  • packages/bruno-app/src/components/ResponseExample/ResponseExampleResponsePane/ResponseExampleStatusInput/StyledWrapper.js
  • packages/bruno-app/src/components/SettingsInput/index.js
  • packages/bruno-app/src/components/InheritableSettingsInput/index.js
  • packages/bruno-app/src/components/RequestPane/Auth/BearerAuth/StyledWrapper.js
  • packages/bruno-app/src/components/Dropdown/StyledWrapper.js
  • packages/bruno-app/src/components/RequestPane/Auth/OAuth2/PasswordCredentials/StyledWrapper.js
  • packages/bruno-app/src/components/GlobalSearchModal/StyledWrapper.js
  • packages/bruno-app/src/components/CollectionSettings/Auth/AwsV4Auth/StyledWrapper.js
  • packages/bruno-app/src/components/CollectionSettings/ProxySettings/StyledWrapper.js
  • packages/bruno-app/src/components/CollectionSettings/Auth/WsseAuth/StyledWrapper.js
  • packages/bruno-app/src/components/ResponsePane/RunnerTimeline/StyledWrapper.js
  • packages/bruno-app/src/components/RequestPane/Auth/BasicAuth/StyledWrapper.js
  • packages/bruno-app/src/components/RequestPane/Auth/OAuth2/Implicit/StyledWrapper.js
  • packages/bruno-app/src/components/Cookies/StyledWrapper.js
  • packages/bruno-app/src/components/RunnerResults/StyledWrapper.js
  • packages/bruno-app/src/components/CollectionSettings/Auth/BasicAuth/StyledWrapper.js
  • packages/bruno-app/src/components/CollectionSettings/Auth/BearerAuth/StyledWrapper.js
  • packages/bruno-app/src/components/SingleLineEditor/StyledWrapper.js
  • packages/bruno-app/src/components/CollectionSettings/Auth/ApiKeyAuth/StyledWrapper.js
  • packages/bruno-app/src/components/Environments/EnvironmentSelector/StyledWrapper.js
  • packages/bruno-app/src/components/RequestPane/Auth/OAuth2/AuthorizationCode/StyledWrapper.js
  • packages/bruno-app/src/components/RequestPane/Auth/NTLMAuth/StyledWrapper.js
  • packages/bruno-app/src/components/CollectionSettings/Presets/StyledWrapper.js
  • packages/bruno-app/src/components/Modal/StyledWrapper.js
  • packages/bruno-app/src/components/RequestPane/Auth/WsseAuth/StyledWrapper.js
  • packages/bruno-app/src/components/CollectionSettings/Auth/NTLMAuth/StyledWrapper.js
  • packages/bruno-app/src/components/RequestPane/Auth/AwsV4Auth/StyledWrapper.js
  • packages/bruno-app/src/themes/dark/dark.js
📚 Learning: 2025-12-02T07:24:50.311Z
Learnt from: bijin-bruno
Repo: usebruno/bruno PR: 6263
File: packages/bruno-requests/src/auth/oauth2-helper.ts:249-249
Timestamp: 2025-12-02T07:24:50.311Z
Learning: In OAuth2 Basic Auth headers for Bruno, clientSecret is optional and can be omitted. When constructing the Authorization header in `packages/bruno-requests/src/auth/oauth2-helper.ts`, use `clientSecret || ''` instead of `clientSecret!` to properly handle cases where only clientId is provided, per community requests.

Applied to files:

  • packages/bruno-app/src/components/RequestPane/Auth/OAuth2/ClientCredentials/StyledWrapper.js
  • packages/bruno-app/src/components/RequestPane/Auth/BearerAuth/index.js
  • packages/bruno-app/src/components/RequestPane/Auth/WsseAuth/index.js
  • packages/bruno-app/src/components/RequestPane/Auth/OAuth2/Implicit/index.js
  • packages/bruno-app/src/components/RequestPane/Auth/BasicAuth/index.js
  • packages/bruno-app/src/components/RequestPane/Auth/OAuth2/PasswordCredentials/index.js
  • packages/bruno-app/src/components/RequestPane/Auth/OAuth2/ClientCredentials/index.js
  • packages/bruno-app/src/components/RequestPane/Auth/OAuth2/AuthorizationCode/index.js
  • packages/bruno-app/src/components/CollectionSettings/Auth/BasicAuth/index.js
🧬 Code graph analysis (13)
packages/bruno-app/src/themes/dark/catppuccin-macchiato.js (1)
packages/bruno-app/src/themes/dark/catppuccin-frappe.js (1)
  • colors (4-48)
packages/bruno-app/src/components/CollectionSettings/Auth/DigestAuth/index.js (1)
packages/bruno-app/src/components/RequestPane/Auth/DigestAuth/index.js (3)
  • digestAuth (15-15)
  • handleSave (21-23)
  • handleUsernameChange (25-37)
packages/bruno-app/src/themes/dark/vscode.js (2)
packages/bruno-app/src/themes/dark/dark-monochrome.js (1)
  • colors (1-35)
packages/bruno-app/src/themes/dark/dark.js (1)
  • colors (50-55)
packages/bruno-app/src/components/RequestPane/Auth/AwsV4Auth/index.js (1)
packages/bruno-app/src/components/SensitiveFieldWarning/index.js (1)
  • SensitiveFieldWarning (6-27)
packages/bruno-app/src/components/RequestPane/Auth/ApiKeyAuth/index.js (7)
packages/bruno-app/src/components/CollectionSettings/Auth/ApiKeyAuth/index.js (3)
  • apikeyAuth (19-19)
  • handleSave (21-21)
  • handleAuthChange (32-43)
packages/bruno-app/src/components/RequestPane/Auth/AwsV4Auth/index.js (1)
  • handleSave (22-24)
packages/bruno-app/src/components/RequestPane/Auth/BasicAuth/index.js (1)
  • handleSave (22-24)
packages/bruno-app/src/components/RequestPane/Auth/BearerAuth/index.js (1)
  • handleSave (23-25)
packages/bruno-app/src/components/RequestPane/Auth/DigestAuth/index.js (1)
  • handleSave (21-23)
packages/bruno-app/src/components/RequestPane/Auth/NTLMAuth/index.js (1)
  • handleSave (22-24)
packages/bruno-app/src/components/RequestPane/Auth/WsseAuth/index.js (1)
  • handleSave (22-24)
packages/bruno-app/src/components/CollectionSettings/Auth/ApiKeyAuth/index.js (2)
packages/bruno-app/src/components/RequestPane/Auth/ApiKeyAuth/index.js (3)
  • apikeyAuth (18-18)
  • handleSave (22-24)
  • handleAuthChange (35-47)
packages/bruno-app/src/components/CollectionSettings/Auth/AwsV4Auth/index.js (1)
  • handleSave (20-20)
packages/bruno-app/src/themes/dark/dark-pastel.js (2)
packages/bruno-app/src/themes/dark/dark-monochrome.js (1)
  • colors (1-35)
packages/bruno-app/src/themes/dark/dark.js (1)
  • colors (50-55)
packages/bruno-app/src/components/CollectionSettings/Auth/NTLMAuth/index.js (4)
packages/bruno-app/src/components/RequestPane/Auth/NTLMAuth/index.js (4)
  • ntlmAuth (16-16)
  • handleSave (22-24)
  • handleUsernameChange (26-39)
  • handlePasswordChange (41-54)
packages/bruno-app/src/components/CollectionSettings/Auth/ApiKeyAuth/index.js (1)
  • handleSave (21-21)
packages/bruno-app/src/components/CollectionSettings/Auth/AwsV4Auth/index.js (1)
  • handleSave (20-20)
packages/bruno-app/src/components/CollectionSettings/Auth/BearerAuth/index.js (1)
  • handleSave (20-20)
packages/bruno-app/src/themes/dark/dark-monochrome.js (2)
packages/bruno-app/src/themes/dark/dark.js (1)
  • colors (50-55)
packages/bruno-app/src/themes/dark/vscode.js (1)
  • colors (4-57)
packages/bruno-app/src/components/CollectionSettings/Auth/WsseAuth/index.js (1)
packages/bruno-app/src/components/RequestPane/Auth/WsseAuth/index.js (3)
  • wsseAuth (16-16)
  • handleSave (22-24)
  • handleUserChange (26-38)
packages/bruno-app/src/components/RequestPane/Auth/OAuth2/AuthorizationCode/index.js (1)
packages/bruno-app/src/utils/collections/index.js (3)
  • label (841-841)
  • label (877-877)
  • label (921-921)
packages/bruno-app/src/components/CollectionSettings/Auth/AwsV4Auth/index.js (2)
packages/bruno-app/src/components/RequestPane/Auth/AwsV4Auth/index.js (1)
  • awsv4Auth (16-16)
packages/bruno-app/src/components/SensitiveFieldWarning/index.js (1)
  • SensitiveFieldWarning (6-27)
packages/bruno-app/src/themes/dark/dark.js (1)
packages/bruno-app/src/themes/light/light.js (2)
  • palette (1-50)
  • palette (1-50)
⏰ 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). (8)
  • GitHub Check: Agent
  • GitHub Check: CodeQL analysis (javascript-typescript)
  • GitHub Check: Playwright E2E Tests
  • GitHub Check: SSL Tests - Linux
  • GitHub Check: SSL Tests - macOS
  • GitHub Check: SSL Tests - Windows
  • GitHub Check: CLI Tests
  • GitHub Check: Unit Tests

@helloanoop helloanoop merged commit 6d77cac into main Dec 29, 2025
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants