- {data?.metadata?.mimetype === "application/pdf" && (
+ {filePreviewSupported && (
-
)}
diff --git a/packages/supabase/src/queries/cached-queries.ts b/packages/supabase/src/queries/cached-queries.ts
index 6658e91384..2f06e1001f 100644
--- a/packages/supabase/src/queries/cached-queries.ts
+++ b/packages/supabase/src/queries/cached-queries.ts
@@ -171,7 +171,6 @@ export const getVault = async (params) => {
["vault", teamId],
{
tags: [`vault_${teamId}`],
- revalidate: 10,
}
)(params);
};
diff --git a/packages/supabase/src/queries/index.ts b/packages/supabase/src/queries/index.ts
index 9d8c036cb2..5e11c37a40 100644
--- a/packages/supabase/src/queries/index.ts
+++ b/packages/supabase/src/queries/index.ts
@@ -229,7 +229,7 @@ export async function getTransactionsQuery(
*,
assigned:assigned_id(*),
enrichment:enrichment_id(category),
- attachments(id,size,name,path)
+ attachments(*)
`,
{ count: "exact" }
)
@@ -318,7 +318,7 @@ export async function getTransactionQuery(supabase: Client, id: string) {
*,
assigned:assigned_id(*),
enrichment:enrichment_id(category),
- attachments(id,size,name,path)
+ attachments(*)
`
)
.eq("id", id)
@@ -491,7 +491,6 @@ export async function getVaultQuery(supabase: Client, params: GetVaultParams) {
: [
{ name: "inbox", isFolder: true },
{ name: "exports", isFolder: true },
- { name: "transactions", isFolder: true },
];
let basePath = teamId;
@@ -507,6 +506,7 @@ export async function getVaultQuery(supabase: Client, params: GetVaultParams) {
const filteredData =
data
?.filter((file) => file.name !== EMPTY_FOLDER_PLACEHOLDER_FILE_NAME)
+ .filter((file) => file.name !== "transactions")
.map((item) => ({ ...item, isFolder: !item.id })) ?? [];
const mergedMap = new Map(
diff --git a/packages/ui/src/components/icons.tsx b/packages/ui/src/components/icons.tsx
index 831a051e0d..fc1f9180fc 100644
--- a/packages/ui/src/components/icons.tsx
+++ b/packages/ui/src/components/icons.tsx
@@ -28,10 +28,12 @@ import {
MdOutlineCategory,
MdOutlineDescription,
MdOutlineDifference,
+ MdOutlineFileDownload,
MdOutlineIntegrationInstructions,
MdOutlineInventory2,
MdOutlineListAlt,
MdOutlineNotificationsNone,
+ MdOutlineOpenInFull,
MdOutlineTune,
MdPayments,
MdPeople,
@@ -413,4 +415,6 @@ export const Icons = {
Search: MdSearch,
CreateNewFolder: MdCreateNewFolder,
Error: MdErrorOutline,
+ OpenInFull: MdOutlineOpenInFull,
+ FileDownload: MdOutlineFileDownload,
};