From a4416213175603446accb1e21bfd294b7106fb7d Mon Sep 17 00:00:00 2001 From: Donkoko Date: Mon, 30 Dec 2024 18:30:41 +0200 Subject: [PATCH] fix: 1545-bug-safari-dashboard-ui-bug - fix the safari bug for positionining of elements on dashboard - update import docs to properly reflect date format - fix bug in sidebar notice card --- app/components/assets/import-content.tsx | 4 ++-- app/components/dashboard/inventory-value-chart.tsx | 1 + app/components/dashboard/location-ratio-chart.tsx | 1 + app/components/layout/sidebar/app-sidebar.tsx | 2 +- public/static/shelf.nu-example-asset-import-from-content.csv | 4 ++-- 5 files changed, 7 insertions(+), 5 deletions(-) diff --git a/app/components/assets/import-content.tsx b/app/components/assets/import-content.tsx index 9e61e10cd..f8afbece6 100644 --- a/app/components/assets/import-content.tsx +++ b/app/components/assets/import-content.tsx @@ -101,7 +101,7 @@ export const ImportContent = () => ( multiline text
  • - date - must be in mm/dd/yyyy format + date - must be in YYYY-MM-DD format
  • If no type is mentioned "text" is used as default type. @@ -200,7 +200,7 @@ export const FileForm = ({ intent, url }: { intent: string; url?: string }) => { diff --git a/app/components/dashboard/inventory-value-chart.tsx b/app/components/dashboard/inventory-value-chart.tsx index fd90ac51d..a99545be1 100644 --- a/app/components/dashboard/inventory-value-chart.tsx +++ b/app/components/dashboard/inventory-value-chart.tsx @@ -46,6 +46,7 @@ export default function InventoryValueChart() { value={(valueKnownAssets / totalAssets) * 100} size="xl" color="orange" + className="relative" > Value Known
    diff --git a/app/components/dashboard/location-ratio-chart.tsx b/app/components/dashboard/location-ratio-chart.tsx index 59009136b..2bbec57eb 100644 --- a/app/components/dashboard/location-ratio-chart.tsx +++ b/app/components/dashboard/location-ratio-chart.tsx @@ -46,6 +46,7 @@ export default function LocationRatioChart() { value={(assetsWithLocation / totalAssets) * 100} size="xl" color="orange" + className="relative" > Location known
    diff --git a/app/components/layout/sidebar/app-sidebar.tsx b/app/components/layout/sidebar/app-sidebar.tsx index 998554955..cbb401a0b 100644 --- a/app/components/layout/sidebar/app-sidebar.tsx +++ b/app/components/layout/sidebar/app-sidebar.tsx @@ -34,7 +34,7 @@ export default function AppSidebar(props: AppSidebarProps) { - + {state !== "collapsed" && } diff --git a/public/static/shelf.nu-example-asset-import-from-content.csv b/public/static/shelf.nu-example-asset-import-from-content.csv index 6743ef554..cb4ae67a7 100644 --- a/public/static/shelf.nu-example-asset-import-from-content.csv +++ b/public/static/shelf.nu-example-asset-import-from-content.csv @@ -1,3 +1,3 @@ qrId,title,description,kit,category,tags,location,valuation,custodian,bookable,"cf: Serial number,type:text","cf:brand, type:option","cf:purchase date, type:date" -abcde12345,AMD Ryzen,"CPU from my new home PC",Home PC,CPU,"High priority, small",Sofia office,100,John,yes,WQE239123d,amd,02/22/2024 -12345abcde,"Macbook Pro.","New laptop",Working gear,Laptop,"High priority, mid-size",Dutch office,2500,Thea,no,43543we23d,apple,03/12/2022 \ No newline at end of file +abcde12345,AMD Ryzen,"CPU from my new home PC",Home PC,CPU,"High priority, small",Sofia office,100,John,yes,WQE239123d,amd,2024-02-22 +12345abcde,"Macbook Pro.","New laptop",Working gear,Laptop,"High priority, mid-size",Dutch office,2500,Thea,no,43543we23d,apple,2022-03-12 \ No newline at end of file