From 6d360cf1acd76a53252118320ea57f766b55aa89 Mon Sep 17 00:00:00 2001 From: Usman Baig Date: Fri, 6 Mar 2026 11:44:30 +0100 Subject: [PATCH] =?UTF-8?q?feat:=20settings=20modal=20improvements=20?= =?UTF-8?q?=E2=80=94=20borderless=20profile,=20remove=20descriptions,=20bu?= =?UTF-8?q?mp=20ui=20to=200.0.91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Add borderless prop passthrough to ProfileSettings - Remove section descriptions from SettingsModalWrapper sidebar - Bump @ciphera-net/ui to ^0.0.91 --- components/settings/ProfileSettings.tsx | 4 +++- components/settings/SettingsModalWrapper.tsx | 9 +++------ package-lock.json | 8 ++++---- package.json | 2 +- 4 files changed, 11 insertions(+), 12 deletions(-) diff --git a/components/settings/ProfileSettings.tsx b/components/settings/ProfileSettings.tsx index e1d4e5d..f8dd99c 100644 --- a/components/settings/ProfileSettings.tsx +++ b/components/settings/ProfileSettings.tsx @@ -10,9 +10,10 @@ import { registerPasskey, listPasskeys, deletePasskey } from '@/lib/api/webauthn interface Props { activeTab?: 'profile' | 'security' | 'preferences' + borderless?: boolean } -export default function ProfileSettings({ activeTab }: Props = {}) { +export default function ProfileSettings({ activeTab, borderless }: Props = {}) { const { user, refresh, logout } = useAuth() if (!user) return null @@ -61,6 +62,7 @@ export default function ProfileSettings({ activeTab }: Props = {}) { activeTab={activeTab} hideNav={activeTab !== undefined} hideNotifications + borderless={borderless} /> ) } diff --git a/components/settings/SettingsModalWrapper.tsx b/components/settings/SettingsModalWrapper.tsx index dfa8323..f50e844 100644 --- a/components/settings/SettingsModalWrapper.tsx +++ b/components/settings/SettingsModalWrapper.tsx @@ -91,19 +91,17 @@ export default function SettingsModalWrapper() { { id: 'pulse', label: 'Pulse Settings', - description: 'Profile and preferences', icon: UserIcon, defaultExpanded: true, items: [ - { id: 'profile', label: 'Profile', content: }, - { id: 'security', label: 'Security', content: }, - { id: 'preferences', label: 'Preferences', content: }, + { id: 'profile', label: 'Profile', content: }, + { id: 'security', label: 'Security', content: }, + { id: 'preferences', label: 'Preferences', content: }, ], }, { id: 'security-section', label: 'Security', - description: 'Devices and activity', icon: LockIcon, items: [ { id: 'devices', label: 'Trusted Devices', content: }, @@ -113,7 +111,6 @@ export default function SettingsModalWrapper() { { id: 'notifications', label: 'Notifications', - description: 'Email and in-app notifications', icon: BellIcon, items: [ { id: 'security-alerts', label: 'Security Alerts', content: }, diff --git a/package-lock.json b/package-lock.json index 28f0f2c..ea4f0f6 100644 --- a/package-lock.json +++ b/package-lock.json @@ -8,7 +8,7 @@ "name": "pulse-frontend", "version": "0.13.0-alpha", "dependencies": { - "@ciphera-net/ui": "^0.0.89", + "@ciphera-net/ui": "^0.0.91", "@ducanh2912/next-pwa": "^10.2.9", "@radix-ui/react-icons": "^1.3.0", "@simplewebauthn/browser": "^13.2.2", @@ -1665,9 +1665,9 @@ } }, "node_modules/@ciphera-net/ui": { - "version": "0.0.89", - "resolved": "https://npm.pkg.github.com/download/@ciphera-net/ui/0.0.89/2c528b440d3984e20a524be8a1d458df0aa8597e", - "integrity": "sha512-Ax4EMJCbWeEaCkoQqFCbl28QE5TnS0OY2nPNQiLVdLcG3xyiAgGL7MPpewo1RAUOrYm1/cr3F4Z3iiX7VAeSMA==", + "version": "0.0.91", + "resolved": "https://npm.pkg.github.com/download/@ciphera-net/ui/0.0.91/7576638f924b0fe731de561d668315f61b5b5590", + "integrity": "sha512-PIG+zxGW8LCXbC3tFkvN0d7B+axcyXsZm3/GI96gC9px8YPDNYDiFSJXM2VH4ls+DeNBpCiykfKdgujD9IcxNw==", "dependencies": { "@radix-ui/react-icons": "^1.3.0", "clsx": "^2.1.0", diff --git a/package.json b/package.json index 07c507b..a10b935 100644 --- a/package.json +++ b/package.json @@ -12,7 +12,7 @@ "test:watch": "vitest" }, "dependencies": { - "@ciphera-net/ui": "^0.0.89", + "@ciphera-net/ui": "^0.0.91", "@ducanh2912/next-pwa": "^10.2.9", "@radix-ui/react-icons": "^1.3.0", "@simplewebauthn/browser": "^13.2.2",