Repository navigation
feat: improved dark mode color - #6616
Conversation
|
Note Other AI code review bot(s) detectedCodeRabbit 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. WalkthroughUpdates theme palettes (dark and light) by restructuring hue and syntax mappings and adjusting several color values; adds dev tooling scripts for launching the web server and Electron together and a PR worktree helper; updates package scripts and .gitignore to ignore Changes
Sequence Diagram(s)sequenceDiagram
autonumber
participant DevScript as scripts/dev.js
participant WebDev as Web Dev Server
participant Electron as Electron Process
participant OS as Operating System / Signals
DevScript->>WebDev: spawn web dev process (child)
WebDev-->>DevScript: stdout (includes listening URL / port)
alt port detected via regex
DevScript->>DevScript: extract port, set BRUNO_DEV_PORT
DevScript->>Electron: spawn with env BRUNO_DEV_PORT
Electron-->>DevScript: stdout/stderr forwarded
else timeout / error
DevScript->>OS: emit error and cleanup
end
OS-)DevScript: SIGINT / SIGTERM / exit
DevScript->>WebDev: terminate child
DevScript->>Electron: terminate child
DevScript-->>OS: exit
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes Possibly related PRs
Suggested reviewers
Poem
Pre-merge checks and finishing touches❌ Failed checks (2 warnings)
✅ Passed checks (1 passed)
✨ Finishing touches
📜 Recent review detailsConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro 📒 Files selected for processing (1)
🚧 Files skipped from review as they are similar to previous changes (1)
⏰ 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). (5)
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. Comment |
There was a problem hiding this comment.
Pull request overview
This PR improves the dark mode color palette by enhancing color vibrancy and standardizing the syntax highlighting scheme across both light and dark themes. The changes introduce more saturated and vibrant hues for the dark theme, and align the syntax color definitions between both themes for consistency.
Key Changes
- Updated dark mode color hues with increased saturation and brightness values for better contrast and visual appeal
- Standardized syntax highlighting scheme across both light and dark themes with improved organization and comments
- Added
storybook-static/to .gitignore for build artifact exclusion
Reviewed changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated 2 comments.
| File | Description |
|---|---|
packages/bruno-app/src/themes/dark/dark.js |
Updated hue values with increased saturation and brightness; reorganized syntax palette with descriptive comments and updated color mappings |
packages/bruno-app/src/themes/light/light.js |
Added duplicate syntax palette definition with reorganized structure and comments (contains a critical bug) |
packages/bruno-app/.gitignore |
Added storybook-static/ directory to exclusion list |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
There was a problem hiding this comment.
Actionable comments posted: 0
Caution
Some comments are outside the diff and can’t be posted inline due to platform limitations.
⚠️ Outside diff range comments (1)
packages/bruno-app/src/themes/light/light.js (1)
64-76: Remove dead code: initial palette.syntax is completely overwritten.This first definition of
palette.syntaxis never used because it's immediately replaced by the redefinition at lines 78-98. Remove this dead code to avoid confusion and unnecessary computation.🔎 Proposed fix
-palette.syntax = { - DEFINITION: palette.hues.INDIGO, - PROPERTY: palette.hues.BLUE, - STRING: palette.hues.BROWN, - NUMBER: palette.hues.GREEN, - ATOM: palette.hues.PURPLE, - VARIABLE: palette.hues.PINK, - KEYWORD: palette.hues.ROSE, - COMMENT: palette.text.SUBTEXT0, - OPERATOR: palette.hues.BLUE, - TAG: palette.hues.ROSE, - TAG_BRACKET: palette.text.SUBTEXT0 -}; -
📜 Review details
Configuration used: Path: .coderabbit.yaml
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (3)
packages/bruno-app/.gitignorepackages/bruno-app/src/themes/dark/dark.jspackages/bruno-app/src/themes/light/light.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()notfunc ()
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/themes/light/light.jspackages/bruno-app/src/themes/dark/dark.js
🧠 Learnings (3)
📓 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-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/themes/light/light.jspackages/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} : 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/themes/dark/dark.js
🧬 Code graph analysis (1)
packages/bruno-app/src/themes/light/light.js (3)
packages/bruno-app/src/themes/dark/dark.js (2)
palette(3-57)palette(3-57)packages/bruno-app/src/themes/DesignSystem/Theme.stories.jsx (4)
palette(18-18)palette(55-55)palette(86-86)palette(221-221)packages/bruno-app/src/themes/DesignSystem/Overview.jsx (3)
palette(119-119)palette(327-327)palette(588-588)
⏰ 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: CLI Tests
- GitHub Check: SSL Tests - Linux
- GitHub Check: Unit Tests
- GitHub Check: SSL Tests - Windows
- GitHub Check: SSL Tests - macOS
🔇 Additional comments (6)
packages/bruno-app/.gitignore (2)
37-38: Gitignore entries look good.Both additions follow standard best practices:
.envfiles should never be committed (security), andstorybook-static/is a generated build artifact that belongs in gitignore.
1-38: Note: PR describes dark mode color improvements, but theme files aren't provided for review.The PR summary mentions "improved dark mode colors," and the AI summary references changes to
dark.jsandlight.js, but these files aren't included in this review. If those files contain styled-component color definitions, ensure they use the theme prop for color management (as per coding standards).packages/bruno-app/src/themes/light/light.js (1)
78-98: Well-structured syntax color palette with clear semantic groupings.The reorganized
palette.syntaxwith inline comments provides excellent clarity for the semantic roles of each token type. The hierarchical approach (core keywords prominent, operators quieter, comments receding) should improve code readability.packages/bruno-app/src/themes/dark/dark.js (3)
7-7: Primary STRONG color intensity adjusted for better dark mode aesthetics.Reducing lightness from 69% to 64% provides a more balanced strong emphasis in dark mode.
11-24: Comprehensive hues palette update improves dark mode color harmony.The systematic refresh of all 14 color hues with adjusted HSL values aligns with the PR objective of improving dark mode aesthetics.
66-86: Clean syntax palette restructure with semantic organization.The reorganized
palette.syntaxprovides clear semantic groupings through inline comments. The implementation is clean with no duplicate definitions, establishing consistency with the light theme.
There was a problem hiding this comment.
Actionable comments posted: 1
🧹 Nitpick comments (3)
scripts/dev.js (3)
87-95: Add guard against multiple cleanup invocations.The
cleanupfunction can be called from multiple sources (web process close, electron process close, and signal handlers). This can lead toprocess.exit(0)being called multiple times or attempting to kill already-killed processes.🔎 Recommended fix to add cleanup guard
+let isCleaningUp = false; + function cleanup() { + if (isCleaningUp) return; + isCleaningUp = true; + if (webProcess && !webProcess.killed) { webProcess.kill(); } if (electronProcess && !electronProcess.killed) { electronProcess.kill(); } process.exit(0); }
44-57: Add timeout fallback for port detection.If the web server fails to output the expected port format or crashes before emitting it, Electron will never start and the script will hang indefinitely. Consider adding a timeout with a fallback to the default port or an error message.
🔎 Suggested timeout implementation
+const PORT_DETECTION_TIMEOUT = 60000; // 60 seconds + +const portDetectionTimer = setTimeout(() => { + if (!detectedPort) { + log.warn('Port detection timed out, using default port 3000'); + detectedPort = '3000'; + startElectron(detectedPort); + } +}, PORT_DETECTION_TIMEOUT); + webProcess.stdout.on('data', (data) => { const output = data.toString(); process.stdout.write(output); // Try to detect the port from rsbuild output if (!detectedPort) { const match = output.match(portRegex); if (match) { detectedPort = match[1]; + clearTimeout(portDetectionTimer); log.success(`Detected dev server on port ${colors.bright}${detectedPort}${colors.reset}`); startElectron(detectedPort); } } });
88-92: Process existence checks are redundant.The checks
if (webProcess && ...)andif (electronProcess && ...)are checking if the variables are truthy, butwebProcessis always defined (initialized at line 38) andelectronProcessis eithernullor defined. The actual intent is to check if the process hasn't been killed yet, which the.killedproperty already handles.🔎 Simplified version
function cleanup() { - if (webProcess && !webProcess.killed) { + if (!webProcess.killed) { webProcess.kill(); } - if (electronProcess && !electronProcess.killed) { + if (electronProcess && !electronProcess.killed) { electronProcess.kill(); } process.exit(0); }Note: Keep the null check for
electronProcesssince it starts asnulland may not be initialized if cleanup is called before port detection.
📜 Review details
Configuration used: Path: .coderabbit.yaml
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (6)
package.jsonpackages/bruno-app/src/themes/dark/dark.jspackages/bruno-app/src/themes/dark/vscode.jspackages/bruno-electron/src/index.jsscripts/dev.jsscripts/pr-checkout.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()notfunc ()
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:
scripts/dev.jspackages/bruno-electron/src/index.jsscripts/pr-checkout.jspackages/bruno-app/src/themes/dark/vscode.jspackages/bruno-app/src/themes/dark/dark.js
🧠 Learnings (2)
📚 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:
scripts/dev.jspackages/bruno-electron/src/index.jsscripts/pr-checkout.jspackages/bruno-app/src/themes/dark/vscode.jspackages/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} : 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/themes/dark/vscode.jspackages/bruno-app/src/themes/dark/dark.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: Unit Tests
- GitHub Check: SSL Tests - Windows
- GitHub Check: SSL Tests - macOS
- GitHub Check: SSL Tests - Linux
- GitHub Check: Playwright E2E Tests
- GitHub Check: CLI Tests
🔇 Additional comments (10)
packages/bruno-app/src/themes/dark/vscode.js (1)
47-47: LGTM! Color update aligns with VS Code Dark+ theme.The change to
#9cdcfecreates consistency with the PROPERTY and VARIABLE tokens, matching VS Code's default treatment of definitions.package.json (1)
57-57: LGTM! Dev workflow improvement.The shift to a custom orchestrator script enables automatic port detection and ensures the web server is ready before Electron starts. The individual
dev:webanddev:electronscripts remain available for manual use.packages/bruno-electron/src/index.js (1)
198-200: LGTM! Clean environment-based port configuration.The implementation properly reads the port from
BRUNO_DEV_PORTwith a sensible default, maintaining backward compatibility while enabling dynamic port detection from the new dev orchestration script.scripts/pr-checkout.js (1)
68-81: LGTM! Solid worktree automation with good error handling.The script properly orchestrates PR checkout into isolated worktrees. The approach of checking out detached, capturing the commit, returning to the original branch, then creating the worktree is sound and avoids branch conflicts.
packages/bruno-app/src/themes/dark/dark.js (6)
1-1: LGTM: lighten import and usage.The
lightenfunction is correctly imported and applied to the delete method color. The 8% lightening provides visual distinction from the base RED hue.Also applies to: 241-241
11-24: LGTM: Hue palette updates and GREEN_DARK addition.The refreshed HSL values improve the dark mode color palette, and the new
GREEN_DARKhue provides better contrast for valid variable highlighting in the code editor (used on line 413). The palette is comprehensive and well-structured.
66-86: LGTM: Excellent syntax palette restructuring.The reorganization with clear sectional comments (
Core language structure,Identifiers & properties,Literals, etc.) significantly improves maintainability. The design rationale for each group is now explicit, particularly the intent for comments to "recede" visually. API compatibility is maintained for consumers at lines 418-428.
247-247: LGTM: gRPC color change to TEAL.Switching from BROWN to TEAL provides better visual distinction for gRPC requests in the UI. The color choice aligns with the updated hue palette.
413-413: LGTM: GREEN_DARK for valid variables.Using the darker green variant for valid variable highlighting improves contrast and readability in the CodeMirror editor. This leverages the new
GREEN_DARKhue added to the palette.
7-7: PRIMARY.STRONG now duplicates PRIMARY.TEXT in dark theme—clarify intent.In the dark theme,
PRIMARY.STRONGandPRIMARY.TEXTare bothhsl(39, 74%, 64%)(line 6–7). This eliminates the semantic distinction between them. If the darkening was intentional, verify thattabs.active.borderand other uses ofPRIMARY.STRONGmaintain adequate contrast against dark backgrounds (WCAG AA minimum 4.5:1 for text, 3:1 for UI components). If not intentional, consider restoring differentiation between these tokens.
| const originalBranch = runCapture('git rev-parse --abbrev-ref @{-1} 2>/dev/null || git rev-parse --abbrev-ref HEAD'); | ||
| run(`git checkout ${originalBranch}`, { stdio: 'pipe' }); |
There was a problem hiding this comment.
🧩 Analysis chain
🏁 Script executed:
# Read the pr-checkout.js file to see the run/runCapture function implementations
cat -n scripts/pr-checkout.js | head -90Repository: usebruno/bruno
Length of output: 3443
🏁 Script executed:
# Also check if there are any utility files that define run/runCapture
fd -t f '\.(js|ts)$' scripts | head -20Repository: usebruno/bruno
Length of output: 186
🏁 Script executed:
# Test execSync behavior with shell operators
node <<'EOF'
const { execSync } = require('child_process');
console.log("Testing execSync with shell operators but NO shell: true...\n");
try {
const result = execSync('git rev-parse --abbrev-ref @{-1} 2>/dev/null || git rev-parse --abbrev-ref HEAD', {
encoding: 'utf-8',
cwd: process.cwd()
});
console.log("Result:", result);
} catch (error) {
console.log("Error caught:");
console.log("Code:", error.code);
console.log("Status:", error.status);
console.log("Message:", error.message);
console.log("\nError output:", error.stderr || error.stdout);
}
console.log("\n\nNow testing with shell: true...\n");
try {
const result = execSync('git rev-parse --abbrev-ref @{-1} 2>/dev/null || git rev-parse --abbrev-ref HEAD', {
encoding: 'utf-8',
cwd: process.cwd(),
shell: true
});
console.log("Result:", result);
} catch (error) {
console.log("Error caught:");
console.log("Code:", error.code);
console.log("Message:", error.message);
}
EOFRepository: usebruno/bruno
Length of output: 203
Use shell: true for explicit shell operator support.
Line 76 uses shell operators (||, 2>/dev/null) within execSync. While the command works in typical scenarios where a previous branch exists, relying on shell syntax without explicitly setting shell: true is fragile. For clarity and to ensure the fallback logic functions correctly when @{-1} is unavailable (e.g., on initial repository setup or in CI environments), pass shell: true to runCapture or update it to explicitly support shell execution:
function runCapture(cmd, options = {}) {
return execSync(cmd, { encoding: 'utf-8', cwd: repoRoot, shell: true, ...options }).trim();
}🤖 Prompt for AI Agents
In scripts/pr-checkout.js around lines 76-77, the git command uses shell
operators (|| and redirection) but runCapture calls execSync without explicitly
enabling shell execution; update the runCapture implementation to pass { shell:
true } (merged with existing options) into execSync so the fallback and
redirection work reliably in CI/initial-repo cases, or alternatively call
runCapture with an options object that sets shell: true for this invocation;
ensure you preserve existing option merging and return trimming behavior.
* fix: use themes within protobuf section (#6575) * fix: use themes within protobuf section * chore: fix font weight for protobuf settings --------- Co-authored-by: Bijin A B <[email protected]> * fix: radios buttons to use primary color (#6576) * fix: cookie modal theme (#6580) * fix: cookie modal theme * update toggle switch to use primary color * style: enhance theme dropdown and security settings with improved styles and active indicators (#6582) * style: enhance CodeMirror dropdown styles with theme integration (#6577) * style: enhance CodeMirror dropdown styles with theme integration for improved consistency * style: refine dropdown and CodeMirror hint styles for improved consistency and usability * style: clean up scrollbar and CodeMirror hint styles for improved readability * remove max height for keybinding table (#6586) * fix: Add New Request CTA alignment in tabs (#6584) * fix: Add New Request CTA alignment in tabs - Moved the '+' icon before the chevron to maintain alignment once chevrons appear - Added padding to the '+' icon for better spacing. * refactor: streamline New Request button rendering in RequestTabs component - Simplified the rendering logic for the New Request button by removing unnecessary conditional wrappers. - Ensured the button remains functional and maintains its styling within the tab layout. * chore: update delete confirmation modals to use danger button color (#6589) * refactor: remove size prop from Button components for consistency across modals and improve styling * style: update confirm button colors in modal components for consistency * fix: oauth2 callback url field placeholder text update (#6588) * Fix auth panel UI updates (#6590) * style: update padding and font size in OAuth2 and Table components for improved consistency * style: update font styles in OAuth2 components for improved readability * fix: add missing semicolon in StyledWrapper.js for consistent styling * fix: standardize table border colors and improve table styling (#6597) * style: update OAuth2 section labels for improved consistency and readability (#6598) * fix: prefrence modal width (#6595) * fix: theme within grpc timeline (#6581) * fix: theme within grpc timeline * fix: use font from the theme * remove y padding to make timeline item more compact * fix: font * fix: padding * fix: use fira code * fix: icon spacing * add border to the method search * show bg for message section within request * fix: collection already opened in other workspace (#6574) * fix: collection already opened in other workspace * fix * fixes * Merge pull request #6583 from naman-bruno/add/collection-docs add: collection-docs * add: beta tag for opencollection & fix create collection location behaviour (#6594) * add: beta tag for opencollection * fixes * fix * feat: improved dark mode color (#6616) * fix: resolve request pane tooltip visibility issue (#6615) * Feat/update file picker (#6614) * styling: file-picker editor component * use filepicker component within filebody and response example filebody * edit example to use button components * fix: hide delete, disable checkbox in preview mode * make label italic * chore: change example cta buttons to filled style --------- Co-authored-by: Bijin A B <[email protected]> * fix: folder docs save button visibility issue (#6617) * refactor: improve theme handling in ThemeProvider for better responsiveness to system preferences (#6606) * refactor: improve theme handling in ThemeProvider for better responsiveness to system preferences - Introduced helper functions to determine effective theme and apply it to the root element. - Updated theme application logic to respond to system theme changes more efficiently. - Simplified theme computation to avoid race conditions by directly using storedTheme. * fix: update displayedTheme initialization in ThemeProvider to use storedTheme for consistency * fix: use theme styling within timeline (#6604) * fix: use theme styling within timeline * fix: remove inline styling and use css classes * fix: network logs within dev tools * compact timeline for grpc * refactor: standardize CSS class naming in StyledWrapper components for better readability * remove styling configuration from Network component * fix: update colors * update colors * fix: color * feat: improve RunnerResults filter bar to use theme system (#6613) * feat: integrate theme support in RunnerResults component for improved styling * refactor: simplify RunnerResults component and enhance filter button styling * style: adjust padding in StyledWrapper and remove aria-pressed from FilterButton * add: global env and workspace flag (#6534) * add: global env and workspace flag * rm: await * update: option name * fix * fix * fix: invalid collection in workspace (#6612) * fix: update Notifications and StatusBar components for improved functionality and styling (#6607) * feat: use theme colors for Console method badges (#6603) * feat: use theme colors for Console method badges * chore(theme): bruno devtools UX updates --------- Co-authored-by: Bijin A B <[email protected]> * fix: update @opencollection/types to version 0.6.0 and refactor auth handling in request items (#6619) * feat: enhance HttpMethodSelector to include caret indicator when creating new request (#6620) --------- Co-authored-by: sanish chirayath <[email protected]> Co-authored-by: Abhishek S Lal <[email protected]> Co-authored-by: Pooja <[email protected]> Co-authored-by: Chirag Chandrashekhar <[email protected]> Co-authored-by: Sanjai Kumar <[email protected]> Co-authored-by: lohit <[email protected]> Co-authored-by: gopu-bruno <[email protected]> Co-authored-by: naman-bruno <[email protected]> Co-authored-by: Anoop M D <[email protected]>
* fix: use themes within protobuf section (#6575) * fix: use themes within protobuf section * chore: fix font weight for protobuf settings --------- Co-authored-by: Bijin A B <[email protected]> * fix: radios buttons to use primary color (#6576) * fix: cookie modal theme (#6580) * fix: cookie modal theme * update toggle switch to use primary color * style: enhance theme dropdown and security settings with improved styles and active indicators (#6582) * style: enhance CodeMirror dropdown styles with theme integration (#6577) * style: enhance CodeMirror dropdown styles with theme integration for improved consistency * style: refine dropdown and CodeMirror hint styles for improved consistency and usability * style: clean up scrollbar and CodeMirror hint styles for improved readability * remove max height for keybinding table (#6586) * fix: Add New Request CTA alignment in tabs (#6584) * fix: Add New Request CTA alignment in tabs - Moved the '+' icon before the chevron to maintain alignment once chevrons appear - Added padding to the '+' icon for better spacing. * refactor: streamline New Request button rendering in RequestTabs component - Simplified the rendering logic for the New Request button by removing unnecessary conditional wrappers. - Ensured the button remains functional and maintains its styling within the tab layout. * chore: update delete confirmation modals to use danger button color (#6589) * refactor: remove size prop from Button components for consistency across modals and improve styling * style: update confirm button colors in modal components for consistency * fix: oauth2 callback url field placeholder text update (#6588) * Fix auth panel UI updates (#6590) * style: update padding and font size in OAuth2 and Table components for improved consistency * style: update font styles in OAuth2 components for improved readability * fix: add missing semicolon in StyledWrapper.js for consistent styling * fix: standardize table border colors and improve table styling (#6597) * style: update OAuth2 section labels for improved consistency and readability (#6598) * fix: prefrence modal width (#6595) * fix: theme within grpc timeline (#6581) * fix: theme within grpc timeline * fix: use font from the theme * remove y padding to make timeline item more compact * fix: font * fix: padding * fix: use fira code * fix: icon spacing * add border to the method search * show bg for message section within request * fix: collection already opened in other workspace (#6574) * fix: collection already opened in other workspace * fix * fixes * Merge pull request #6583 from naman-bruno/add/collection-docs add: collection-docs * add: beta tag for opencollection & fix create collection location behaviour (#6594) * add: beta tag for opencollection * fixes * fix * feat: improved dark mode color (#6616) * fix: resolve request pane tooltip visibility issue (#6615) * Feat/update file picker (#6614) * styling: file-picker editor component * use filepicker component within filebody and response example filebody * edit example to use button components * fix: hide delete, disable checkbox in preview mode * make label italic * chore: change example cta buttons to filled style --------- Co-authored-by: Bijin A B <[email protected]> * fix: folder docs save button visibility issue (#6617) * refactor: improve theme handling in ThemeProvider for better responsiveness to system preferences (#6606) * refactor: improve theme handling in ThemeProvider for better responsiveness to system preferences - Introduced helper functions to determine effective theme and apply it to the root element. - Updated theme application logic to respond to system theme changes more efficiently. - Simplified theme computation to avoid race conditions by directly using storedTheme. * fix: update displayedTheme initialization in ThemeProvider to use storedTheme for consistency * fix: use theme styling within timeline (#6604) * fix: use theme styling within timeline * fix: remove inline styling and use css classes * fix: network logs within dev tools * compact timeline for grpc * refactor: standardize CSS class naming in StyledWrapper components for better readability * remove styling configuration from Network component * fix: update colors * update colors * fix: color * feat: improve RunnerResults filter bar to use theme system (#6613) * feat: integrate theme support in RunnerResults component for improved styling * refactor: simplify RunnerResults component and enhance filter button styling * style: adjust padding in StyledWrapper and remove aria-pressed from FilterButton * add: global env and workspace flag (#6534) * add: global env and workspace flag * rm: await * update: option name * fix * fix * fix: invalid collection in workspace (#6612) * fix: update Notifications and StatusBar components for improved functionality and styling (#6607) * feat: use theme colors for Console method badges (#6603) * feat: use theme colors for Console method badges * chore(theme): bruno devtools UX updates --------- Co-authored-by: Bijin A B <[email protected]> * fix: update @opencollection/types to version 0.6.0 and refactor auth handling in request items (#6619) * feat: enhance HttpMethodSelector to include caret indicator when creating new request (#6620) * feat(theme): update secondary button styles (#6621) * feat: update toast UI to match theme (#6622) * Improve delete collection in workspace overview (#6587) * Improve delete collection in workspace overview * fixes * Feat/v3 UI updates (#6618) * style: enhance button layout and input styles across multiple components for improved UI consistency * style: update RequestsNotLoaded component with new warning styles and enhance theme color definitions for status indicators * refactor: update theme usage across components for consistency - Changed color references from theme.brand to theme.primary.text in various StyledWrapper components. - Added hover effects to enhance UI interactivity in CollectionSettings and FolderSettings. - Removed unnecessary margin and padding adjustments in several components for cleaner layout. - Improved accessibility by ensuring aria attributes are correctly set in MenuDropdown. - Standardized styling for method indicators in RequestPane components. These changes aim to create a more cohesive look and feel across the application while adhering to the updated theme guidelines. * refactor: clean up method selector styling in NewRequest component * chore: temp playwright test fixes * refactor: update modal sizes across various components for consistency - Changed modal size from "sm" to "md" in RenameWorkspace, CreateApiSpec, CloneCollection, DeleteCollectionItem, and RenameCollection components. - Improved styling in HttpMethodSelector by adding padding for better layout. - Updated theme color references in multiple theme files to use a new palette structure for consistency and maintainability. * refactor: enhance styling and theme integration in TimelineItem components - Updated HttpMethodSelector to clarify padding calculation in comments. - Integrated theme colors for OAuth2 indicator and timestamp in TimelineItem for better visual consistency. - Adjusted Method component to use uppercase styling for method display. - Modified RelativeTime component to apply muted text color for improved readability. - Updated INFO color in dark and light themes for better contrast and accessibility. * refactor: remove duplicate import statements in theme files - Cleaned up import statements in vscode.js and light-pastel.js by removing redundant lines for improved code clarity and maintainability. * refactor: improve styling and theme integration in various components - Added accent color and cursor style for checkbox inputs in Modal's StyledWrapper. - Updated border-radius values in HttpMethodSelector and NewRequest StyledWrapper components to use theme variables for consistency. - Introduced a new textbox class in NewRequest StyledWrapper for better styling control. - Changed modal size from "sm" to "md" in CreateEnvironment for improved layout. --------- Co-authored-by: Bijin A B <[email protected]> * fix(UX): fix sandbox selector options background color (#6626) * update cdn links (#6628) * fix: toggle switch color (#6627) * fix: modal icon colors to match button colors (#6624) * style: update warning icon color in RemoveCollection and ConfirmSwitchEnv components to use theme colors * fix: font size in BulkEditor * style: update error message styling to use theme colors in QueryResult component * style: update warning icon color * style: update warning color in ConfirmSwitchEnv * chore: minor pr comment --------- Co-authored-by: Bijin A B <[email protected]> * fix: folder settings var panel table alignment (#6631) * style: remove font size class from button (#6630) * fix: authmode in graphql (#6636) * fix: file picker component overflow (#6635) * fix: tooltip styling (#6632) * refactor: update color references in OAuth2 components to use theme.primary.text for improved consistency (#6629) * refactor: update color references in OAuth2 components to use theme.primary.text for improved consistency * refactor: update modal size in ImportCollectionLocation component for improved consistency * refactor: set isActiveTab prop in QueryResponse component and update active color in StyledWrapper for consistency * feat: update "Show in Folder" label based on platform in ManageWorkspace, Collection, CollectionItem, and WorkspaceHome components (#6623) * feat: update "Show in Folder" label based on platform in ManageWorkspace, Collection, CollectionItem, and WorkspaceHome components * refactor: remove duplicate "Rename" item push in CollectionItem component * style: update text color classes and button hover effects in RunnerResults (#6637) * style: update text color classes and button hover effects in RunnerResults and StyledWrapper components * Update StyledWrapper.jsx --------- Co-authored-by: Bijin A B <[email protected]> * style: update variable validation colors in StyledWrapper components to use theme colors (#6633) --------- Co-authored-by: sanish chirayath <[email protected]> Co-authored-by: Abhishek S Lal <[email protected]> Co-authored-by: Pooja <[email protected]> Co-authored-by: Chirag Chandrashekhar <[email protected]> Co-authored-by: Sanjai Kumar <[email protected]> Co-authored-by: lohit <[email protected]> Co-authored-by: gopu-bruno <[email protected]> Co-authored-by: naman-bruno <[email protected]> Co-authored-by: Anoop M D <[email protected]>
* fix: use themes within protobuf section (#6575) * fix: use themes within protobuf section * chore: fix font weight for protobuf settings --------- Co-authored-by: Bijin A B <[email protected]> * fix: radios buttons to use primary color (#6576) * fix: cookie modal theme (#6580) * fix: cookie modal theme * update toggle switch to use primary color * style: enhance theme dropdown and security settings with improved styles and active indicators (#6582) * style: enhance CodeMirror dropdown styles with theme integration (#6577) * style: enhance CodeMirror dropdown styles with theme integration for improved consistency * style: refine dropdown and CodeMirror hint styles for improved consistency and usability * style: clean up scrollbar and CodeMirror hint styles for improved readability * remove max height for keybinding table (#6586) * fix: Add New Request CTA alignment in tabs (#6584) * fix: Add New Request CTA alignment in tabs - Moved the '+' icon before the chevron to maintain alignment once chevrons appear - Added padding to the '+' icon for better spacing. * refactor: streamline New Request button rendering in RequestTabs component - Simplified the rendering logic for the New Request button by removing unnecessary conditional wrappers. - Ensured the button remains functional and maintains its styling within the tab layout. * chore: update delete confirmation modals to use danger button color (#6589) * refactor: remove size prop from Button components for consistency across modals and improve styling * style: update confirm button colors in modal components for consistency * fix: oauth2 callback url field placeholder text update (#6588) * Fix auth panel UI updates (#6590) * style: update padding and font size in OAuth2 and Table components for improved consistency * style: update font styles in OAuth2 components for improved readability * fix: add missing semicolon in StyledWrapper.js for consistent styling * fix: standardize table border colors and improve table styling (#6597) * style: update OAuth2 section labels for improved consistency and readability (#6598) * fix: prefrence modal width (#6595) * fix: theme within grpc timeline (#6581) * fix: theme within grpc timeline * fix: use font from the theme * remove y padding to make timeline item more compact * fix: font * fix: padding * fix: use fira code * fix: icon spacing * add border to the method search * show bg for message section within request * fix: collection already opened in other workspace (#6574) * fix: collection already opened in other workspace * fix * fixes * Merge pull request #6583 from naman-bruno/add/collection-docs add: collection-docs * add: beta tag for opencollection & fix create collection location behaviour (#6594) * add: beta tag for opencollection * fixes * fix * feat: improved dark mode color (#6616) * fix: resolve request pane tooltip visibility issue (#6615) * Feat/update file picker (#6614) * styling: file-picker editor component * use filepicker component within filebody and response example filebody * edit example to use button components * fix: hide delete, disable checkbox in preview mode * make label italic * chore: change example cta buttons to filled style --------- Co-authored-by: Bijin A B <[email protected]> * fix: folder docs save button visibility issue (#6617) * refactor: improve theme handling in ThemeProvider for better responsiveness to system preferences (#6606) * refactor: improve theme handling in ThemeProvider for better responsiveness to system preferences - Introduced helper functions to determine effective theme and apply it to the root element. - Updated theme application logic to respond to system theme changes more efficiently. - Simplified theme computation to avoid race conditions by directly using storedTheme. * fix: update displayedTheme initialization in ThemeProvider to use storedTheme for consistency * fix: use theme styling within timeline (#6604) * fix: use theme styling within timeline * fix: remove inline styling and use css classes * fix: network logs within dev tools * compact timeline for grpc * refactor: standardize CSS class naming in StyledWrapper components for better readability * remove styling configuration from Network component * fix: update colors * update colors * fix: color * feat: improve RunnerResults filter bar to use theme system (#6613) * feat: integrate theme support in RunnerResults component for improved styling * refactor: simplify RunnerResults component and enhance filter button styling * style: adjust padding in StyledWrapper and remove aria-pressed from FilterButton * add: global env and workspace flag (#6534) * add: global env and workspace flag * rm: await * update: option name * fix * fix * fix: invalid collection in workspace (#6612) * fix: update Notifications and StatusBar components for improved functionality and styling (#6607) * feat: use theme colors for Console method badges (#6603) * feat: use theme colors for Console method badges * chore(theme): bruno devtools UX updates --------- Co-authored-by: Bijin A B <[email protected]> * fix: update @opencollection/types to version 0.6.0 and refactor auth handling in request items (#6619) * feat: enhance HttpMethodSelector to include caret indicator when creating new request (#6620) * feat(theme): update secondary button styles (#6621) * feat: update toast UI to match theme (#6622) * Improve delete collection in workspace overview (#6587) * Improve delete collection in workspace overview * fixes * Feat/v3 UI updates (#6618) * style: enhance button layout and input styles across multiple components for improved UI consistency * style: update RequestsNotLoaded component with new warning styles and enhance theme color definitions for status indicators * refactor: update theme usage across components for consistency - Changed color references from theme.brand to theme.primary.text in various StyledWrapper components. - Added hover effects to enhance UI interactivity in CollectionSettings and FolderSettings. - Removed unnecessary margin and padding adjustments in several components for cleaner layout. - Improved accessibility by ensuring aria attributes are correctly set in MenuDropdown. - Standardized styling for method indicators in RequestPane components. These changes aim to create a more cohesive look and feel across the application while adhering to the updated theme guidelines. * refactor: clean up method selector styling in NewRequest component * chore: temp playwright test fixes * refactor: update modal sizes across various components for consistency - Changed modal size from "sm" to "md" in RenameWorkspace, CreateApiSpec, CloneCollection, DeleteCollectionItem, and RenameCollection components. - Improved styling in HttpMethodSelector by adding padding for better layout. - Updated theme color references in multiple theme files to use a new palette structure for consistency and maintainability. * refactor: enhance styling and theme integration in TimelineItem components - Updated HttpMethodSelector to clarify padding calculation in comments. - Integrated theme colors for OAuth2 indicator and timestamp in TimelineItem for better visual consistency. - Adjusted Method component to use uppercase styling for method display. - Modified RelativeTime component to apply muted text color for improved readability. - Updated INFO color in dark and light themes for better contrast and accessibility. * refactor: remove duplicate import statements in theme files - Cleaned up import statements in vscode.js and light-pastel.js by removing redundant lines for improved code clarity and maintainability. * refactor: improve styling and theme integration in various components - Added accent color and cursor style for checkbox inputs in Modal's StyledWrapper. - Updated border-radius values in HttpMethodSelector and NewRequest StyledWrapper components to use theme variables for consistency. - Introduced a new textbox class in NewRequest StyledWrapper for better styling control. - Changed modal size from "sm" to "md" in CreateEnvironment for improved layout. --------- Co-authored-by: Bijin A B <[email protected]> * fix(UX): fix sandbox selector options background color (#6626) * update cdn links (#6628) * fix: toggle switch color (#6627) * fix: modal icon colors to match button colors (#6624) * style: update warning icon color in RemoveCollection and ConfirmSwitchEnv components to use theme colors * fix: font size in BulkEditor * style: update error message styling to use theme colors in QueryResult component * style: update warning icon color * style: update warning color in ConfirmSwitchEnv * chore: minor pr comment --------- Co-authored-by: Bijin A B <[email protected]> * fix: folder settings var panel table alignment (#6631) * style: remove font size class from button (#6630) * fix: authmode in graphql (#6636) * fix: file picker component overflow (#6635) * fix: tooltip styling (#6632) * refactor: update color references in OAuth2 components to use theme.primary.text for improved consistency (#6629) * refactor: update color references in OAuth2 components to use theme.primary.text for improved consistency * refactor: update modal size in ImportCollectionLocation component for improved consistency * refactor: set isActiveTab prop in QueryResponse component and update active color in StyledWrapper for consistency * feat: update "Show in Folder" label based on platform in ManageWorkspace, Collection, CollectionItem, and WorkspaceHome components (#6623) * feat: update "Show in Folder" label based on platform in ManageWorkspace, Collection, CollectionItem, and WorkspaceHome components * refactor: remove duplicate "Rename" item push in CollectionItem component * style: update text color classes and button hover effects in RunnerResults (#6637) * style: update text color classes and button hover effects in RunnerResults and StyledWrapper components * Update StyledWrapper.jsx --------- Co-authored-by: Bijin A B <[email protected]> * style: update variable validation colors in StyledWrapper components to use theme colors (#6633) * refactor: update Tabs component structure and theme colors (#6638) - Replaced the div wrapper in the Tabs component with StyledWrapper for improved styling. - Simplified TabsList and TabsTrigger components by removing theme dependency and using classnames for styling. - Updated inactive background colors in multiple theme files to enhance visual consistency across themes. * feat: integrate theme support in ImportCollection component (#6639) * feat: integrate theme support in ImportCollection component for improved styling consistency * chore: remove debug console log from ImportCollection component * refactor: update theme import in ImportCollection component for improved consistency * style: enhance syntax highlighting in GQL Docs and Doc Gen (#6640) * style: enhance syntax highlighting and theme integration in QueryEditor and GenerateDocs components * fix: fixed generate code theming issues * style: update color references to use theme.draftColor for unsaved changes across multiple components (#6641) * chore: theme updates (#6642) --------- Co-authored-by: sanish chirayath <[email protected]> Co-authored-by: Abhishek S Lal <[email protected]> Co-authored-by: Pooja <[email protected]> Co-authored-by: Chirag Chandrashekhar <[email protected]> Co-authored-by: Sanjai Kumar <[email protected]> Co-authored-by: lohit <[email protected]> Co-authored-by: gopu-bruno <[email protected]> Co-authored-by: naman-bruno <[email protected]> Co-authored-by: Anoop M D <[email protected]>
Improved Dark Mode colors
Summary by CodeRabbit
Style
Chores
New Features
✏️ Tip: You can customize this high-level summary in your review settings.