Skip to content

Privacy-first password manager with built-in email aliasing. Fully encrypted and self-hostable.

Refactor (#2413)

Leendert de Borst9cf90a0a9f98
diff --git a/apps/browser-extension/src/entrypoints/popup/components/Dialogs/ModalWrapper.tsx b/apps/browser-extension/src/entrypoints/popup/components/Dialogs/ModalWrapper.tsx
index 42231ade5..52b9cbefc 100644
--- a/apps/browser-extension/src/entrypoints/popup/components/Dialogs/ModalWrapper.tsx
+++ b/apps/browser-extension/src/entrypoints/popup/components/Dialogs/ModalWrapper.tsx
@@ -74,7 +74,7 @@ const ModalWrapper: React.FC<ModalWrapperProps> = ({
return (
<div className="fixed inset-0 z-50">
- <div className="fixed inset-0 bg-gray-600/50 backdrop-blur-sm dark:bg-black/80" />
+ <div className="fixed inset-0 bg-gray-600/50 backdrop-blur-sm dark:bg-black/70" />
<div className="fixed inset-0 overflow-y-auto">
{/* Pressing outside the panel closes the modal */}
<div className="flex min-h-full items-center justify-center p-4" onMouseDown={handleContainerMouseDown}>
diff --git a/apps/browser-extension/src/entrypoints/popup/components/Forms/AddFieldMenu.tsx b/apps/browser-extension/src/entrypoints/popup/components/Forms/AddFieldMenu.tsx
index 645984b65..0489dbc15 100644
--- a/apps/browser-extension/src/entrypoints/popup/components/Forms/AddFieldMenu.tsx
+++ b/apps/browser-extension/src/entrypoints/popup/components/Forms/AddFieldMenu.tsx
@@ -215,7 +215,7 @@ const AddFieldMenu: React.FC<AddFieldMenuProps> = ({
<>
{/* Dark overlay backdrop for better visibility */}
<div
- className="fixed inset-0 z-10 bg-gray-600/50 backdrop-blur-sm dark:bg-black/80"
+ className="fixed inset-0 z-10 bg-gray-600/50 backdrop-blur-sm dark:bg-black/70"
onClick={() => setIsOpen(false)}
/>
<div className="absolute bottom-full left-0 right-0 mb-1 z-20 bg-white dark:bg-gray-800 border border-gray-200 dark:border-gray-700 rounded-md shadow-lg overflow-hidden">
diff --git a/apps/web/src/components/shared/Modal.tsx b/apps/web/src/components/shared/Modal.tsx
index 2496d97d6..d2a892939 100644
--- a/apps/web/src/components/shared/Modal.tsx
+++ b/apps/web/src/components/shared/Modal.tsx
@@ -28,7 +28,7 @@ const Modal: React.FC<ModalProps> = ({ children, id, panelRef, panelClassName =
return (
<div className={`fixed inset-0 ${zIndexClass}`} onKeyDown={onKeyDown}>
- <div className="fixed inset-0 bg-gray-600/50 backdrop-blur-sm dark:bg-black/80" />
+ <div className="fixed inset-0 bg-gray-600/50 backdrop-blur-sm dark:bg-black/70" />
<div className="fixed inset-0 overflow-y-auto">
<div className={`flex min-h-full justify-center p-4 ${position === 'top' ? 'items-start pt-40 pb-8' : 'items-center'}`} onClick={handleBackdropClick}>
<div ref={panelRef} id={id} tabIndex={tabIndex} className={`relative rounded-lg border border-gray-200 bg-white shadow-xl dark:border-gray-600 dark:bg-gray-800 dark:shadow-2xl ${panelClassName}`}>
diff --git a/core/client/src/database/repositories/ImportExportRepository.ts b/core/client/src/database/repositories/ImportExportRepository.ts
index bb3599e74..527387abd 100644
--- a/core/client/src/database/repositories/ImportExportRepository.ts
+++ b/core/client/src/database/repositories/ImportExportRepository.ts
@@ -30,8 +30,8 @@ type ChildRow = { ItemId: string; ManifestId: string };
const RESET_TABLES = ['Attachments', 'FieldValues', 'FieldHistories', 'TotpCodes', 'Passkeys', 'ItemTags', 'FieldDefinitions', 'Tags', 'Items', 'Logos', 'Folders'];
/**
- * Repository for the import/export feature: reads whole item graphs for an export and writes imported item graphs
- * with their original timestamps, which the regular item repository does not allow.
+ * Repository for the import/export logic: reads whole item graphs for an export and writes imported item graphs
+ * with their original timestamps.
*/
export class ImportExportRepository extends BaseRepository {
/**
@@ -44,7 +44,7 @@ export class ImportExportRepository extends BaseRepository {
}
/**
- * Read every live item with its child rows, plus the folders, tags, custom field definitions and the logos the
+ * Read every live item with its child rows, plus the folders, tags, custom field definitions and logos the
* items use. Trashed items are left out, archived items are included.
* @returns The vault data
*/
@@ -265,7 +265,6 @@ export class ImportExportRepository extends BaseRepository {
item.ItemType,
item.LogoId,
item.FolderId,
- // Second bind of the folder id, then the manifest an item outside any folder joins (see INSERT_ITEM).
item.FolderId,
manifestId,
createdAt,