-
+
-
+
Click on the status code to view the response
diff --git a/packages/bruno-app/src/components/SensitiveFieldWarning/StyledWrapper.js b/packages/bruno-app/src/components/SensitiveFieldWarning/StyledWrapper.js
index f1df82fd7..29129f1bb 100644
--- a/packages/bruno-app/src/components/SensitiveFieldWarning/StyledWrapper.js
+++ b/packages/bruno-app/src/components/SensitiveFieldWarning/StyledWrapper.js
@@ -2,7 +2,6 @@ import styled from 'styled-components';
const Wrapper = styled.div`
.tooltip-mod {
- font-size: ${(props) => props.theme.font.size.xs} !important;
width: 150px !important;
}
diff --git a/packages/bruno-app/src/components/Sidebar/Collections/Collection/CollectionItem/index.js b/packages/bruno-app/src/components/Sidebar/Collections/Collection/CollectionItem/index.js
index 8ba2861ff..e3f4e78c8 100644
--- a/packages/bruno-app/src/components/Sidebar/Collections/Collection/CollectionItem/index.js
+++ b/packages/bruno-app/src/components/Sidebar/Collections/Collection/CollectionItem/index.js
@@ -49,6 +49,7 @@ import { isTabForItemActive as isTabForItemActiveSelector, isTabForItemPresent a
import { isEqual } from 'lodash';
import { calculateDraggedItemNewPathname, getInitialExampleName, findParentItemInCollection } from 'utils/collections/index';
import { sortByNameThenSequence } from 'utils/common/index';
+import { getRevealInFolderLabel } from 'utils/common/platform';
import CreateExampleModal from 'components/ResponseExample/CreateExampleModal';
import { openDevtoolsAndSwitchToTerminal } from 'utils/terminal';
import ActionIcon from 'ui/ActionIcon';
@@ -345,12 +346,6 @@ const CollectionItem = ({ item, collectionUid, collectionPathname, searchText })
leftSection: IconEdit,
label: 'Rename',
onClick: () => setRenameItemModalOpen(true)
- },
- {
- id: 'show-in-folder',
- leftSection: IconFolder,
- label: 'Show in Folder',
- onClick: handleShowInFolder
}
);
if (!isFolder && isItemARequest(item) && !(item.type === 'http-request' || item.type === 'graphql-request')) {
@@ -382,6 +377,15 @@ const CollectionItem = ({ item, collectionUid, collectionPathname, searchText })
});
}
+ items.push(
+ {
+ id: 'show-in-folder',
+ leftSection: IconFolder,
+ label: getRevealInFolderLabel(),
+ onClick: handleShowInFolder
+ }
+ );
+
items.push({ id: 'separator-1', type: 'divider' });
items.push({
diff --git a/packages/bruno-app/src/components/Sidebar/Collections/Collection/index.js b/packages/bruno-app/src/components/Sidebar/Collections/Collection/index.js
index e5438fc1a..049de9eca 100644
--- a/packages/bruno-app/src/components/Sidebar/Collections/Collection/index.js
+++ b/packages/bruno-app/src/components/Sidebar/Collections/Collection/index.js
@@ -44,6 +44,7 @@ import ShareCollection from 'components/ShareCollection/index';
import GenerateDocumentation from './GenerateDocumentation';
import { CollectionItemDragPreview } from './CollectionItem/CollectionItemDragPreview/index';
import { sortByNameThenSequence } from 'utils/common/index';
+import { getRevealInFolderLabel } from 'utils/common/platform';
import { openDevtoolsAndSwitchToTerminal } from 'utils/terminal';
import ActionIcon from 'ui/ActionIcon';
import MenuDropdown from 'ui/MenuDropdown';
@@ -360,7 +361,7 @@ const Collection = ({ collection, searchText }) => {
{
id: 'show-in-folder',
leftSection: IconFolder,
- label: 'Show in File Explorer',
+ label: getRevealInFolderLabel(),
onClick: handleShowInFolder
},
{
diff --git a/packages/bruno-app/src/components/Sidebar/ImportCollection/index.js b/packages/bruno-app/src/components/Sidebar/ImportCollection/index.js
index c98131bfb..9ad1d139f 100644
--- a/packages/bruno-app/src/components/Sidebar/ImportCollection/index.js
+++ b/packages/bruno-app/src/components/Sidebar/ImportCollection/index.js
@@ -10,6 +10,7 @@ import { isWSDLCollection } from 'utils/importers/wsdl-collection';
import { isBrunoCollection } from 'utils/importers/bruno-collection';
import { isOpenCollection } from 'utils/importers/opencollection';
import FullscreenLoader from './FullscreenLoader/index';
+import { useTheme } from 'providers/Theme';
const convertFileToObject = async (file) => {
const text = await file.text();
@@ -35,6 +36,7 @@ const convertFileToObject = async (file) => {
};
const ImportCollection = ({ onClose, handleSubmit }) => {
+ const { theme } = useTheme();
const [isLoading, setIsLoading] = useState(false);
const [dragActive, setDragActive] = useState(false);
const fileInputRef = useRef(null);
@@ -155,8 +157,9 @@ const ImportCollection = ({ onClose, handleSubmit }) => {
Drop file to import or{' '}
diff --git a/packages/bruno-app/src/components/Sidebar/ImportCollectionLocation/index.js b/packages/bruno-app/src/components/Sidebar/ImportCollectionLocation/index.js
index 0e295e055..77648f6c6 100644
--- a/packages/bruno-app/src/components/Sidebar/ImportCollectionLocation/index.js
+++ b/packages/bruno-app/src/components/Sidebar/ImportCollectionLocation/index.js
@@ -163,7 +163,7 @@ const ImportCollectionLocation = ({ onClose, handleSubmit, rawData, format }) =>
return (
props.theme.tabs.secondary.inactive.color};
+ transition: all 0.15s ease;
+
+ &:hover {
+ background: ${(props) => props.theme.tabs.secondary.inactive.bg};
+ }
+
+ &.active {
+ background: ${(props) => props.theme.tabs.secondary.active.bg};
+ color: ${(props) => props.theme.tabs.secondary.active.color};
+ }
+ }
+`;
+
+export default StyledWrapper;
diff --git a/packages/bruno-app/src/components/Tabs/index.js b/packages/bruno-app/src/components/Tabs/index.js
index 97d5219b0..15f4890be 100644
--- a/packages/bruno-app/src/components/Tabs/index.js
+++ b/packages/bruno-app/src/components/Tabs/index.js
@@ -1,42 +1,29 @@
import React, { createContext, useContext } from 'react';
-import { useTheme } from 'providers/Theme';
+import classnames from 'classnames';
+import StyledWrapper from './StyledWrapper';
const TabsContext = createContext();
export const Tabs = ({ value, onValueChange, children, className = '' }) => {
return (
- {children}
+ {children}
);
};
export const TabsList = ({ children, className = '' }) => {
- const { theme } = useTheme();
-
- return (
-
- {children}
-
- );
+ return {children}
;
};
export const TabsTrigger = ({ value: triggerValue, children, className = '' }) => {
const { value, onValueChange } = useContext(TabsContext);
- const { theme } = useTheme();
const isActive = value === triggerValue;
return (
diff --git a/packages/bruno-app/src/components/WorkspaceHome/WorkspaceEnvironments/EnvironmentList/EnvironmentDetails/EnvironmentVariables/StyledWrapper.js b/packages/bruno-app/src/components/WorkspaceHome/WorkspaceEnvironments/EnvironmentList/EnvironmentDetails/EnvironmentVariables/StyledWrapper.js
index c726b83b7..fb9a1d2e7 100644
--- a/packages/bruno-app/src/components/WorkspaceHome/WorkspaceEnvironments/EnvironmentList/EnvironmentDetails/EnvironmentVariables/StyledWrapper.js
+++ b/packages/bruno-app/src/components/WorkspaceHome/WorkspaceEnvironments/EnvironmentList/EnvironmentDetails/EnvironmentVariables/StyledWrapper.js
@@ -75,7 +75,6 @@ const Wrapper = styled.div`
}
.tooltip-mod {
- font-size: 11px !important;
max-width: 200px !important;
}
diff --git a/packages/bruno-app/src/components/WorkspaceHome/index.js b/packages/bruno-app/src/components/WorkspaceHome/index.js
index 690f376a5..db27824b0 100644
--- a/packages/bruno-app/src/components/WorkspaceHome/index.js
+++ b/packages/bruno-app/src/components/WorkspaceHome/index.js
@@ -10,6 +10,7 @@ import WorkspaceEnvironments from './WorkspaceEnvironments';
import WorkspaceTabs from 'components/WorkspaceTabs';
import StyledWrapper from './StyledWrapper';
import Dropdown from 'components/Dropdown';
+import { getRevealInFolderLabel } from 'utils/common/platform';
const WorkspaceHome = () => {
const dispatch = useDispatch();
@@ -225,7 +226,7 @@ const WorkspaceHome = () => {
- Show in Folder
+ {getRevealInFolderLabel()}
diff --git a/packages/bruno-app/src/globalStyles.js b/packages/bruno-app/src/globalStyles.js
index 31421964e..ac675304d 100644
--- a/packages/bruno-app/src/globalStyles.js
+++ b/packages/bruno-app/src/globalStyles.js
@@ -19,6 +19,18 @@ const GlobalStyle = createGlobalStyle`
color: ${(props) => props.theme.colors.text.muted};
}
+ .tooltip-mod {
+ background-color: ${(props) => props.theme.infoTip.bg} !important;
+ color: ${(props) => props.theme.text} !important;
+ border: 1px solid ${(props) => props.theme.infoTip.border} !important;
+ box-shadow: ${(props) => props.theme.infoTip.boxShadow} !important;
+ font-size: ${(props) => props.theme.font.size.xs} !important;
+ padding: 4px 8px !important;
+ border-radius: 4px !important;
+ opacity: 1 !important;
+ z-index: 9999 !important;
+ }
+
.btn {
text-align: center;
white-space: nowrap;
diff --git a/packages/bruno-app/src/themes/dark/catppuccin-frappe.js b/packages/bruno-app/src/themes/dark/catppuccin-frappe.js
index f7c45c024..e78be36e9 100644
--- a/packages/bruno-app/src/themes/dark/catppuccin-frappe.js
+++ b/packages/bruno-app/src/themes/dark/catppuccin-frappe.js
@@ -370,7 +370,7 @@ const catppuccinFrappeTheme = {
color: colors.TEXT
},
inactive: {
- bg: colors.SURFACE1,
+ bg: colors.SURFACE0,
color: colors.SUBTEXT0
}
}
diff --git a/packages/bruno-app/src/themes/dark/catppuccin-macchiato.js b/packages/bruno-app/src/themes/dark/catppuccin-macchiato.js
index 05167715a..3afad323e 100644
--- a/packages/bruno-app/src/themes/dark/catppuccin-macchiato.js
+++ b/packages/bruno-app/src/themes/dark/catppuccin-macchiato.js
@@ -370,7 +370,7 @@ const catppuccinMacchiatoTheme = {
color: colors.TEXT
},
inactive: {
- bg: colors.SURFACE1,
+ bg: colors.SURFACE0,
color: colors.SUBTEXT0
}
}
diff --git a/packages/bruno-app/src/themes/dark/catppuccin-mocha.js b/packages/bruno-app/src/themes/dark/catppuccin-mocha.js
index 43779aba1..2a9cfc837 100644
--- a/packages/bruno-app/src/themes/dark/catppuccin-mocha.js
+++ b/packages/bruno-app/src/themes/dark/catppuccin-mocha.js
@@ -370,7 +370,7 @@ const catppuccinMochaTheme = {
color: colors.TEXT
},
inactive: {
- bg: colors.SURFACE1,
+ bg: colors.SURFACE0,
color: colors.SUBTEXT0
}
}
diff --git a/packages/bruno-app/src/themes/dark/dark-monochrome.js b/packages/bruno-app/src/themes/dark/dark-monochrome.js
index 0b7b61a98..6a5d40756 100644
--- a/packages/bruno-app/src/themes/dark/dark-monochrome.js
+++ b/packages/bruno-app/src/themes/dark/dark-monochrome.js
@@ -353,12 +353,12 @@ const darkMonochromeTheme = {
},
secondary: {
active: {
- bg: '#2D2D2D',
+ bg: '#3F3F3F',
color: '#CCCCCC'
},
inactive: {
bg: '#3F3F3F',
- color: '#CCCCCC'
+ color: '#999999'
}
}
},
diff --git a/packages/bruno-app/src/themes/dark/dark-pastel.js b/packages/bruno-app/src/themes/dark/dark-pastel.js
index 5b131e74f..8b4e9c77b 100644
--- a/packages/bruno-app/src/themes/dark/dark-pastel.js
+++ b/packages/bruno-app/src/themes/dark/dark-pastel.js
@@ -374,7 +374,7 @@ const darkPastelTheme = {
color: colors.TEXT
},
inactive: {
- bg: colors.GRAY_4,
+ bg: colors.GRAY_3,
color: colors.TEXT_MUTED
}
}
diff --git a/packages/bruno-app/src/themes/dark/dark.js b/packages/bruno-app/src/themes/dark/dark.js
index bd5415716..858ac1ca3 100644
--- a/packages/bruno-app/src/themes/dark/dark.js
+++ b/packages/bruno-app/src/themes/dark/dark.js
@@ -398,12 +398,12 @@ const darkTheme = {
},
secondary: {
active: {
- bg: '#2D2D2D',
- color: '#CCCCCC'
+ bg: palette.background.SURFACE0,
+ color: palette.text.BASE
},
inactive: {
- bg: '#3F3F3F',
- color: '#CCCCCC'
+ bg: palette.background.SURFACE0,
+ color: palette.text.SUBTEXT1
}
}
},
diff --git a/packages/bruno-app/src/themes/dark/nord.js b/packages/bruno-app/src/themes/dark/nord.js
index b094afa0e..60221478a 100644
--- a/packages/bruno-app/src/themes/dark/nord.js
+++ b/packages/bruno-app/src/themes/dark/nord.js
@@ -373,7 +373,7 @@ const nordTheme = {
color: colors.NORD4
},
inactive: {
- bg: colors.NORD3,
+ bg: colors.NORD2,
color: colors.NORD4
}
}
diff --git a/packages/bruno-app/src/themes/dark/vscode.js b/packages/bruno-app/src/themes/dark/vscode.js
index 214f4fa6c..eecf21c4f 100644
--- a/packages/bruno-app/src/themes/dark/vscode.js
+++ b/packages/bruno-app/src/themes/dark/vscode.js
@@ -79,7 +79,7 @@ const vscodeDarkTheme = {
primary: {
solid: colors.BRAND,
- text: colors.TEXT_LINK,
+ text: colors.BRAND_TEXT,
strong: '#0098ff',
subtle: '#005a9e'
},
@@ -376,7 +376,7 @@ const vscodeDarkTheme = {
color: colors.TEXT
},
inactive: {
- bg: colors.GRAY_4,
+ bg: colors.GRAY_3,
color: colors.TEXT_MUTED
}
}
diff --git a/packages/bruno-app/src/themes/light/catppuccin-latte.js b/packages/bruno-app/src/themes/light/catppuccin-latte.js
index 5e1bea75f..19c47f591 100644
--- a/packages/bruno-app/src/themes/light/catppuccin-latte.js
+++ b/packages/bruno-app/src/themes/light/catppuccin-latte.js
@@ -363,7 +363,7 @@ const catppuccinLatteTheme = {
},
secondary: {
active: {
- bg: colors.BASE,
+ bg: colors.SURFACE0,
color: colors.TEXT
},
inactive: {
diff --git a/packages/bruno-app/src/themes/light/light-monochrome.js b/packages/bruno-app/src/themes/light/light-monochrome.js
index d51b8fde4..da19c5d57 100644
--- a/packages/bruno-app/src/themes/light/light-monochrome.js
+++ b/packages/bruno-app/src/themes/light/light-monochrome.js
@@ -351,7 +351,7 @@ const lightMonochromeTheme = {
},
secondary: {
active: {
- bg: '#FFFFFF',
+ bg: '#ECECEE',
color: '#343434'
},
inactive: {
diff --git a/packages/bruno-app/src/themes/light/light-pastel.js b/packages/bruno-app/src/themes/light/light-pastel.js
index 1583bbe94..52bc933a7 100644
--- a/packages/bruno-app/src/themes/light/light-pastel.js
+++ b/packages/bruno-app/src/themes/light/light-pastel.js
@@ -367,7 +367,7 @@ const lightPastelTheme = {
},
secondary: {
active: {
- bg: colors.WHITE,
+ bg: colors.GRAY_2,
color: colors.TEXT
},
inactive: {
diff --git a/packages/bruno-app/src/themes/light/light.js b/packages/bruno-app/src/themes/light/light.js
index 713059278..283d8df4c 100644
--- a/packages/bruno-app/src/themes/light/light.js
+++ b/packages/bruno-app/src/themes/light/light.js
@@ -387,12 +387,12 @@ const lightTheme = {
},
secondary: {
active: {
- bg: palette.background.BASE,
+ bg: palette.background.SURFACE1,
color: palette.text.BASE
},
inactive: {
- bg: palette.background.SURFACE1,
- color: palette.text.BASE
+ bg: palette.background.SURFACE0,
+ color: palette.text.SUBTEXT1
}
}
},
diff --git a/packages/bruno-app/src/themes/light/vscode.js b/packages/bruno-app/src/themes/light/vscode.js
index 03b60a392..b7687c7a4 100644
--- a/packages/bruno-app/src/themes/light/vscode.js
+++ b/packages/bruno-app/src/themes/light/vscode.js
@@ -371,7 +371,7 @@ const vscodeLightTheme = {
},
secondary: {
active: {
- bg: colors.WHITE,
+ bg: colors.GRAY_2,
color: colors.TEXT
},
inactive: {
diff --git a/packages/bruno-app/src/utils/common/platform.js b/packages/bruno-app/src/utils/common/platform.js
index ee48e8a17..687b19c3d 100644
--- a/packages/bruno-app/src/utils/common/platform.js
+++ b/packages/bruno-app/src/utils/common/platform.js
@@ -40,6 +40,12 @@ export const isLinuxOS = () => {
return osFamily.includes('linux') || osFamily.includes('ubuntu') || osFamily.includes('debian') || osFamily.includes('fedora') || osFamily.includes('centos') || osFamily.includes('arch');
};
+export const getRevealInFolderLabel = () => {
+ if (isMacOS()) return 'Reveal in Finder';
+ if (isWindowsOS()) return 'Reveal in File Explorer';
+ return 'Reveal in File Manager';
+};
+
export const getAppInstallDate = () => {
let dateString = localStorage.getItem('bruno.installedOn');