The most complete open-source travel planner: real-time collaboration, bookings, budgets, packing lists, journals, offline PWA, SSO and an AI-ready MCP server, with planet-wide place search and routing built in.
TypeScript budget-trackercollaborativedockeritinerarymcp-serveroffline-firstopen-sourceopenstreetmappacking-listpwareal-timeself-hostedselfhostedtraveltravel-apptravel-journaltravel-plannertripitwanderlog
fix(docsync): give the sync flow its own TREK icon and restore the wordmark
Mauricedc1ac0ae85e3
diff --git a/client/src/components/Admin/AddonManager.test.tsx b/client/src/components/Admin/AddonManager.test.tsxindex ad5f1ccb0..0964cedc0 100644--- a/client/src/components/Admin/AddonManager.test.tsx+++ b/client/src/components/Admin/AddonManager.test.tsx@@ -1,4 +1,4 @@-// FE-ADMIN-ADDON-001 to FE-ADMIN-ADDON-025+// FE-ADMIN-ADDON-001 to FE-ADMIN-ADDON-036import { render, screen, waitFor } from '../../../tests/helpers/render';import userEvent from '@testing-library/user-event';import { delay, http, HttpResponse } from 'msw';@@ -418,7 +418,102 @@ describe('AddonManager', () => {expect(isOn(addonToggle('Todo List'))).toBe(true);});- it('FE-ADMIN-ADDON-018: the collab sub-features render their state and report the toggled key', async () => {+ it('FE-ADMIN-ADDON-033: document providers hang off Documents with their glyphs and stay out of the count', async () => {+ server.use(addonsRoute([+ buildAddon({ id: 'documents', name: 'Documents', icon: 'FileText', enabled: true }),+ buildAddon({ id: 'journey', name: 'Journey', type: 'global', icon: 'Compass', enabled: false }),+ buildAddon({ id: 'paperless', name: 'Paperless-ngx', description: 'Document archive', type: 'document_provider', enabled: true }),+ buildAddon({ id: 'nextcloud', name: 'Nextcloud', description: 'WebDAV files', type: 'document_provider', enabled: false }),+ ]));+ render(<AddonManager />);++ await screen.findByText('Paperless-ngx');+ const paperlessRow = screen.getByText('Paperless-ngx').closest('li') as HTMLElement;+ expect(paperlessRow.querySelector('svg')).toBeInTheDocument();+ expect(isOn(subToggle('Paperless-ngx'))).toBe(true);+ expect(isOn(subToggle('Nextcloud'))).toBe(false);+ // Documents and Journey are the addons; an enabled provider is a shelf row+ // and must not turn 1/2 into 2/2.+ expect(screen.getByText('1/2')).toBeInTheDocument();+ });++ it('FE-ADMIN-ADDON-034: document providers stay hidden while Documents itself is off', async () => {+ server.use(addonsRoute([+ buildAddon({ id: 'documents', name: 'Documents', icon: 'FileText', enabled: false }),+ buildAddon({ id: 'paperless', name: 'Paperless-ngx', type: 'document_provider', enabled: true }),+ ]));+ render(<AddonManager />);++ await screen.findByText('Documents');+ expect(screen.queryByText('Paperless-ngx')).not.toBeInTheDocument();+ });++ it('FE-ADMIN-ADDON-035: switching Documents off and on again shows the cascaded providers as off', async () => {+ const user = userEvent.setup();+ let loads = 0;+ let documentsOn = true;+ let paperlessOn = true;+ server.use(+ http.get('/api/admin/addons', () => {+ loads += 1;+ return HttpResponse.json({+ addons: [+ buildAddon({ id: 'documents', name: 'Documents', icon: 'FileText', enabled: documentsOn }),+ buildAddon({ id: 'paperless', name: 'Paperless-ngx', type: 'document_provider', enabled: paperlessOn }),+ ],+ });+ }),+ http.put('/api/admin/addons/documents', async ({ request }) => {+ documentsOn = (await request.json() as { enabled: boolean }).enabled;+ if (!documentsOn) paperlessOn = false;+ return HttpResponse.json({ success: true });+ }),+ );+ render(<><ToastContainer /><AddonManager /></>);+ await screen.findByText('Paperless-ngx');++ await user.click(addonToggle('Documents'));+ await screen.findByText('Addon updated');+ expect(loads).toBe(2);+ expect(screen.queryByText('Paperless-ngx')).not.toBeInTheDocument();++ await user.click(addonToggle('Documents'));++ await screen.findByText('Paperless-ngx');+ expect(isOn(subToggle('Paperless-ngx'))).toBe(false);+ });++ it('FE-ADMIN-ADDON-036: toggling a document provider persists it without re-reading the list', async () => {+ const user = userEvent.setup();+ let loads = 0;+ let body: unknown = null;+ server.use(+ http.get('/api/admin/addons', () => {+ loads += 1;+ return HttpResponse.json({+ addons: [+ buildAddon({ id: 'documents', name: 'Documents', icon: 'FileText', enabled: true }),+ buildAddon({ id: 'papra', name: 'Papra', type: 'document_provider', enabled: false }),+ ],+ });+ }),+ http.put('/api/admin/addons/papra', async ({ request }) => {+ body = await request.json();+ return HttpResponse.json({ success: true });+ }),+ );+ render(<><ToastContainer /><AddonManager /></>);+ await screen.findByText('Papra');++ await user.click(subToggle('Papra'));++ await screen.findByText('Addon updated');+ expect(body).toEqual({ enabled: true });+ expect(loads).toBe(1);+ expect(isOn(subToggle('Papra'))).toBe(true);+ });++ it('FE-ADMIN-ADDON-018:the collab sub-features render their state and report the toggled key', async () => {const user = userEvent.setup();const onToggleCollabFeature = vi.fn();server.use(addonsRoute([buildAddon({ id: 'collab', name: 'Collab', enabled: true })]));diff --git a/client/src/components/Admin/AddonManager.tsx b/client/src/components/Admin/AddonManager.tsxindex 5623c1ba0..6002d42c7 100644--- a/client/src/components/Admin/AddonManager.tsx+++ b/client/src/components/Admin/AddonManager.tsx@@ -9,7 +9,7 @@ import CustomSelect from '../shared/CustomSelect'import EmptyState from '../shared/EmptyState'import DawarichIcon from '../shared/DawarichIcon'import AirTrailIcon from '../shared/AirTrailIcon'-import { DOCUMENT_PROVIDER_ICONS, SynologyDriveIcon } from '../shared/DocumentProviderIcons'+import { DOCUMENT_PROVIDER_ICONS } from '../shared/DocumentProviderIcons'import AddonTile from './AddonTile'import AddonSubRow from './AddonSubRow'@@ -31,10 +31,17 @@ function ImmichIcon({ size = 14 }: { size?: number }) {)}+function SynologyIcon({ size = 14 }: { size?: number }) {+ return (+ <svg viewBox="0 0 24 24" width={size} height={size} style={{ flexShrink: 0 }}>+ <path d="M17.895 11.927a3.196 3.196 0 0 1 .394-1.53l-.008.017a2.677 2.677 0 0 1 1.075-1.108l.014-.007a3.181 3.181 0 0 1 1.523-.382h.05-.003q1.346 0 2.2.871.854.871.86 2.203c0 .895-.29 1.635-.867 2.226s-1.306.886-2.183.886c-.566 0-1.1-.137-1.571-.379l.019.009a2.535 2.535 0 0 1-1.115-1.067l-.007-.013q-.38-.708-.381-1.726zm1.593.083c0 .591.138 1.043.42 1.349a1.365 1.365 0 0 0 2.066.002l.001-.002c.275-.307.413-.764.413-1.357s-.138-1.033-.413-1.342a1.371 1.371 0 0 0-2.066-.001l-.001.002c-.281.306-.42.758-.42 1.345zm-1.602 2.941H16.33v-3.015c0-.635-.032-1.044-.101-1.234a.876.876 0 0 0-.328-.435l-.003-.002a.938.938 0 0 0-.521-.156h-.027.001-.012c-.27 0-.521.084-.727.228l.004-.003a1.115 1.115 0 0 0-.444.576l-.002.008c-.083.248-.121.696-.121 1.359v2.673H12.5V9.027h1.439v.867c.518-.656 1.167-.98 1.952-.98h.021c.335 0 .655.067.946.189l-.016-.006c.261.105.48.268.648.475l.002.003c.141.185.247.404.304.643l.002.012c.057.278.089.597.089.924l-.002.135v-.007zM6.413 9.028h1.654l1.412 4.204 1.376-4.204h1.611l-2.067 5.693-.38 1.038a4.158 4.158 0 0 1-.4.807l.01-.017a1.637 1.637 0 0 1-.422.443l-.005.003c-.17.113-.367.203-.578.26l-.014.003c-.232.064-.499.1-.774.1h-.025.001a4.13 4.13 0 0 1-.911-.105l.028.005-.129-1.229c.198.046.426.074.659.077h.002c.36 0 .628-.106.8-.318a2.27 2.27 0 0 0 .395-.807l.004-.016zM0 12.29l1.592-.149q.147.802.586 1.181.439.379 1.192.375c.528 0 .927-.113 1.197-.335.27-.222.4-.486.4-.782v-.024a.751.751 0 0 0-.167-.474l.001.001c-.113-.132-.309-.252-.59-.347-.193-.074-.631-.191-1.312-.365-.882-.216-1.496-.486-1.85-.804A2.147 2.147 0 0 1 .3 8.936v-.019V8.908c0-.431.132-.831.358-1.163l-.005.007a2.226 2.226 0 0 1 1.003-.826l.015-.005c.442-.184.973-.281 1.602-.281q1.529 0 2.304.676c.516.457.785 1.057.811 1.809l-1.649.055c-.073-.413-.219-.714-.452-.899-.233-.185-.579-.276-1.034-.276-.476 0-.85.098-1.118.298a.59.59 0 0 0-.261.49v.011-.001.002c0 .201.095.379.242.493l.001.001c.205.179.709.36 1.507.546.798.186 1.388.387 1.769.59.374.196.678.48.893.825l.006.01c.214.345.326.786.326 1.305 0 .489-.146.944-.396 1.325l.006-.009c-.264.408-.64.724-1.084.908l-.016.006c-.475.194-1.065.298-1.772.298-1.029 0-1.819-.241-2.373-.722-.554-.481-.879-1.177-.986-2.091z" fill="currentColor" />+ </svg>+ )+}+const PROVIDER_ICONS: Record<string, ComponentType<{ size?: number }>> = {immich: ImmichIcon,- // Photos and Drive are the same brand, so they carry the same mark.- synologyphotos: SynologyDriveIcon,+ synologyphotos: SynologyIcon,// The document providers' own marks, single-colour so they read as glyphs in// a row of lucide icons and invert with the theme....DOCUMENT_PROVIDER_ICONS,diff --git a/client/src/components/Files/docsync/DocSyncFlow.tsx b/client/src/components/Files/docsync/DocSyncFlow.tsxindex 6ec3f4c85..f09969b6d 100644--- a/client/src/components/Files/docsync/DocSyncFlow.tsx+++ b/client/src/components/Files/docsync/DocSyncFlow.tsx@@ -1,7 +1,7 @@import { ArrowLeft, ArrowRight } from 'lucide-react'import { useTranslation } from '../../../i18n/TranslationContext'import { DOCUMENT_PROVIDER_ICONS } from '../../shared/DocumentProviderIcons'-import TrekMark from '../../shared/TrekMark'+import TrekIcon from '../../shared/TrekIcon'import { Badge } from './DocSyncBits'export type SyncDirection = 'both' | 'pull' | 'push'@@ -70,7 +70,7 @@ export default function DocSyncFlow({<Endname={t('docsync.flow.trek')}count={holdings.inTrek}- glyph={<TrekMark className="h-6 w-6 text-content" />}+ glyph={<TrekIcon className="h-6 w-6 text-content" />}/><div className="flex min-w-0 flex-1 flex-col gap-2.5">diff --git a/client/src/components/shared/DocumentProviderIcons.test.tsx b/client/src/components/shared/DocumentProviderIcons.test.tsxindex b3ffc558e..c5ee09395 100644--- a/client/src/components/shared/DocumentProviderIcons.test.tsx+++ b/client/src/components/shared/DocumentProviderIcons.test.tsx@@ -7,14 +7,14 @@* person would notice if they slipped: a provider the server seeds but the* client has no glyph for (the row renders nothing at all), a mark that keeps a* brand colour and so stays black on a dark background, and the sizing contract- * the callers rely on — `size` for the bare lucide-sized rows, a `className`+ * the callers rely on: `size` for the bare lucide-sized rows, a `className`* everywhere the surrounding Tailwind box decides how big the glyph is.*/import { describe, it, expect } from 'vitest'import { DOCUMENT_PROVIDER_IDS } from '@trek/shared'import { render } from '../../../tests/helpers/render'import { DOCUMENT_PROVIDER_ICONS } from './DocumentProviderIcons'-import TrekMark from './TrekMark'+import TrekIcon from './TrekIcon'const marks = Object.entries(DOCUMENT_PROVIDER_ICONS)@@ -76,7 +76,7 @@ describe('DOCUMENT_PROVIDER_ICONS', () => {}})- it('FE-DOCSYNC-ICONS-006: stays out of the accessibility tree — the provider name is next to it', () => {+ it('FE-DOCSYNC-ICONS-006: stays out of the accessibility tree, the provider name is next to it', () => {for (const [id, Icon] of marks) {expect(renderMark(Icon).getAttribute('aria-hidden'), id).toBe('true')}@@ -117,9 +117,9 @@ describe('DOCUMENT_PROVIDER_ICONS', () => {})})-describe('TrekMark', () => {- it('FE-DOCSYNC-ICONS-011: renders TREK\u2019s mark in currentColor', () => {- const { container } = render(<TrekMark />)+describe('TrekIcon', () => {+ it('FE-DOCSYNC-ICONS-011: renders TREK\u2019s app icon in currentColor', () => {+ const { container } = render(<TrekIcon />)const svg = container.querySelector('svg')expect(svg).not.toBeNull()@@ -128,7 +128,7 @@ describe('TrekMark', () => {})it('FE-DOCSYNC-ICONS-012: takes a className, which is the only thing that sizes it', () => {- const { container } = render(<TrekMark className="h-6 w-6 text-content" />)+ const { container } = render(<TrekIcon className="h-6 w-6 text-content" />)const svg = container.querySelector('svg')!expect(svg.getAttribute('class')).toBe('h-6 w-6 text-content')@@ -137,18 +137,18 @@ describe('TrekMark', () => {})it('FE-DOCSYNC-ICONS-013: forwards the rest of its svg props', () => {- const { container } = render(<TrekMark data-testid="trek-mark" role="img" />)+ const { container } = render(<TrekIcon data-testid="trek-icon" role="img" />)const svg = container.querySelector('svg')!- expect(svg.getAttribute('data-testid')).toBe('trek-mark')+ expect(svg.getAttribute('data-testid')).toBe('trek-icon')expect(svg.getAttribute('role')).toBe('img')})it('FE-DOCSYNC-ICONS-014: is decorative by default and can be unhidden by the caller', () => {- const { container } = render(<TrekMark />)+ const { container } = render(<TrekIcon />)expect(container.querySelector('svg')!.getAttribute('aria-hidden')).toBe('true')- const labelled = render(<TrekMark aria-hidden={false} aria-label="TREK" />)+ const labelled = render(<TrekIcon aria-hidden={false} aria-label="TREK" />)const svg = labelled.container.querySelector('svg')!expect(svg.getAttribute('aria-hidden')).toBe('false')expect(svg.getAttribute('aria-label')).toBe('TREK')diff --git a/client/src/components/shared/TrekIcon.tsx b/client/src/components/shared/TrekIcon.tsxnew file mode 100644index 000000000..e10775f68--- /dev/null+++ b/client/src/components/shared/TrekIcon.tsx@@ -0,0 +1,19 @@+import type { SVGProps } from 'react'++/**+ * TREK's square app icon, from public/icons/icon.svg. The wordmark with the API+ * pill is `TrekMark`.+ *+ * Inlined rather than loaded as an <img> so it takes `currentColor` and follows+ * the theme like the provider glyphs it sits next to in the document-sync flow.+ * The path is the icon file's, unchanged.+ */+export default function TrekIcon({ className, ...props }: SVGProps<SVGSVGElement>) {+ return (+ <svg viewBox="0 0 512 512" aria-hidden className={className} {...props}>+ <g transform="translate(56,51) scale(0.267)">+ <path d="M 855.636719 699.203125 L 222.246094 699.203125 C 197.679688 699.203125 179.90625 675.75 186.539062 652.101562 L 360.429688 32.390625 C 364.921875 16.386719 379.511719 5.328125 396.132812 5.328125 L 1029.527344 5.328125 C 1054.089844 5.328125 1071.867188 28.777344 1065.230469 52.429688 L 891.339844 672.136719 C 886.851562 688.140625 872.257812 699.203125 855.636719 699.203125 Z M 444.238281 1166.980469 L 533.773438 847.898438 C 540.410156 824.246094 522.632812 800.796875 498.070312 800.796875 L 172.472656 800.796875 C 155.851562 800.796875 141.261719 811.855469 136.769531 827.859375 L 47.234375 1146.941406 C 40.597656 1170.59375 58.375 1194.042969 82.9375 1194.042969 L 408.535156 1194.042969 C 425.15625 1194.042969 439.75 1182.984375 444.238281 1166.980469 Z M 609.003906 827.859375 L 435.113281 1447.570312 C 428.476562 1471.21875 446.253906 1494.671875 470.816406 1494.671875 L 1104.210938 1494.671875 C 1120.832031 1494.671875 1135.421875 1483.609375 1139.914062 1467.605469 L 1313.804688 847.898438 C 1320.441406 824.246094 1302.664062 800.796875 1278.101562 800.796875 L 644.707031 800.796875 C 628.085938 800.796875 613.492188 811.855469 609.003906 827.859375 Z M 1056.105469 333.019531 L 966.570312 652.101562 C 959.933594 675.75 977.710938 699.203125 1002.273438 699.203125 L 1327.871094 699.203125 C 1344.492188 699.203125 1359.085938 688.140625 1363.574219 672.136719 L 1453.109375 353.054688 C 1459.746094 329.40625 1441.96875 305.953125 1417.40625 305.953125 L 1091.808594 305.953125 C 1075.1875 305.953125 1060.597656 317.015625 1056.105469 333.019531 Z" fill="currentColor" />+ </g>+ </svg>+ )+}diff --git a/client/src/components/shared/TrekMark.tsx b/client/src/components/shared/TrekMark.tsxindex aff863077..807582809 100644--- a/client/src/components/shared/TrekMark.tsx+++ b/client/src/components/shared/TrekMark.tsx@@ -1,19 +1,21 @@-import type { SVGProps } from 'react'+import React from 'react'/**- * TREK's own mark, from public/icons/icon.svg.+ * The TREK wordmark, including the pill.*- * Inlined rather than loaded as an <img> so it takes `currentColor`: the- * document-sync flow puts it next to provider glyphs that all follow the theme,- * and a fixed-colour file would be the one thing in the row that ignores dark- * mode. The path is the icon file's, unchanged.+ * `fill="currentColor"` on the mark and the two pill classes below are what let+ * one file serve both themes: the letters take the surrounding text colour, the+ * pill inverts against it. No second asset, no dark-mode variant to keep in+ * sync, and it stays correct if the accent or the surface ever changes.*/-export default function TrekMark({ className, ...props }: SVGProps<SVGSVGElement>) {+export default function TrekMark(props: React.SVGProps<SVGSVGElement>): React.ReactElement {return (- <svg viewBox="0 0 512 512" aria-hidden className={className} {...props}>- <g transform="translate(56,51) scale(0.267)">- <path d="M 855.636719 699.203125 L 222.246094 699.203125 C 197.679688 699.203125 179.90625 675.75 186.539062 652.101562 L 360.429688 32.390625 C 364.921875 16.386719 379.511719 5.328125 396.132812 5.328125 L 1029.527344 5.328125 C 1054.089844 5.328125 1071.867188 28.777344 1065.230469 52.429688 L 891.339844 672.136719 C 886.851562 688.140625 872.257812 699.203125 855.636719 699.203125 Z M 444.238281 1166.980469 L 533.773438 847.898438 C 540.410156 824.246094 522.632812 800.796875 498.070312 800.796875 L 172.472656 800.796875 C 155.851562 800.796875 141.261719 811.855469 136.769531 827.859375 L 47.234375 1146.941406 C 40.597656 1170.59375 58.375 1194.042969 82.9375 1194.042969 L 408.535156 1194.042969 C 425.15625 1194.042969 439.75 1182.984375 444.238281 1166.980469 Z M 609.003906 827.859375 L 435.113281 1447.570312 C 428.476562 1471.21875 446.253906 1494.671875 470.816406 1494.671875 L 1104.210938 1494.671875 C 1120.832031 1494.671875 1135.421875 1483.609375 1139.914062 1467.605469 L 1313.804688 847.898438 C 1320.441406 824.246094 1302.664062 800.796875 1278.101562 800.796875 L 644.707031 800.796875 C 628.085938 800.796875 613.492188 811.855469 609.003906 827.859375 Z M 1056.105469 333.019531 L 966.570312 652.101562 C 959.933594 675.75 977.710938 699.203125 1002.273438 699.203125 L 1327.871094 699.203125 C 1344.492188 699.203125 1359.085938 688.140625 1363.574219 672.136719 L 1453.109375 353.054688 C 1459.746094 329.40625 1441.96875 305.953125 1417.40625 305.953125 L 1091.808594 305.953125 C 1075.1875 305.953125 1060.597656 317.015625 1056.105469 333.019531 Z" fill="currentColor" />- </g>- </svg>+ <>+ <style>{`+ .trek-mark .pill-bg { fill: currentColor; }+ .trek-mark .pill-fg { fill: var(--bg-card); }+ `}</style>+ <svg {...props} className={`trek-mark ${props.className ?? ''}`} xmlns="http://www.w3.org/2000/svg" viewBox="1524.6 76.2 1138.0 285.8" fill="currentColor" role="img" aria-label="TREK Places API"><defs><g/><clipPath id="737cc381ca"><rect x="0" width="653" y="0" height="450"/></clipPath><clipPath id="21cafe8b17"><path d="M 2287.46875 169.585938 L 2656.628906 169.585938 L 2656.628906 314.753906 L 2287.46875 314.753906 Z M 2287.46875 169.585938 " clipRule="nonzero"/></clipPath><clipPath id="ad29c73ee0"><path d="M 2308.46875 169.585938 L 2635.550781 169.585938 C 2647.148438 169.585938 2656.550781 178.984375 2656.550781 190.585938 L 2656.550781 293.753906 C 2656.550781 305.351562 2647.148438 314.753906 2635.550781 314.753906 L 2308.46875 314.753906 C 2296.871094 314.753906 2287.46875 305.351562 2287.46875 293.753906 L 2287.46875 190.585938 C 2287.46875 178.984375 2296.871094 169.585938 2308.46875 169.585938 Z M 2308.46875 169.585938 " clipRule="nonzero"/></clipPath><clipPath id="4c9feae353"><path d="M 0.46875 0.585938 L 369.558594 0.585938 L 369.558594 145.753906 L 0.46875 145.753906 Z M 0.46875 0.585938 " clipRule="nonzero"/></clipPath><clipPath id="2b51a6604b"><path d="M 21.46875 0.585938 L 348.550781 0.585938 C 360.148438 0.585938 369.550781 9.984375 369.550781 21.585938 L 369.550781 124.753906 C 369.550781 136.351562 360.148438 145.753906 348.550781 145.753906 L 21.46875 145.753906 C 9.871094 145.753906 0.46875 136.351562 0.46875 124.753906 L 0.46875 21.585938 C 0.46875 9.984375 9.871094 0.585938 21.46875 0.585938 Z M 21.46875 0.585938 " clipRule="nonzero"/></clipPath><clipPath id="95c2d63342"><rect x="0" width="370" y="0" height="146"/></clipPath></defs><g transform="matrix(1, 0, 0, 1, 1526, 0)"><g clipPath="url(#737cc381ca)"><g><g transform="translate(0.514823, 355.998939)"><g><path d="M 92.25 0 C 74.5 0 60.625 -5.0625 50.625 -15.1875 C 40.625 -25.3125 35.625 -39 35.625 -56.25 L 35.625 -239.265625 L 94.140625 -239.265625 L 94.140625 -59.625 C 94.140625 -56.625 95.203125 -54.0625 97.328125 -51.9375 C 99.453125 -49.8125 102.015625 -48.75 105.015625 -48.75 L 147.015625 -48.75 L 147.015625 0 Z M 4.125 -144.765625 L 4.125 -192.390625 L 147.015625 -192.390625 L 147.015625 -144.765625 Z M 4.125 -144.765625 "/></g></g></g><g><g transform="translate(135.525372, 355.998939)"><g><path d="M 20.25 0 L 20.25 -135.765625 C 20.25 -153.265625 25.25 -167.015625 35.25 -177.015625 C 45.25 -187.015625 59.125 -192.015625 76.875 -192.015625 L 132.765625 -192.015625 L 132.765625 -144.765625 L 91.125 -144.765625 C 87.625 -144.765625 84.625 -143.578125 82.125 -141.203125 C 79.625 -138.828125 78.375 -135.765625 78.375 -132.015625 L 78.375 0 Z M 20.25 0 "/></g></g></g><g><g transform="translate(246.533968, 355.998939)"><g><path d="M 122.265625 0 C 100.503906 0 81.375 -4.0625 64.875 -12.1875 C 48.375 -20.3125 35.5625 -31.5625 26.4375 -45.9375 C 17.3125 -60.3125 12.75 -77.003906 12.75 -96.015625 C 12.75 -117.015625 17.125 -135.015625 25.875 -150.015625 C 34.625 -165.015625 46.3125 -176.578125 60.9375 -184.703125 C 75.5625 -192.828125 91.753906 -196.890625 109.515625 -196.890625 C 129.765625 -196.890625 146.703125 -192.640625 160.328125 -184.140625 C 173.953125 -175.640625 184.265625 -164.078125 191.265625 -149.453125 C 198.265625 -134.828125 201.765625 -118.140625 201.765625 -99.390625 C 201.765625 -96.140625 201.578125 -92.320312 201.203125 -87.9375 C 200.828125 -83.5625 200.390625 -80.125 199.890625 -77.625 L 73.875 -77.625 C 75.375 -71.125 78.25 -65.625 82.5 -61.125 C 86.75 -56.625 92.125 -53.3125 98.625 -51.1875 C 105.132812 -49.0625 112.390625 -48 120.390625 -48 L 179.265625 -48 L 179.265625 0 Z M 72.375 -114.015625 L 145.515625 -114.015625 C 145.015625 -118.015625 144.265625 -121.890625 143.265625 -125.640625 C 142.265625 -129.390625 140.703125 -132.703125 138.578125 -135.578125 C 136.453125 -138.453125 134.015625 -140.953125 131.265625 -143.078125 C 128.515625 -145.203125 125.328125 -146.890625 121.703125 -148.140625 C 118.078125 -149.390625 114.015625 -150.015625 109.515625 -150.015625 C 103.765625 -150.015625 98.632812 -149.015625 94.125 -147.015625 C 89.625 -145.015625 85.875 -142.328125 82.875 -138.953125 C 79.875 -135.578125 77.5625 -131.703125 75.9375 -127.328125 C 74.3125 -122.953125 73.125 -118.515625 72.375 -114.015625 Z M 72.375 -114.015625 "/></g></g></g><g><g transform="translate(434.423849, 355.998939)"><g><path d="M 21.75 0 L 21.75 -273.765625 L 79.875 -273.765625 L 79.875 -119.640625 L 105.390625 -119.640625 L 149.265625 -192.390625 L 214.140625 -192.390625 L 162.390625 -112.140625 C 177.390625 -105.890625 189.078125 -96.320312 197.453125 -83.4375 C 205.828125 -70.5625 210.015625 -55.5 210.015625 -38.25 L 210.015625 0 L 151.515625 0 L 151.515625 -38.25 C 151.515625 -45.25 149.828125 -51.5625 146.453125 -57.1875 C 143.078125 -62.8125 138.640625 -67.25 133.140625 -70.5 C 127.640625 -73.75 121.390625 -75.375 114.390625 -75.375 L 79.875 -75.375 L 79.875 0 Z M 21.75 0 "/></g></g></g></g></g><g clipPath="url(#21cafe8b17)"><g clipPath="url(#ad29c73ee0)"><g transform="matrix(1, 0, 0, 1, 2287, 169)"><g clipPath="url(#95c2d63342)"><g clipPath="url(#4c9feae353)"><g clipPath="url(#2b51a6604b)"><path className="pill-bg" d="M 0.46875 0.585938 L 369.628906 0.585938 L 369.628906 145.753906 L 0.46875 145.753906 Z M 0.46875 0.585938 " fillRule="nonzero"/></g></g></g></g></g></g><g className="pill-fg"><g transform="translate(2399.041752, 268.584017)"><g><path d="M 0 0 L 17.703125 -48.28125 C 18.585938 -50.675781 20.039062 -52.484375 22.0625 -53.703125 C 24.09375 -54.921875 26.382812 -55.53125 28.9375 -55.53125 C 31.488281 -55.53125 33.773438 -54.945312 35.796875 -53.78125 C 37.828125 -52.613281 39.285156 -50.804688 40.171875 -48.359375 L 57.953125 0 L 43.84375 0 L 40.40625 -10.53125 L 17.234375 -10.53125 L 13.65625 0 Z M 20.59375 -21.375 L 37.046875 -21.375 L 30.109375 -43.140625 C 30.003906 -43.453125 29.859375 -43.671875 29.671875 -43.796875 C 29.492188 -43.921875 29.273438 -43.984375 29.015625 -43.984375 C 28.753906 -43.984375 28.53125 -43.90625 28.34375 -43.75 C 28.164062 -43.601562 28.050781 -43.398438 28 -43.140625 Z M 20.59375 -21.375 "/></g></g></g><g className="pill-fg"><g transform="translate(2455.817146, 268.584017)"><g><path d="M 4.765625 0 L 4.765625 -54.59375 L 28.234375 -54.59375 C 31.878906 -54.59375 35.222656 -53.757812 38.265625 -52.09375 C 41.304688 -50.4375 43.734375 -48.140625 45.546875 -45.203125 C 47.367188 -42.265625 48.28125 -38.867188 48.28125 -35.015625 C 48.28125 -31.171875 47.367188 -27.753906 45.546875 -24.765625 C 43.734375 -21.773438 41.316406 -19.445312 38.296875 -17.78125 C 35.285156 -16.113281 31.929688 -15.28125 28.234375 -15.28125 L 17.859375 -15.28125 L 17.859375 0 Z M 17.859375 -26.28125 L 26.75 -26.28125 C 28.3125 -26.28125 29.71875 -26.617188 30.96875 -27.296875 C 32.21875 -27.972656 33.226562 -28.960938 34 -30.265625 C 34.78125 -31.566406 35.171875 -33.125 35.171875 -34.9375 C 35.171875 -36.757812 34.78125 -38.320312 34 -39.625 C 33.226562 -40.925781 32.203125 -41.925781 30.921875 -42.625 C 29.648438 -43.332031 28.257812 -43.6875 26.75 -43.6875 L 17.859375 -43.6875 Z M 17.859375 -26.28125 "/></g></g></g><g className="pill-fg"><g transform="translate(2506.041587, 268.584017)"><g><path d="M 3.515625 0 L 3.515625 -10.921875 L 12.953125 -10.921875 L 12.953125 -43.6875 L 3.515625 -43.6875 L 3.515625 -54.59375 L 35.40625 -54.59375 L 35.40625 -43.6875 L 25.96875 -43.6875 L 25.96875 -10.921875 L 35.40625 -10.921875 L 35.40625 0 Z M 3.515625 0 "/></g></g></g></svg>+ </>)}diff --git a/client/src/mobile/screens/trip/tabs/MDocSyncSheet.tsx b/client/src/mobile/screens/trip/tabs/MDocSyncSheet.tsxindex 23aff8dbc..05a66e40b 100644--- a/client/src/mobile/screens/trip/tabs/MDocSyncSheet.tsx+++ b/client/src/mobile/screens/trip/tabs/MDocSyncSheet.tsx@@ -10,7 +10,7 @@ import MConfirmSheet from '../../settings/MConfirmSheet'import { TileHeader } from '../sheets/MTripSheetUi'import { useTranslation } from '../../../../i18n'import { DOCUMENT_PROVIDER_ICONS } from '../../../../components/shared/DocumentProviderIcons'-import TrekMark from '../../../../components/shared/TrekMark'+import TrekIcon from '../../../../components/shared/TrekIcon'import {useDocSync, type DocSyncLink, type DocSyncProvider,} from '../../../../components/Files/docsync/useDocSync'@@ -265,7 +265,7 @@ function DetailView({a phone does not have. */}<section className="rounded-2xl border border-[color:var(--m-rowbr)] bg-m-sheetop p-3"><div className="flex items-stretch gap-2">- <EndBox glyph={<TrekMark className="h-[18px] w-[18px]" />} count={holdings.inTrek} name={t('docsync.flow.trek')} />+ <EndBox glyph={<TrekIcon className="h-[18px] w-[18px]" />} count={holdings.inTrek} name={t('docsync.flow.trek')} /><EndBoxglyph={ProviderIcon ? <ProviderIcon className="h-[18px] w-[18px]" /> : null}count={holdings.atProvider}