📈 Open source, privacy-first web analytics — a cookie-less Google Analytics alternative with built-in error tracking and performance monitoring. Self-host it or use our cloud. Get started for free!
TypeScript chartsclickhousedockergdprgoogle-analyticsmetricsmonitoringmysqlnestjsprivacyredisself-hostedselfhostedstatisticstailwindcssweb-analyticswebanalyticswebsite
Rework drawer
Blue Mouse48be5c905e07
diff --git a/web/app/pages/Project/tabs/Traffic/SessionsDrawer.tsx b/web/app/pages/Project/tabs/Traffic/SessionsDrawer.tsxindex ed129935e..d7de2ee38 100644--- a/web/app/pages/Project/tabs/Traffic/SessionsDrawer.tsx+++ b/web/app/pages/Project/tabs/Traffic/SessionsDrawer.tsx@@ -1,9 +1,3 @@-import {- Dialog,- DialogBackdrop,- DialogPanel,- DialogTitle,-} from '@headlessui/react'import { XIcon, UsersIcon } from '@phosphor-icons/react'import _map from 'lodash/map'import { useCallback, useEffect, useMemo, useRef, useState } from 'react'@@ -11,9 +5,16 @@ import { useTranslation } from 'react-i18next'import type { SessionsResponse } from '~/api/api.server'import type { Session as SessionType } from '~/lib/models/Project'+import {+ Drawer,+ DrawerClose,+ DrawerContent,+ DrawerHeader,+ DrawerTitle,+ DrawerDescription,+} from '~/ui/Drawer'import Loader from '~/ui/Loader'import Spin from '~/ui/icons/Spin'-import { Text } from '~/ui/Text'import { Session } from '../Sessions/Sessions'@@ -127,13 +128,17 @@ export const SessionsDrawer = ({setSkip(0)setHasMore(true)- loadSessions(0, false, controller.signal).finally(() => {- if (!controller.signal.aborted) {- setInitialLoading(false)- }- })+ // Delay fetching slightly to allow the drawer animation to run smoothly without layout shifts+ const timer = setTimeout(() => {+ loadSessions(0, false, controller.signal).finally(() => {+ if (!controller.signal.aborted) {+ setInitialLoading(false)+ }+ })+ }, 200)return () => {+ clearTimeout(timer)controller.abort()}}, [isOpen, from, to, loadSessions])@@ -176,97 +181,84 @@ export const SessionsDrawer = ({}, [isOpen, initialLoading, hasMore, loadMore])return (- <Dialog className='relative z-50' open={isOpen} onClose={onClose}>- <DialogBackdrop- transition- className='fixed inset-0 bg-gray-500/50 transition-opacity duration-300 ease-out data-closed:opacity-0 dark:bg-black/60'- />-- <div className='fixed inset-0 overflow-hidden'>- <div className='absolute inset-0 overflow-hidden'>- <div className='pointer-events-none fixed inset-y-0 right-0 flex max-w-full pl-10'>- <DialogPanel- transition- className='pointer-events-auto w-screen max-w-lg transform-gpu transition-transform duration-300 ease-out data-closed:translate-x-full data-closed:duration-200'- >- <div className='flex h-full flex-col bg-white shadow-xl dark:bg-slate-900'>- {/* Header */}- <div className='border-b border-gray-200 px-4 py-4 sm:px-5 dark:border-slate-700/80'>- <div className='flex items-start justify-between'>- <div className='min-w-0'>- <DialogTitle className='text-base font-semibold text-gray-900 dark:text-gray-50'>- {t('project.sessions')}- </DialogTitle>- <Text className='mt-0.5 truncate text-sm'>{label}</Text>- </div>- <div className='ml-3 flex shrink-0 items-center gap-2'>- {!initialLoading && sessions.length > 0 ? (- <span className='inline-flex items-center gap-1 rounded-md bg-gray-100 px-2 py-1 text-xs font-medium text-gray-600 dark:bg-slate-800 dark:text-gray-300'>- <UsersIcon className='size-3.5' />- {sessions.length}- {hasMore ? '+' : ''}- </span>- ) : null}- <button- type='button'- onClick={onClose}- className='rounded-md p-1.5 text-gray-400 transition-colors hover:bg-gray-100 hover:text-gray-600 dark:hover:bg-slate-800 dark:hover:text-gray-300'- >- <span className='sr-only'>{t('common.close')}</span>- <XIcon className='size-5' />- </button>- </div>- </div>- </div>+ <Drawer+ direction='right'+ open={isOpen}+ onOpenChange={(open) => {+ if (!open) onClose()+ }}+ >+ <DrawerContent>+ <DrawerHeader>+ <div className='flex items-start justify-between'>+ <div className='min-w-0'>+ <DrawerTitle>{t('project.sessions')}</DrawerTitle>+ <DrawerDescription>{label}</DrawerDescription>+ </div>+ <div className='ml-3 flex shrink-0 items-center gap-2'>+ {!initialLoading && sessions.length > 0 ? (+ <span className='inline-flex items-center gap-1 rounded-md bg-gray-100 px-2 py-1 text-xs font-medium text-gray-600 dark:bg-slate-800 dark:text-gray-300'>+ <UsersIcon className='size-3.5' />+ {sessions.length}+ {hasMore ? '+' : ''}+ </span>+ ) : null}+ <DrawerClose asChild>+ <button+ type='button'+ className='rounded-md p-1.5 text-gray-400 transition-colors hover:bg-gray-100 hover:text-gray-600 dark:hover:bg-slate-800 dark:hover:text-gray-300'+ >+ <span className='sr-only'>{t('common.close')}</span>+ <XIcon className='size-5' />+ </button>+ </DrawerClose>+ </div>+ </div>+ </DrawerHeader>- {/* Body */}+ <div+ ref={scrollContainerRef}+ className='no-scrollbar flex-1 overflow-y-auto px-4 py-3 sm:px-5'+ >+ {initialLoading ? (+ <div className='flex items-center justify-center py-16'>+ <Loader />+ </div>+ ) : sessions.length === 0 ? (+ <div className='flex flex-col items-center justify-center py-16 text-center'>+ <UsersIcon+ className='size-10 text-gray-300 dark:text-slate-600'+ weight='duotone'+ />+ <span className='mt-3 text-sm text-gray-500 dark:text-gray-400'>+ {t('project.noSessionsFound')}+ </span>+ </div>+ ) : (+ <>+ <ul>+ {_map(sessions, (session) => (+ <Session+ key={session.psid}+ session={session}+ timeFormat={timeFormat}+ />+ ))}+ </ul>+ {hasMore ? (<div- ref={scrollContainerRef}- className='flex-1 overflow-y-auto px-4 py-3 sm:px-5'+ ref={sentinelRef}+ className='flex items-center justify-center py-4'>- {initialLoading ? (- <div className='flex items-center justify-center py-16'>- <Loader />- </div>- ) : sessions.length === 0 ? (- <div className='flex flex-col items-center justify-center py-16 text-center'>- <UsersIcon- className='size-10 text-gray-300 dark:text-slate-600'- weight='duotone'- />- <Text className='mt-3 text-sm'>- {t('project.noSessionsFound')}- </Text>- </div>- ) : (- <>- <ul>- {_map(sessions, (session) => (- <Session- key={session.psid}- session={session}- timeFormat={timeFormat}- />- ))}- </ul>- {hasMore ? (- <div- ref={sentinelRef}- className='flex items-center justify-center py-4'- >- {loadingMore ? (- <Spin className='text-gray-400 dark:text-slate-500' />- ) : null}- </div>- ) : null}- </>- )}+ {loadingMore ? (+ <Spin className='text-gray-400 dark:text-slate-500' />+ ) : null}</div>- </div>- </DialogPanel>- </div>+ ) : null}+ </>+ )}</div>- </div>- </Dialog>+ </DrawerContent>+ </Drawer>)}diff --git a/web/app/pages/Project/tabs/Traffic/TrafficView.tsx b/web/app/pages/Project/tabs/Traffic/TrafficView.tsxindex 812c57bf8..bd7f75817 100644--- a/web/app/pages/Project/tabs/Traffic/TrafficView.tsx+++ b/web/app/pages/Project/tabs/Traffic/TrafficView.tsx@@ -1492,7 +1492,11 @@ const TrafficViewInner = ({onExploreSessions={contextMenu.date? () => {- const date = dayjs.tz(contextMenu.date, 'YYYY-MM-DD', timezone)+ const date = dayjs.tz(+ contextMenu.date,+ 'YYYY-MM-DD',+ timezone,+ )if (!date.isValid()) returnsetSessionsDrawer({@@ -1506,19 +1510,17 @@ const TrafficViewInner = ({existingAnnotation={contextMenu.annotation}allowedToManage={allowedToManage}/>- {sessionsDrawer ? (- <SessionsDrawer- isOpen={!!sessionsDrawer}- onClose={() => setSessionsDrawer(null)}- from={sessionsDrawer.from}- to={sessionsDrawer.to}- label={sessionsDrawer.label}- projectId={id}- timezone={timezone}- timeFormat={timeFormat as '12-hour' | '24-hour'}- filters={filters}- />- ) : null}+ <SessionsDrawer+ isOpen={!!sessionsDrawer}+ onClose={() => setSessionsDrawer(null)}+ from={sessionsDrawer?.from || ''}+ to={sessionsDrawer?.to || ''}+ label={sessionsDrawer?.label || ''}+ projectId={id}+ timezone={timezone}+ timeFormat={timeFormat as '12-hour' | '24-hour'}+ filters={filters}+ /></div></>)diff --git a/web/app/ui/Drawer.tsx b/web/app/ui/Drawer.tsxnew file mode 100644index 000000000..6c25d285f--- /dev/null+++ b/web/app/ui/Drawer.tsx@@ -0,0 +1,132 @@+import React from 'react'+import { Drawer as DrawerPrimitive } from 'vaul'++import { cn } from '~/utils/generic'++function Drawer({+ shouldScaleBackground = false,+ ...props+}: React.ComponentProps<typeof DrawerPrimitive.Root>) {+ return (+ <DrawerPrimitive.Root+ shouldScaleBackground={shouldScaleBackground}+ {...props}+ />+ )+}++const DrawerTrigger = DrawerPrimitive.Trigger++const DrawerPortal = DrawerPrimitive.Portal++const DrawerClose = DrawerPrimitive.Close++function DrawerOverlay({+ className,+ ...props+}: React.ComponentProps<typeof DrawerPrimitive.Overlay>) {+ return (+ <DrawerPrimitive.Overlay+ className={cn(+ 'fixed inset-0 z-50 bg-gray-500/50 dark:bg-black/60',+ className,+ )}+ {...props}+ />+ )+}++function DrawerContent({+ className,+ children,+ ...props+}: React.ComponentProps<typeof DrawerPrimitive.Content>) {+ return (+ <DrawerPortal>+ <DrawerOverlay />+ <DrawerPrimitive.Content+ className={cn(+ 'fixed z-50 flex h-full flex-col bg-white shadow-xl outline-none dark:bg-slate-900',+ 'data-[vaul-drawer-direction=right]:inset-y-0 data-[vaul-drawer-direction=right]:right-0 data-[vaul-drawer-direction=right]:w-full data-[vaul-drawer-direction=right]:max-w-lg',+ 'data-[vaul-drawer-direction=left]:inset-y-0 data-[vaul-drawer-direction=left]:left-0 data-[vaul-drawer-direction=left]:w-full data-[vaul-drawer-direction=left]:max-w-lg',+ 'data-[vaul-drawer-direction=bottom]:inset-x-0 data-[vaul-drawer-direction=bottom]:bottom-0 data-[vaul-drawer-direction=bottom]:mt-24 data-[vaul-drawer-direction=bottom]:h-auto data-[vaul-drawer-direction=bottom]:rounded-t-xl',+ 'data-[vaul-drawer-direction=top]:inset-x-0 data-[vaul-drawer-direction=top]:top-0 data-[vaul-drawer-direction=top]:mb-24 data-[vaul-drawer-direction=top]:h-auto data-[vaul-drawer-direction=top]:rounded-b-xl',+ className,+ )}+ {...props}+ >+ {children}+ </DrawerPrimitive.Content>+ </DrawerPortal>+ )+}++function DrawerHeader({+ className,+ ...props+}: React.HTMLAttributes<HTMLDivElement>) {+ return (+ <div+ className={cn(+ 'border-b border-gray-200 px-4 py-4 sm:px-5 dark:border-slate-700/80',+ className,+ )}+ {...props}+ />+ )+}++function DrawerFooter({+ className,+ ...props+}: React.HTMLAttributes<HTMLDivElement>) {+ return (+ <div+ className={cn('mt-auto flex flex-col gap-2 p-4', className)}+ {...props}+ />+ )+}++function DrawerTitle({+ className,+ ...props+}: React.ComponentProps<typeof DrawerPrimitive.Title>) {+ return (+ <DrawerPrimitive.Title+ className={cn(+ 'text-base font-semibold text-gray-900 dark:text-gray-50',+ className,+ )}+ {...props}+ />+ )+}++function DrawerDescription({+ className,+ ...props+}: React.ComponentProps<typeof DrawerPrimitive.Description>) {+ return (+ <DrawerPrimitive.Description+ className={cn(+ 'mt-0.5 truncate text-sm text-gray-500 dark:text-gray-400',+ className,+ )}+ {...props}+ />+ )+}++export {+ Drawer,+ DrawerPortal,+ DrawerOverlay,+ DrawerTrigger,+ DrawerClose,+ DrawerContent,+ DrawerHeader,+ DrawerFooter,+ DrawerTitle,+ DrawerDescription,+}diff --git a/web/package-lock.json b/web/package-lock.jsonindex e4d7e26ed..92a823f3b 100644--- a/web/package-lock.json+++ b/web/package-lock.json@@ -4,7 +4,6 @@"requires": true,"packages": {"": {- "name": "web","license": "AGPL-3.0","dependencies": {"@headlessui/react": "^2.2.10",@@ -57,7 +56,8 @@"swetrix": "^4.1.0","tailwind-merge": "^3.5.0","timezone-soft": "^1.5.2",- "use-stick-to-bottom": "^1.1.3"+ "use-stick-to-bottom": "^1.1.3",+ "vaul": "^1.1.2"},"devDependencies": {"@react-router/dev": "^7.14.0",@@ -2687,6 +2687,42 @@}}},+ "node_modules/@radix-ui/react-dialog": {+ "version": "1.1.15",+ "resolved": "https://registry.npmjs.org/@radix-ui/react-dialog/-/react-dialog-1.1.15.tgz",+ "integrity": "sha512-TCglVRtzlffRNxRMEyR36DGBLJpeusFcgMVD9PZEzAKnUs1lKCgX5u9BmC2Yg+LL9MgZDugFFs1Vl+Jp4t/PGw==",+ "license": "MIT",+ "dependencies": {+ "@radix-ui/primitive": "1.1.3",+ "@radix-ui/react-compose-refs": "1.1.2",+ "@radix-ui/react-context": "1.1.2",+ "@radix-ui/react-dismissable-layer": "1.1.11",+ "@radix-ui/react-focus-guards": "1.1.3",+ "@radix-ui/react-focus-scope": "1.1.7",+ "@radix-ui/react-id": "1.1.1",+ "@radix-ui/react-portal": "1.1.9",+ "@radix-ui/react-presence": "1.1.5",+ "@radix-ui/react-primitive": "2.1.3",+ "@radix-ui/react-slot": "1.2.3",+ "@radix-ui/react-use-controllable-state": "1.2.2",+ "aria-hidden": "^1.2.4",+ "react-remove-scroll": "^2.6.3"+ },+ "peerDependencies": {+ "@types/react": "*",+ "@types/react-dom": "*",+ "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc",+ "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc"+ },+ "peerDependenciesMeta": {+ "@types/react": {+ "optional": true+ },+ "@types/react-dom": {+ "optional": true+ }+ }+ },"node_modules/@radix-ui/react-dismissable-layer": {"version": "1.1.11","resolved": "https://registry.npmjs.org/@radix-ui/react-dismissable-layer/-/react-dismissable-layer-1.1.11.tgz",@@ -2714,6 +2750,46 @@}}},+ "node_modules/@radix-ui/react-focus-guards": {+ "version": "1.1.3",+ "resolved": "https://registry.npmjs.org/@radix-ui/react-focus-guards/-/react-focus-guards-1.1.3.tgz",+ "integrity": "sha512-0rFg/Rj2Q62NCm62jZw0QX7a3sz6QCQU0LpZdNrJX8byRGaGVTqbrW9jAoIAHyMQqsNpeZ81YgSizOt5WXq0Pw==",+ "license": "MIT",+ "peerDependencies": {+ "@types/react": "*",+ "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc"+ },+ "peerDependenciesMeta": {+ "@types/react": {+ "optional": true+ }+ }+ },+ "node_modules/@radix-ui/react-focus-scope": {+ "version": "1.1.7",+ "resolved": "https://registry.npmjs.org/@radix-ui/react-focus-scope/-/react-focus-scope-1.1.7.tgz",+ "integrity": "sha512-t2ODlkXBQyn7jkl6TNaw/MtVEVvIGelJDCG41Okq/KwUsJBwQ4XVZsHAVUkK4mBv3ewiAS3PGuUWuY2BoK4ZUw==",+ "license": "MIT",+ "dependencies": {+ "@radix-ui/react-compose-refs": "1.1.2",+ "@radix-ui/react-primitive": "2.1.3",+ "@radix-ui/react-use-callback-ref": "1.1.1"+ },+ "peerDependencies": {+ "@types/react": "*",+ "@types/react-dom": "*",+ "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc",+ "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc"+ },+ "peerDependenciesMeta": {+ "@types/react": {+ "optional": true+ },+ "@types/react-dom": {+ "optional": true+ }+ }+ },"node_modules/@radix-ui/react-id": {"version": "1.1.1","resolved": "https://registry.npmjs.org/@radix-ui/react-id/-/react-id-1.1.1.tgz",@@ -4946,6 +5022,18 @@"dev": true,"license": "MIT"},+ "node_modules/aria-hidden": {+ "version": "1.2.6",+ "resolved": "https://registry.npmjs.org/aria-hidden/-/aria-hidden-1.2.6.tgz",+ "integrity": "sha512-ik3ZgC9dY/lYVVM++OISsaYDeg1tb0VtP5uL3ouh1koGOaUMDPpbFIei4JkFimWUFPn90sbMNMXQAIVOlnYKJA==",+ "license": "MIT",+ "dependencies": {+ "tslib": "^2.0.0"+ },+ "engines": {+ "node": ">=10"+ }+ },"node_modules/array-flatten": {"version": "1.1.1","resolved": "https://registry.npmjs.org/array-flatten/-/array-flatten-1.1.1.tgz",@@ -6007,6 +6095,12 @@"node": ">=8"}},+ "node_modules/detect-node-es": {+ "version": "1.1.0",+ "resolved": "https://registry.npmjs.org/detect-node-es/-/detect-node-es-1.1.0.tgz",+ "integrity": "sha512-ypdmJU/TbBby2Dxibuv7ZLW3Bs1QEmM7nHjEANfohJLvE0XVujisn1qPJcZxg+qDucsr+bP6fLD1rPS3AhJ7EQ==",+ "license": "MIT"+ },"node_modules/diacritics": {"version": "1.3.0","resolved": "https://registry.npmjs.org/diacritics/-/diacritics-1.3.0.tgz",@@ -6632,6 +6726,15 @@"url": "https://github.com/sponsors/ljharb"}},+ "node_modules/get-nonce": {+ "version": "1.0.1",+ "resolved": "https://registry.npmjs.org/get-nonce/-/get-nonce-1.0.1.tgz",+ "integrity": "sha512-FJhYRoDaiatfEkUK8HKlicmu/3SGFD51q3itKDGoSTysQJBnfOcxU5GxnhE1E6soB76MbT0MBtnKJuXyAx+96Q==",+ "license": "MIT",+ "engines": {+ "node": ">=6"+ }+ },"node_modules/get-port": {"version": "5.1.1","resolved": "https://registry.npmjs.org/get-port/-/get-port-5.1.1.tgz",@@ -8279,6 +8382,53 @@"node": ">=0.10.0"}},+ "node_modules/react-remove-scroll": {+ "version": "2.7.2",+ "resolved": "https://registry.npmjs.org/react-remove-scroll/-/react-remove-scroll-2.7.2.tgz",+ "integrity": "sha512-Iqb9NjCCTt6Hf+vOdNIZGdTiH1QSqr27H/Ek9sv/a97gfueI/5h1s3yRi1nngzMUaOOToin5dI1dXKdXiF+u0Q==",+ "license": "MIT",+ "dependencies": {+ "react-remove-scroll-bar": "^2.3.7",+ "react-style-singleton": "^2.2.3",+ "tslib": "^2.1.0",+ "use-callback-ref": "^1.3.3",+ "use-sidecar": "^1.1.3"+ },+ "engines": {+ "node": ">=10"+ },+ "peerDependencies": {+ "@types/react": "*",+ "react": "^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0 || ^19.0.0-rc"+ },+ "peerDependenciesMeta": {+ "@types/react": {+ "optional": true+ }+ }+ },+ "node_modules/react-remove-scroll-bar": {+ "version": "2.3.8",+ "resolved": "https://registry.npmjs.org/react-remove-scroll-bar/-/react-remove-scroll-bar-2.3.8.tgz",+ "integrity": "sha512-9r+yi9+mgU33AKcj6IbT9oRCO78WriSj6t/cF8DWBZJ9aOGPOTEDvdUDz1FwKim7QXWwmHqtdHnRJfhAxEG46Q==",+ "license": "MIT",+ "dependencies": {+ "react-style-singleton": "^2.2.2",+ "tslib": "^2.0.0"+ },+ "engines": {+ "node": ">=10"+ },+ "peerDependencies": {+ "@types/react": "*",+ "react": "^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0"+ },+ "peerDependenciesMeta": {+ "@types/react": {+ "optional": true+ }+ }+ },"node_modules/react-router": {"version": "7.14.0","resolved": "https://registry.npmjs.org/react-router/-/react-router-7.14.0.tgz",@@ -8314,6 +8464,28 @@"url": "https://opencollective.com/express"}},+ "node_modules/react-style-singleton": {+ "version": "2.2.3",+ "resolved": "https://registry.npmjs.org/react-style-singleton/-/react-style-singleton-2.2.3.tgz",+ "integrity": "sha512-b6jSvxvVnyptAiLjbkWLE/lOnR4lfTtDAl+eUC7RZy+QQWc6wRzIV2CE6xBuMmDxc2qIihtDCZD5NPOFl7fRBQ==",+ "license": "MIT",+ "dependencies": {+ "get-nonce": "^1.0.0",+ "tslib": "^2.0.0"+ },+ "engines": {+ "node": ">=10"+ },+ "peerDependencies": {+ "@types/react": "*",+ "react": "^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0 || ^19.0.0-rc"+ },+ "peerDependenciesMeta": {+ "@types/react": {+ "optional": true+ }+ }+ },"node_modules/react-virtualized-auto-sizer": {"version": "1.0.26","resolved": "https://registry.npmjs.org/react-virtualized-auto-sizer/-/react-virtualized-auto-sizer-1.0.26.tgz",@@ -9240,6 +9412,27 @@"browserslist": ">= 4.21.0"}},+ "node_modules/use-callback-ref": {+ "version": "1.3.3",+ "resolved": "https://registry.npmjs.org/use-callback-ref/-/use-callback-ref-1.3.3.tgz",+ "integrity": "sha512-jQL3lRnocaFtu3V00JToYz/4QkNWswxijDaCVNZRiRTO3HQDLsdu1ZtmIUvV4yPp+rvWm5j0y0TG/S61cuijTg==",+ "license": "MIT",+ "dependencies": {+ "tslib": "^2.0.0"+ },+ "engines": {+ "node": ">=10"+ },+ "peerDependencies": {+ "@types/react": "*",+ "react": "^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0 || ^19.0.0-rc"+ },+ "peerDependenciesMeta": {+ "@types/react": {+ "optional": true+ }+ }+ },"node_modules/use-debounce": {"version": "10.0.6","resolved": "https://registry.npmjs.org/use-debounce/-/use-debounce-10.0.6.tgz",@@ -9252,6 +9445,28 @@"react": "*"}},+ "node_modules/use-sidecar": {+ "version": "1.1.3",+ "resolved": "https://registry.npmjs.org/use-sidecar/-/use-sidecar-1.1.3.tgz",+ "integrity": "sha512-Fedw0aZvkhynoPYlA5WXrMCAMm+nSWdZt6lzJQ7Ok8S6Q+VsHmHpRWndVRJ8Be0ZbkfPc5LRYH+5XrzXcEeLRQ==",+ "license": "MIT",+ "dependencies": {+ "detect-node-es": "^1.1.0",+ "tslib": "^2.0.0"+ },+ "engines": {+ "node": ">=10"+ },+ "peerDependencies": {+ "@types/react": "*",+ "react": "^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0 || ^19.0.0-rc"+ },+ "peerDependenciesMeta": {+ "@types/react": {+ "optional": true+ }+ }+ },"node_modules/use-stick-to-bottom": {"version": "1.1.3","resolved": "https://registry.npmjs.org/use-stick-to-bottom/-/use-stick-to-bottom-1.1.3.tgz",@@ -9309,6 +9524,19 @@"node": ">= 0.8"}},+ "node_modules/vaul": {+ "version": "1.1.2",+ "resolved": "https://registry.npmjs.org/vaul/-/vaul-1.1.2.tgz",+ "integrity": "sha512-ZFkClGpWyI2WUQjdLJ/BaGuV6AVQiJ3uELGk3OYtP+B6yCO7Cmn9vPFXVJkRaGkOJu3m8bQMgtyzNHixULceQA==",+ "license": "MIT",+ "dependencies": {+ "@radix-ui/react-dialog": "^1.1.1"+ },+ "peerDependencies": {+ "react": "^16.8 || ^17.0 || ^18.0 || ^19.0.0 || ^19.0.0-rc",+ "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0.0 || ^19.0.0-rc"+ }+ },"node_modules/vite": {"version": "8.0.7","resolved": "https://registry.npmjs.org/vite/-/vite-8.0.7.tgz",diff --git a/web/package.json b/web/package.jsonindex 22902054d..a307fd9a9 100644--- a/web/package.json+++ b/web/package.json@@ -68,7 +68,8 @@"swetrix": "^4.1.0","tailwind-merge": "^3.5.0","timezone-soft": "^1.5.2",- "use-stick-to-bottom": "^1.1.3"+ "use-stick-to-bottom": "^1.1.3",+ "vaul": "^1.1.2"},"devDependencies": {"@react-router/dev": "^7.14.0",