diff --git a/frontend/src/components/basic/buttons/Button.tsx b/frontend/src/components/basic/buttons/Button.tsx
index 5941b5437..890650d96 100644
--- a/frontend/src/components/basic/buttons/Button.tsx
+++ b/frontend/src/components/basic/buttons/Button.tsx
@@ -53,9 +53,9 @@ const Button = ({
'group m-auto md:m-0 inline-block rounded-md duration-200',
// Setting background colors and hover modes
- color === 'mineshaft' && activityStatus && 'bg-mineshaft-700 hover:bg-primary',
+ color === 'mineshaft' && activityStatus && 'bg-mineshaft-800 border border-mineshaft-600 hover:bg-primary/[0.15] hover:border-primary/60',
color === 'mineshaft' && !activityStatus && 'bg-mineshaft',
- (color === 'primary' || !color) && activityStatus && 'bg-primary hover:opacity-80',
+ (color === 'primary' || !color) && activityStatus && 'bg-primary border border-primary-400 opacity-80 hover:opacity-100',
(color === 'primary' || !color) && !activityStatus && 'bg-primary',
color === 'red' && 'bg-red',
@@ -74,11 +74,11 @@ const Button = ({
'relative font-medium flex items-center',
// Setting the text color for the text and icon
- color === 'mineshaft' && 'text-gray-400',
+ color === 'mineshaft' && 'text-bunker-200',
color !== 'mineshaft' && color !== 'red' && color !== 'none' && 'text-black',
color === 'red' && 'text-gray-200',
color === 'none' && 'text-gray-200 text-xl',
- activityStatus && color !== 'red' && color !== 'none' ? 'group-hover:text-black' : '',
+ activityStatus && color !== 'red' && color !== 'mineshaft' && color !== 'none' ? 'group-hover:text-black' : '',
size === 'icon' && 'flex items-center justify-center'
);
diff --git a/frontend/src/components/dashboard/KeyPair.tsx b/frontend/src/components/dashboard/KeyPair.tsx
index dac3e1f3e..8cc15e0ee 100644
--- a/frontend/src/components/dashboard/KeyPair.tsx
+++ b/frontend/src/components/dashboard/KeyPair.tsx
@@ -101,7 +101,7 @@ const KeyPair = ({
}`}
>
-
+
{keyPair.pos + 1}
void;
+}): JSX.Element {
+ const { currentWorkspace } = useWorkspace();
+ const { currentOrg } = useOrganization();
+ const router = useRouter()
+
+ return (
+
+
+ {currentOrg?.name?.charAt(0)}
+
+
{currentOrg?.name}
+ {isProjectRelated && (
+ <>
+
+
{currentWorkspace?.name}
+ >
+ )}
+ {isOrganizationRelated && (
+ <>
+
+
Organization Settings
+ >
+ )}
+
+ {pageName === 'Secrets'
+ ?
{pageName}
+ :
{pageName}
}
+ {currentEnv &&
+ <>
+
+
+
+
+
+
+ >}
+
+ );
+}
diff --git a/frontend/src/components/v2/Tooltip/Tooltip.tsx b/frontend/src/components/v2/Tooltip/Tooltip.tsx
index 20cf918c5..a3119d9c7 100644
--- a/frontend/src/components/v2/Tooltip/Tooltip.tsx
+++ b/frontend/src/components/v2/Tooltip/Tooltip.tsx
@@ -35,7 +35,7 @@ export const Tooltip = ({
sideOffset={5}
{...props}
className={twMerge(
- `z-20 select-none rounded-md bg-mineshaft-500 py-2 px-4 text-sm text-bunker-200 shadow-md
+ `z-20 select-none max-w-[15rem] rounded-md bg-mineshaft-800 border border-mineshaft-600 py-2 px-4 font-light text-sm text-bunker-200 shadow-md
data-[state=delayed-open]:data-[side=top]:animate-slideDownAndFade
data-[state=delayed-open]:data-[side=right]:animate-slideLeftAndFade
data-[state=delayed-open]:data-[side=left]:animate-slideRightAndFade
@@ -45,7 +45,7 @@ data-[state=delayed-open]:data-[side=bottom]:animate-slideUpAndFade
)}
>
{content}
-
+
);
diff --git a/frontend/src/pages/dashboard/[id].tsx b/frontend/src/pages/dashboard/[id].tsx
index 55cfaca8f..2f1b8e2e4 100644
--- a/frontend/src/pages/dashboard/[id].tsx
+++ b/frontend/src/pages/dashboard/[id].tsx
@@ -19,8 +19,8 @@ import {
} from '@fortawesome/free-solid-svg-icons';
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome';
import { Tag } from 'public/data/frequentInterfaces';
+import queryString from 'query-string';
-// import queryString from 'query-string';
import Button from '@app/components/basic/buttons/Button';
import BottonRightPopup from '@app/components/basic/popups/BottomRightPopup';
import { useNotificationContext } from '@app/components/context/Notifications/NotificationProvider';
@@ -29,7 +29,7 @@ import DownloadSecretMenu from '@app/components/dashboard/DownloadSecretsMenu';
import DropZone from '@app/components/dashboard/DropZone';
import KeyPair from '@app/components/dashboard/KeyPair';
import SideBar from '@app/components/dashboard/SideBar';
-import NavHeader from '@app/components/navigation/NavHeader';
+import NavHeaderSecrets from '@app/components/navigation/NavHeaderSecrets';
import { decryptAssymmetric, decryptSymmetric } from '@app/components/utilities/cryptography/crypto';
import guidGenerator from '@app/components/utilities/randomId';
import encryptSecrets from '@app/components/utilities/secrets/encryptSecrets';
@@ -173,7 +173,7 @@ export default function Dashboard() {
const { createNotification } = useNotificationContext();
const router = useRouter();
- // const envInURL = queryString.parse(router.asPath.split('?')[1])?.env;
+ const envInURL = queryString.parse(router.asPath.split('?')[1])?.env;
const workspaceId = router.query.id as string;
const [workspaceEnvs, setWorkspaceEnvs] = useState([]);
@@ -816,8 +816,8 @@ export default function Dashboard() {
};
return
- {false
- ?
+ {!envInURL
+ ?
: (data ? (
@@ -843,11 +843,12 @@ export default function Dashboard() {
.map((duplicate) => duplicate.key) ?? []
}
/>
-
-
+
@@ -876,7 +877,7 @@ export default function Dashboard() {
)}
-
{snapshotData ? 'Secret Snapshot' : t('dashboard:title')}
+
{snapshotData ? 'Secret Snapshot' : ''}
{snapshotData && (
{new Date(snapshotData.createdAt).toLocaleString()}
@@ -968,7 +969,7 @@ export default function Dashboard() {
{(snapshotData || data?.length !== 0) && selectedEnv && (
<>
-
+
-
+
-
+
@@ -112,7 +112,7 @@ export default function PersonalSettings() {
{t('settings-personal:api-keys.description')}
-
+