Open-source AI teammates in Slack, Teams, Discord, Telegram and Mattermost. Self-host it, with any agent harness and any model.
Python agent-orchestrationaiai-agentschatopsdiscordlangchainmcpmicrosoft-teamsmulti-agentopen-sourceopenaiself-hostedslack
feat(gateway): restyle the web UI on the Hoot design system (CHOO-1782) (#87)
Louis Amaudruz3c523c08eb6f
diff --git a/README.md b/README.mdindex ec44f07e7..b7feeaf53 100644--- a/README.md+++ b/README.md@@ -3,7 +3,7 @@<picture><source media="(prefers-color-scheme: dark)" srcset="assets/agent-switch-wordmark-dark.svg"><source media="(prefers-color-scheme: light)" srcset="assets/agent-switch-wordmark.svg">- <img src="assets/agent-switch-wordmark.svg" alt="Agent Switch" width="420">+ <img src="assets/agent-switch-wordmark.svg" alt="Agent Switch" width="350"></picture>**Create organizations where AI agents and humans work side by side.**diff --git a/assets/agent-switch-wordmark-dark.svg b/assets/agent-switch-wordmark-dark.svgindex 71a6a7951..b6363d146 100644--- a/assets/agent-switch-wordmark-dark.svg+++ b/assets/agent-switch-wordmark-dark.svg@@ -1,9 +1,13 @@-<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 470.0 96" role="img" aria-label="Agent Switch">- <g fill="none" stroke="#FFFFFF" stroke-width="9" stroke-linecap="round" stroke-linejoin="round">- <path d="M10 28 H28 C42 28 54 68 68 68 H78"/>- <path d="M10 68 H28 C42 68 54 28 68 28 H78"/>- <path d="M68 56 L80 68 L68 80"/>- <path d="M68 16 L80 28 L68 40"/>- </g>- <path fill="#FFFFFF" d="M129.944 52.536 135.152 37.864000000000004H135.264L140.304 52.536ZM130.784 28.008000000000003 115.664 67.992H124.512L127.648 59.08800000000001H142.6L145.624 67.992H154.752L139.8 28.008000000000003Z M170.28 61.160000000000004Q168.432 61.160000000000004 167.2 60.376000000000005Q165.968 59.592000000000006 165.212 58.36Q164.456 57.128 164.148 55.588Q163.84 54.048 163.84 52.480000000000004Q163.84 50.85600000000001 164.204 49.37200000000001Q164.56799999999998 47.888000000000005 165.38 46.74Q166.19199999999998 45.592 167.396 44.92Q168.6 44.248000000000005 170.28 44.248000000000005Q172.23999999999998 44.248000000000005 173.528 44.976000000000006Q174.816 45.70400000000001 175.6 46.93600000000001Q176.384 48.168000000000006 176.71999999999997 49.764Q177.05599999999998 51.36 177.05599999999998 53.152Q177.05599999999998 54.720000000000006 176.63599999999997 56.14800000000001Q176.21599999999998 57.57600000000001 175.37599999999998 58.696000000000005Q174.536 59.816 173.248 60.488Q171.95999999999998 61.160000000000004 170.28 61.160000000000004ZM184.61599999999999 66.144V39.040000000000006H177.05599999999998V42.904H176.944Q175.488 40.384 173.332 39.32Q171.176 38.256 168.32 38.256Q165.296 38.256 162.97199999999998 39.432Q160.648 40.608000000000004 159.07999999999998 42.596000000000004Q157.512 44.584 156.7 47.188Q155.88799999999998 49.792 155.88799999999998 52.592000000000006Q155.88799999999998 55.56 156.58799999999997 58.22Q157.28799999999998 60.88 158.79999999999998 62.86800000000001Q160.31199999999998 64.85600000000001 162.664 66.004Q165.016 67.152 168.26399999999998 67.152Q170.896 67.152 173.276 66.06Q175.656 64.968 176.944 62.672000000000004H177.05599999999998V66.48Q177.112 69.56 175.572 71.576Q174.03199999999998 73.592 170.672 73.592Q168.54399999999998 73.592 166.92 72.724Q165.296 71.85600000000001 164.736 69.616H156.84Q157.00799999999998 72.08 158.212 73.844Q159.416 75.608 161.236 76.72800000000001Q163.05599999999998 77.848 165.26799999999997 78.38Q167.48 78.912 169.608 78.912Q174.59199999999998 78.912 177.56 77.56800000000001Q180.528 76.224 182.096 74.292Q183.664 72.36 184.14 70.12Q184.61599999999999 67.88000000000001 184.61599999999999 66.144Z M209.88799999999998 50.408H196.95199999999997Q197.00799999999998 49.568000000000005 197.31599999999997 48.504000000000005Q197.62399999999997 47.440000000000005 198.37999999999997 46.488Q199.13599999999997 45.536 200.39599999999996 44.892Q201.65599999999998 44.248000000000005 203.55999999999997 44.248000000000005Q206.47199999999998 44.248000000000005 207.89999999999998 45.816Q209.32799999999997 47.384 209.88799999999998 50.408ZM196.95199999999997 55.44800000000001H217.83999999999997Q218.06399999999996 52.08800000000001 217.27999999999997 49.00800000000001Q216.49599999999998 45.928000000000004 214.73199999999997 43.52000000000001Q212.968 41.11200000000001 210.224 39.684000000000005Q207.47999999999996 38.256 203.784 38.256Q200.48 38.256 197.76399999999998 39.432Q195.04799999999997 40.608000000000004 193.08799999999997 42.652Q191.128 44.696000000000005 190.06399999999996 47.49600000000001Q188.99999999999997 50.29600000000001 188.99999999999997 53.544000000000004Q188.99999999999997 56.904 190.03599999999997 59.70400000000001Q191.07199999999997 62.504000000000005 192.97599999999997 64.52000000000001Q194.87999999999997 66.536 197.62399999999997 67.628Q200.36799999999997 68.72 203.784 68.72Q208.712 68.72 212.18399999999997 66.48Q215.65599999999998 64.24000000000001 217.33599999999998 59.032000000000004H210.33599999999998Q209.944 60.376000000000005 208.20799999999997 61.580000000000005Q206.47199999999998 62.784000000000006 204.06399999999996 62.784000000000006Q200.70399999999998 62.784000000000006 198.91199999999998 61.048Q197.11999999999998 59.312000000000005 196.95199999999997 55.44800000000001Z M221.94399999999996 39.040000000000006V67.992H229.89599999999996V52.816Q229.89599999999996 48.392 231.35199999999998 46.46000000000001Q232.80799999999996 44.528000000000006 236.05599999999995 44.528000000000006Q238.91199999999995 44.528000000000006 240.03199999999995 46.292Q241.15199999999996 48.056000000000004 241.15199999999996 51.64V67.992H249.10399999999996V50.184000000000005Q249.10399999999996 47.49600000000001 248.62799999999996 45.284000000000006Q248.15199999999996 43.072 246.97599999999994 41.532000000000004Q245.79999999999995 39.992000000000004 243.75599999999997 39.124Q241.71199999999996 38.256 238.51999999999995 38.256Q235.99999999999997 38.256 233.59199999999998 39.404Q231.18399999999997 40.55200000000001 229.67199999999997 43.072H229.50399999999996V39.040000000000006Z M264.63199999999995 39.040000000000006V30.360000000000007H256.67999999999995V39.040000000000006H251.86399999999998V44.36H256.67999999999995V61.440000000000005Q256.67999999999995 63.624 257.40799999999996 64.968Q258.13599999999997 66.312 259.39599999999996 67.03999999999999Q260.65599999999995 67.768 262.308 68.02000000000001Q263.96 68.272 265.808 68.272Q266.984 68.272 268.216 68.21600000000001Q269.448 68.16000000000001 270.45599999999996 67.992V61.83200000000001Q269.89599999999996 61.944 269.28 62.0Q268.664 62.056000000000004 267.99199999999996 62.056000000000004Q265.97599999999994 62.056000000000004 265.304 61.384Q264.63199999999995 60.712 264.63199999999995 58.696000000000005V44.36H270.45599999999996V39.040000000000006Z M295.464 54.720000000000006H286.952Q286.896 58.416000000000004 288.29600000000005 61.104Q289.696 63.792 292.076 65.528Q294.456 67.26400000000001 297.564 68.07600000000001Q300.672 68.888 303.976 68.888Q308.064 68.888 311.172 67.936Q314.28000000000003 66.98400000000001 316.38 65.27600000000001Q318.48 63.568000000000005 319.544 61.21600000000001Q320.608 58.864000000000004 320.608 56.120000000000005Q320.608 52.760000000000005 319.18 50.604000000000006Q317.752 48.44800000000001 315.79200000000003 47.160000000000004Q313.832 45.872 311.844 45.284000000000006Q309.856 44.696000000000005 308.736 44.47200000000001Q304.984 43.52 302.65999999999997 42.904Q300.336 42.288000000000004 299.02 41.672000000000004Q297.704 41.056000000000004 297.256 40.328Q296.808 39.60000000000001 296.808 38.42400000000001Q296.808 37.136 297.368 36.29600000000001Q297.928 35.456 298.796 34.896Q299.664 34.336000000000006 300.728 34.11200000000001Q301.79200000000003 33.888000000000005 302.856 33.888000000000005Q304.48 33.888000000000005 305.852 34.168000000000006Q307.224 34.448 308.288 35.120000000000005Q309.352 35.792 309.996 36.968Q310.64 38.144000000000005 310.752 39.93600000000001H319.264Q319.264 36.464 317.948 34.028000000000006Q316.632 31.592000000000006 314.392 30.024000000000004Q312.152 28.456000000000003 309.26800000000003 27.756000000000004Q306.384 27.056000000000004 303.248 27.056000000000004Q300.56 27.056000000000004 297.872 27.784000000000002Q295.184 28.512 293.05600000000004 30.024Q290.928 31.536 289.61199999999997 33.804Q288.296 36.072 288.296 39.152Q288.296 41.896 289.332 43.828Q290.368 45.760000000000005 292.048 47.048Q293.728 48.336000000000006 295.856 49.14800000000001Q297.984 49.96000000000001 300.224 50.52Q302.408 51.136 304.536 51.64Q306.664 52.144000000000005 308.344 52.816Q310.024 53.48800000000001 311.06 54.49600000000001Q312.096 55.504000000000005 312.096 57.128Q312.096 58.64 311.312 59.620000000000005Q310.528 60.6 309.352 61.160000000000004Q308.176 61.720000000000006 306.832 61.916000000000004Q305.488 62.112 304.312 62.112Q302.576 62.112 300.952 61.69200000000001Q299.32800000000003 61.272000000000006 298.124 60.404Q296.92 59.536 296.192 58.136Q295.464 56.736000000000004 295.464 54.720000000000006Z M357.472 67.992 366.59999999999997 39.040000000000006H358.424L353.104 58.64H352.99199999999996L348.06399999999996 39.040000000000006H340.33599999999996L335.52 58.696000000000005H335.40799999999996L330.08799999999997 39.040000000000006H321.688L330.87199999999996 67.992H339.104L344.032 48.56H344.144L349.296 67.992Z M377.53599999999994 34.56V28.008000000000003H369.58399999999995V34.56ZM369.58399999999995 39.040000000000006V67.992H377.53599999999994V39.040000000000006Z M393.28799999999995 39.040000000000006V30.360000000000007H385.33599999999996V39.040000000000006H380.52V44.36H385.33599999999996V61.440000000000005Q385.33599999999996 63.624 386.06399999999996 64.968Q386.792 66.312 388.05199999999996 67.03999999999999Q389.31199999999995 67.768 390.96399999999994 68.02000000000001Q392.616 68.272 394.46399999999994 68.272Q395.64 68.272 396.87199999999996 68.21600000000001Q398.104 68.16000000000001 399.11199999999997 67.992V61.83200000000001Q398.55199999999996 61.944 397.936 62.0Q397.32 62.056000000000004 396.64799999999997 62.056000000000004Q394.63199999999995 62.056000000000004 393.9599999999999 61.384Q393.28799999999995 60.712 393.28799999999995 58.696000000000005V44.36H399.11199999999997V39.040000000000006Z M422.032 49.232H429.816Q429.64799999999997 46.432 428.472 44.388000000000005Q427.296 42.34400000000001 425.41999999999996 40.97200000000001Q423.544 39.60000000000001 421.164 38.928000000000004Q418.784 38.256 416.20799999999997 38.256Q412.68 38.256 409.93600000000004 39.432Q407.192 40.608000000000004 405.288 42.708000000000006Q403.384 44.80800000000001 402.404 47.69200000000001Q401.424 50.57600000000001 401.424 53.93600000000001Q401.424 57.184000000000005 402.488 59.900000000000006Q403.552 62.61600000000001 405.456 64.57600000000001Q407.36 66.536 410.076 67.628Q412.792 68.72 416.03999999999996 68.72Q421.808 68.72 425.504 65.696Q429.2 62.672000000000004 429.984 56.904H422.312Q421.92 59.592000000000006 420.38 61.188Q418.84 62.784000000000006 415.984 62.784000000000006Q414.13599999999997 62.784000000000006 412.84799999999996 61.944Q411.56 61.104000000000006 410.804 59.78800000000001Q410.048 58.47200000000001 409.712 56.848000000000006Q409.376 55.224000000000004 409.376 53.656000000000006Q409.376 52.032000000000004 409.712 50.38000000000001Q410.048 48.72800000000001 410.86 47.35600000000001Q411.67199999999997 45.98400000000001 412.96 45.11600000000001Q414.248 44.248000000000005 416.152 44.248000000000005Q421.248 44.248000000000005 422.032 49.232Z M433.864 28.008000000000003V67.992H441.816V52.816Q441.816 48.392 443.27199999999993 46.46000000000001Q444.72799999999995 44.528000000000006 447.976 44.528000000000006Q450.832 44.528000000000006 451.952 46.292Q453.072 48.056000000000004 453.072 51.64V67.992H461.024V50.184000000000005Q461.024 47.49600000000001 460.548 45.284000000000006Q460.072 43.072 458.89599999999996 41.532000000000004Q457.71999999999997 39.992000000000004 455.67599999999993 39.124Q453.63199999999995 38.256 450.44 38.256Q448.2 38.256 445.84799999999996 39.404Q443.496 40.55200000000001 441.984 43.072H441.816V28.008000000000003Z"/>+<svg width="484" height="102" viewBox="0 0 484 102" fill="none" xmlns="http://www.w3.org/2000/svg" role="img" aria-label="Agent Switch">+<path d="M24.5117 65.6279C26.997 65.6279 29.0117 67.6426 29.0117 70.1279V77.1279C29.0117 79.6132 26.997 81.6279 24.5117 81.6279C22.0264 81.6279 20.0117 79.6132 20.0117 77.1279V70.1279C20.0117 67.6426 22.0264 65.6279 24.5117 65.6279Z" fill="white"/>+<path d="M42.5117 65.6279C44.997 65.6279 47.0117 67.6426 47.0117 70.1279V77.1279C47.0117 79.6132 44.997 81.6279 42.5117 81.6279C40.0264 81.6279 38.0117 79.6132 38.0117 77.1279V70.1279C38.0117 67.6426 40.0264 65.6279 42.5117 65.6279Z" fill="white"/>+<path d="M59.3174 20.1826C61.8027 20.1826 63.8174 22.1973 63.8174 24.6826V31.6826C63.8174 34.1679 61.8027 36.1826 59.3174 36.1826C56.8321 36.1826 54.8174 34.1679 54.8174 31.6826V24.6826C54.8174 22.1973 56.8321 20.1826 59.3174 20.1826Z" fill="white"/>+<path d="M77.3174 20.1826C79.8027 20.1826 81.8174 22.1973 81.8174 24.6826V31.6826C81.8174 34.1679 79.8027 36.1826 77.3174 36.1826C74.8321 36.1826 72.8174 34.1679 72.8174 31.6826V24.6826C72.8174 22.1973 74.8321 20.1826 77.3174 20.1826Z" fill="white"/>+<path fill-rule="evenodd" clip-rule="evenodd" d="M89.8232 0C96.4507 0 101.823 5.37258 101.823 12V74.2256C101.823 77.4082 100.559 80.4605 98.3086 82.7109L82.7109 98.3086C80.4605 100.559 77.4082 101.823 74.2256 101.823H12C5.37259 101.823 0 96.4507 0 89.8232V27.5977C0 24.4151 1.26425 21.3627 3.51465 19.1123L19.1123 3.51465C21.3627 1.26425 24.4151 0 27.5977 0H89.8232ZM16 56.4121C13.2386 56.4121 11 58.6507 11 61.4121V84.8232C11 88.1369 13.6863 90.8232 17 90.8232H69.6689C72.8515 90.8232 75.9039 89.559 78.1543 87.3086L87.3086 78.1543C89.559 75.9039 90.8232 72.8515 90.8232 69.6689V61.4121C90.8232 58.6507 88.5847 56.4121 85.8232 56.4121H16ZM32.1543 11C28.9717 11 25.9194 12.2642 23.6689 14.5146L14.5146 23.6689C12.2643 25.9194 11 28.9717 11 32.1543V40.4121C11 43.1735 13.2386 45.4121 16 45.4121H85.8232C88.5847 45.4121 90.8232 43.1735 90.8232 40.4121V17C90.8232 13.6863 88.1369 11 84.8232 11H32.1543Z" fill="white"/>+<path d="M435.015 85.6489C433.358 85.6489 432.015 84.3058 432.015 82.6489V11.375C432.015 9.71815 433.358 8.375 435.015 8.375H442.924C444.581 8.375 445.924 9.71815 445.924 11.375V38.5315C445.924 39.1913 446.459 39.7261 447.119 39.7261C447.599 39.7261 448.03 39.4369 448.233 39.0019C449.619 36.042 451.572 33.7444 454.093 32.1091C456.816 30.2693 460.164 29.3493 464.139 29.3493C469.584 29.3493 474.074 31.1156 477.606 34.6481C481.212 38.1807 483.015 43.7002 483.015 51.2068V82.6489C483.015 84.3058 481.672 85.6489 480.015 85.6489H472.106C470.449 85.6489 469.106 84.3058 469.106 82.6489V54.5186C469.106 50.6181 468.149 47.5639 466.236 45.3561C464.396 43.0747 461.71 41.934 458.177 41.934C454.13 41.934 451.076 45.7321 449.015 48.5286C446.954 51.2516 445.924 54.9313 445.924 59.5678V82.6489C445.924 84.3058 444.581 85.6489 442.924 85.6489H435.015Z" fill="white"/>+<path d="M397.587 87.1888C392.215 87.1888 387.358 86.1217 383.016 83.9875C378.674 81.7796 375.215 78.6151 372.639 74.4938C370.137 70.2989 368.886 65.2577 368.886 59.3702V58.0455C368.886 52.158 370.174 47.08 372.749 42.8115C375.325 38.4694 378.784 35.1577 383.126 32.8763C387.468 30.5213 392.289 29.3438 397.587 29.3438C405.241 29.3438 411.46 31.3308 416.244 35.3049C420.339 38.7069 423.112 43.0257 424.565 48.2613C424.985 49.7764 424.007 51.2846 422.484 51.6775L414.763 53.67C413.024 54.1187 411.312 52.9272 410.672 51.2496C409.949 49.3559 408.826 47.6471 407.302 46.1232C404.947 43.7682 401.635 42.5907 397.367 42.5907C393.393 42.5907 389.97 43.989 387.1 46.7856C384.23 49.5822 382.795 53.4459 382.795 58.3767V59.039C382.795 63.9698 384.23 67.6863 387.1 70.1885C389.97 72.6907 393.393 73.9418 397.367 73.9418C401.635 73.9418 404.873 72.8747 407.081 70.7405C408.669 69.2548 409.865 67.4125 410.669 65.2135C411.263 63.5871 412.918 62.4852 414.598 62.9052L422.459 64.8704C423.992 65.2539 424.982 66.7683 424.561 68.2922C423.116 73.5184 420.381 77.8302 416.354 81.2277C411.644 85.2018 405.388 87.1888 397.587 87.1888Z" fill="white"/>+<path d="M339.287 85.6489C336.785 85.6489 334.724 84.8394 333.105 83.2203C331.56 81.6012 330.787 79.5406 330.787 77.0384V47.1418C330.787 45.4849 329.444 44.1418 327.787 44.1418H317.56C315.903 44.1418 314.56 42.7986 314.56 41.1418V33.8948C314.56 32.238 315.903 30.8948 317.56 30.8948H327.787C329.444 30.8948 330.787 29.5517 330.787 27.8948V11.375C330.787 9.71815 332.13 8.375 333.787 8.375H341.696C343.353 8.375 344.696 9.71815 344.696 11.375V27.8948C344.696 29.5517 346.04 30.8948 347.696 30.8948H361.456C363.113 30.8948 364.456 32.238 364.456 33.8948V41.1418C364.456 42.7986 363.113 44.1418 361.456 44.1418H347.696C346.04 44.1418 344.696 45.4849 344.696 47.1418V69.0902C344.696 71.298 345.69 72.402 347.677 72.402H359.469C361.126 72.402 362.469 73.7451 362.469 75.402V82.6489C362.469 84.3058 361.126 85.6489 359.469 85.6489H339.287Z" fill="white"/>+<path d="M293.999 25.1501C291.129 25.1501 288.664 24.1566 286.603 22.1696C284.543 20.1089 283.512 17.6067 283.512 14.663C283.512 11.7192 284.543 9.25378 286.603 7.26674C288.664 5.2061 291.129 4.17578 293.999 4.17578C296.87 4.17578 299.335 5.2061 301.396 7.26674C303.456 9.25378 304.487 11.7192 304.487 14.663C304.487 17.6067 303.456 20.1089 301.396 22.1696C299.335 24.1566 296.87 25.1501 293.999 25.1501ZM271.609 85.6446C269.953 85.6446 268.609 84.3014 268.609 82.6446V75.3976C268.609 73.7408 269.953 72.3976 271.609 72.3976H284.155C285.812 72.3976 287.155 71.0545 287.155 69.3976V47.1374C287.155 45.4806 285.812 44.1374 284.155 44.1374H272.934C271.277 44.1374 269.934 42.7943 269.934 41.1374V33.8905C269.934 32.2336 271.277 30.8905 272.934 30.8905H298.064C299.721 30.8905 301.064 32.2336 301.064 33.8905V69.3976C301.064 71.0545 302.408 72.3976 304.064 72.3976H313.961C315.618 72.3976 316.961 73.7408 316.961 75.3976V82.6446C316.961 84.3014 315.618 85.6446 313.961 85.6446H271.609Z" fill="white"/>+<path d="M201.723 85.6467C200.144 85.6467 198.835 84.4219 198.73 82.8458L195.486 34.0917C195.371 32.3603 196.744 30.8926 198.48 30.8926H205.249C206.838 30.8926 208.151 32.1313 208.244 33.7173L210.507 72.3997V72.8989C210.507 73.6305 211.101 74.2236 211.832 74.2236C212.564 74.2236 213.157 73.6305 213.157 72.8989V72.3997L215.73 33.6935C215.835 32.1174 217.144 30.8926 218.724 30.8926H236.071C237.65 30.8926 238.959 32.1174 239.064 33.6936L241.638 72.3997V72.8989C241.638 73.6305 242.231 74.2236 242.962 74.2236C243.694 74.2236 244.287 73.6305 244.287 72.8989V72.3997L246.551 33.7173C246.643 32.1313 247.957 30.8926 249.545 30.8926H256.315C258.05 30.8926 259.424 32.3603 259.308 34.0917L256.065 82.8458C255.96 84.4219 254.651 85.6467 253.071 85.6467H234.598C233.027 85.6467 231.723 84.4355 231.606 82.8695L228.722 44.1395V38.8408C228.722 38.1091 228.129 37.5161 227.397 37.5161C226.666 37.5161 226.073 38.1091 226.073 38.8408V44.1395L223.188 82.8695C223.072 84.4355 221.767 85.6467 220.197 85.6467H201.723Z" fill="white"/>+<path d="M166.846 87.1888C161.179 87.1888 156.58 86.2689 153.047 84.429C149.588 82.5892 146.939 80.3445 145.099 77.6951C143.931 75.944 143.037 74.2251 142.416 72.5382C141.89 71.1068 142.772 69.6091 144.221 69.1343L151.443 66.7686C153.089 66.2293 154.826 67.2216 155.684 68.7267C156.335 69.8692 157.186 70.9453 158.235 71.9548C160.149 73.7211 163.019 74.6042 166.846 74.6042C170.305 74.6042 172.66 74.089 173.911 73.0587C175.236 71.9548 175.898 70.7773 175.898 69.5262C175.898 68.0543 175.125 66.7664 173.58 65.6625C172.034 64.5586 168.943 63.8226 164.307 63.4547C158.199 62.9395 153.305 61.3204 149.625 58.5974C145.945 55.8745 144.105 51.9372 144.105 46.7856V46.1232C144.105 42.5171 145.099 39.463 147.086 36.9608C149.073 34.4586 151.649 32.5819 154.813 31.3308C157.978 30.0061 161.326 29.3438 164.859 29.3438C169.495 29.3438 173.322 30.0797 176.34 31.5516C179.357 32.9499 181.712 34.7161 183.405 36.8504C184.453 38.1171 185.32 39.3839 186.005 40.6507C186.765 42.0551 185.996 43.7218 184.516 44.3193L177.533 47.1369C175.929 47.7841 174.158 46.8853 173.098 45.5186C172.552 44.8154 171.903 44.2074 171.151 43.6946C169.532 42.5171 167.435 41.9284 164.859 41.9284C162.578 41.9284 160.811 42.3699 159.56 43.2531C158.383 44.0626 157.794 45.0929 157.794 46.344C157.794 48.1103 158.714 49.3614 160.554 50.0973C162.394 50.8333 165.742 51.4956 170.599 52.0844C176.192 52.6731 180.755 54.3658 184.288 57.1624C187.82 59.8853 189.587 63.7122 189.587 68.6431V69.3054C189.587 74.6778 187.6 79.0198 183.625 82.3316C179.651 85.5697 174.058 87.1888 166.846 87.1888Z" fill="white"/></svg>diff --git a/assets/agent-switch-wordmark.svg b/assets/agent-switch-wordmark.svgindex 67a41695b..9afb04b5e 100644--- a/assets/agent-switch-wordmark.svg+++ b/assets/agent-switch-wordmark.svg@@ -1,9 +1,13 @@-<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 470.0 96" role="img" aria-label="Agent Switch">- <g fill="none" stroke="#0B0B0C" stroke-width="9" stroke-linecap="round" stroke-linejoin="round">- <path d="M10 28 H28 C42 28 54 68 68 68 H78"/>- <path d="M10 68 H28 C42 68 54 28 68 28 H78"/>- <path d="M68 56 L80 68 L68 80"/>- <path d="M68 16 L80 28 L68 40"/>- </g>- <path fill="#0B0B0C" d="M129.944 52.536 135.152 37.864000000000004H135.264L140.304 52.536ZM130.784 28.008000000000003 115.664 67.992H124.512L127.648 59.08800000000001H142.6L145.624 67.992H154.752L139.8 28.008000000000003Z M170.28 61.160000000000004Q168.432 61.160000000000004 167.2 60.376000000000005Q165.968 59.592000000000006 165.212 58.36Q164.456 57.128 164.148 55.588Q163.84 54.048 163.84 52.480000000000004Q163.84 50.85600000000001 164.204 49.37200000000001Q164.56799999999998 47.888000000000005 165.38 46.74Q166.19199999999998 45.592 167.396 44.92Q168.6 44.248000000000005 170.28 44.248000000000005Q172.23999999999998 44.248000000000005 173.528 44.976000000000006Q174.816 45.70400000000001 175.6 46.93600000000001Q176.384 48.168000000000006 176.71999999999997 49.764Q177.05599999999998 51.36 177.05599999999998 53.152Q177.05599999999998 54.720000000000006 176.63599999999997 56.14800000000001Q176.21599999999998 57.57600000000001 175.37599999999998 58.696000000000005Q174.536 59.816 173.248 60.488Q171.95999999999998 61.160000000000004 170.28 61.160000000000004ZM184.61599999999999 66.144V39.040000000000006H177.05599999999998V42.904H176.944Q175.488 40.384 173.332 39.32Q171.176 38.256 168.32 38.256Q165.296 38.256 162.97199999999998 39.432Q160.648 40.608000000000004 159.07999999999998 42.596000000000004Q157.512 44.584 156.7 47.188Q155.88799999999998 49.792 155.88799999999998 52.592000000000006Q155.88799999999998 55.56 156.58799999999997 58.22Q157.28799999999998 60.88 158.79999999999998 62.86800000000001Q160.31199999999998 64.85600000000001 162.664 66.004Q165.016 67.152 168.26399999999998 67.152Q170.896 67.152 173.276 66.06Q175.656 64.968 176.944 62.672000000000004H177.05599999999998V66.48Q177.112 69.56 175.572 71.576Q174.03199999999998 73.592 170.672 73.592Q168.54399999999998 73.592 166.92 72.724Q165.296 71.85600000000001 164.736 69.616H156.84Q157.00799999999998 72.08 158.212 73.844Q159.416 75.608 161.236 76.72800000000001Q163.05599999999998 77.848 165.26799999999997 78.38Q167.48 78.912 169.608 78.912Q174.59199999999998 78.912 177.56 77.56800000000001Q180.528 76.224 182.096 74.292Q183.664 72.36 184.14 70.12Q184.61599999999999 67.88000000000001 184.61599999999999 66.144Z M209.88799999999998 50.408H196.95199999999997Q197.00799999999998 49.568000000000005 197.31599999999997 48.504000000000005Q197.62399999999997 47.440000000000005 198.37999999999997 46.488Q199.13599999999997 45.536 200.39599999999996 44.892Q201.65599999999998 44.248000000000005 203.55999999999997 44.248000000000005Q206.47199999999998 44.248000000000005 207.89999999999998 45.816Q209.32799999999997 47.384 209.88799999999998 50.408ZM196.95199999999997 55.44800000000001H217.83999999999997Q218.06399999999996 52.08800000000001 217.27999999999997 49.00800000000001Q216.49599999999998 45.928000000000004 214.73199999999997 43.52000000000001Q212.968 41.11200000000001 210.224 39.684000000000005Q207.47999999999996 38.256 203.784 38.256Q200.48 38.256 197.76399999999998 39.432Q195.04799999999997 40.608000000000004 193.08799999999997 42.652Q191.128 44.696000000000005 190.06399999999996 47.49600000000001Q188.99999999999997 50.29600000000001 188.99999999999997 53.544000000000004Q188.99999999999997 56.904 190.03599999999997 59.70400000000001Q191.07199999999997 62.504000000000005 192.97599999999997 64.52000000000001Q194.87999999999997 66.536 197.62399999999997 67.628Q200.36799999999997 68.72 203.784 68.72Q208.712 68.72 212.18399999999997 66.48Q215.65599999999998 64.24000000000001 217.33599999999998 59.032000000000004H210.33599999999998Q209.944 60.376000000000005 208.20799999999997 61.580000000000005Q206.47199999999998 62.784000000000006 204.06399999999996 62.784000000000006Q200.70399999999998 62.784000000000006 198.91199999999998 61.048Q197.11999999999998 59.312000000000005 196.95199999999997 55.44800000000001Z M221.94399999999996 39.040000000000006V67.992H229.89599999999996V52.816Q229.89599999999996 48.392 231.35199999999998 46.46000000000001Q232.80799999999996 44.528000000000006 236.05599999999995 44.528000000000006Q238.91199999999995 44.528000000000006 240.03199999999995 46.292Q241.15199999999996 48.056000000000004 241.15199999999996 51.64V67.992H249.10399999999996V50.184000000000005Q249.10399999999996 47.49600000000001 248.62799999999996 45.284000000000006Q248.15199999999996 43.072 246.97599999999994 41.532000000000004Q245.79999999999995 39.992000000000004 243.75599999999997 39.124Q241.71199999999996 38.256 238.51999999999995 38.256Q235.99999999999997 38.256 233.59199999999998 39.404Q231.18399999999997 40.55200000000001 229.67199999999997 43.072H229.50399999999996V39.040000000000006Z M264.63199999999995 39.040000000000006V30.360000000000007H256.67999999999995V39.040000000000006H251.86399999999998V44.36H256.67999999999995V61.440000000000005Q256.67999999999995 63.624 257.40799999999996 64.968Q258.13599999999997 66.312 259.39599999999996 67.03999999999999Q260.65599999999995 67.768 262.308 68.02000000000001Q263.96 68.272 265.808 68.272Q266.984 68.272 268.216 68.21600000000001Q269.448 68.16000000000001 270.45599999999996 67.992V61.83200000000001Q269.89599999999996 61.944 269.28 62.0Q268.664 62.056000000000004 267.99199999999996 62.056000000000004Q265.97599999999994 62.056000000000004 265.304 61.384Q264.63199999999995 60.712 264.63199999999995 58.696000000000005V44.36H270.45599999999996V39.040000000000006Z M295.464 54.720000000000006H286.952Q286.896 58.416000000000004 288.29600000000005 61.104Q289.696 63.792 292.076 65.528Q294.456 67.26400000000001 297.564 68.07600000000001Q300.672 68.888 303.976 68.888Q308.064 68.888 311.172 67.936Q314.28000000000003 66.98400000000001 316.38 65.27600000000001Q318.48 63.568000000000005 319.544 61.21600000000001Q320.608 58.864000000000004 320.608 56.120000000000005Q320.608 52.760000000000005 319.18 50.604000000000006Q317.752 48.44800000000001 315.79200000000003 47.160000000000004Q313.832 45.872 311.844 45.284000000000006Q309.856 44.696000000000005 308.736 44.47200000000001Q304.984 43.52 302.65999999999997 42.904Q300.336 42.288000000000004 299.02 41.672000000000004Q297.704 41.056000000000004 297.256 40.328Q296.808 39.60000000000001 296.808 38.42400000000001Q296.808 37.136 297.368 36.29600000000001Q297.928 35.456 298.796 34.896Q299.664 34.336000000000006 300.728 34.11200000000001Q301.79200000000003 33.888000000000005 302.856 33.888000000000005Q304.48 33.888000000000005 305.852 34.168000000000006Q307.224 34.448 308.288 35.120000000000005Q309.352 35.792 309.996 36.968Q310.64 38.144000000000005 310.752 39.93600000000001H319.264Q319.264 36.464 317.948 34.028000000000006Q316.632 31.592000000000006 314.392 30.024000000000004Q312.152 28.456000000000003 309.26800000000003 27.756000000000004Q306.384 27.056000000000004 303.248 27.056000000000004Q300.56 27.056000000000004 297.872 27.784000000000002Q295.184 28.512 293.05600000000004 30.024Q290.928 31.536 289.61199999999997 33.804Q288.296 36.072 288.296 39.152Q288.296 41.896 289.332 43.828Q290.368 45.760000000000005 292.048 47.048Q293.728 48.336000000000006 295.856 49.14800000000001Q297.984 49.96000000000001 300.224 50.52Q302.408 51.136 304.536 51.64Q306.664 52.144000000000005 308.344 52.816Q310.024 53.48800000000001 311.06 54.49600000000001Q312.096 55.504000000000005 312.096 57.128Q312.096 58.64 311.312 59.620000000000005Q310.528 60.6 309.352 61.160000000000004Q308.176 61.720000000000006 306.832 61.916000000000004Q305.488 62.112 304.312 62.112Q302.576 62.112 300.952 61.69200000000001Q299.32800000000003 61.272000000000006 298.124 60.404Q296.92 59.536 296.192 58.136Q295.464 56.736000000000004 295.464 54.720000000000006Z M357.472 67.992 366.59999999999997 39.040000000000006H358.424L353.104 58.64H352.99199999999996L348.06399999999996 39.040000000000006H340.33599999999996L335.52 58.696000000000005H335.40799999999996L330.08799999999997 39.040000000000006H321.688L330.87199999999996 67.992H339.104L344.032 48.56H344.144L349.296 67.992Z M377.53599999999994 34.56V28.008000000000003H369.58399999999995V34.56ZM369.58399999999995 39.040000000000006V67.992H377.53599999999994V39.040000000000006Z M393.28799999999995 39.040000000000006V30.360000000000007H385.33599999999996V39.040000000000006H380.52V44.36H385.33599999999996V61.440000000000005Q385.33599999999996 63.624 386.06399999999996 64.968Q386.792 66.312 388.05199999999996 67.03999999999999Q389.31199999999995 67.768 390.96399999999994 68.02000000000001Q392.616 68.272 394.46399999999994 68.272Q395.64 68.272 396.87199999999996 68.21600000000001Q398.104 68.16000000000001 399.11199999999997 67.992V61.83200000000001Q398.55199999999996 61.944 397.936 62.0Q397.32 62.056000000000004 396.64799999999997 62.056000000000004Q394.63199999999995 62.056000000000004 393.9599999999999 61.384Q393.28799999999995 60.712 393.28799999999995 58.696000000000005V44.36H399.11199999999997V39.040000000000006Z M422.032 49.232H429.816Q429.64799999999997 46.432 428.472 44.388000000000005Q427.296 42.34400000000001 425.41999999999996 40.97200000000001Q423.544 39.60000000000001 421.164 38.928000000000004Q418.784 38.256 416.20799999999997 38.256Q412.68 38.256 409.93600000000004 39.432Q407.192 40.608000000000004 405.288 42.708000000000006Q403.384 44.80800000000001 402.404 47.69200000000001Q401.424 50.57600000000001 401.424 53.93600000000001Q401.424 57.184000000000005 402.488 59.900000000000006Q403.552 62.61600000000001 405.456 64.57600000000001Q407.36 66.536 410.076 67.628Q412.792 68.72 416.03999999999996 68.72Q421.808 68.72 425.504 65.696Q429.2 62.672000000000004 429.984 56.904H422.312Q421.92 59.592000000000006 420.38 61.188Q418.84 62.784000000000006 415.984 62.784000000000006Q414.13599999999997 62.784000000000006 412.84799999999996 61.944Q411.56 61.104000000000006 410.804 59.78800000000001Q410.048 58.47200000000001 409.712 56.848000000000006Q409.376 55.224000000000004 409.376 53.656000000000006Q409.376 52.032000000000004 409.712 50.38000000000001Q410.048 48.72800000000001 410.86 47.35600000000001Q411.67199999999997 45.98400000000001 412.96 45.11600000000001Q414.248 44.248000000000005 416.152 44.248000000000005Q421.248 44.248000000000005 422.032 49.232Z M433.864 28.008000000000003V67.992H441.816V52.816Q441.816 48.392 443.27199999999993 46.46000000000001Q444.72799999999995 44.528000000000006 447.976 44.528000000000006Q450.832 44.528000000000006 451.952 46.292Q453.072 48.056000000000004 453.072 51.64V67.992H461.024V50.184000000000005Q461.024 47.49600000000001 460.548 45.284000000000006Q460.072 43.072 458.89599999999996 41.532000000000004Q457.71999999999997 39.992000000000004 455.67599999999993 39.124Q453.63199999999995 38.256 450.44 38.256Q448.2 38.256 445.84799999999996 39.404Q443.496 40.55200000000001 441.984 43.072H441.816V28.008000000000003Z"/>+<svg width="484" height="102" viewBox="0 0 484 102" fill="none" xmlns="http://www.w3.org/2000/svg" role="img" aria-label="Agent Switch">+<path d="M24.5117 65.6279C26.997 65.6279 29.0117 67.6426 29.0117 70.1279V77.1279C29.0117 79.6132 26.997 81.6279 24.5117 81.6279C22.0264 81.6279 20.0117 79.6132 20.0117 77.1279V70.1279C20.0117 67.6426 22.0264 65.6279 24.5117 65.6279Z" fill="black"/>+<path d="M42.5117 65.6279C44.997 65.6279 47.0117 67.6426 47.0117 70.1279V77.1279C47.0117 79.6132 44.997 81.6279 42.5117 81.6279C40.0264 81.6279 38.0117 79.6132 38.0117 77.1279V70.1279C38.0117 67.6426 40.0264 65.6279 42.5117 65.6279Z" fill="black"/>+<path d="M59.3174 20.1826C61.8027 20.1826 63.8174 22.1973 63.8174 24.6826V31.6826C63.8174 34.1679 61.8027 36.1826 59.3174 36.1826C56.8321 36.1826 54.8174 34.1679 54.8174 31.6826V24.6826C54.8174 22.1973 56.8321 20.1826 59.3174 20.1826Z" fill="black"/>+<path d="M77.3174 20.1826C79.8027 20.1826 81.8174 22.1973 81.8174 24.6826V31.6826C81.8174 34.1679 79.8027 36.1826 77.3174 36.1826C74.8321 36.1826 72.8174 34.1679 72.8174 31.6826V24.6826C72.8174 22.1973 74.8321 20.1826 77.3174 20.1826Z" fill="black"/>+<path fill-rule="evenodd" clip-rule="evenodd" d="M89.8232 0C96.4507 0 101.823 5.37258 101.823 12V74.2256C101.823 77.4082 100.559 80.4605 98.3086 82.7109L82.7109 98.3086C80.4605 100.559 77.4082 101.823 74.2256 101.823H12C5.37259 101.823 0 96.4507 0 89.8232V27.5977C0 24.4151 1.26425 21.3627 3.51465 19.1123L19.1123 3.51465C21.3627 1.26425 24.4151 0 27.5977 0H89.8232ZM16 56.4121C13.2386 56.4121 11 58.6507 11 61.4121V84.8232C11 88.1369 13.6863 90.8232 17 90.8232H69.6689C72.8515 90.8232 75.9039 89.559 78.1543 87.3086L87.3086 78.1543C89.559 75.9039 90.8232 72.8515 90.8232 69.6689V61.4121C90.8232 58.6507 88.5847 56.4121 85.8232 56.4121H16ZM32.1543 11C28.9717 11 25.9194 12.2642 23.6689 14.5146L14.5146 23.6689C12.2643 25.9194 11 28.9717 11 32.1543V40.4121C11 43.1735 13.2386 45.4121 16 45.4121H85.8232C88.5847 45.4121 90.8232 43.1735 90.8232 40.4121V17C90.8232 13.6863 88.1369 11 84.8232 11H32.1543Z" fill="black"/>+<path d="M435.015 85.6479C433.358 85.6479 432.015 84.3048 432.015 82.6479V11.374C432.015 9.71717 433.358 8.37402 435.015 8.37402H442.924C444.581 8.37402 445.924 9.71717 445.924 11.374V38.5305C445.924 39.1903 446.459 39.7252 447.119 39.7252C447.599 39.7252 448.03 39.4359 448.233 39.0009C449.619 36.041 451.572 33.7434 454.093 32.1082C456.816 30.2683 460.164 29.3484 464.139 29.3484C469.584 29.3484 474.074 31.1146 477.606 34.6472C481.212 38.1797 483.015 43.6992 483.015 51.2059V82.648C483.015 84.3048 481.672 85.6479 480.015 85.6479H472.106C470.449 85.6479 469.106 84.3048 469.106 82.6479V54.5176C469.106 50.6171 468.149 47.5629 466.236 45.3551C464.396 43.0737 461.71 41.933 458.177 41.933C454.13 41.933 451.076 45.7311 449.015 48.5277C446.954 51.2506 445.924 54.9304 445.924 59.5668V82.648C445.924 84.3048 444.581 85.6479 442.924 85.6479H435.015Z" fill="black"/>+<path d="M397.587 87.1878C392.215 87.1878 387.358 86.1207 383.016 83.9865C378.674 81.7786 375.215 78.6141 372.639 74.4928C370.137 70.298 368.886 65.2567 368.886 59.3692V58.0445C368.886 52.157 370.174 47.079 372.749 42.8105C375.325 38.4685 378.784 35.1567 383.126 32.8753C387.468 30.5203 392.289 29.3428 397.587 29.3428C405.241 29.3428 411.46 31.3298 416.244 35.3039C420.339 38.7059 423.112 43.0247 424.565 48.2603C424.985 49.7754 424.007 51.2836 422.484 51.6765L414.763 53.6691C413.024 54.1178 411.312 52.9263 410.672 51.2486C409.949 49.3549 408.826 47.6461 407.302 46.1223C404.947 43.7672 401.635 42.5897 397.367 42.5897C393.393 42.5897 389.97 43.988 387.1 46.7846C384.23 49.5812 382.795 53.4449 382.795 58.3757V59.038C382.795 63.9688 384.23 67.6854 387.1 70.1876C389.97 72.6898 393.393 73.9409 397.367 73.9409C401.635 73.9409 404.873 72.8738 407.081 70.7395C408.669 69.2538 409.865 67.4115 410.669 65.2125C411.263 63.5862 412.918 62.4842 414.598 62.9042L422.459 64.8694C423.992 65.2529 424.982 66.7674 424.561 68.2913C423.116 73.5174 420.381 77.8292 416.354 81.2267C411.644 85.2008 405.388 87.1878 397.587 87.1878Z" fill="black"/>+<path d="M339.287 85.6479C336.785 85.6479 334.724 84.8384 333.105 83.2193C331.56 81.6003 330.787 79.5396 330.787 77.0374V47.1408C330.787 45.484 329.444 44.1408 327.787 44.1408H317.56C315.903 44.1408 314.56 42.7977 314.56 41.1408V33.8939C314.56 32.237 315.903 30.8939 317.56 30.8939H327.787C329.444 30.8939 330.787 29.5507 330.787 27.8939V11.374C330.787 9.71717 332.13 8.37402 333.787 8.37402H341.696C343.353 8.37402 344.696 9.71717 344.696 11.374V27.8939C344.696 29.5507 346.04 30.8939 347.696 30.8939H361.456C363.113 30.8939 364.456 32.237 364.456 33.8939V41.1408C364.456 42.7977 363.113 44.1408 361.456 44.1408H347.696C346.04 44.1408 344.696 45.484 344.696 47.1408V69.0892C344.696 71.2971 345.69 72.401 347.677 72.401H359.469C361.126 72.401 362.469 73.7441 362.469 75.401V82.6479C362.469 84.3048 361.126 85.6479 359.469 85.6479H339.287Z" fill="black"/>+<path d="M293.999 25.1501C291.129 25.1501 288.664 24.1566 286.603 22.1696C284.543 20.1089 283.512 17.6067 283.512 14.663C283.512 11.7192 284.543 9.25378 286.603 7.26674C288.664 5.2061 291.129 4.17578 293.999 4.17578C296.87 4.17578 299.335 5.2061 301.396 7.26674C303.456 9.25378 304.487 11.7192 304.487 14.663C304.487 17.6067 303.456 20.1089 301.396 22.1696C299.335 24.1566 296.87 25.1501 293.999 25.1501ZM271.609 85.6446C269.953 85.6446 268.609 84.3014 268.609 82.6446V75.3976C268.609 73.7408 269.953 72.3976 271.609 72.3976H284.155C285.812 72.3976 287.155 71.0545 287.155 69.3976V47.1374C287.155 45.4806 285.812 44.1374 284.155 44.1374H272.934C271.277 44.1374 269.934 42.7943 269.934 41.1374V33.8905C269.934 32.2336 271.277 30.8905 272.934 30.8905H298.064C299.721 30.8905 301.064 32.2336 301.064 33.8905V69.3976C301.064 71.0545 302.408 72.3976 304.064 72.3976H313.961C315.618 72.3976 316.961 73.7408 316.961 75.3976V82.6446C316.961 84.3014 315.618 85.6446 313.961 85.6446H271.609Z" fill="black"/>+<path d="M201.723 85.6467C200.144 85.6467 198.835 84.4219 198.73 82.8458L195.486 34.0917C195.371 32.3603 196.744 30.8926 198.48 30.8926H205.249C206.838 30.8926 208.151 32.1313 208.244 33.7173L210.507 72.3997V72.8989C210.507 73.6305 211.101 74.2236 211.832 74.2236C212.564 74.2236 213.157 73.6305 213.157 72.8989V72.3997L215.73 33.6935C215.835 32.1174 217.144 30.8926 218.724 30.8926H236.071C237.65 30.8926 238.959 32.1174 239.064 33.6936L241.638 72.3997V72.8989C241.638 73.6305 242.231 74.2236 242.962 74.2236C243.694 74.2236 244.287 73.6305 244.287 72.8989V72.3997L246.551 33.7173C246.643 32.1313 247.957 30.8926 249.545 30.8926H256.315C258.05 30.8926 259.424 32.3603 259.308 34.0917L256.065 82.8458C255.96 84.4219 254.651 85.6467 253.071 85.6467H234.598C233.027 85.6467 231.723 84.4355 231.606 82.8695L228.722 44.1395V38.8408C228.722 38.1091 228.129 37.5161 227.397 37.5161C226.666 37.5161 226.073 38.1091 226.073 38.8408V44.1395L223.188 82.8695C223.072 84.4355 221.767 85.6467 220.197 85.6467H201.723Z" fill="black"/>+<path d="M166.846 87.1888C161.179 87.1888 156.58 86.2689 153.047 84.429C149.588 82.5892 146.939 80.3445 145.099 77.6951C143.931 75.944 143.037 74.2251 142.416 72.5382C141.89 71.1068 142.772 69.6091 144.221 69.1343L151.443 66.7686C153.089 66.2293 154.826 67.2216 155.684 68.7267C156.335 69.8692 157.186 70.9453 158.235 71.9548C160.149 73.7211 163.019 74.6042 166.846 74.6042C170.305 74.6042 172.66 74.089 173.911 73.0587C175.236 71.9548 175.898 70.7773 175.898 69.5262C175.898 68.0543 175.125 66.7664 173.58 65.6625C172.034 64.5586 168.943 63.8226 164.307 63.4547C158.199 62.9395 153.305 61.3204 149.625 58.5974C145.945 55.8745 144.105 51.9372 144.105 46.7856V46.1232C144.105 42.5171 145.099 39.463 147.086 36.9608C149.073 34.4586 151.649 32.5819 154.813 31.3308C157.978 30.0061 161.326 29.3438 164.859 29.3438C169.495 29.3438 173.322 30.0797 176.34 31.5516C179.357 32.9499 181.712 34.7161 183.405 36.8504C184.453 38.1171 185.32 39.3839 186.005 40.6507C186.765 42.0551 185.996 43.7218 184.516 44.3193L177.533 47.1369C175.929 47.7841 174.158 46.8853 173.098 45.5186C172.552 44.8154 171.903 44.2074 171.151 43.6946C169.532 42.5171 167.435 41.9284 164.859 41.9284C162.578 41.9284 160.811 42.3699 159.56 43.2531C158.383 44.0626 157.794 45.0929 157.794 46.344C157.794 48.1103 158.714 49.3614 160.554 50.0973C162.394 50.8333 165.742 51.4956 170.599 52.0844C176.192 52.6731 180.755 54.3658 184.288 57.1624C187.82 59.8853 189.587 63.7122 189.587 68.6431V69.3054C189.587 74.6778 187.6 79.0198 183.625 82.3316C179.651 85.5697 174.058 87.1888 166.846 87.1888Z" fill="black"/></svg>diff --git a/gateway/README.md b/gateway/README.mdindex 4a4c5a9e0..5f945f07c 100644--- a/gateway/README.md+++ b/gateway/README.md@@ -8,4 +8,15 @@ Built with Node/Vite and served via nginx. Development commands live in therepository-root `justfile`: `just gateway-install` (deps, first time only),`just gateway-dev` (dev server), `just gateway-build` (production build).+## Design system++The UI follows the Hoot design system. `src/theme/hoot.css` is vendored from+the Hoot source and is the single source of truth for token values; the MUI+theme in `src/theme/theme.ts` reads from it. MUI cannot parse the `oklch()`+colours the tokens are authored in, so `npm run gen:tokens` regenerates+`src/theme/hoot-tokens.ts` with sRGB equivalents — re-syncing Hoot upstream is+a copy of `hoot.css` plus that command. The formatting conventions Hoot is+prescriptive about (dates, numbers, empty values, identifiers) live in+`src/theme/hootFormat.ts`.+> **Note:** full documentation is coming as part of the docs effort.diff --git a/gateway/package-lock.json b/gateway/package-lock.jsonindex 9c716cef6..4e8e771ff 100644--- a/gateway/package-lock.json+++ b/gateway/package-lock.json@@ -9,10 +9,10 @@"@codemirror/lang-yaml": "^6.1.3","@emotion/react": "^11.14.0","@emotion/styled": "^11.14.0",- "@fontsource/dm-sans": "^5.2.8",+ "@fontsource/space-grotesk": "^5.3.0","@mui/icons-material": "^7.3.10","@mui/material": "^7.3.10",- "@mui/x-data-grid-pro": "^8.28.2",+ "@mui/x-data-grid": "^8.29.2","@uiw/react-codemirror": "^4.25.10","react": "^19.1.0","react-dom": "^19.1.0",@@ -262,9 +262,9 @@}},"node_modules/@babel/runtime": {- "version": "7.29.2",- "resolved": "https://registry.npmjs.org/@babel/runtime/-/runtime-7.29.2.tgz",- "integrity": "sha512-JiDShH45zKHWyGe4ZNVRrCjBz8Nh9TMmZG1kh4QTK8hCBTWBi8Da+i7s1fJw7/lYpM4ccepSNfqzZ/QvABBi5g==",+ "version": "7.29.7",+ "resolved": "https://registry.npmjs.org/@babel/runtime/-/runtime-7.29.7.tgz",+ "integrity": "sha512-Nq8OhGWiZIZGV6hLHoyAKLLcJihP/xFeBMGJoUrxTX2psI8dCifzLhZISFb+VWS3wFMRDmCGw5R+dOySCqPLhw==","license": "MIT","engines": {"node": ">=6.9.0"@@ -1011,19 +1011,10 @@"node": ">=18"}},- "node_modules/@fingerprintjs/fingerprintjs": {- "version": "3.4.2",- "resolved": "https://registry.npmjs.org/@fingerprintjs/fingerprintjs/-/fingerprintjs-3.4.2.tgz",- "integrity": "sha512-3Ncze6JsJpB7BpYhqIgvBpfvEX1jsEKrad5hQBpyRQxtoAp6hx3+R46zqfsuQG4D9egQZ+xftQ0u4LPFMB7Wmg==",- "license": "MIT",- "dependencies": {- "tslib": "^2.4.1"- }- },- "node_modules/@fontsource/dm-sans": {- "version": "5.2.8",- "resolved": "https://registry.npmjs.org/@fontsource/dm-sans/-/dm-sans-5.2.8.tgz",- "integrity": "sha512-tlovG42m9ESG28WiHpLq3F5umAlm64rv0RkqTbYowRn70e9OlRr5a3yTJhrhrY+k5lftR/OFJjPzOLQzk8EfCA==",+ "node_modules/@fontsource/space-grotesk": {+ "version": "5.3.0",+ "resolved": "https://registry.npmjs.org/@fontsource/space-grotesk/-/space-grotesk-5.3.0.tgz",+ "integrity": "sha512-ksnGizDPXIDuvqcTYTSrmZ+evx9sDlS8rp7+42BQ7wU+spt3twEoXfbJz672C+5CLg6VeUQwRy5RXshWb67LcQ==","license": "OFL-1.1","funding": {"url": "https://github.com/sponsors/ayuhito"@@ -1350,15 +1341,15 @@}},"node_modules/@mui/x-data-grid": {- "version": "8.28.6",- "resolved": "https://registry.npmjs.org/@mui/x-data-grid/-/x-data-grid-8.28.6.tgz",- "integrity": "sha512-CYWhQJH+riKONnZ60tJ+M7TiIjryxbkTVLtH3SphEdf/0tYKk1gEnOOSRTY50HJz50Qi0fmLwfMdw+Q8crdfgg==",+ "version": "8.29.2",+ "resolved": "https://registry.npmjs.org/@mui/x-data-grid/-/x-data-grid-8.29.2.tgz",+ "integrity": "sha512-AnH3yQJZXUB+Dv2CtSx8J1XBU1y4GTbq3MCC+r0CCTtglB032K4UhbyeMXG6FLFqWDn1nKofcBNYVoNv5ELR4A==","license": "MIT","dependencies": {"@babel/runtime": "^7.28.4","@mui/utils": "^7.3.5",- "@mui/x-internals": "8.26.0",- "@mui/x-virtualizer": "0.3.4",+ "@mui/x-internals": "8.29.2",+ "@mui/x-virtualizer": "0.4.1","clsx": "^2.1.1","prop-types": "^15.8.1","use-sync-external-store": "^1.6.0"@@ -1387,44 +1378,10 @@}}},- "node_modules/@mui/x-data-grid-pro": {- "version": "8.28.6",- "resolved": "https://registry.npmjs.org/@mui/x-data-grid-pro/-/x-data-grid-pro-8.28.6.tgz",- "integrity": "sha512-A4FeZVfIXOjupROxt6Ae9vbc1ACj8Y6eG01r41NM7xBl8fsM8Rk07NLQYbGQ8ij3fTsb6ocVXl1GBjKWxM9vhg==",- "license": "SEE LICENSE IN LICENSE",- "dependencies": {- "@babel/runtime": "^7.28.4",- "@mui/utils": "^7.3.5",- "@mui/x-data-grid": "8.28.6",- "@mui/x-internals": "8.26.0",- "@mui/x-license": "8.26.0",- "clsx": "^2.1.1",- "prop-types": "^15.8.1"- },- "engines": {- "node": ">=14.0.0"- },- "peerDependencies": {- "@emotion/react": "^11.9.0",- "@emotion/styled": "^11.8.1",- "@mui/material": "^5.15.14 || ^6.0.0 || ^7.0.0",- "@mui/system": "^5.15.14 || ^6.0.0 || ^7.0.0",- "react": "^17.0.0 || ^18.0.0 || ^19.0.0",- "react-dom": "^17.0.0 || ^18.0.0 || ^19.0.0"- },- "peerDependenciesMeta": {- "@emotion/react": {- "optional": true- },- "@emotion/styled": {- "optional": true- }- }- },"node_modules/@mui/x-internals": {- "version": "8.26.0",- "resolved": "https://registry.npmjs.org/@mui/x-internals/-/x-internals-8.26.0.tgz",- "integrity": "sha512-B9OZau5IQUvIxwpJZhoFJKqRpmWf5r0yMmSXjQuqb5WuqM755EuzWJOenY48denGoENzMLT8hQpA0hRTeU2IPA==",+ "version": "8.29.2",+ "resolved": "https://registry.npmjs.org/@mui/x-internals/-/x-internals-8.29.2.tgz",+ "integrity": "sha512-TLILyHia5NHh3MGErFDh0bXZ4V6iS45hdStofsV5wklF6dpgZjduo65oJB0h81mI5mexNlhHANEVfw0KV6BxBg==","license": "MIT","dependencies": {"@babel/runtime": "^7.28.4",@@ -1443,51 +1400,15 @@"react": "^17.0.0 || ^18.0.0 || ^19.0.0"}},- "node_modules/@mui/x-license": {- "version": "8.26.0",- "resolved": "https://registry.npmjs.org/@mui/x-license/-/x-license-8.26.0.tgz",- "integrity": "sha512-TcYLQXVRSaKjm9zyAxW3bi/+sGR2afsc32oG9ufBBiuNMvRZDghUZj7cKrem4VEKpC4Afsw2du9euv88TVUE1w==",- "license": "SEE LICENSE IN LICENSE",- "dependencies": {- "@babel/runtime": "^7.28.4",- "@mui/utils": "^7.3.5",- "@mui/x-internals": "8.26.0",- "@mui/x-telemetry": "8.20.0"- },- "engines": {- "node": ">=14.0.0"- },- "peerDependencies": {- "react": "^17.0.0 || ^18.0.0 || ^19.0.0"- }- },- "node_modules/@mui/x-telemetry": {- "version": "8.20.0",- "resolved": "https://registry.npmjs.org/@mui/x-telemetry/-/x-telemetry-8.20.0.tgz",- "integrity": "sha512-lmtcx620eryHY4uvVSV8F1IC0h2O6VY4Zifkbtq1LFHz75hUvE3JrERhABlo5qfQhZJEZuMTTxC2NDVCcAUI7Q==",- "hasInstallScript": true,- "license": "SEE LICENSE IN LICENSE",- "dependencies": {- "@babel/runtime": "^7.28.4",- "@fingerprintjs/fingerprintjs": "^3.4.2",- "ci-info": "^4.3.1",- "conf": "^11.0.2",- "is-docker": "^4.0.0",- "node-machine-id": "^1.1.12"- },- "engines": {- "node": ">=14.0.0"- }- },"node_modules/@mui/x-virtualizer": {- "version": "0.3.4",- "resolved": "https://registry.npmjs.org/@mui/x-virtualizer/-/x-virtualizer-0.3.4.tgz",- "integrity": "sha512-b80Wt08bT+KVDunurdd4es76PdYaazoNGpGde3Ki7jGVaSpoljMYSRVlCtifei+4cOUD3NKJhG4e3av/czTekg==",+ "version": "0.4.1",+ "resolved": "https://registry.npmjs.org/@mui/x-virtualizer/-/x-virtualizer-0.4.1.tgz",+ "integrity": "sha512-EM4lCW9MFRHxAgdqBG6nRQXlrhctlHqOjPm95usht15JBXtuWwtuVdA5q8ta+EwXE9zF0BcKyQsGs8R/vWzmFw==","license": "MIT","dependencies": {"@babel/runtime": "^7.28.4","@mui/utils": "^7.3.5",- "@mui/x-internals": "8.26.0"+ "@mui/x-internals": "8.29.2"},"engines": {"node": ">=14.0.0"@@ -2049,49 +1970,6 @@"node": ">=12"}},- "node_modules/ajv": {- "version": "8.20.0",- "resolved": "https://registry.npmjs.org/ajv/-/ajv-8.20.0.tgz",- "integrity": "sha512-Thbli+OlOj+iMPYFBVBfJ3OmCAnaSyNn4M1vz9T6Gka5Jt9ba/HIR56joy65tY6kx/FCF5VXNB819Y7/GUrBGA==",- "license": "MIT",- "dependencies": {- "fast-deep-equal": "^3.1.3",- "fast-uri": "^3.0.1",- "json-schema-traverse": "^1.0.0",- "require-from-string": "^2.0.2"- },- "funding": {- "type": "github",- "url": "https://github.com/sponsors/epoberezkin"- }- },- "node_modules/ajv-formats": {- "version": "2.1.1",- "resolved": "https://registry.npmjs.org/ajv-formats/-/ajv-formats-2.1.1.tgz",- "integrity": "sha512-Wx0Kx52hxE7C18hkMEggYlEifqWZtYaRgouJor+WMdPnQyEK13vgEWyVNup7SoeeoLMsr4kf5h6dOW11I15MUA==",- "license": "MIT",- "dependencies": {- "ajv": "^8.0.0"- },- "peerDependencies": {- "ajv": "^8.0.0"- },- "peerDependenciesMeta": {- "ajv": {- "optional": true- }- }- },- "node_modules/atomically": {- "version": "2.1.1",- "resolved": "https://registry.npmjs.org/atomically/-/atomically-2.1.1.tgz",- "integrity": "sha512-P4w9o2dqARji6P7MHprklbfiArZAWvo07yW7qs3pdljb3BWr12FIB7W+p0zJiuiVsUpRO0iZn1kFFcpPegg0tQ==",- "license": "MIT",- "dependencies": {- "stubborn-fs": "^2.0.0",- "when-exit": "^2.1.4"- }- },"node_modules/babel-plugin-macros": {"version": "3.1.0","resolved": "https://registry.npmjs.org/babel-plugin-macros/-/babel-plugin-macros-3.1.0.tgz",@@ -2206,21 +2084,6 @@"node": ">=12"}},- "node_modules/ci-info": {- "version": "4.4.0",- "resolved": "https://registry.npmjs.org/ci-info/-/ci-info-4.4.0.tgz",- "integrity": "sha512-77PSwercCZU2Fc4sX94eF8k8Pxte6JAwL4/ICZLFjJLqegs7kCuAsqqj/70NQF6TvDpgFjkubQB2FW2ZZddvQg==",- "funding": [- {- "type": "github",- "url": "https://github.com/sponsors/sibiraj-s"- }- ],- "license": "MIT",- "engines": {- "node": ">=8"- }- },"node_modules/clsx": {"version": "2.1.1","resolved": "https://registry.npmjs.org/clsx/-/clsx-2.1.1.tgz",@@ -2245,40 +2108,6 @@"@codemirror/view": "^6.0.0"}},- "node_modules/conf": {- "version": "11.0.2",- "resolved": "https://registry.npmjs.org/conf/-/conf-11.0.2.tgz",- "integrity": "sha512-jjyhlQ0ew/iwmtwsS2RaB6s8DBifcE2GYBEaw2SJDUY/slJJbNfY4GlDVzOs/ff8cM/Wua5CikqXgbFl5eu85A==",- "license": "MIT",- "dependencies": {- "ajv": "^8.12.0",- "ajv-formats": "^2.1.1",- "atomically": "^2.0.0",- "debounce-fn": "^5.1.2",- "dot-prop": "^7.2.0",- "env-paths": "^3.0.0",- "json-schema-typed": "^8.0.1",- "semver": "^7.3.8"- },- "engines": {- "node": ">=14.16"- },- "funding": {- "url": "https://github.com/sponsors/sindresorhus"- }- },- "node_modules/conf/node_modules/semver": {- "version": "7.8.0",- "resolved": "https://registry.npmjs.org/semver/-/semver-7.8.0.tgz",- "integrity": "sha512-AcM7dV/5ul4EekoQ29Agm5vri8JNqRyj39o0qpX6vDF2GZrtutZl5RwgD1XnZjiTAfncsJhMI48QQH3sN87YNA==",- "license": "ISC",- "bin": {- "semver": "bin/semver.js"- },- "engines": {- "node": ">=10"- }- },"node_modules/convert-source-map": {"version": "1.9.0","resolved": "https://registry.npmjs.org/convert-source-map/-/convert-source-map-1.9.0.tgz",@@ -2551,21 +2380,6 @@"node": ">=12"}},- "node_modules/debounce-fn": {- "version": "5.1.2",- "resolved": "https://registry.npmjs.org/debounce-fn/-/debounce-fn-5.1.2.tgz",- "integrity": "sha512-Sr4SdOZ4vw6eQDvPYNxHogvrxmCIld/VenC5JbNrFwMiwd7lY/Z18ZFfo+EWNG4DD9nFlAujWAo/wGuOPHmy5A==",- "license": "MIT",- "dependencies": {- "mimic-fn": "^4.0.0"- },- "engines": {- "node": ">=12"- },- "funding": {- "url": "https://github.com/sponsors/sindresorhus"- }- },"node_modules/debug": {"version": "4.4.3","resolved": "https://registry.npmjs.org/debug/-/debug-4.4.3.tgz",@@ -2593,21 +2407,6 @@"csstype": "^3.0.2"}},- "node_modules/dot-prop": {- "version": "7.2.0",- "resolved": "https://registry.npmjs.org/dot-prop/-/dot-prop-7.2.0.tgz",- "integrity": "sha512-Ol/IPXUARn9CSbkrdV4VJo7uCy1I3VuSiWCaFSg+8BdUOzF9n3jefIpcgAydvUZbTdEBZs2vEiTiS9m61ssiDA==",- "license": "MIT",- "dependencies": {- "type-fest": "^2.11.2"- },- "engines": {- "node": "^12.20.0 || ^14.13.1 || >=16.0.0"- },- "funding": {- "url": "https://github.com/sponsors/sindresorhus"- }- },"node_modules/electron-to-chromium": {"version": "1.5.360","resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.5.360.tgz",@@ -2615,18 +2414,6 @@"dev": true,"license": "ISC"},- "node_modules/env-paths": {- "version": "3.0.0",- "resolved": "https://registry.npmjs.org/env-paths/-/env-paths-3.0.0.tgz",- "integrity": "sha512-dtJUTepzMW3Lm/NPxRf3wP4642UWhjL2sQxc+ym2YMj1m/H2zDNQOlezafzkHwn6sMstjHTwG6iQQsctDW/b1A==",- "license": "MIT",- "engines": {- "node": "^12.20.0 || ^14.13.1 || >=16.0.0"- },- "funding": {- "url": "https://github.com/sponsors/sindresorhus"- }- },"node_modules/error-ex": {"version": "1.3.4","resolved": "https://registry.npmjs.org/error-ex/-/error-ex-1.3.4.tgz",@@ -2709,28 +2496,6 @@"url": "https://github.com/sponsors/sindresorhus"}},- "node_modules/fast-deep-equal": {- "version": "3.1.3",- "resolved": "https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-3.1.3.tgz",- "integrity": "sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q==",- "license": "MIT"- },- "node_modules/fast-uri": {- "version": "3.1.2",- "resolved": "https://registry.npmjs.org/fast-uri/-/fast-uri-3.1.2.tgz",- "integrity": "sha512-rVjf7ArG3LTk+FS6Yw81V1DLuZl1bRbNrev6Tmd/9RaroeeRRJhAt7jg/6YFxbvAQXUCavSoZhPPj6oOx+5KjQ==",- "funding": [- {- "type": "github",- "url": "https://github.com/sponsors/fastify"- },- {- "type": "opencollective",- "url": "https://opencollective.com/fastify"- }- ],- "license": "BSD-3-Clause"- },"node_modules/fdir": {"version": "6.5.0","resolved": "https://registry.npmjs.org/fdir/-/fdir-6.5.0.tgz",@@ -2911,21 +2676,6 @@"url": "https://github.com/sponsors/ljharb"}},- "node_modules/is-docker": {- "version": "4.0.0",- "resolved": "https://registry.npmjs.org/is-docker/-/is-docker-4.0.0.tgz",- "integrity": "sha512-LHE+wROyG/Y/0ZnbktRCoTix2c1RhgWaZraMZ8o1Q7zCh0VSrICJQO5oqIIISrcSBtrXv0o233w1IYwsWCjTzA==",- "license": "MIT",- "bin": {- "is-docker": "cli.js"- },- "engines": {- "node": ">=20"- },- "funding": {- "url": "https://github.com/sponsors/sindresorhus"- }- },"node_modules/jerrypick": {"version": "1.1.2","resolved": "https://registry.npmjs.org/jerrypick/-/jerrypick-1.1.2.tgz",@@ -2959,18 +2709,6 @@"integrity": "sha512-xyFwyhro/JEof6Ghe2iz2NcXoj2sloNsWr/XsERDK/oiPCfaNhl5ONfp+jQdAZRQQ0IJWNzH9zIZF7li91kh2w==","license": "MIT"},- "node_modules/json-schema-traverse": {- "version": "1.0.0",- "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-1.0.0.tgz",- "integrity": "sha512-NM8/P9n3XjXhIZn1lLhkFaACTOURQXjWhV4BA/RnOv8xvgqtqpAX9IO4mRQxSx1Rlo4tqzeqb0sOlruaOy3dug==",- "license": "MIT"- },- "node_modules/json-schema-typed": {- "version": "8.0.2",- "resolved": "https://registry.npmjs.org/json-schema-typed/-/json-schema-typed-8.0.2.tgz",- "integrity": "sha512-fQhoXdcvc3V28x7C7BMs4P5+kNlgUURe2jmUT1T//oBRMDrqy1QPelJimwZGo7Hg9VPV3EQV5Bnq4hbFy2vetA==",- "license": "BSD-2-Clause"- },"node_modules/json5": {"version": "2.2.3","resolved": "https://registry.npmjs.org/json5/-/json5-2.2.3.tgz",@@ -3030,18 +2768,6 @@"yallist": "^3.0.2"}},- "node_modules/mimic-fn": {- "version": "4.0.0",- "resolved": "https://registry.npmjs.org/mimic-fn/-/mimic-fn-4.0.0.tgz",- "integrity": "sha512-vqiC06CuhBTUdZH+RYl8sFrL096vA45Ok5ISO6sE/Mr1jRbGH4Csnhi8f3wKVl7x8mO4Au7Ir9D3Oyv1VYMFJw==",- "license": "MIT",- "engines": {- "node": ">=12"- },- "funding": {- "url": "https://github.com/sponsors/sindresorhus"- }- },"node_modules/ms": {"version": "2.1.3","resolved": "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz",@@ -3067,12 +2793,6 @@"node": "^10 || ^12 || ^13.7 || ^14 || >=15.0.1"}},- "node_modules/node-machine-id": {- "version": "1.1.12",- "resolved": "https://registry.npmjs.org/node-machine-id/-/node-machine-id-1.1.12.tgz",- "integrity": "sha512-QNABxbrPa3qEIfrE6GOJ7BYIuignnJw7iQ2YPbc3Nla1HzRJjXzZOiikfF8m7eAMfichLt3M4VgLOetqgDmgGQ==",- "license": "MIT"- },"node_modules/node-releases": {"version": "2.0.45","resolved": "https://registry.npmjs.org/node-releases/-/node-releases-2.0.45.tgz",@@ -3319,15 +3039,6 @@"react-dom": ">=16.6.0"}},- "node_modules/require-from-string": {- "version": "2.0.2",- "resolved": "https://registry.npmjs.org/require-from-string/-/require-from-string-2.0.2.tgz",- "integrity": "sha512-Xf0nWe6RseziFMu+Ap9biiUbmplq6S9/p+7w7YXP/JBHhrUDDUhwa+vANyubuqfZWTveU//DYVGsDG7RKL/vEw==",- "license": "MIT",- "engines": {- "node": ">=0.10.0"- }- },"node_modules/reselect": {"version": "5.2.0","resolved": "https://registry.npmjs.org/reselect/-/reselect-5.2.0.tgz",@@ -3450,21 +3161,6 @@"node": ">=0.10.0"}},- "node_modules/stubborn-fs": {- "version": "2.0.0",- "resolved": "https://registry.npmjs.org/stubborn-fs/-/stubborn-fs-2.0.0.tgz",- "integrity": "sha512-Y0AvSwDw8y+nlSNFXMm2g6L51rBGdAQT20J3YSOqxC53Lo3bjWRtr2BKcfYoAf352WYpsZSTURrA0tqhfgudPA==",- "license": "MIT",- "dependencies": {- "stubborn-utils": "^1.0.1"- }- },- "node_modules/stubborn-utils": {- "version": "1.0.2",- "resolved": "https://registry.npmjs.org/stubborn-utils/-/stubborn-utils-1.0.2.tgz",- "integrity": "sha512-zOh9jPYI+xrNOyisSelgym4tolKTJCQd5GBhK0+0xJvcYDcwlOoxF/rnFKQ2KRZknXSG9jWAp66fwP6AxN9STg==",- "license": "MIT"- },"node_modules/style-mod": {"version": "4.1.3","resolved": "https://registry.npmjs.org/style-mod/-/style-mod-4.1.3.tgz",@@ -3512,24 +3208,6 @@"url": "https://github.com/sponsors/SuperchupuDev"}},- "node_modules/tslib": {- "version": "2.8.1",- "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.8.1.tgz",- "integrity": "sha512-oJFu94HQb+KVduSUQL7wnpmqnfmLsOA/nAh6b6EH0wCEoK0/mPeXU6c3wKDV83MkOuHPRHtSXKKU99IBazS/2w==",- "license": "0BSD"- },- "node_modules/type-fest": {- "version": "2.19.0",- "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-2.19.0.tgz",- "integrity": "sha512-RAH822pAdBgcNMAfWnCBU3CFZcfZ/i1eZjwFU/dsLKumyuuP3niueg2UAukXYF0E2AAoc82ZSSf9J0WQBinzHA==",- "license": "(MIT OR CC0-1.0)",- "engines": {- "node": ">=12.20"- },- "funding": {- "url": "https://github.com/sponsors/sindresorhus"- }- },"node_modules/typescript": {"version": "5.8.3","resolved": "https://registry.npmjs.org/typescript/-/typescript-5.8.3.tgz",@@ -3665,12 +3343,6 @@"integrity": "sha512-dpojBhNsCNN7T82Tm7k26A6G9ML3NkhDsnw9n/eoxSRlVBB4CEtIQ/KTCLI2Fwf3ataSXRhYFkQi3SlnFwPvPQ==","license": "MIT"},- "node_modules/when-exit": {- "version": "2.1.5",- "resolved": "https://registry.npmjs.org/when-exit/-/when-exit-2.1.5.tgz",- "integrity": "sha512-VGkKJ564kzt6Ms1dbgPP/yuIoQCrsFAnRbptpC5wOEsDaNsbCB2bnfnaA8i/vRs5tjUSEOtIuvl9/MyVsvQZCg==",- "license": "MIT"- },"node_modules/yallist": {"version": "3.1.1","resolved": "https://registry.npmjs.org/yallist/-/yallist-3.1.1.tgz",diff --git a/gateway/package.json b/gateway/package.jsonindex f744ab340..b759a6f67 100644--- a/gateway/package.json+++ b/gateway/package.json@@ -5,16 +5,17 @@"scripts": {"dev": "vite","build": "tsc -b && vite build",- "preview": "vite preview"+ "preview": "vite preview",+ "gen:tokens": "node scripts/gen-hoot-tokens.mjs"},"dependencies": {"@codemirror/lang-yaml": "^6.1.3","@emotion/react": "^11.14.0","@emotion/styled": "^11.14.0",- "@fontsource/dm-sans": "^5.2.8",+ "@fontsource/space-grotesk": "^5.3.0","@mui/icons-material": "^7.3.10","@mui/material": "^7.3.10",- "@mui/x-data-grid-pro": "^8.28.2",+ "@mui/x-data-grid": "^8.29.2","@uiw/react-codemirror": "^4.25.10","react": "^19.1.0","react-dom": "^19.1.0",diff --git a/gateway/public/switch_logo_dark.svg b/gateway/public/switch_logo_dark.svgnew file mode 100644index 000000000..57dc5a187--- /dev/null+++ b/gateway/public/switch_logo_dark.svg@@ -0,0 +1,7 @@+<svg width="102" height="102" viewBox="0 0 102 102" fill="none" xmlns="http://www.w3.org/2000/svg">+<path d="M24.5117 65.6279C26.997 65.6279 29.0117 67.6426 29.0117 70.1279V77.1279C29.0117 79.6132 26.997 81.6279 24.5117 81.6279C22.0264 81.6279 20.0117 79.6132 20.0117 77.1279V70.1279C20.0117 67.6426 22.0264 65.6279 24.5117 65.6279Z" fill="black"/>+<path d="M42.5117 65.6279C44.997 65.6279 47.0117 67.6426 47.0117 70.1279V77.1279C47.0117 79.6132 44.997 81.6279 42.5117 81.6279C40.0264 81.6279 38.0117 79.6132 38.0117 77.1279V70.1279C38.0117 67.6426 40.0264 65.6279 42.5117 65.6279Z" fill="black"/>+<path d="M59.3174 20.1826C61.8027 20.1826 63.8174 22.1973 63.8174 24.6826V31.6826C63.8174 34.1679 61.8027 36.1826 59.3174 36.1826C56.8321 36.1826 54.8174 34.1679 54.8174 31.6826V24.6826C54.8174 22.1973 56.8321 20.1826 59.3174 20.1826Z" fill="black"/>+<path d="M77.3174 20.1826C79.8027 20.1826 81.8174 22.1973 81.8174 24.6826V31.6826C81.8174 34.1679 79.8027 36.1826 77.3174 36.1826C74.8321 36.1826 72.8174 34.1679 72.8174 31.6826V24.6826C72.8174 22.1973 74.8321 20.1826 77.3174 20.1826Z" fill="black"/>+<path fill-rule="evenodd" clip-rule="evenodd" d="M89.8232 0C96.4507 0 101.823 5.37258 101.823 12V74.2256C101.823 77.4082 100.559 80.4605 98.3086 82.7109L82.7109 98.3086C80.4605 100.559 77.4082 101.823 74.2256 101.823H12C5.37259 101.823 0 96.4507 0 89.8232V27.5977C0 24.4151 1.26425 21.3627 3.51465 19.1123L19.1123 3.51465C21.3627 1.26425 24.4151 0 27.5977 0H89.8232ZM16 56.4121C13.2386 56.4121 11 58.6507 11 61.4121V84.8232C11 88.1369 13.6863 90.8232 17 90.8232H69.6689C72.8515 90.8232 75.9039 89.559 78.1543 87.3086L87.3086 78.1543C89.559 75.9039 90.8232 72.8515 90.8232 69.6689V61.4121C90.8232 58.6507 88.5847 56.4121 85.8232 56.4121H16ZM32.1543 11C28.9717 11 25.9194 12.2642 23.6689 14.5146L14.5146 23.6689C12.2643 25.9194 11 28.9717 11 32.1543V40.4121C11 43.1735 13.2386 45.4121 16 45.4121H85.8232C88.5847 45.4121 90.8232 43.1735 90.8232 40.4121V17C90.8232 13.6863 88.1369 11 84.8232 11H32.1543Z" fill="black"/>+</svg>diff --git a/gateway/public/switch_logo_light.svg b/gateway/public/switch_logo_light.svgnew file mode 100644index 000000000..04740a583--- /dev/null+++ b/gateway/public/switch_logo_light.svg@@ -0,0 +1,7 @@+<svg width="102" height="102" viewBox="0 0 102 102" fill="none" xmlns="http://www.w3.org/2000/svg">+<path d="M24.5117 65.6279C26.997 65.6279 29.0117 67.6426 29.0117 70.1279V77.1279C29.0117 79.6132 26.997 81.6279 24.5117 81.6279C22.0264 81.6279 20.0117 79.6132 20.0117 77.1279V70.1279C20.0117 67.6426 22.0264 65.6279 24.5117 65.6279Z" fill="white"/>+<path d="M42.5117 65.6279C44.997 65.6279 47.0117 67.6426 47.0117 70.1279V77.1279C47.0117 79.6132 44.997 81.6279 42.5117 81.6279C40.0264 81.6279 38.0117 79.6132 38.0117 77.1279V70.1279C38.0117 67.6426 40.0264 65.6279 42.5117 65.6279Z" fill="white"/>+<path d="M59.3174 20.1826C61.8027 20.1826 63.8174 22.1973 63.8174 24.6826V31.6826C63.8174 34.1679 61.8027 36.1826 59.3174 36.1826C56.8321 36.1826 54.8174 34.1679 54.8174 31.6826V24.6826C54.8174 22.1973 56.8321 20.1826 59.3174 20.1826Z" fill="white"/>+<path d="M77.3174 20.1826C79.8027 20.1826 81.8174 22.1973 81.8174 24.6826V31.6826C81.8174 34.1679 79.8027 36.1826 77.3174 36.1826C74.8321 36.1826 72.8174 34.1679 72.8174 31.6826V24.6826C72.8174 22.1973 74.8321 20.1826 77.3174 20.1826Z" fill="white"/>+<path fill-rule="evenodd" clip-rule="evenodd" d="M89.8232 0C96.4507 0 101.823 5.37258 101.823 12V74.2256C101.823 77.4082 100.559 80.4605 98.3086 82.7109L82.7109 98.3086C80.4605 100.559 77.4082 101.823 74.2256 101.823H12C5.37259 101.823 0 96.4507 0 89.8232V27.5977C0 24.4151 1.26425 21.3627 3.51465 19.1123L19.1123 3.51465C21.3627 1.26425 24.4151 0 27.5977 0H89.8232ZM16 56.4121C13.2386 56.4121 11 58.6507 11 61.4121V84.8232C11 88.1369 13.6863 90.8232 17 90.8232H69.6689C72.8515 90.8232 75.9039 89.559 78.1543 87.3086L87.3086 78.1543C89.559 75.9039 90.8232 72.8515 90.8232 69.6689V61.4121C90.8232 58.6507 88.5847 56.4121 85.8232 56.4121H16ZM32.1543 11C28.9717 11 25.9194 12.2642 23.6689 14.5146L14.5146 23.6689C12.2643 25.9194 11 28.9717 11 32.1543V40.4121C11 43.1735 13.2386 45.4121 16 45.4121H85.8232C88.5847 45.4121 90.8232 43.1735 90.8232 40.4121V17C90.8232 13.6863 88.1369 11 84.8232 11H32.1543Z" fill="white"/>+</svg>diff --git a/gateway/scripts/gen-hoot-tokens.mjs b/gateway/scripts/gen-hoot-tokens.mjsnew file mode 100644index 000000000..a41dfb73b--- /dev/null+++ b/gateway/scripts/gen-hoot-tokens.mjs@@ -0,0 +1,112 @@+/* Generates `src/theme/hoot-tokens.ts` from `src/theme/hoot.css`.+ *+ * `hoot.css` is vendored verbatim from the Hoot design system and is the single+ * source of truth for token values. Its colours are authored in oklch, which+ * MUI's colour manipulators (alpha/lighten/darken/contrast) cannot parse, so+ * the palette needs sRGB. This script does that conversion once, at build time,+ * rather than duplicating the values by hand.+ *+ * Run: npm run gen:tokens+ */+import { readFileSync, writeFileSync } from "node:fs";+import { dirname, resolve } from "node:path";+import { fileURLToPath } from "node:url";++const HERE = dirname(fileURLToPath(import.meta.url));+const CSS_PATH = resolve(HERE, "../src/theme/hoot.css");+const OUT_PATH = resolve(HERE, "../src/theme/hoot-tokens.ts");++/** oklch(L C H [/ A]) -> "#rrggbb" or "rgba(r, g, b, a)". Throws on anything else. */+function oklchToSrgb(raw) {+ const match = /^oklch\(\s*([^\s)]+)\s+([^\s)]+)\s+([^\s/)]+)\s*(?:\/\s*([^\s)]+)\s*)?\)$/.exec(raw);+ if (!match) throw new Error(`not an oklch() colour: ${raw}`);++ const num = (token) => {+ const value = token.endsWith("%") ? Number(token.slice(0, -1)) / 100 : Number(token);+ if (!Number.isFinite(value)) throw new Error(`unparseable component "${token}" in ${raw}`);+ return value;+ };++ const L = num(match[1]);+ const C = num(match[2]);+ const hDeg = num(match[3]);+ const alpha = match[4] === undefined ? 1 : num(match[4]);++ const h = (hDeg * Math.PI) / 180;+ const a = C * Math.cos(h);+ const b = C * Math.sin(h);++ const l_ = L + 0.3963377774 * a + 0.2158037573 * b;+ const m_ = L - 0.1055613458 * a - 0.0638541728 * b;+ const s_ = L - 0.0894841775 * a - 1.291485548 * b;+ const l = l_ ** 3;+ const m = m_ ** 3;+ const s = s_ ** 3;++ const linear = [+ 4.0767416621 * l - 3.3077115913 * m + 0.2309699292 * s,+ -1.2684380046 * l + 2.6097574011 * m - 0.3413193965 * s,+ -0.0041960863 * l - 0.7034186147 * m + 1.707614701 * s,+ ];++ const channels = linear.map((c) => {+ const encoded = c <= 0.0031308 ? 12.92 * c : 1.055 * Math.abs(c) ** (1 / 2.4) - 0.055;+ return Math.max(0, Math.min(255, Math.round(encoded * 255)));+ });++ if (alpha < 1) return `rgba(${channels[0]}, ${channels[1]}, ${channels[2]}, ${Number(alpha.toFixed(4))})`;+ return `#${channels.map((c) => c.toString(16).padStart(2, "0")).join("")}`;+}++/** Pull `--hoot-*: value;` declarations out of the block introduced by `selector`. */+function readBlock(css, selector) {+ const start = css.indexOf(selector);+ if (start === -1) throw new Error(`selector not found in hoot.css: ${selector}`);+ const open = css.indexOf("{", start);+ const close = css.indexOf("}", open);+ if (open === -1 || close === -1) throw new Error(`malformed block for selector: ${selector}`);++ const tokens = {};+ for (const line of css.slice(open + 1, close).split("\n")) {+ const decl = /^\s*--hoot-([a-z0-9-]+)\s*:\s*([^;]+);/.exec(line);+ if (decl) tokens[decl[1]] = decl[2].trim();+ }+ if (Object.keys(tokens).length === 0) throw new Error(`no --hoot-* tokens in block: ${selector}`);+ return tokens;+}++/** camelCase a kebab token name so it reads naturally in TS. */+const camel = (name) => name.replace(/-([a-z0-9])/g, (_, c) => c.toUpperCase());++function emit(tokens) {+ const lines = Object.entries(tokens)+ .filter(([, value]) => value.startsWith("oklch("))+ .map(([name, value]) => ` ${camel(name)}: "${oklchToSrgb(value)}",`);+ return lines.join("\n");+}++const css = readFileSync(CSS_PATH, "utf8");+const light = readBlock(css, '[data-mui-color-scheme="light"]');+const dark = readBlock(css, '[data-mui-color-scheme="dark"]');++const out = `/* GENERATED by scripts/gen-hoot-tokens.mjs from src/theme/hoot.css — do not edit.+ hoot.css is the source of truth; these are its oklch colours converted to sRGB+ because MUI's palette and colour manipulators cannot parse oklch.+ Regenerate with: npm run gen:tokens */++export const HOOT_LIGHT = {+${emit(light)}+} as const;++export const HOOT_DARK = {+${emit(dark)}+} as const;++export type HootColorToken = keyof typeof HOOT_LIGHT;++/** Reference a Hoot token as a live CSS variable (follows the active scheme). */+export const hootVar = (token: string) => \`var(--hoot-\${token})\`;+`;++writeFileSync(OUT_PATH, out);+console.log(`wrote ${OUT_PATH}`);diff --git a/gateway/src/components/DataTable.tsx b/gateway/src/components/DataTable.tsxindex 2a5c3cf1e..b90f7acb6 100644--- a/gateway/src/components/DataTable.tsx+++ b/gateway/src/components/DataTable.tsx@@ -1,9 +1,10 @@import {- DataGridPro,+ DataGrid,type GridColDef,type GridRowId,type GridRowParams,-} from "@mui/x-data-grid-pro";+ type GridRowSelectionModel,+} from "@mui/x-data-grid";import { Box, type SxProps, type Theme } from "@mui/material";interface DataTableProps<T extends { id: string | number }> {@@ -21,6 +22,50 @@ interface DataTableProps<T extends { id: string | number }> {sx?: SxProps<Theme>;}+/** Hoot's grid treatment: a bordered 16px-radius surface with a cream header+ * band, generous 52px rows, and tabular figures so numeric columns line up.+ * Ported from the Hoot design system's DataTable. */+const HOOT_GRID_SX: SxProps<Theme> = {+ border: "1px solid var(--hoot-border)",+ borderRadius: "16px",+ "--DataGrid-rowBorderColor": "var(--hoot-border)",+ "& .MuiDataGrid-columnHeaders": {+ "--DataGrid-containerBackground": "var(--hoot-cream)",+ },+ "& .MuiDataGrid-columnHeader": {+ fontSize: "0.875rem",+ fontWeight: 500,+ letterSpacing: "-0.01em",+ },+ "& .MuiDataGrid-columnHeaderTitle": { fontWeight: 500, opacity: 0.7 },+ "& .MuiDataGrid-row": { minHeight: "52px !important" },+ "& .MuiDataGrid-row:hover": { backgroundColor: "var(--hoot-accent)" },+ "& .MuiDataGrid-row.Mui-selected": {+ backgroundColor: "var(--hoot-muted)",+ "&:hover": { backgroundColor: "var(--hoot-muted)" },+ },+ "& .MuiDataGrid-cell": {+ minHeight: 52,+ fontSize: "0.9375rem",+ fontVariantNumeric: "tabular-nums",+ borderTopColor: "var(--hoot-border)",+ },+ "& .MuiDataGrid-footerContainer": {+ backgroundColor: "var(--hoot-cream)",+ borderTopColor: "var(--hoot-border)",+ borderBottomLeftRadius: "16px",+ borderBottomRightRadius: "16px",+ },+ "& .MuiDataGrid-columnSeparator": { display: "none" },+ "& .MuiDataGrid-cell:focus, & .MuiDataGrid-cell:focus-within, & .MuiDataGrid-columnHeader:focus, & .MuiDataGrid-columnHeader:focus-within":+ { outline: "2px solid var(--hoot-ring)", outlineOffset: "-2px" },+ "& .MuiDataGrid-overlay": {+ fontSize: "0.875rem",+ color: "var(--hoot-muted-foreground)",+ backgroundColor: "transparent",+ },+};+export default function DataTable<T extends { id: string | number }>({rows,columns,@@ -34,7 +79,7 @@ export default function DataTable<T extends { id: string | number }>({}: DataTableProps<T>) {const extraSx = Array.isArray(sx) ? sx : sx ? [sx] : [];const grid = (- <DataGridPro+ <DataGridrows={rows}columns={columns}initialState={{@@ -45,19 +90,12 @@ export default function DataTable<T extends { id: string | number }>({checkboxSelection={checkboxSelection}onRowSelectionModelChange={onRowSelectionModelChange- ? (model) => onRowSelectionModelChange([...model.ids])+ ? (model: GridRowSelectionModel) => onRowSelectionModelChange([...model.ids]): undefined}onRowClick={onRowClick}disableRowSelectionOnClick- sx={[- {- border: "none",- height: fillHeight ? "100%" : height,- "& .MuiDataGrid-cell": { minHeight: 48 },- },- ...extraSx,- ]}+ sx={[HOOT_GRID_SX, { height: fillHeight ? "100%" : height }, ...extraSx]}/>);diff --git a/gateway/src/data/visibility.ts b/gateway/src/data/visibility.tsindex e5a79801d..131296d55 100644--- a/gateway/src/data/visibility.ts+++ b/gateway/src/data/visibility.ts@@ -33,7 +33,9 @@ export interface AccessLevelMeta {label: string; // compact chip labeloptionLabel: string; // dropdown option labelhelper: string; // form helper text- color: "default" | "info" | "success";+ /** Access level is a setting, not a status — nothing here succeeded or+ * failed, so the chips stay neutral and the label carries the meaning. */+ color: "default";}export const ACCESS_LEVELS: AccessLevel[] = ["private", "read_only", "public"];@@ -49,12 +51,12 @@ export const ACCESS_META: Record<AccessLevel, AccessLevelMeta> = {label: "Read-only",optionLabel: "Public — read only",helper: "Anyone can see and attach it; only you and admins can change it.",- color: "info",+ color: "default",},public: {label: "Public",optionLabel: "Public — read & write",helper: "Anyone can see, attach, and change it.",- color: "success",+ color: "default",},};diff --git a/gateway/src/layout/NavDrawer.tsx b/gateway/src/layout/NavDrawer.tsxdeleted file mode 100644index 37e662ec7..000000000--- a/gateway/src/layout/NavDrawer.tsx+++ /dev/null@@ -1,208 +0,0 @@-import AccountTreeOutlined from "@mui/icons-material/AccountTreeOutlined";-import ChatBubbleOutlineOutlined from "@mui/icons-material/ChatBubbleOutlineOutlined";-import ChevronLeft from "@mui/icons-material/ChevronLeft";-import ChevronRight from "@mui/icons-material/ChevronRight";-import FolderOutlined from "@mui/icons-material/FolderOutlined";-import MeetingRoomOutlined from "@mui/icons-material/MeetingRoomOutlined";-import PeopleOutlined from "@mui/icons-material/PeopleOutlined";-import SettingsOutlined from "@mui/icons-material/SettingsOutlined";-import SmartToyOutlined from "@mui/icons-material/SmartToyOutlined";-import VpnKeyOutlined from "@mui/icons-material/VpnKeyOutlined";-import {- Box,- Button,- Divider,- Drawer,- IconButton,- ListItemIcon,- ListItemText,- MenuItem,- MenuList,- Stack,- Toolbar,- Tooltip,- Typography,-} from "@mui/material";-import { memo, useState } from "react";-import { NavLink, useLocation } from "react-router";-import type { ComponentType } from "react";-import { useAuth } from "../data/AuthContext";--interface NavItem {- label: string;- path: string;- icon: ComponentType;-}--const NAV_ITEMS: NavItem[] = [- { label: "Ecosystem", path: "/ecosystem", icon: AccountTreeOutlined },- { label: "Rooms", path: "/rooms", icon: MeetingRoomOutlined },- { label: "Resources", path: "/resources", icon: FolderOutlined },- { label: "Agents", path: "/agents", icon: SmartToyOutlined },- { label: "Messaging Apps", path: "/collaborations", icon: ChatBubbleOutlineOutlined },- { label: "API Keys", path: "/registration-keys", icon: VpnKeyOutlined },-];--const ADMIN_ITEMS: NavItem[] = [- { label: "Users", path: "/users", icon: PeopleOutlined },-];--const TRANSITION_CURVE = "0.2s cubic-bezier(0, 0, 0.12, 0.99)";--export default memo(function NavDrawer() {- const [open, setOpen] = useState(true);- const location = useLocation();- const { user, logout } = useAuth();-- return (- <Drawer- variant="permanent"- anchor="left"- slotProps={{- paper: {- variant: "elevation",- sx: { backgroundColor: "var(--mui-palette-background-nav)" },- },- }}- sx={{- transition: `width ${TRANSITION_CURVE}`,- width: open ? "var(--nav-drawer-width)" : "var(--nav-closed-drawer-width)",- "& .MuiPaper-root": {- transition: `width ${TRANSITION_CURVE}`,- width: open ? "var(--nav-drawer-width)" : "var(--nav-closed-drawer-width)",- overflowX: "hidden",- },- }}- >- <Toolbar- className="sticky-toolbar logo-bar"- sx={{- px: open ? "1rem !important" : "0 !important",- justifyContent: open ? "space-between" : "center",- minHeight: open ? undefined : "5rem !important",- flexDirection: open ? "row" : "column",- alignItems: "center",- boxSizing: "border-box",- width: open ? "var(--nav-drawer-width)" : "var(--nav-closed-drawer-width)",- }}- >- {open && (- <Typography variant="h6" sx={{ fontWeight: 700, color: "primary.main" }}>- Switch Gateway- </Typography>- )}- <Tooltip title={open ? "Collapse" : "Expand"} placement="right">- <IconButton onClick={() => setOpen(!open)}>- {open ? <ChevronLeft /> : <ChevronRight />}- </IconButton>- </Tooltip>- </Toolbar>-- <MenuList sx={{ px: 0.75, py: 1, display: "flex", flexDirection: "column", gap: 0.5 }}>- {NAV_ITEMS.map((item) => {- const active = location.pathname.startsWith(item.path);- return (- <MenuItem- key={item.path}- component={NavLink}- to={item.path}- selected={active}- sx={{- borderRadius: 1,- mx: 0.5,- px: open ? 1.5 : 0.75,- justifyContent: open ? "flex-start" : "center",- "&.Mui-selected": {- backgroundColor: "var(--mui-palette-action-selected)",- },- }}- >- <ListItemIcon sx={{ minWidth: open ? 36 : "auto", color: "inherit" }}>- <item.icon />- </ListItemIcon>- {open && <ListItemText primary={item.label} />}- </MenuItem>- );- })}- </MenuList>-- {user?.role === "admin" && (- <>- <Divider sx={{ mx: 1.5, my: 0.5 }} />- {open && (- <Typography- variant="caption"- sx={{ px: 2, py: 0.5, color: "text.secondary", display: "flex", alignItems: "center", gap: 0.5 }}- >- <SettingsOutlined sx={{ fontSize: 14 }} />- Admin- </Typography>- )}- <MenuList sx={{ px: 0.75, py: 0, display: "flex", flexDirection: "column", gap: 0.5 }}>- {ADMIN_ITEMS.map((item) => {- const active = location.pathname.startsWith(item.path);- return (- <MenuItem- key={item.path}- component={NavLink}- to={item.path}- selected={active}- sx={{- borderRadius: 1,- mx: 0.5,- px: open ? 1.5 : 0.75,- justifyContent: open ? "flex-start" : "center",- "&.Mui-selected": {- backgroundColor: "var(--mui-palette-action-selected)",- },- }}- >- <ListItemIcon sx={{ minWidth: open ? 36 : "auto", color: "inherit" }}>- <item.icon />- </ListItemIcon>- {open && <ListItemText primary={item.label} />}- </MenuItem>- );- })}- </MenuList>- </>- )}-- <Divider sx={{ flexGrow: 1 }} />- {open && (- <Box sx={{ p: 2 }}>- <Stack spacing={1}>- <Stack direction="row" alignItems="center" gap={1}>- <Box- sx={{- width: 8,- height: 8,- borderRadius: "50%",- backgroundColor: "#008E5B",- }}- />- <Typography variant="body2" sx={{ color: "text.secondary" }}>- System Healthy- </Typography>- </Stack>- <Divider />- <Typography- variant="body2"- sx={{ color: "text.secondary" }}- noWrap- >- {user?.email}- </Typography>- <Button- size="small"- onClick={logout}- sx={{ justifyContent: "flex-start" }}- >- Sign out- </Button>- </Stack>- </Box>- )}- </Drawer>- );-});diff --git a/gateway/src/layout/NavRail.tsx b/gateway/src/layout/NavRail.tsxnew file mode 100644index 000000000..49cb89602--- /dev/null+++ b/gateway/src/layout/NavRail.tsx@@ -0,0 +1,219 @@+import AccountTreeOutlined from "@mui/icons-material/AccountTreeOutlined";+import ChatBubbleOutlineOutlined from "@mui/icons-material/ChatBubbleOutlineOutlined";+import FolderOutlined from "@mui/icons-material/FolderOutlined";+import LogoutOutlined from "@mui/icons-material/LogoutOutlined";+import MeetingRoomOutlined from "@mui/icons-material/MeetingRoomOutlined";+import PeopleOutlined from "@mui/icons-material/PeopleOutlined";+import SmartToyOutlined from "@mui/icons-material/SmartToyOutlined";+import VpnKeyOutlined from "@mui/icons-material/VpnKeyOutlined";+import { Box, Divider, Menu, MenuItem, Stack, Tooltip, Typography } from "@mui/material";+import { memo, useState } from "react";+import { NavLink, useLocation } from "react-router";+import type { ComponentType, MouseEvent } from "react";+import { useAuth } from "../data/AuthContext";+import ThemeModeToggle from "./ThemeModeToggle";++interface NavItem {+ label: string;+ path: string;+ icon: ComponentType<{ sx?: object }>;+}++const NAV_ITEMS: NavItem[] = [+ { label: "Ecosystem", path: "/ecosystem", icon: AccountTreeOutlined },+ { label: "Rooms", path: "/rooms", icon: MeetingRoomOutlined },+ { label: "Resources", path: "/resources", icon: FolderOutlined },+ { label: "Agents", path: "/agents", icon: SmartToyOutlined },+ { label: "Apps", path: "/collaborations", icon: ChatBubbleOutlineOutlined },+ { label: "API Keys", path: "/registration-keys", icon: VpnKeyOutlined },+];++const ADMIN_ITEMS: NavItem[] = [{ label: "Users", path: "/users", icon: PeopleOutlined }];++const TARGET = 44;+// The logo sits slightly inside the nav button footprint: it is a solid mark+// against thin-stroke icons, so matching the container would read as heavier.+const LOGO = 28;++function RailItem({ item, active }: { item: NavItem; active: boolean }) {+ return (+ <Box+ component={NavLink}+ to={item.path}+ aria-current={active ? "page" : undefined}+ sx={{+ display: "flex",+ flexDirection: "column",+ alignItems: "center",+ gap: 0.5,+ textDecoration: "none",+ color: "text.primary",+ opacity: active ? 1 : 0.75,+ transition: "opacity 150ms",+ "&:hover": { opacity: 1 },+ "&:focus-visible": { outline: "2px solid var(--hoot-ring)", outlineOffset: 2, borderRadius: "16px" },+ }}+ >+ <Box+ sx={{+ position: "relative",+ display: "flex",+ alignItems: "center",+ justifyContent: "center",+ width: TARGET,+ height: TARGET,+ borderRadius: "16px",+ // The active indicator is a subtle vertical gradient pill with a+ // whisper of lift — never a filled accent.+ ...(active && {+ background: "linear-gradient(to bottom, var(--hoot-card), var(--hoot-secondary))",+ border: "1px solid var(--hoot-border)",+ boxShadow: "var(--hoot-shadow-rail-active)",+ }),+ }}+ >+ <item.icon sx={{ fontSize: 22, strokeWidth: 1.5 }} />+ </Box>+ <Typography+ sx={{ fontSize: "0.75rem", lineHeight: 1, fontWeight: 500, letterSpacing: "-0.01em" }}+ >+ {item.label}+ </Typography>+ </Box>+ );+}++export default memo(function NavRail() {+ const location = useLocation();+ const { user, logout } = useAuth();+ const [anchor, setAnchor] = useState<HTMLElement | null>(null);++ const items = user?.role === "admin" ? [...NAV_ITEMS, ...ADMIN_ITEMS] : NAV_ITEMS;+ const initial = (user?.email ?? "?").charAt(0).toUpperCase();++ return (+ <Stack+ component="aside"+ sx={{+ width: "var(--nav-rail-width)",+ flexShrink: 0,+ alignItems: "center",+ py: 2,+ color: "text.primary",+ }}+ >+ <Tooltip title="Switch Gateway" placement="right">+ {/* Two assets rather than one recoloured mark: the swap is done in CSS+ off the colour-scheme attribute so there is no flash on first paint,+ and a future coloured logo drops in without rework. The file names+ describe the ink — `dark` is the black mark, for the light theme. */}+ <Box+ sx={{+ width: TARGET,+ height: TARGET,+ display: "flex",+ alignItems: "center",+ justifyContent: "center",+ }}+ >+ <Box+ component="img"+ src="/switch_logo_dark.svg"+ alt="Switch"+ sx={{+ width: LOGO,+ height: LOGO,+ '[data-mui-color-scheme="dark"] &': { display: "none" },+ }}+ />+ <Box+ component="img"+ src="/switch_logo_light.svg"+ alt=""+ aria-hidden+ sx={{+ width: LOGO,+ height: LOGO,+ display: "none",+ '[data-mui-color-scheme="dark"] &': { display: "block" },+ }}+ />+ </Box>+ </Tooltip>++ <Divider sx={{ my: 2, width: 29 }} />++ <Stack sx={{ width: "100%", alignItems: "center", gap: 2 }}>+ {items.map((item) => (+ <RailItem+ key={item.path}+ item={item}+ active={location.pathname.startsWith(item.path)}+ />+ ))}+ </Stack>++ <Stack sx={{ mt: "auto", width: "100%", alignItems: "center", gap: 2, pt: 2 }}>+ <Box+ component="button"+ onClick={(e: MouseEvent<HTMLElement>) => setAnchor(e.currentTarget)}+ aria-label="Account menu"+ sx={{+ width: TARGET,+ height: TARGET,+ borderRadius: "50%",+ border: "none",+ cursor: "pointer",+ backgroundColor: "primary.main",+ color: "primary.contrastText",+ fontFamily: "inherit",+ fontSize: "0.9375rem",+ fontWeight: 700,+ letterSpacing: "-0.02em",+ "&:focus-visible": { outline: "2px solid var(--hoot-ring)", outlineOffset: 2 },+ }}+ >+ {initial}+ </Box>+ </Stack>++ <Menu+ anchorEl={anchor}+ open={Boolean(anchor)}+ onClose={() => setAnchor(null)}+ anchorOrigin={{ vertical: "top", horizontal: "right" }}+ transformOrigin={{ vertical: "bottom", horizontal: "left" }}+ slotProps={{ paper: { sx: { width: 232, p: 0.5 } } }}+ >+ <Box sx={{ px: 1.5, py: 1 }}>+ <Typography variant="body2" sx={{ fontWeight: 500 }} noWrap>+ {user?.email}+ </Typography>+ {user?.role === "admin" && (+ <Typography variant="caption" sx={{ color: "text.secondary" }}>+ Admin+ </Typography>+ )}+ </Box>+ <Divider sx={{ my: 0.5 }} />+ <Box+ sx={{+ display: "flex",+ alignItems: "center",+ justifyContent: "space-between",+ px: 1.5,+ py: 0.75,+ }}+ >+ <Typography variant="body2">Theme</Typography>+ <ThemeModeToggle />+ </Box>+ <Divider sx={{ my: 0.5 }} />+ <MenuItem onClick={logout} sx={{ gap: 1 }}>+ <LogoutOutlined sx={{ fontSize: 16 }} />+ Sign out+ </MenuItem>+ </Menu>+ </Stack>+ );+});diff --git a/gateway/src/layout/PageShell.tsx b/gateway/src/layout/PageShell.tsxindex 207b683cb..cc3d6e9ae 100644--- a/gateway/src/layout/PageShell.tsx+++ b/gateway/src/layout/PageShell.tsx@@ -1,21 +1,39 @@import { Box, Stack } from "@mui/material";import { Outlet } from "react-router";-import NavDrawer from "./NavDrawer";+import NavRail from "./NavRail";+import TopBar from "./TopBar";+/** Hoot's signature shell: a narrow icon rail and a slim top bar sitting bare on+ * the warm canvas, framing a single rounded content surface. Chrome recedes so+ * the content is the hero — an "app within a surface", not edge-to-edge chrome. */export default function PageShell() {return (- <Box sx={{ display: "flex", height: "100vh" }}>- <NavDrawer />- <Stack- component="main"- sx={{- flexGrow: 1,- overflowY: "auto",- backgroundColor: "var(--mui-palette-background-default)",- p: 3,- }}- >- <Outlet />+ <Box+ sx={{+ display: "flex",+ height: "100vh",+ overflow: "hidden",+ backgroundColor: "var(--hoot-canvas)",+ }}+ >+ <NavRail />+ <Stack sx={{ flex: 1, minWidth: 0, overflow: "hidden", pr: "var(--surface-gutter)", pb: "var(--surface-gutter)" }}>+ <TopBar />+ <Stack+ component="main"+ sx={{+ flex: 1,+ minHeight: 0,+ overflowY: "auto",+ borderRadius: "16px",+ backgroundColor: "background.paper",+ color: "text.primary",+ boxShadow: "var(--hoot-shadow-surface)",+ p: 4,+ }}+ >+ <Outlet />+ </Stack></Stack></Box>);diff --git a/gateway/src/layout/ThemeModeToggle.tsx b/gateway/src/layout/ThemeModeToggle.tsxnew file mode 100644index 000000000..484ed84c5--- /dev/null+++ b/gateway/src/layout/ThemeModeToggle.tsx@@ -0,0 +1,63 @@+import DarkModeOutlined from "@mui/icons-material/DarkModeOutlined";+import LightModeOutlined from "@mui/icons-material/LightModeOutlined";+import MonitorOutlined from "@mui/icons-material/MonitorOutlined";+import { Box, Tooltip, useColorScheme } from "@mui/material";+import type { ComponentType } from "react";++const OPTIONS: { value: "light" | "dark" | "system"; label: string; icon: ComponentType<{ sx?: object }> }[] = [+ { value: "light", label: "Light", icon: LightModeOutlined },+ { value: "dark", label: "Dark", icon: DarkModeOutlined },+ { value: "system", label: "System", icon: MonitorOutlined },+];++export default function ThemeModeToggle() {+ const { mode, setMode } = useColorScheme();++ return (+ <Box+ role="radiogroup"+ aria-label="Colour theme"+ sx={{+ display: "flex",+ alignItems: "center",+ gap: 0.25,+ borderRadius: "9999px",+ border: "1px solid",+ borderColor: "divider",+ p: 0.25,+ }}+ >+ {OPTIONS.map((option) => {+ const selected = mode === option.value;+ return (+ <Tooltip key={option.value} title={option.label}>+ <Box+ component="button"+ role="radio"+ aria-checked={selected}+ aria-label={option.label}+ onClick={() => setMode(option.value)}+ sx={{+ display: "flex",+ alignItems: "center",+ justifyContent: "center",+ width: 26,+ height: 26,+ border: "none",+ cursor: "pointer",+ borderRadius: "9999px",+ transition: "color 150ms, background-color 150ms",+ backgroundColor: selected ? "var(--hoot-muted)" : "transparent",+ color: selected ? "text.primary" : "text.secondary",+ "&:hover": { color: "text.primary" },+ "&:focus-visible": { outline: "2px solid var(--hoot-ring)", outlineOffset: 1 },+ }}+ >+ <option.icon sx={{ fontSize: 14 }} />+ </Box>+ </Tooltip>+ );+ })}+ </Box>+ );+}diff --git a/gateway/src/layout/TopBar.tsx b/gateway/src/layout/TopBar.tsxnew file mode 100644index 000000000..39ffbf1af--- /dev/null+++ b/gateway/src/layout/TopBar.tsx@@ -0,0 +1,75 @@+import MenuBookOutlined from "@mui/icons-material/MenuBookOutlined";+import { Box, Button, Stack, Tooltip, Typography } from "@mui/material";+import { useLocation } from "react-router";++const SECTION_LABELS: [prefix: string, label: string][] = [+ ["/ecosystem", "Ecosystem"],+ ["/rooms", "Rooms"],+ ["/resources", "Resources"],+ ["/agents", "Agents"],+ ["/collaborations", "Messaging Apps"],+ ["/registration-keys", "API Keys"],+ ["/users", "Users"],+];++const DOCS_URL = "https://github.com/sandbox-quantum/switch";++export default function TopBar() {+ const { pathname } = useLocation();+ const section = SECTION_LABELS.find(([prefix]) => pathname.startsWith(prefix))?.[1];++ return (+ <Stack+ direction="row"+ sx={{+ height: "var(--top-bar-height)",+ alignItems: "center",+ justifyContent: "space-between",+ color: "text.primary",+ pr: 1,+ }}+ >+ <Typography sx={{ fontSize: "0.9375rem", fontWeight: 500, letterSpacing: "-0.02em", px: 2 }}>+ Switch+ {section && (+ <>+ <Box component="span" sx={{ opacity: 0.4, mx: 1 }}>+ /+ </Box>+ <Box component="span" sx={{ fontWeight: 700 }}>+ {section}+ </Box>+ </>+ )}+ </Typography>++ <Stack direction="row" sx={{ alignItems: "center", gap: 1 }}>+ <Tooltip title="All Switch services are reachable">+ <Stack direction="row" sx={{ alignItems: "center", gap: 0.75, px: 1 }}>+ <Box+ sx={{+ width: 6,+ height: 6,+ borderRadius: "50%",+ backgroundColor: "var(--hoot-success)",+ }}+ />+ <Typography variant="body2" sx={{ color: "text.secondary" }}>+ System healthy+ </Typography>+ </Stack>+ </Tooltip>+ <Button+ color="inherit"+ href={DOCS_URL}+ target="_blank"+ rel="noreferrer"+ startIcon={<MenuBookOutlined sx={{ fontSize: 18 }} />}+ sx={{ fontWeight: 500 }}+ >+ Docs+ </Button>+ </Stack>+ </Stack>+ );+}diff --git a/gateway/src/main.tsx b/gateway/src/main.tsxindex 182207ece..44ca1585a 100644--- a/gateway/src/main.tsx+++ b/gateway/src/main.tsx@@ -1,10 +1,11 @@-import "@fontsource/dm-sans/300.css";-import "@fontsource/dm-sans/400.css";-import "@fontsource/dm-sans/500.css";-import "@fontsource/dm-sans/700.css";-import "@fontsource/dm-sans/900.css";+import "@fontsource/space-grotesk/300.css";+import "@fontsource/space-grotesk/400.css";+import "@fontsource/space-grotesk/500.css";+import "@fontsource/space-grotesk/600.css";+import "@fontsource/space-grotesk/700.css";+import "./theme/hoot.css";-import { CssBaseline, GlobalStyles, ThemeProvider } from "@mui/material";+import { CssBaseline, GlobalStyles, InitColorSchemeScript, ThemeProvider } from "@mui/material";import { StrictMode } from "react";import { createRoot } from "react-dom/client";import App from "./App";@@ -15,7 +16,8 @@ const theme = APP_THEME();createRoot(document.getElementById("root")!).render(<StrictMode>- <ThemeProvider theme={theme} disableTransitionOnChange noSsr>+ <InitColorSchemeScript attribute="data-mui-color-scheme" defaultMode="light" />+ <ThemeProvider theme={theme} disableTransitionOnChange noSsr defaultMode="light"><CssBaseline /><GlobalStyles styles={GLOBAL_STYLE} /><App />diff --git a/gateway/src/pages/agents/AddressingPolicySection.tsx b/gateway/src/pages/agents/AddressingPolicySection.tsxindex c1d527a21..0ee0e2a68 100644--- a/gateway/src/pages/agents/AddressingPolicySection.tsx+++ b/gateway/src/pages/agents/AddressingPolicySection.tsx@@ -249,7 +249,7 @@ export default function AddressingPolicySection({return (<Stack spacing={2}><Box>- <Typography variant="subtitle2" color="text.secondary">+ <Typography variant="overline" sx={{ color: "text.secondary", display: "block" }}>Addressing policy</Typography><Typography variant="caption" color="text.secondary">diff --git a/gateway/src/pages/agents/AgentDetailPage.tsx b/gateway/src/pages/agents/AgentDetailPage.tsxindex 1a095886b..00d2d1585 100644--- a/gateway/src/pages/agents/AgentDetailPage.tsx+++ b/gateway/src/pages/agents/AgentDetailPage.tsx@@ -7,7 +7,6 @@ import {CircularProgress,Divider,IconButton,- Paper,Stack,Typography,} from "@mui/material";@@ -22,28 +21,32 @@ import {} from "../../data/api";import { useAuth } from "../../data/AuthContext";import { useAgent, useKnownAgentTypes } from "../../data/hooks";+import {+ EM_DASH,+ MONO_SX,+ formatDateTime,+ titleCase,+} from "../../theme/hootFormat";import AddressingPolicySection from "./AddressingPolicySection";import { extractDefaults, renderOptionFields } from "./optionFields";// Presence of an agent within a room — mirrors the room detail page so the two// views report status identically.const ROOM_STATUS_META: Record<string, { label: string; color: string }> = {- live: { label: "Live", color: "#4caf50" },- awaiting_manual_poll: { label: "Idle", color: "#ff9800" },- no_session: { label: "No session", color: "#9e9e9e" },- disconnected: { label: "Disconnected", color: "#f44336" },+ live: { label: "Live", color: "var(--hoot-success)" },+ awaiting_manual_poll: { label: "Idle", color: "var(--hoot-warning)" },+ no_session: { label: "No session", color: "var(--hoot-muted-foreground)" },+ disconnected: { label: "Disconnected", color: "var(--hoot-destructive)" },};// State of a single session row.const SESSION_STATE_META: Record<string, { label: string; color: string }> = {- live: { label: "Live", color: "#4caf50" },- open: { label: "Open", color: "#ff9800" },- stale: { label: "Stale", color: "#9e9e9e" },+ live: { label: "Live", color: "var(--hoot-success)" },+ open: { label: "Open", color: "var(--hoot-warning)" },+ stale: { label: "Stale", color: "var(--hoot-muted-foreground)" },};-function humanize(value: string): string {- return value.replace(/_/g, " ");-}+const NEUTRAL_STATUS_COLOR = "var(--hoot-muted-foreground)";function StatusDot({ color, title }: { color: string; title?: string }) {return (@@ -101,67 +104,81 @@ export default function AgentDetailPage() {<Chip label={agent.connector_type} size="small" variant="outlined" />{agent.connection_model && (<Chip- label={humanize(agent.connection_model)}+ label={titleCase(agent.connection_model)}size="small"- color="info"variant="outlined"/>)}</Stack>- <Paper variant="outlined" sx={{ borderRadius: 2, p: 3 }}>- <Stack spacing={4}>- <InfoSection agent={agent} />- <Divider />- <CapabilitiesSection agent={agent} />- {agent.known_agent_type && (- <>- <Divider />- <OptionsSection- agent={agent}- canEdit={isOwner}- onUpdated={refetch}- />- </>- )}- <Divider />- <AddressingPolicySection- agent={agent}- canEdit={isOwner}- onUpdated={refetch}- />- <Divider />- <SessionsSection sessions={agent.sessions} />- <Divider />- <RoomsSection rooms={agent.rooms} />- <Divider />- <ListSection- title={`Tools (${agent.tools.length})`}- empty="No tools."- items={agent.tools}- />- <Divider />- <ListSection- title={`Models (${agent.models.length})`}- empty="No models."- items={agent.models}- />- {agent.children.length > 0 && (- <>- <Divider />- <SubagentsSection children={agent.children} />- </>- )}- </Stack>- </Paper>+ <Stack spacing={4}>+ <InfoSection agent={agent} />+ <Divider />+ <CapabilitiesSection agent={agent} />+ {agent.known_agent_type && (+ <>+ <Divider />+ <OptionsSection+ agent={agent}+ canEdit={isOwner}+ onUpdated={refetch}+ />+ </>+ )}+ <Divider />+ <AddressingPolicySection+ agent={agent}+ canEdit={isOwner}+ onUpdated={refetch}+ />+ <Divider />+ <SessionsSection sessions={agent.sessions} />+ <Divider />+ <RoomsSection rooms={agent.rooms} />+ <Divider />+ <ListSection+ title={`Tools (${agent.tools.length})`}+ empty="No tools."+ items={agent.tools}+ />+ <Divider />+ <ListSection+ title={`Models (${agent.models.length})`}+ empty="No models."+ items={agent.models}+ />+ {agent.children.length > 0 && (+ <>+ <Divider />+ <SubagentsSection children={agent.children} />+ </>+ )}+ </Stack></Box>);}-function InfoLine({ label, value }: { label: string; value: string }) {+function InfoLine({+ label,+ value,+ mono,+}: {+ label: string;+ value: string | null | undefined;+ mono?: boolean;+}) {return (<Typography variant="body2" color="text.secondary">- <strong>{label}:</strong> {value}+ <strong>{label}:</strong>{" "}+ {value ? (+ <Box component="span" sx={mono ? MONO_SX : undefined}>+ {value}+ </Box>+ ) : (+ <Box component="span" sx={{ color: "text.secondary" }}>+ {EM_DASH}+ </Box>+ )}</Typography>);}@@ -169,25 +186,24 @@ function InfoLine({ label, value }: { label: string; value: string }) {function InfoSection({ agent }: { agent: AgentDetail }) {return (<Stack spacing={1}>- <Typography variant="subtitle2" color="text.secondary">+ <Typography variant="overline" sx={{ color: "text.secondary", display: "block" }}>Info</Typography>{agent.description && (<Typography variant="body2">{agent.description}</Typography>)}- <InfoLine label="Owner" value={agent.owner_name ?? agent.owner_id ?? "—"} />- <InfoLine label="Agent type" value={agent.connector_type || "—"} />+ {agent.owner_name ? (+ <InfoLine label="Owner" value={agent.owner_name} />+ ) : (+ <InfoLine label="Owner" value={agent.owner_id} mono />+ )}+ <InfoLine label="Agent type" value={agent.connector_type} /><InfoLinelabel="Connection type"- value={- agent.connection_model ? humanize(agent.connection_model) : "—"- }- />- <InfoLine label="OAuth client" value={agent.oauth_client_id ?? "—"} />- <InfoLine- label="Created"- value={new Date(agent.created_at).toLocaleString()}+ value={agent.connection_model ? titleCase(agent.connection_model) : null}/>+ <InfoLine label="OAuth client" value={agent.oauth_client_id} mono />+ <InfoLine label="Created" value={formatDateTime(agent.created_at)} /></Stack>);}@@ -201,7 +217,7 @@ function CapabilitiesSection({ agent }: { agent: AgentDetail }) {const task = (profile.task_protocol ?? {}) as Record<string, unknown>;return (<Stack spacing={1}>- <Typography variant="subtitle2" color="text.secondary">+ <Typography variant="overline" sx={{ color: "text.secondary", display: "block" }}>Capabilities</Typography><InfoLine@@ -265,7 +281,7 @@ function OptionsSection({return (<Stack spacing={2}>- <Typography variant="subtitle2" color="text.secondary">+ <Typography variant="overline" sx={{ color: "text.secondary", display: "block" }}>Options</Typography>{!spec ? (@@ -314,7 +330,7 @@ function SessionsSection({ sessions }: { sessions: AgentSessionDetail[] }) {const liveCount = sessions.filter((s) => s.state === "live").length;return (<Stack spacing={1}>- <Typography variant="subtitle2" color="text.secondary">+ <Typography variant="overline" sx={{ color: "text.secondary", display: "block" }}>Sessions ({liveCount} live / {sessions.length})</Typography>{sessions.length === 0 ? (@@ -335,8 +351,8 @@ function SessionsSection({ sessions }: { sessions: AgentSessionDetail[] }) {function SessionRow({ session }: { session: AgentSessionDetail }) {const navigate = useNavigate();const meta = SESSION_STATE_META[session.state] ?? {- label: session.state,- color: "#9e9e9e",+ label: titleCase(session.state),+ color: NEUTRAL_STATUS_COLOR,};const isLive = session.state === "live";const clickable = session.room_id !== null;@@ -366,7 +382,11 @@ function SessionRow({ session }: { session: AgentSessionDetail }) {<StatusDot color={meta.color} title={meta.label} /><Typographyvariant="body2"- sx={{ flexGrow: 1, fontWeight: isLive ? 600 : 400 }}+ sx={{+ flexGrow: 1,+ fontWeight: isLive ? 600 : 400,+ ...(!session.room_name && session.room_id ? MONO_SX : {}),+ }}>{session.room_name ?? (session.room_id ? session.room_id : "Room-agnostic")}</Typography>@@ -387,7 +407,7 @@ function SessionRow({ session }: { session: AgentSessionDetail }) {</Typography>)}<Typography variant="caption" color="text.secondary">- last seen {new Date(session.last_seen_at).toLocaleString()}+ last seen {formatDateTime(session.last_seen_at)}</Typography></Stack>);@@ -396,7 +416,7 @@ function SessionRow({ session }: { session: AgentSessionDetail }) {function RoomsSection({ rooms }: { rooms: AgentRoomMembership[] }) {return (<Stack spacing={1}>- <Typography variant="subtitle2" color="text.secondary">+ <Typography variant="overline" sx={{ color: "text.secondary", display: "block" }}>Rooms ({rooms.length})</Typography>{rooms.length === 0 ? (@@ -417,8 +437,8 @@ function RoomsSection({ rooms }: { rooms: AgentRoomMembership[] }) {function RoomRow({ room }: { room: AgentRoomMembership }) {const navigate = useNavigate();const meta = ROOM_STATUS_META[room.status] ?? {- label: room.status,- color: "#9e9e9e",+ label: titleCase(room.status),+ color: NEUTRAL_STATUS_COLOR,};return (<Stack@@ -469,7 +489,7 @@ function ListSection({}) {return (<Stack spacing={1}>- <Typography variant="subtitle2" color="text.secondary">+ <Typography variant="overline" sx={{ color: "text.secondary", display: "block" }}>{title}</Typography>{items.length === 0 ? (@@ -497,7 +517,7 @@ function SubagentsSection({ children }: { children: AgentSummary[] }) {const navigate = useNavigate();return (<Stack spacing={1}>- <Typography variant="subtitle2" color="text.secondary">+ <Typography variant="overline" sx={{ color: "text.secondary", display: "block" }}>Subagents ({children.length})</Typography><Stack direction="row" flexWrap="wrap" gap={0.5}>diff --git a/gateway/src/pages/agents/AgentsPage.tsx b/gateway/src/pages/agents/AgentsPage.tsxindex e2b33f322..dbc9fecb7 100644--- a/gateway/src/pages/agents/AgentsPage.tsx+++ b/gateway/src/pages/agents/AgentsPage.tsx@@ -19,46 +19,19 @@ import {TextField,Typography,} from "@mui/material";-import type { GridColDef } from "@mui/x-data-grid-pro";+import type { GridColDef } from "@mui/x-data-grid";import { useCallback, useMemo, useState } from "react";import { useNavigate } from "react-router";import DataTable from "../../components/DataTable";import { type AgentSummary, deleteAgent } from "../../data/api";import { useAuth } from "../../data/AuthContext";import { useAgents } from "../../data/hooks";+import { EM_DASH, formatDate, titleCase } from "../../theme/hootFormat";import RegisterAgentDialog from "./RegisterAgentDialog";-type ChipColor =- | "primary"- | "secondary"- | "success"- | "warning"- | "info"- | "error"- | "default";--// Known connector types get a stable, on-brand colour; everything else falls-// back to a deterministic hash so new connector types still render distinctly-// without a code change.-const TYPE_COLORS: Record<string, ChipColor> = {- "Claude Code": "warning",- "Google ADK": "info",-};--const FALLBACK_COLORS: ChipColor[] = [- "primary",- "secondary",- "success",- "error",-];--function typeColor(type: string): ChipColor {- if (TYPE_COLORS[type]) return TYPE_COLORS[type];- if (type.startsWith("server-side")) return "secondary";- let hash = 0;- for (let i = 0; i < type.length; i++) hash = (hash * 31 + type.charCodeAt(i)) | 0;- return FALLBACK_COLORS[Math.abs(hash) % FALLBACK_COLORS.length];-}+// Connector type is a category, not a status. Colour here would compete with+// the status hues for the reader's attention and mean nothing, so the tag is+// neutral and the label carries the distinction.export default function AgentsPage() {const navigate = useNavigate();@@ -170,22 +143,18 @@ export default function AgentsPage() {width: 150,renderCell: ({ value }) =>value ? (- <Chip- label={value}- size="small"- color={typeColor(value as string)}- variant="outlined"- />+ <Chip label={value} size="small" />) : (- "—"+ <Box component="span" sx={{ color: "text.secondary" }}>+ {EM_DASH}+ </Box>),},{field: "connection_model",headerName: "Connection Type",width: 170,- valueFormatter: (value) =>- value ? (value as string).replace(/_/g, " ") : "—",+ valueFormatter: (value) => (value ? titleCase(value as string) : EM_DASH),},{field: "parent_agent_id",@@ -193,7 +162,7 @@ export default function AgentsPage() {width: 200,valueGetter: (value) =>value ? (parentNameById.get(value as string) ?? value) : "",- renderCell: ({ value }) => value || "—",+ renderCell: ({ value }) => value || EM_DASH,},{ field: "description", headerName: "Description", flex: 2, minWidth: 200 },{ field: "tool_count", headerName: "Tools", width: 80, type: "number" },@@ -202,9 +171,14 @@ export default function AgentsPage() {field: "owner_name",headerName: "Owner",width: 130,- renderCell: ({ value }) => value ?? "—",+ renderCell: ({ value }) => value ?? EM_DASH,+ },+ {+ field: "created_at",+ headerName: "Created",+ width: 130,+ valueFormatter: (value) => formatDate(value as string),},- { field: "created_at", headerName: "Created", width: 180 },{field: "actions",headerName: "",diff --git a/gateway/src/pages/auth/LoginPage.tsx b/gateway/src/pages/auth/LoginPage.tsxindex 1a0ec09bf..50839e9db 100644--- a/gateway/src/pages/auth/LoginPage.tsx+++ b/gateway/src/pages/auth/LoginPage.tsx@@ -2,6 +2,7 @@ import {Alert,Box,Button,+ Card,CircularProgress,Divider,Stack,@@ -57,15 +58,20 @@ export default function LoginPage() {height: "100vh",alignItems: "center",justifyContent: "center",+ backgroundColor: "var(--hoot-canvas)",}}>- <Box component="form" onSubmit={handleSubmit} sx={{ width: 360 }}>- <Typography- variant="h5"- sx={{ fontWeight: 700, mb: 3, color: "primary.main" }}- >+ <Card+ component="form"+ onSubmit={handleSubmit}+ sx={{ width: 380, p: 4, boxShadow: "var(--hoot-shadow-surface)" }}+ >+ <Typography variant="h6" sx={{ mb: 0.5 }}>Switch Gateway</Typography>+ <Typography variant="body2" sx={{ mb: 3, color: "text.secondary" }}>+ Sign in to manage your agents, rooms and resources.+ </Typography><Stack spacing={2}>{error && <Alert severity="error">{error}</Alert>}{passwordLoginEnabled && (@@ -110,7 +116,7 @@ export default function LoginPage() {</Button>)}</Stack>- </Box>+ </Card></Box>);}diff --git a/gateway/src/pages/collaborations/CollaborationsPage.tsx b/gateway/src/pages/collaborations/CollaborationsPage.tsxindex 72b5570c5..d6243f73c 100644--- a/gateway/src/pages/collaborations/CollaborationsPage.tsx+++ b/gateway/src/pages/collaborations/CollaborationsPage.tsx@@ -15,12 +15,13 @@ import {Switch,Typography,} from "@mui/material";-import type { GridColDef } from "@mui/x-data-grid-pro";+import type { GridColDef } from "@mui/x-data-grid";import { useCallback, useMemo, useState } from "react";import DataTable from "../../components/DataTable";import { type BridgeDetail, deleteBridge, updateBridge } from "../../data/api";import { useAuth } from "../../data/AuthContext";import { useBridges } from "../../data/hooks";+import { formatDate, titleCase } from "../../theme/hootFormat";import RegisterMessagingAppDialog from "./RegisterMessagingAppDialog";type BridgeRow = BridgeDetail & { id: string };@@ -72,7 +73,7 @@ export default function CollaborationsPage() {headerName: "Type",width: 130,renderCell: ({ value }) => (- <Chip label={value} size="small" sx={{ textTransform: "capitalize" }} />+ <Chip label={titleCase(String(value))} size="small" />),},{@@ -81,7 +82,7 @@ export default function CollaborationsPage() {width: 130,renderCell: ({ value }) => (<Chip- label={value}+ label={titleCase(String(value))}size="small"color={STATUS_COLOR[value as string] ?? "default"}/>@@ -104,7 +105,12 @@ export default function CollaborationsPage() {/>),},- { field: "created_at", headerName: "Created", width: 180 },+ {+ field: "created_at",+ headerName: "Created",+ width: 140,+ valueFormatter: (value) => formatDate(value as string),+ },...(isAdmin? [{diff --git a/gateway/src/pages/ecosystem/EcosystemGraphPage.tsx b/gateway/src/pages/ecosystem/EcosystemGraphPage.tsxindex 86f96a7d1..56dfedb46 100644--- a/gateway/src/pages/ecosystem/EcosystemGraphPage.tsx+++ b/gateway/src/pages/ecosystem/EcosystemGraphPage.tsx@@ -12,6 +12,7 @@ import ForceGraph2D from "react-force-graph-2d";import { useNavigate } from "react-router";import type { EcosystemNodeKind } from "../../data/api";import { useEcosystemGraph } from "../../data/hooks";+import { useGraphCanvasTheme } from "../graphCanvasTheme";interface GraphNode {id: string;@@ -163,6 +164,8 @@ export default function EcosystemGraphPage() {return () => clearTimeout(t);}, [nodes.length, links.length]);+ const canvas = useGraphCanvasTheme();+const paintNode = useCallback((node: GraphNode, ctx: CanvasRenderingContext2D) => {const { x = 0, y = 0, kind, label } = node;@@ -186,14 +189,14 @@ export default function EcosystemGraphPage() {// Font in graph coordinates so it scales with the node when zooming.const fontGraphUnits = radius * 0.55;- ctx.font = `${kind === "switch" || kind === "agent_type" ? "600 " : ""}${fontGraphUnits}px DM Sans, sans-serif`;+ ctx.font = `${kind === "switch" || kind === "agent_type" ? "600 " : ""}${fontGraphUnits}px ${canvas.fontFamily}`;ctx.textAlign = "center";ctx.textBaseline = "top";- ctx.fillStyle = "#F2F2F2";+ ctx.fillStyle = canvas.label;const truncated = label.length > 32 ? label.slice(0, 31) + "…" : label;ctx.fillText(truncated, x, y + radius + fontGraphUnits * 0.4);},- [],+ [canvas],);const handleNodeClick = useCallback(@@ -244,11 +247,11 @@ export default function EcosystemGraphPage() {sx={{flex: 1,minHeight: 500,- borderRadius: 2,overflow: "hidden",border: "1px solid",borderColor: "divider",- backgroundColor: "#0A0C0D",+ borderRadius: "16px",+ backgroundColor: canvas.background,position: "relative",}}>@@ -287,7 +290,7 @@ export default function EcosystemGraphPage() {graphData={{ nodes, links }}width={dimensions.width}height={dimensions.height}- backgroundColor="#0A0C0D"+ backgroundColor={canvas.background}nodeRelSize={1}nodeCanvasObject={paintNode}nodePointerAreaPaint={(node, color, ctx) => {@@ -298,7 +301,7 @@ export default function EcosystemGraphPage() {ctx.arc(n.x ?? 0, n.y ?? 0, r, 0, 2 * Math.PI);ctx.fill();}}- linkColor={() => "#ffffff40"}+ linkColor={() => canvas.link}linkWidth={1}onNodeClick={(n) => handleNodeClick(n as GraphNode)}nodeLabel={(n) => {diff --git a/gateway/src/pages/graphCanvasTheme.ts b/gateway/src/pages/graphCanvasTheme.tsnew file mode 100644index 000000000..62294a5c9--- /dev/null+++ b/gateway/src/pages/graphCanvasTheme.ts@@ -0,0 +1,36 @@+import { useColorScheme } from "@mui/material";+import { HOOT_DARK, HOOT_LIGHT } from "../theme/hoot-tokens";++/** Canvas paints outside the CSS cascade, so the force-graph views can't read+ * `var(--hoot-*)`. Resolve the active scheme's tokens to concrete colours here+ * so the graphs follow the theme instead of hardcoding a dark slab. */+export interface GraphCanvasTheme {+ /** Canvas fill — the graph sits on the same surface as the rest of the page. */+ background: string;+ /** Node label ink. */+ label: string;+ /** Ring drawn around a node to separate it from the canvas. */+ nodeStroke: string;+ /** Edges recede: visible, never competing with the nodes. */+ link: string;+ /** Muted ink for de-emphasised labels. */+ labelMuted: string;+ fontFamily: string;+}++const FONT = "Space Grotesk, sans-serif";++export function useGraphCanvasTheme(): GraphCanvasTheme {+ const { mode, systemMode } = useColorScheme();+ const resolved = mode === "system" ? (systemMode ?? "light") : (mode ?? "light");+ const t = resolved === "dark" ? HOOT_DARK : HOOT_LIGHT;++ return {+ background: t.card,+ label: t.foreground,+ labelMuted: t.mutedForeground,+ nodeStroke: t.card,+ link: resolved === "dark" ? "rgba(255,255,255,0.22)" : "rgba(0,0,0,0.18)",+ fontFamily: FONT,+ };+}diff --git a/gateway/src/pages/registration-keys/RegistrationKeysPage.tsx b/gateway/src/pages/registration-keys/RegistrationKeysPage.tsxindex 00ff67a4b..b9ac3853e 100644--- a/gateway/src/pages/registration-keys/RegistrationKeysPage.tsx+++ b/gateway/src/pages/registration-keys/RegistrationKeysPage.tsx@@ -16,11 +16,12 @@ import {Tooltip,Typography,} from "@mui/material";-import type { GridColDef } from "@mui/x-data-grid-pro";+import type { GridColDef } from "@mui/x-data-grid";import { useCallback, useMemo, useState } from "react";import DataTable from "../../components/DataTable";import { type ApiKeyDetail, deleteApiKey, revealApiKey } from "../../data/api";import { useApiKeys } from "../../data/hooks";+import { MONO_SX, formatDate } from "../../theme/hootFormat";import CreateKeyDialog from "./CreateKeyDialog";export default function RegistrationKeysPage() {@@ -78,9 +79,19 @@ export default function RegistrationKeysPage() {field: "key_prefix",headerName: "Key Prefix",width: 180,- renderCell: ({ value }) => <code>{value}...</code>,+ renderCell: ({ value }) => (+ <Typography component="span" sx={MONO_SX}>+ {value}...+ </Typography>+ ),+ },+ {+ field: "created_at",+ headerName: "Created",+ flex: 1,+ minWidth: 140,+ valueFormatter: (value) => formatDate(value as string),},- { field: "created_at", headerName: "Created", flex: 1, minWidth: 180 },{field: "actions",headerName: "",@@ -115,9 +126,19 @@ export default function RegistrationKeysPage() {field: "key_prefix",headerName: "Key Prefix",width: 180,- renderCell: ({ value }) => <code>{value}...</code>,+ renderCell: ({ value }) => (+ <Typography component="span" sx={MONO_SX}>+ {value}...+ </Typography>+ ),+ },+ {+ field: "created_at",+ headerName: "Created",+ flex: 1,+ minWidth: 140,+ valueFormatter: (value) => formatDate(value as string),},- { field: "created_at", headerName: "Created", flex: 1, minWidth: 180 },{field: "actions",headerName: "",diff --git a/gateway/src/pages/resources/DocumentDetailPage.tsx b/gateway/src/pages/resources/DocumentDetailPage.tsxindex 0086e6c96..524a5f889 100644--- a/gateway/src/pages/resources/DocumentDetailPage.tsx+++ b/gateway/src/pages/resources/DocumentDetailPage.tsx@@ -8,7 +8,6 @@ import {CircularProgress,Divider,IconButton,- Paper,Stack,TextField,Typography,@@ -28,6 +27,7 @@ import {toAccessLevel,} from "../../data/visibility";import { usePackages } from "../../data/hooks";+import { EM_DASH, MONO_SX, formatDateTime } from "../../theme/hootFormat";import DeleteResourceDialog from "./DeleteResourceDialog";import ResourceAttachmentsSection from "./ResourceAttachmentsSection";@@ -94,27 +94,25 @@ export default function DocumentDetailPage() {<AccessChip pair={doc} /></Stack>- <Paper variant="outlined" sx={{ borderRadius: 2, p: 3 }}>- <Stack spacing={4}>- <DocInfoSection doc={doc} />- <Divider />- <EditFieldsSection- doc={doc}- canMutate={canMutate}- onSaved={(updated) => setDoc(updated)}- />- <Divider />- <InPackagesSection packageIds={doc.packages ?? []} />- <Divider />- <ResourceAttachmentsSection kind="document" resourceId={id} />- {canMutate && (- <>- <Divider />- <DangerSection onDelete={() => setDeleteOpen(true)} />- </>- )}- </Stack>- </Paper>+ <Stack spacing={4}>+ <DocInfoSection doc={doc} />+ <Divider />+ <EditFieldsSection+ doc={doc}+ canMutate={canMutate}+ onSaved={(updated) => setDoc(updated)}+ />+ <Divider />+ <InPackagesSection packageIds={doc.packages ?? []} />+ <Divider />+ <ResourceAttachmentsSection kind="document" resourceId={id} />+ {canMutate && (+ <>+ <Divider />+ <DangerSection onDelete={() => setDeleteOpen(true)} />+ </>+ )}+ </Stack><DeleteResourceDialogopen={deleteOpen}@@ -131,22 +129,40 @@ export default function DocumentDetailPage() {function DocInfoSection({ doc }: { doc: DocumentDetail }) {return (<Stack spacing={1}>- <Typography variant="subtitle2" color="text.secondary">+ <Typography variant="overline" sx={{ color: "text.secondary", display: "block" }}>Info</Typography>- <InfoLine label="Owner" value={doc.owner_name ?? doc.owner_id ?? "—"} />- <InfoLine- label="Created"- value={new Date(doc.created_at).toLocaleString()}- />+ {doc.owner_name ? (+ <InfoLine label="Owner" value={doc.owner_name} />+ ) : (+ <InfoLine label="Owner" value={doc.owner_id} mono />+ )}+ <InfoLine label="Created" value={formatDateTime(doc.created_at)} /></Stack>);}-function InfoLine({ label, value }: { label: string; value: string }) {+function InfoLine({+ label,+ value,+ mono,+}: {+ label: string;+ value: string | null | undefined;+ mono?: boolean;+}) {return (<Typography variant="body2" color="text.secondary">- <strong>{label}:</strong> {value}+ <strong>{label}:</strong>{" "}+ {value ? (+ <Box component="span" sx={mono ? MONO_SX : undefined}>+ {value}+ </Box>+ ) : (+ <Box component="span" sx={{ color: "text.secondary" }}>+ {EM_DASH}+ </Box>+ )}</Typography>);}@@ -199,7 +215,7 @@ function EditFieldsSection({return (<Stack spacing={2}>- <Typography variant="subtitle2" color="text.secondary">+ <Typography variant="overline" sx={{ color: "text.secondary", display: "block" }}>Details</Typography><TextField@@ -266,7 +282,7 @@ function InPackagesSection({ packageIds }: { packageIds: string[] }) {}, [allPackages]);return (<Stack spacing={1}>- <Typography variant="subtitle2" color="text.secondary">+ <Typography variant="overline" sx={{ color: "text.secondary", display: "block" }}>In packages</Typography>{packageIds.length === 0 ? (@@ -294,7 +310,7 @@ function InPackagesSection({ packageIds }: { packageIds: string[] }) {function DangerSection({ onDelete }: { onDelete: () => void }) {return (<Stack spacing={1}>- <Typography variant="subtitle2" color="error">+ <Typography variant="overline" sx={{ color: "error.main", display: "block" }}>Danger zone</Typography><Buttondiff --git a/gateway/src/pages/resources/DocumentsTab.tsx b/gateway/src/pages/resources/DocumentsTab.tsxindex 889a48598..7545cbfa6 100644--- a/gateway/src/pages/resources/DocumentsTab.tsx+++ b/gateway/src/pages/resources/DocumentsTab.tsx@@ -1,5 +1,5 @@import { Alert, Box, CircularProgress } from "@mui/material";-import type { GridColDef } from "@mui/x-data-grid-pro";+import type { GridColDef } from "@mui/x-data-grid";import { useEffect, useMemo, useState } from "react";import { useNavigate } from "react-router";import DataTable from "../../components/DataTable";@@ -7,6 +7,7 @@ import { AccessChip } from "../../components/AccessControls";import type { DocumentSummary } from "../../data/api";import { useDocuments } from "../../data/hooks";import ResourceFiltersBar from "./ResourceFiltersBar";+import { formatDate } from "../../theme/hootFormat";interface Props {refreshKey: number;@@ -62,7 +63,12 @@ export default function DocumentsTab({ refreshKey }: Props) {width: 90,type: "number",},- { field: "created_at", headerName: "Created", width: 180 },+ {+ field: "created_at",+ headerName: "Created",+ width: 116,+ valueFormatter: (value) => formatDate(value as string),+ },],[],);diff --git a/gateway/src/pages/resources/PackageDetailPage.tsx b/gateway/src/pages/resources/PackageDetailPage.tsxindex 2b8b80ae0..88950a89d 100644--- a/gateway/src/pages/resources/PackageDetailPage.tsx+++ b/gateway/src/pages/resources/PackageDetailPage.tsx@@ -7,7 +7,6 @@ import {CircularProgress,Divider,IconButton,- Paper,Stack,TextField,Typography,@@ -26,6 +25,7 @@ import {fromAccessLevel,toAccessLevel,} from "../../data/visibility";+import { EM_DASH, MONO_SX, formatDateTime } from "../../theme/hootFormat";import DeleteResourceDialog from "./DeleteResourceDialog";import PackageMembersSection from "./PackageMembersSection";import ResourceAttachmentsSection from "./ResourceAttachmentsSection";@@ -93,27 +93,25 @@ export default function PackageDetailPage() {<AccessChip pair={pkg} /></Stack>- <Paper variant="outlined" sx={{ borderRadius: 2, p: 3 }}>- <Stack spacing={4}>- <InfoSection pkg={pkg} />- <Divider />- <EditFieldsSection- pkg={pkg}- canMutate={canMutate}- onSaved={(updated) => setPkg(updated)}- />- <Divider />- <PackageMembersSection packageId={id} canMutate={canMutate} />- <Divider />- <ResourceAttachmentsSection kind="package" resourceId={id} />- {canMutate && (- <>- <Divider />- <DangerSection onDelete={() => setDeleteOpen(true)} />- </>- )}- </Stack>- </Paper>+ <Stack spacing={4}>+ <InfoSection pkg={pkg} />+ <Divider />+ <EditFieldsSection+ pkg={pkg}+ canMutate={canMutate}+ onSaved={(updated) => setPkg(updated)}+ />+ <Divider />+ <PackageMembersSection packageId={id} canMutate={canMutate} />+ <Divider />+ <ResourceAttachmentsSection kind="package" resourceId={id} />+ {canMutate && (+ <>+ <Divider />+ <DangerSection onDelete={() => setDeleteOpen(true)} />+ </>+ )}+ </Stack><DeleteResourceDialogopen={deleteOpen}@@ -130,14 +128,25 @@ export default function PackageDetailPage() {function InfoSection({ pkg }: { pkg: PackageDetail }) {return (<Stack spacing={1}>- <Typography variant="subtitle2" color="text.secondary">+ <Typography variant="overline" sx={{ color: "text.secondary", display: "block" }}>Info</Typography><Typography variant="body2" color="text.secondary">- <strong>Owner:</strong> {pkg.owner_name ?? pkg.owner_id}+ <strong>Owner:</strong>{" "}+ {pkg.owner_name ? (+ pkg.owner_name+ ) : pkg.owner_id ? (+ <Box component="span" sx={MONO_SX}>+ {pkg.owner_id}+ </Box>+ ) : (+ <Box component="span" sx={{ color: "text.secondary" }}>+ {EM_DASH}+ </Box>+ )}</Typography><Typography variant="body2" color="text.secondary">- <strong>Created:</strong> {new Date(pkg.created_at).toLocaleString()}+ <strong>Created:</strong> {formatDateTime(pkg.created_at)}</Typography></Stack>);@@ -188,7 +197,7 @@ function EditFieldsSection({return (<Stack spacing={2}>- <Typography variant="subtitle2" color="text.secondary">+ <Typography variant="overline" sx={{ color: "text.secondary", display: "block" }}>Details</Typography><TextField@@ -239,7 +248,7 @@ function EditFieldsSection({function DangerSection({ onDelete }: { onDelete: () => void }) {return (<Stack spacing={1}>- <Typography variant="subtitle2" color="error">+ <Typography variant="overline" sx={{ color: "error.main", display: "block" }}>Danger zone</Typography><Buttondiff --git a/gateway/src/pages/resources/PackageMembersSection.tsx b/gateway/src/pages/resources/PackageMembersSection.tsxindex 18a4ae9d5..dafdaa56c 100644--- a/gateway/src/pages/resources/PackageMembersSection.tsx+++ b/gateway/src/pages/resources/PackageMembersSection.tsx@@ -156,7 +156,7 @@ export default function PackageMembersSection({ packageId, canMutate }: Props) {return (<Stack spacing={3}>- <Typography variant="subtitle2" color="text.secondary">+ <Typography variant="overline" sx={{ color: "text.secondary", display: "block" }}>Members</Typography>{error && <Alert severity="error">{error}</Alert>}diff --git a/gateway/src/pages/resources/PackagesTab.tsx b/gateway/src/pages/resources/PackagesTab.tsxindex 59fff7860..caca4131d 100644--- a/gateway/src/pages/resources/PackagesTab.tsx+++ b/gateway/src/pages/resources/PackagesTab.tsx@@ -1,5 +1,5 @@import { Alert, Box, CircularProgress } from "@mui/material";-import type { GridColDef } from "@mui/x-data-grid-pro";+import type { GridColDef } from "@mui/x-data-grid";import { useEffect, useMemo, useState } from "react";import { useNavigate } from "react-router";import DataTable from "../../components/DataTable";@@ -7,6 +7,7 @@ import { AccessChip } from "../../components/AccessControls";import type { PackageDetail } from "../../data/api";import { usePackages } from "../../data/hooks";import ResourceFiltersBar from "./ResourceFiltersBar";+import { formatDate } from "../../theme/hootFormat";interface Props {refreshKey: number;@@ -72,7 +73,12 @@ export default function PackagesTab({ refreshKey }: Props) {width: 90,type: "number",},- { field: "created_at", headerName: "Created", width: 180 },+ {+ field: "created_at",+ headerName: "Created",+ width: 116,+ valueFormatter: (value) => formatDate(value as string),+ },],[],);diff --git a/gateway/src/pages/resources/ReferenceDetailPage.tsx b/gateway/src/pages/resources/ReferenceDetailPage.tsxindex 9421b2499..63dececc3 100644--- a/gateway/src/pages/resources/ReferenceDetailPage.tsx+++ b/gateway/src/pages/resources/ReferenceDetailPage.tsx@@ -8,7 +8,6 @@ import {CircularProgress,Divider,IconButton,- Paper,Stack,TextField,Typography,@@ -28,6 +27,7 @@ import {toAccessLevel,} from "../../data/visibility";import { usePackages, useReferenceTypes } from "../../data/hooks";+import { EM_DASH, MONO_SX, formatDateTime } from "../../theme/hootFormat";import DeleteResourceDialog from "./DeleteResourceDialog";import ResourceAttachmentsSection from "./ResourceAttachmentsSection";import JsonValueForm from "./value_forms/JsonValueForm";@@ -99,27 +99,25 @@ export default function ReferenceDetailPage() {<AccessChip pair={ref} /></Stack>- <Paper variant="outlined" sx={{ borderRadius: 2, p: 3 }}>- <Stack spacing={4}>- <RefInfoSection ref_={ref} typeLabel={typeSpec?.display_name} />- <Divider />- <EditFieldsSection- ref_={ref}- canMutate={canMutate}- onSaved={(updated) => setRef(updated)}- />- <Divider />- <InPackagesSection packageIds={ref.packages ?? []} />- <Divider />- <ResourceAttachmentsSection kind="reference" resourceId={id} />- {canMutate && (- <>- <Divider />- <DangerSection onDelete={() => setDeleteOpen(true)} />- </>- )}- </Stack>- </Paper>+ <Stack spacing={4}>+ <RefInfoSection ref_={ref} typeLabel={typeSpec?.display_name} />+ <Divider />+ <EditFieldsSection+ ref_={ref}+ canMutate={canMutate}+ onSaved={(updated) => setRef(updated)}+ />+ <Divider />+ <InPackagesSection packageIds={ref.packages ?? []} />+ <Divider />+ <ResourceAttachmentsSection kind="reference" resourceId={id} />+ {canMutate && (+ <>+ <Divider />+ <DangerSection onDelete={() => setDeleteOpen(true)} />+ </>+ )}+ </Stack><DeleteResourceDialogopen={deleteOpen}@@ -142,23 +140,41 @@ function RefInfoSection({}) {return (<Stack spacing={1}>- <Typography variant="subtitle2" color="text.secondary">+ <Typography variant="overline" sx={{ color: "text.secondary", display: "block" }}>Info</Typography><InfoLine label="Type" value={typeLabel ?? ref_.type} />- <InfoLine label="Owner" value={ref_.owner_name ?? ref_.owner_id} />- <InfoLine- label="Created"- value={new Date(ref_.created_at).toLocaleString()}- />+ {ref_.owner_name ? (+ <InfoLine label="Owner" value={ref_.owner_name} />+ ) : (+ <InfoLine label="Owner" value={ref_.owner_id} mono />+ )}+ <InfoLine label="Created" value={formatDateTime(ref_.created_at)} /></Stack>);}-function InfoLine({ label, value }: { label: string; value: string }) {+function InfoLine({+ label,+ value,+ mono,+}: {+ label: string;+ value: string | null | undefined;+ mono?: boolean;+}) {return (<Typography variant="body2" color="text.secondary">- <strong>{label}:</strong> {value}+ <strong>{label}:</strong>{" "}+ {value ? (+ <Box component="span" sx={mono ? MONO_SX : undefined}>+ {value}+ </Box>+ ) : (+ <Box component="span" sx={{ color: "text.secondary" }}>+ {EM_DASH}+ </Box>+ )}</Typography>);}@@ -213,7 +229,7 @@ function EditFieldsSection({return (<Stack spacing={2}>- <Typography variant="subtitle2" color="text.secondary">+ <Typography variant="overline" sx={{ color: "text.secondary", display: "block" }}>Details</Typography><TextField@@ -276,7 +292,7 @@ function InPackagesSection({ packageIds }: { packageIds: string[] }) {}, [allPackages]);return (<Stack spacing={1}>- <Typography variant="subtitle2" color="text.secondary">+ <Typography variant="overline" sx={{ color: "text.secondary", display: "block" }}>In packages</Typography>{packageIds.length === 0 ? (@@ -304,7 +320,7 @@ function InPackagesSection({ packageIds }: { packageIds: string[] }) {function DangerSection({ onDelete }: { onDelete: () => void }) {return (<Stack spacing={1}>- <Typography variant="subtitle2" color="error">+ <Typography variant="overline" sx={{ color: "error.main", display: "block" }}>Danger zone</Typography><Buttondiff --git a/gateway/src/pages/resources/ReferencesTab.tsx b/gateway/src/pages/resources/ReferencesTab.tsxindex 83c879562..58c0334d6 100644--- a/gateway/src/pages/resources/ReferencesTab.tsx+++ b/gateway/src/pages/resources/ReferencesTab.tsx@@ -1,5 +1,5 @@import { Alert, Box, Chip, CircularProgress } from "@mui/material";-import type { GridColDef } from "@mui/x-data-grid-pro";+import type { GridColDef } from "@mui/x-data-grid";import { useEffect, useMemo, useState } from "react";import { useNavigate } from "react-router";import DataTable from "../../components/DataTable";@@ -7,6 +7,7 @@ import { AccessChip } from "../../components/AccessControls";import type { ReferenceDetail } from "../../data/api";import { useReferences, useReferenceTypes } from "../../data/hooks";import ResourceFiltersBar from "./ResourceFiltersBar";+import { formatDate } from "../../theme/hootFormat";interface Props {refreshKey: number;@@ -79,7 +80,12 @@ export default function ReferencesTab({ refreshKey }: Props) {width: 90,type: "number",},- { field: "created_at", headerName: "Created", width: 180 },+ {+ field: "created_at",+ headerName: "Created",+ width: 116,+ valueFormatter: (value) => formatDate(value as string),+ },],[displayNameByType],);diff --git a/gateway/src/pages/resources/ResourceAttachmentsSection.tsx b/gateway/src/pages/resources/ResourceAttachmentsSection.tsxindex 571ece7f4..a0fa8e659 100644--- a/gateway/src/pages/resources/ResourceAttachmentsSection.tsx+++ b/gateway/src/pages/resources/ResourceAttachmentsSection.tsx@@ -101,7 +101,7 @@ export default function ResourceAttachmentsSection({ kind, resourceId }: Props)return (<Stack spacing={1}>- <Typography variant="subtitle2" color="text.secondary">+ <Typography variant="overline" sx={{ color: "text.secondary", display: "block" }}>Attached to</Typography>{error && <Alert severity="error">{error}</Alert>}diff --git a/gateway/src/pages/rooms/RoomCreateFormBody.tsx b/gateway/src/pages/rooms/RoomCreateFormBody.tsxindex d338a02fa..ac1785df4 100644--- a/gateway/src/pages/rooms/RoomCreateFormBody.tsx+++ b/gateway/src/pages/rooms/RoomCreateFormBody.tsx@@ -237,7 +237,7 @@ export default function RoomCreateFormBody() {<Divider /><Stack spacing={1}>- <Typography variant="subtitle2" color="text.secondary">+ <Typography variant="overline" sx={{ color: "text.secondary", display: "block" }}>Roles (optional)</Typography><Typography variant="caption" color="text.secondary">diff --git a/gateway/src/pages/rooms/RoomDetailPage.tsx b/gateway/src/pages/rooms/RoomDetailPage.tsxindex 66d8f6611..ba74109a4 100644--- a/gateway/src/pages/rooms/RoomDetailPage.tsx+++ b/gateway/src/pages/rooms/RoomDetailPage.tsx@@ -20,7 +20,6 @@ import {FormControlLabel,IconButton,MenuItem,- Paper,Stack,Switch,TextField,@@ -52,6 +51,13 @@ import { useAgents, useBridgeUsers, useRoom, useRoomGroups } from "../../data/hoimport { useAuth } from "../../data/AuthContext";import { AccessChip, AccessSelect } from "../../components/AccessControls";import { type AccessLevel, fromAccessLevel, toAccessLevel } from "../../data/visibility";+import {+ EM_DASH,+ MONO_SX,+ channelTypeLabel,+ formatDateTime,+ titleCase,+} from "../../theme/hootFormat";import { effectiveColor, buildGroupIndex, flattenTree } from "./groupTree";import RoomGraphView from "./RoomGraphView";import RoomLinkedRoomsSection from "./RoomLinkedRoomsSection";@@ -108,56 +114,56 @@ export default function RoomDetailPage() {{room.archived && (<Chip label="Archived" size="small" color="warning" />)}- {room.channel_type && <Chip label={room.channel_type} size="small" />}+ {room.channel_type && (+ <Chip label={channelTypeLabel(room.channel_type)} size="small" />+ )}{room.bridge_display_name && (- <Chip label={room.bridge_display_name} size="small" color="info" />+ <Chip label={room.bridge_display_name} size="small" />)}<Button variant="outlined" size="small" onClick={() => setExportOpen(true)}>Export to YAML</Button></Stack>- <Paper variant="outlined" sx={{ borderRadius: 2, p: 3 }}>- <Stack spacing={4}>- <RoomInfoSection room={room} />- <Divider />- <GroupSection room={room} canWrite={canWrite} onChanged={refetch} />- <Divider />- <RolesSection room={room} canWrite={canWrite} onChanged={refetch} />- <Divider />- <EditableFieldsSection- room={room}- canWrite={canWrite}- onSaved={refetch}- />- <Divider />- <ParticipantsSection room={room} onChanged={refetch} />- <Divider />- <RoomResourcesSection roomId={room.id} />- <Divider />- <RoomLinkedRoomsSection roomId={room.id} />- <Divider />- <RoomGraphView roomId={room.id} />- {room.bridge_id && (- <>- <Divider />- <BridgeSection room={room} />- </>- )}- {canWrite && (- <>- <Divider />- <ArchiveSection room={room} onChanged={refetch} />- </>- )}- {canDelete && (- <>- <Divider />- <DangerSection room={room} onDeleted={() => navigate("/rooms")} />- </>- )}- </Stack>- </Paper>+ <Stack spacing={4}>+ <RoomInfoSection room={room} />+ <Divider />+ <GroupSection room={room} canWrite={canWrite} onChanged={refetch} />+ <Divider />+ <RolesSection room={room} canWrite={canWrite} onChanged={refetch} />+ <Divider />+ <EditableFieldsSection+ room={room}+ canWrite={canWrite}+ onSaved={refetch}+ />+ <Divider />+ <ParticipantsSection room={room} onChanged={refetch} />+ <Divider />+ <RoomResourcesSection roomId={room.id} />+ <Divider />+ <RoomLinkedRoomsSection roomId={room.id} />+ <Divider />+ <RoomGraphView roomId={room.id} />+ {room.bridge_id && (+ <>+ <Divider />+ <BridgeSection room={room} />+ </>+ )}+ {canWrite && (+ <>+ <Divider />+ <ArchiveSection room={room} onChanged={refetch} />+ </>+ )}+ {canDelete && (+ <>+ <Divider />+ <DangerSection room={room} onDeleted={() => navigate("/rooms")} />+ </>+ )}+ </Stack><ExportRoomYamlDialogopen={exportOpen}@@ -174,28 +180,52 @@ export default function RoomDetailPage() {function RoomInfoSection({ room }: { room: RoomDetail }) {return (<Stack spacing={1}>- <Typography variant="subtitle2" color="text.secondary">+ <Typography variant="overline" sx={{ color: "text.secondary", display: "block" }}>Room info</Typography><Stack direction="row" spacing={2} flexWrap="wrap" alignItems="center"><AccessChip pair={room} />{room.channel_type && (- <InfoChip label="Channel type" value={room.channel_type} />+ <InfoChip+ label="Channel type"+ value={channelTypeLabel(room.channel_type)}+ />)}- <InfoChip label="Created" value={new Date(room.created_at).toLocaleString()} />- <InfoChip label="Matrix room" value={room.matrix_room_id} />+ <InfoChip label="Created" value={formatDateTime(room.created_at)} />+ <InfoChip label="Matrix room" value={room.matrix_room_id} mono />{room.external_channel_id && (- <InfoChip label="External channel" value={room.external_channel_id} />+ <InfoChip+ label="External channel"+ value={room.external_channel_id}+ mono+ />)}</Stack></Stack>);}-function InfoChip({ label, value }: { label: string; value: string }) {+function InfoChip({+ label,+ value,+ mono,+}: {+ label: string;+ value: string | null | undefined;+ mono?: boolean;+}) {return (<Typography variant="body2" color="text.secondary">- <strong>{label}:</strong> {value}+ <strong>{label}:</strong>{" "}+ {value ? (+ <Box component="span" sx={mono ? MONO_SX : undefined}>+ {value}+ </Box>+ ) : (+ <Box component="span" sx={{ color: "text.secondary" }}>+ {EM_DASH}+ </Box>+ )}</Typography>);}@@ -237,7 +267,7 @@ function GroupSection({return (<Stack spacing={1.5}>- <Typography variant="subtitle2" color="text.secondary">+ <Typography variant="overline" sx={{ color: "text.secondary", display: "block" }}>Group</Typography>{error && <Alert severity="error">{error}</Alert>}@@ -311,7 +341,7 @@ function RolesSection({return (<Stack spacing={1.5}>- <Typography variant="subtitle2" color="text.secondary">+ <Typography variant="overline" sx={{ color: "text.secondary", display: "block" }}>Roles</Typography><Typography variant="caption" color="text.secondary">@@ -619,7 +649,7 @@ function EditableFieldsSection({return (<Stack spacing={2}>- <Typography variant="subtitle2" color="text.secondary">+ <Typography variant="overline" sx={{ color: "text.secondary", display: "block" }}>Settings</Typography>{!canWrite && (@@ -811,7 +841,7 @@ function ParticipantsSection({return (<Stack spacing={3}>- <Typography variant="subtitle2" color="text.secondary">+ <Typography variant="overline" sx={{ color: "text.secondary", display: "block" }}>Participants</Typography>{error && <Alert severity="error">{error}</Alert>}@@ -871,7 +901,7 @@ function ParticipantsSection({)}{isFixedMembership && (<Typography variant="caption" color="text.secondary">- Membership for {room.channel_type} rooms is managed from the messaging platform.+ Membership for {channelTypeLabel(room.channel_type)} rooms is managed from the messaging platform.</Typography>)}</Box>@@ -924,22 +954,22 @@ const STATUS_META: Record<> = {live: {label: "Live",- color: "#4caf50",+ color: "var(--hoot-success)",description: "Connected and receiving events",},awaiting_manual_poll: {label: "Idle",- color: "#ff9800",+ color: "var(--hoot-warning)",description: "Session open — awaiting manual poll",},no_session: {label: "No session",- color: "#9e9e9e",+ color: "var(--hoot-muted-foreground)",description: "Not currently connected to this room",},disconnected: {label: "Disconnected",- color: "#f44336",+ color: "var(--hoot-destructive)",description: "Always-on agent is not connected",},};@@ -961,8 +991,8 @@ function AgentRow({}) {const navigate = useNavigate();const meta = (status && STATUS_META[status]) || {- label: status ?? "unknown",- color: "#9e9e9e",+ label: status ? titleCase(status) : "Unknown",+ color: "var(--hoot-muted-foreground)",description: "",};return (@@ -1045,16 +1075,21 @@ function AgentRow({function BridgeSection({ room }: { room: RoomDetail }) {return (<Stack spacing={1}>- <Typography variant="subtitle2" color="text.secondary">+ <Typography variant="overline" sx={{ color: "text.secondary", display: "block" }}>Bridge</Typography><Stack direction="row" spacing={2} flexWrap="wrap">- <InfoChip- label="Bridge"- value={room.bridge_display_name ?? room.bridge_id ?? "—"}- />+ {room.bridge_display_name ? (+ <InfoChip label="Bridge" value={room.bridge_display_name} />+ ) : (+ <InfoChip label="Bridge" value={room.bridge_id} mono />+ )}{room.external_channel_id && (- <InfoChip label="External channel" value={room.external_channel_id} />+ <InfoChip+ label="External channel"+ value={room.external_channel_id}+ mono+ />)}</Stack><Typography variant="caption" color="text.secondary">@@ -1096,7 +1131,7 @@ function ArchiveSection({return (<Stack spacing={2}>- <Typography variant="subtitle2" color="text.secondary">+ <Typography variant="overline" sx={{ color: "text.secondary", display: "block" }}>Archive</Typography>{error && <Alert severity="error">{error}</Alert>}@@ -1147,7 +1182,7 @@ function DangerSection({return (<Stack spacing={2}>- <Typography variant="subtitle2" color="text.secondary">+ <Typography variant="overline" sx={{ color: "text.secondary", display: "block" }}>Danger zone</Typography>{error && <Alert severity="error">{error}</Alert>}diff --git a/gateway/src/pages/rooms/RoomGraphView.tsx b/gateway/src/pages/rooms/RoomGraphView.tsxindex 8f0e4ed81..dfa94ceb7 100644--- a/gateway/src/pages/rooms/RoomGraphView.tsx+++ b/gateway/src/pages/rooms/RoomGraphView.tsx@@ -8,6 +8,7 @@ import {type LinkedRoomDetail,} from "../../data/api";import { useRoom } from "../../data/hooks";+import { useGraphCanvasTheme } from "../graphCanvasTheme";interface GraphNode {id: string;@@ -181,6 +182,8 @@ export default function RoomGraphView({ roomId }: { roomId: string }) {return () => clearTimeout(t);}, [nodes.length, links.length]);+ const canvas = useGraphCanvasTheme();+const paintNode = useCallback((node: GraphNode, ctx: CanvasRenderingContext2D) => {const { x = 0, y = 0, kind, label } = node;@@ -210,7 +213,7 @@ export default function RoomGraphView({ roomId }: { roomId: string }) {// Plus/minus glyph for non-center nodes to hint at expand/collapse.if (kind !== "center") {const armLen = radius * 0.45;- ctx.strokeStyle = "#0A0C0D";+ ctx.strokeStyle = canvas.nodeStroke;ctx.lineWidth = 1.5;ctx.beginPath();ctx.moveTo(x - armLen, y);@@ -224,14 +227,14 @@ export default function RoomGraphView({ roomId }: { roomId: string }) {// Font in graph coordinates so it scales with the node when zooming.const fontGraphUnits = radius * 0.55;- ctx.font = `${kind === "center" ? "600 " : ""}${fontGraphUnits}px DM Sans, sans-serif`;+ ctx.font = `${kind === "center" ? "600 " : ""}${fontGraphUnits}px ${canvas.fontFamily}`;ctx.textAlign = "center";ctx.textBaseline = "top";- ctx.fillStyle = "#F2F2F2";+ ctx.fillStyle = canvas.label;const truncated = label.length > 32 ? label.slice(0, 31) + "…" : label;ctx.fillText(truncated, x, y + radius + fontGraphUnits * 0.4);},- [],+ [canvas],);const handleNodeClick = useCallback((node: GraphNode) => {@@ -274,7 +277,7 @@ export default function RoomGraphView({ roomId }: { roomId: string }) {overflow: "hidden",border: "1px solid",borderColor: "divider",- backgroundColor: "#0A0C0D",+ backgroundColor: canvas.background,position: "relative",}}>@@ -311,7 +314,7 @@ export default function RoomGraphView({ roomId }: { roomId: string }) {graphData={{ nodes, links }}width={dimensions.width}height={dimensions.height}- backgroundColor="#0A0C0D"+ backgroundColor={canvas.background}nodeRelSize={1}nodeCanvasObject={paintNode}nodePointerAreaPaint={(node, color, ctx) => {@@ -322,7 +325,7 @@ export default function RoomGraphView({ roomId }: { roomId: string }) {ctx.arc(n.x ?? 0, n.y ?? 0, r, 0, 2 * Math.PI);ctx.fill();}}- linkColor={() => "#ffffff40"}+ linkColor={() => canvas.link}linkWidth={1}linkDirectionalArrowLength={5}linkDirectionalArrowRelPos={1}diff --git a/gateway/src/pages/rooms/RoomLinkedRoomsSection.tsx b/gateway/src/pages/rooms/RoomLinkedRoomsSection.tsxindex b40a9a55f..a7475bf86 100644--- a/gateway/src/pages/rooms/RoomLinkedRoomsSection.tsx+++ b/gateway/src/pages/rooms/RoomLinkedRoomsSection.tsx@@ -81,7 +81,7 @@ export default function RoomLinkedRoomsSection({ roomId }: Props) {}}onClick={() => navigate(`/rooms/${link.target_room_id}`)}>- <Chip label={link.label} size="small" color="primary" />+ <Chip label={link.label} size="small" /><Stack sx={{ flexGrow: 1, minWidth: 0 }}><Typography variant="body2" noWrap>{link.target_room_name}diff --git a/gateway/src/pages/rooms/RoomResourcesSection.tsx b/gateway/src/pages/rooms/RoomResourcesSection.tsxindex 809a10747..e3ef5fb9d 100644--- a/gateway/src/pages/rooms/RoomResourcesSection.tsx+++ b/gateway/src/pages/rooms/RoomResourcesSection.tsx@@ -50,7 +50,7 @@ export default function RoomResourcesSection({ roomId }: Props) {return (<Stack spacing={3}>- <Typography variant="subtitle2" color="text.secondary">+ <Typography variant="overline" sx={{ color: "text.secondary", display: "block" }}>Resources</Typography><RoomReferences@@ -92,7 +92,6 @@ function PackageChips({label={`via ${packageDescriptions[pid] ?? "package"}`}size="small"variant="outlined"- color="info"onClick={(e) => {e.stopPropagation();navigate(`/resources/packages/${pid}`);diff --git a/gateway/src/pages/rooms/RoomsGraphPage.tsx b/gateway/src/pages/rooms/RoomsGraphPage.tsxindex 9021a71b3..9c5db63c3 100644--- a/gateway/src/pages/rooms/RoomsGraphPage.tsx+++ b/gateway/src/pages/rooms/RoomsGraphPage.tsx@@ -13,6 +13,7 @@ import { useNavigate } from "react-router";import { useRoomGraph, useRoomGroups, useRooms } from "../../data/hooks";import { branchColor, buildGroupIndex, topAncestor } from "./groupTree";import { RoomFilters, filterRooms, useRoomFilterState } from "./roomFilters";+import { useGraphCanvasTheme } from "../graphCanvasTheme";interface GraphNode {id: string;@@ -147,6 +148,8 @@ export default function RoomsGraphPage() {return () => clearTimeout(t);}, [nodes.length, links.length]);+ const canvas = useGraphCanvasTheme();+const paintNode = useCallback((node: GraphNode, ctx: CanvasRenderingContext2D) => {const { x = 0, y = 0, label, isolated, degree, color } = node;@@ -169,14 +172,14 @@ export default function RoomsGraphPage() {// Font in graph coordinates: scales with zoom in lockstep with the node.const fontGraphUnits = radius * 0.5;- ctx.font = `${fontGraphUnits}px DM Sans, sans-serif`;+ ctx.font = `${fontGraphUnits}px ${canvas.fontFamily}`;ctx.textAlign = "center";ctx.textBaseline = "top";- ctx.fillStyle = isolated ? "#9097A0" : "#F2F2F2";+ ctx.fillStyle = isolated ? canvas.labelMuted : canvas.label;const truncated = label.length > 32 ? label.slice(0, 31) + "…" : label;ctx.fillText(truncated, x, y + radius + fontGraphUnits * 0.4);},- [],+ [canvas],);const handleNodeClick = useCallback(@@ -217,7 +220,7 @@ export default function RoomsGraphPage() {overflow: "hidden",border: "1px solid",borderColor: "divider",- backgroundColor: "#0A0C0D",+ backgroundColor: canvas.background,position: "relative",}}>@@ -243,8 +246,9 @@ export default function RoomsGraphPage() {left: 12,zIndex: 2,p: 1.25,- borderRadius: 1.5,- backgroundColor: "rgba(10,12,13,0.78)",+ borderRadius: "12px",+ backgroundColor: "background.paper",+ boxShadow: "var(--hoot-shadow-popover)",border: "1px solid",borderColor: "divider",maxWidth: 220,@@ -274,7 +278,7 @@ export default function RoomsGraphPage() {flexShrink: 0,}}/>- <Typography variant="caption" sx={{ color: "#E0E3E7" }}>+ <Typography variant="caption" sx={{ color: "text.primary" }}>{entry.name}</Typography></Stack>@@ -303,7 +307,7 @@ export default function RoomsGraphPage() {graphData={{ nodes, links }}width={dimensions.width}height={dimensions.height}- backgroundColor="#0A0C0D"+ backgroundColor={canvas.background}nodeRelSize={1}nodeCanvasObject={paintNode}nodePointerAreaPaint={(node, color, ctx) => {@@ -314,7 +318,7 @@ export default function RoomsGraphPage() {ctx.arc(n.x ?? 0, n.y ?? 0, r, 0, 2 * Math.PI);ctx.fill();}}- linkColor={() => "#ffffff40"}+ linkColor={() => canvas.link}linkWidth={1}linkDirectionalArrowLength={5}linkDirectionalArrowRelPos={1}diff --git a/gateway/src/pages/rooms/RoomsPage.tsx b/gateway/src/pages/rooms/RoomsPage.tsxindex 9ab2e2442..a6ff4c547 100644--- a/gateway/src/pages/rooms/RoomsPage.tsx+++ b/gateway/src/pages/rooms/RoomsPage.tsx@@ -4,7 +4,7 @@ import ArchiveOutlined from "@mui/icons-material/ArchiveOutlined";import FolderOutlined from "@mui/icons-material/FolderOutlined";import UnarchiveOutlined from "@mui/icons-material/UnarchiveOutlined";import { Box, Button, Chip, CircularProgress, Stack, Typography } from "@mui/material";-import type { GridColDef, GridRowId } from "@mui/x-data-grid-pro";+import type { GridColDef, GridRowId } from "@mui/x-data-grid";import { useCallback, useMemo, useState } from "react";import { useNavigate } from "react-router";import { AccessChip } from "../../components/AccessControls";@@ -16,9 +16,18 @@ import {unarchiveRoom,} from "../../data/api";import { useRoomGroups, useRooms } from "../../data/hooks";+import { EM_DASH, MONO_SX, channelTypeLabel, formatDate } from "../../theme/hootFormat";import { buildGroupIndex, effectiveColor, groupPathName } from "./groupTree";import { RoomFilters, filterRooms, useRoomFilterState } from "./roomFilters";+function Missing() {+ return (+ <Typography component="span" variant="body2" sx={{ color: "text.secondary" }}>+ {EM_DASH}+ </Typography>+ );+}+function ColorDot({ color }: { color: string }) {return (<Box@@ -102,7 +111,7 @@ export default function RoomsPage() {<span>{groupPathName(row.group_id, byId) || row.group_name}</span></Stack>) : (- "—"+ <Missing />),},{@@ -110,40 +119,61 @@ export default function RoomsPage() {headerName: "Owner",flex: 1,minWidth: 150,- renderCell: ({ value, row }) => value ?? (row.owner_id ? row.owner_id : "—"),+ renderCell: ({ value, row }) =>+ value ??+ (row.owner_id ? (+ <Typography component="span" sx={MONO_SX}>+ {row.owner_id}+ </Typography>+ ) : (+ <Missing />+ )),},{field: "read_visibility",headerName: "Access",- width: 120,+ width: 108,renderCell: ({ row }) => <AccessChip pair={row} />,},{field: "channel_type",headerName: "Type",- width: 120,+ width: 150,renderCell: ({ value }) =>- value ? <Chip label={value} size="small" /> : "—",+ value ? (+ <Chip label={channelTypeLabel(value as string)} size="small" />+ ) : (+ <Missing />+ ),},- { field: "agent_count", headerName: "Agents", width: 90, type: "number" },+ { field: "agent_count", headerName: "Agents", width: 84, type: "number" },{field: "connected_user_count",- headerName: "Connected Users",- width: 140,+ headerName: "Users",+ width: 84,type: "number",},{field: "bridge_display_name",headerName: "Bridge",- width: 160,+ width: 130,renderCell: ({ value }) =>- value ? <Chip label={value} size="small" color="info" /> : "—",+ value ? (+ <Chip label={value} size="small" />+ ) : (+ <Missing />+ ),+ },+ {+ field: "created_at",+ headerName: "Created",+ width: 116,+ valueFormatter: (value) => formatDate(value as string),},- { field: "created_at", headerName: "Created", width: 180 },{field: "actions",headerName: "",- width: 140,+ width: 116,sortable: false,filterable: false,renderCell: ({ row }) => (diff --git a/gateway/src/pages/users/UsersPage.tsx b/gateway/src/pages/users/UsersPage.tsxindex f704fd44b..ec06cbd8e 100644--- a/gateway/src/pages/users/UsersPage.tsx+++ b/gateway/src/pages/users/UsersPage.tsx@@ -1,10 +1,11 @@import AddCircleOutline from "@mui/icons-material/AddCircleOutline";import { Box, Button, Chip, CircularProgress, Stack, Typography } from "@mui/material";-import type { GridColDef } from "@mui/x-data-grid-pro";+import type { GridColDef } from "@mui/x-data-grid";import { useMemo, useState } from "react";import DataTable from "../../components/DataTable";import type { UserInfo } from "../../data/api";import { useUsers } from "../../data/hooks";+import { formatDate, titleCase } from "../../theme/hootFormat";import CreateUserDialog from "./CreateUserDialog";export default function UsersPage() {@@ -21,13 +22,18 @@ export default function UsersPage() {width: 120,renderCell: ({ value }) => (<Chip- label={value}+ label={titleCase(String(value))}size="small"color={value === "admin" ? "primary" : "default"}/>),},- { field: "created_at", headerName: "Created", width: 180 },+ {+ field: "created_at",+ headerName: "Created",+ width: 140,+ valueFormatter: (value) => formatDate(value as string),+ },],[],);diff --git a/gateway/src/theme/global-style.ts b/gateway/src/theme/global-style.tsindex fd4d06619..a527fb069 100644--- a/gateway/src/theme/global-style.ts+++ b/gateway/src/theme/global-style.ts@@ -2,8 +2,11 @@ import type { GlobalStylesProps } from "@mui/material";export const GLOBAL_STYLE: GlobalStylesProps["styles"] = {":root": {- "--nav-drawer-width": "14rem",- "--nav-closed-drawer-width": "3.25rem",+ // Hoot's shell: a narrow icon rail and a slim top bar framing one rounded+ // content surface. Both sit bare on the canvas.+ "--nav-rail-width": "5rem",+ "--top-bar-height": "3rem",+ "--surface-gutter": "0.5rem","--main-toolbar-height": "4rem",},"*": {@@ -13,13 +16,20 @@ export const GLOBAL_STYLE: GlobalStylesProps["styles"] = {position: "sticky !important",top: 0,zIndex: "var(--mui-zIndex-appBar)",- backgroundColor: "var(--mui-palette-background-default)",+ backgroundColor: "var(--hoot-card)",borderBottom: "1px solid",- borderBottomColor: "var(--mui-palette-divider)",+ borderBottomColor: "var(--hoot-border)",boxSizing: "content-box",},- ".logo-bar": {- backgroundColor: "var(--mui-palette-background-nav)",- border: "none",+ // Newly appearing content gets a gentle entrance (DESIGN.md §15).+ "@keyframes hoot-slide-up-fade": {+ from: { opacity: 0, transform: "translateY(14px)" },+ to: { opacity: 1, transform: "translateY(0)" },+ },+ ".hoot-enter": {+ animation: "hoot-slide-up-fade 0.5s cubic-bezier(0.16, 1, 0.3, 1) both",+ },+ "@media (prefers-reduced-motion: reduce)": {+ ".hoot-enter": { animation: "none" },},};diff --git a/gateway/src/theme/hoot-tokens.ts b/gateway/src/theme/hoot-tokens.tsnew file mode 100644index 000000000..9db22d321--- /dev/null+++ b/gateway/src/theme/hoot-tokens.ts@@ -0,0 +1,117 @@+/* GENERATED by scripts/gen-hoot-tokens.mjs from src/theme/hoot.css — do not edit.+ hoot.css is the source of truth; these are its oklch colours converted to sRGB+ because MUI's palette and colour manipulators cannot parse oklch.+ Regenerate with: npm run gen:tokens */++export const HOOT_LIGHT = {+ background: "#f9f7f5",+ foreground: "#0d0806",+ cream: "rgba(242, 238, 231, 0.2)",+ card: "#fefdfc",+ cardForeground: "#09090b",+ popover: "#fefdfc",+ popoverForeground: "#09090b",+ primary: "#18181b",+ primaryForeground: "#f5f3f0",+ secondary: "#f2f0ec",+ secondaryForeground: "#18181b",+ muted: "#f2f0ec",+ mutedForeground: "#3f3f46",+ accent: "#f2f0ec",+ accentForeground: "#18181b",+ destructive: "#e7000b",+ destructiveForeground: "#ffffff",+ destructiveMuted: "rgba(231, 0, 11, 0.15)",+ success: "#009966",+ successForeground: "#ffffff",+ successMuted: "rgba(0, 153, 102, 0.15)",+ warning: "#fe9a00",+ warningForeground: "#ffffff",+ warningMuted: "rgba(254, 154, 0, 0.15)",+ actionBlocked: "#d53e4f",+ actionBlockedForeground: "#ffffff",+ actionBlockedMuted: "rgba(213, 62, 79, 0.15)",+ actionRedacted: "#f46d43",+ actionRedactedForeground: "#ffffff",+ actionRedactedMuted: "rgba(244, 109, 67, 0.15)",+ actionAlerted: "#f1b979",+ actionAlertedForeground: "#0d0806",+ actionAlertedMuted: "rgba(241, 185, 121, 0.5)",+ border: "#e6e4e1",+ borderStrong: "#c8c3bd",+ input: "#e6e4e1",+ ring: "#9f9fa9",+ chart1: "#d4d4d8",+ chart2: "#71717b",+ chart3: "#52525c",+ chart4: "#3f3f46",+ chart5: "#27272a",+ surface: "#fbf8f3",+ sidebar: "#f8f6f4",+ sidebarForeground: "#09090b",+ sidebarPrimary: "#18181b",+ sidebarPrimaryForeground: "#f5f3f0",+ sidebarAccent: "#f2f0ec",+ sidebarAccentForeground: "#18181b",+ sidebarBorder: "#e6e4e1",+ sidebarRing: "#9f9fa9",+} as const;++export const HOOT_DARK = {+ background: "#09090b",+ foreground: "#fafafa",+ cream: "rgba(242, 238, 231, 0.08)",+ card: "#18181b",+ cardForeground: "#fafafa",+ popover: "#18181b",+ popoverForeground: "#fafafa",+ primary: "#e4e4e7",+ primaryForeground: "#18181b",+ secondary: "#27272a",+ secondaryForeground: "#fafafa",+ muted: "#27272a",+ mutedForeground: "#9f9fa9",+ accent: "#27272a",+ accentForeground: "#fafafa",+ destructive: "#ff6467",+ destructiveForeground: "#ffffff",+ destructiveMuted: "rgba(255, 100, 103, 0.15)",+ success: "#00bc7d",+ successForeground: "#ffffff",+ successMuted: "rgba(0, 188, 125, 0.15)",+ warning: "#f4ba26",+ warningForeground: "#ffffff",+ warningMuted: "rgba(244, 186, 38, 0.15)",+ actionBlocked: "#d53e4f",+ actionBlockedForeground: "#ffffff",+ actionBlockedMuted: "rgba(213, 62, 79, 0.15)",+ actionRedacted: "#f46d43",+ actionRedactedForeground: "#ffffff",+ actionRedactedMuted: "rgba(244, 109, 67, 0.15)",+ actionAlerted: "#f1b979",+ actionAlertedForeground: "#0d0806",+ actionAlertedMuted: "rgba(241, 185, 121, 0.5)",+ border: "rgba(255, 255, 255, 0.1)",+ borderStrong: "rgba(255, 255, 255, 0.2)",+ input: "rgba(255, 255, 255, 0.15)",+ ring: "#71717b",+ chart1: "#d4d4d8",+ chart2: "#71717b",+ chart3: "#52525c",+ chart4: "#3f3f46",+ chart5: "#27272a",+ surface: "#221f19",+ sidebar: "#18181b",+ sidebarForeground: "#fafafa",+ sidebarPrimary: "#1447e6",+ sidebarPrimaryForeground: "#fafafa",+ sidebarAccent: "#27272a",+ sidebarAccentForeground: "#fafafa",+ sidebarBorder: "rgba(255, 255, 255, 0.1)",+ sidebarRing: "#71717b",+} as const;++export type HootColorToken = keyof typeof HOOT_LIGHT;++/** Reference a Hoot token as a live CSS variable (follows the active scheme). */+export const hootVar = (token: string) => `var(--hoot-${token})`;diff --git a/gateway/src/theme/hoot.css b/gateway/src/theme/hoot.cssnew file mode 100644index 000000000..7e4a94d51--- /dev/null+++ b/gateway/src/theme/hoot.css@@ -0,0 +1,191 @@+/* Hoot theme tokens — the SINGLE SOURCE OF TRUTH for token values.+ Vendored from the Hoot design system (vibe-playground `src/hoot/hoot.css`).++ Only two things are adapted from upstream:+ - the theme selectors target MUI's `data-mui-color-scheme` attribute+ instead of `data-hoot-theme`, so MUI's colour-scheme switching drives them;+ - the Tailwind-specific `.text-*` / `.font-hoot` rules are dropped — the type+ ramp is applied through MUI's typography instead, reading the vars below.++ Token VALUES are otherwise byte-identical to upstream: re-syncing is a copy.+ `hoot-tokens.ts` is GENERATED from this file (`npm run gen:tokens`) — MUI's+ palette needs parseable colours, so the oklch values here are converted to+ sRGB there. Never hand-edit that file; edit this one and regenerate. */++:root,+[data-mui-color-scheme="light"] {+ --hoot-background: oklch(0.978 0.004 77.9);+ --hoot-foreground: oklch(0.14 0.012 42.65);+ --hoot-cream: oklch(0.95 0.01 78 / 20%);+ --hoot-card: oklch(0.995 0.002 78);+ --hoot-card-foreground: oklch(0.141 0.005 285.823);+ --hoot-popover: oklch(0.995 0.002 78);+ --hoot-popover-foreground: oklch(0.141 0.005 285.823);+ --hoot-primary: oklch(0.21 0.006 285.885);+ --hoot-primary-foreground: oklch(0.965 0.005 78);+ --hoot-secondary: oklch(0.955 0.005 78);+ --hoot-secondary-foreground: oklch(0.21 0.006 285.885);+ --hoot-muted: oklch(0.955 0.005 78);+ --hoot-muted-foreground: oklch(0.37 0.013 285.805);+ --hoot-accent: oklch(0.955 0.005 78);+ --hoot-accent-foreground: oklch(0.21 0.006 285.885);+ --hoot-destructive: oklch(0.577 0.245 27.325);+ --hoot-destructive-foreground: oklch(1 0 0);+ --hoot-destructive-muted: oklch(0.577 0.245 27.325 / 15%);+ --hoot-success: oklch(0.596 0.145 163.225);+ --hoot-success-foreground: oklch(1 0 0);+ --hoot-success-muted: oklch(0.596 0.145 163.225 / 15%);+ --hoot-warning: oklch(0.769 0.188 70.08);+ --hoot-warning-foreground: oklch(1 0 0);+ --hoot-warning-muted: oklch(0.769 0.188 70.08 / 15%);+ --hoot-action-blocked: oklch(0.589 0.187 18.9);+ --hoot-action-blocked-foreground: oklch(1 0 0);+ --hoot-action-blocked-muted: oklch(0.589 0.187 18.9 / 15%);+ --hoot-action-redacted: oklch(0.692 0.176 37.7);+ --hoot-action-redacted-foreground: oklch(1 0 0);+ --hoot-action-redacted-muted: oklch(0.692 0.176 37.7 / 15%);+ --hoot-action-alerted: oklch(0.823 0.104 69.3);+ --hoot-action-alerted-foreground: oklch(0.14 0.012 42.65);+ --hoot-action-alerted-muted: oklch(0.823 0.104 69.3 / 50%);+ --hoot-border: oklch(0.92 0.005 78);+ --hoot-border-strong: oklch(0.82 0.01 78);+ --hoot-input: oklch(0.92 0.005 78);+ --hoot-ring: oklch(0.705 0.015 286.067);+ --hoot-chart-1: oklch(0.871 0.006 286.286);+ --hoot-chart-2: oklch(0.552 0.016 285.938);+ --hoot-chart-3: oklch(0.442 0.017 285.786);+ --hoot-chart-4: oklch(0.37 0.013 285.805);+ --hoot-chart-5: oklch(0.274 0.006 286.033);+ --hoot-radius: 0.625rem;+ --hoot-surface: oklch(0.98 0.007 78);+ --hoot-sidebar: oklch(0.975 0.004 78);+ --hoot-sidebar-foreground: oklch(0.141 0.005 285.823);+ --hoot-sidebar-primary: oklch(0.21 0.006 285.885);+ --hoot-sidebar-primary-foreground: oklch(0.965 0.005 78);+ --hoot-sidebar-accent: oklch(0.955 0.005 78);+ --hoot-sidebar-accent-foreground: oklch(0.21 0.006 285.885);+ --hoot-sidebar-border: oklch(0.92 0.005 78);+ --hoot-sidebar-ring: oklch(0.705 0.015 286.067);+}++[data-mui-color-scheme="dark"] {+ --hoot-background: oklch(0.141 0.005 285.823);+ --hoot-foreground: oklch(0.985 0 0);+ --hoot-cream: oklch(0.95 0.01 78 / 8%);+ --hoot-card: oklch(0.21 0.006 285.885);+ --hoot-card-foreground: oklch(0.985 0 0);+ --hoot-popover: oklch(0.21 0.006 285.885);+ --hoot-popover-foreground: oklch(0.985 0 0);+ --hoot-primary: oklch(0.92 0.004 286.32);+ --hoot-primary-foreground: oklch(0.21 0.006 285.885);+ --hoot-secondary: oklch(0.274 0.006 286.033);+ --hoot-secondary-foreground: oklch(0.985 0 0);+ --hoot-muted: oklch(0.274 0.006 286.033);+ --hoot-muted-foreground: oklch(0.705 0.015 286.067);+ --hoot-accent: oklch(0.274 0.006 286.033);+ --hoot-accent-foreground: oklch(0.985 0 0);+ --hoot-destructive: oklch(0.704 0.191 22.216);+ --hoot-destructive-foreground: oklch(1 0 0);+ --hoot-destructive-muted: oklch(0.704 0.191 22.216 / 15%);+ --hoot-success: oklch(0.696 0.17 162.48);+ --hoot-success-foreground: oklch(1 0 0);+ --hoot-success-muted: oklch(0.696 0.17 162.48 / 15%);+ --hoot-warning: oklch(0.82 0.16 84.429);+ --hoot-warning-foreground: oklch(1 0 0);+ --hoot-warning-muted: oklch(0.82 0.16 84.429 / 15%);+ --hoot-action-blocked: oklch(0.589 0.187 18.9);+ --hoot-action-blocked-foreground: oklch(1 0 0);+ --hoot-action-blocked-muted: oklch(0.589 0.187 18.9 / 15%);+ --hoot-action-redacted: oklch(0.692 0.176 37.7);+ --hoot-action-redacted-foreground: oklch(1 0 0);+ --hoot-action-redacted-muted: oklch(0.692 0.176 37.7 / 15%);+ --hoot-action-alerted: oklch(0.823 0.104 69.3);+ --hoot-action-alerted-foreground: oklch(0.14 0.012 42.65);+ --hoot-action-alerted-muted: oklch(0.823 0.104 69.3 / 50%);+ --hoot-border: oklch(1 0 0 / 10%);+ --hoot-border-strong: oklch(1 0 0 / 20%);+ --hoot-input: oklch(1 0 0 / 15%);+ --hoot-ring: oklch(0.552 0.016 285.938);+ --hoot-chart-1: oklch(0.871 0.006 286.286);+ --hoot-chart-2: oklch(0.552 0.016 285.938);+ --hoot-chart-3: oklch(0.442 0.017 285.786);+ --hoot-chart-4: oklch(0.37 0.013 285.805);+ --hoot-chart-5: oklch(0.274 0.006 286.033);+ --hoot-radius: 0.625rem;+ --hoot-surface: oklch(0.24 0.012 78);+ --hoot-sidebar: oklch(0.21 0.006 285.885);+ --hoot-sidebar-foreground: oklch(0.985 0 0);+ --hoot-sidebar-primary: oklch(0.488 0.243 264.376);+ --hoot-sidebar-primary-foreground: oklch(0.985 0 0);+ --hoot-sidebar-accent: oklch(0.274 0.006 286.033);+ --hoot-sidebar-accent-foreground: oklch(0.985 0 0);+ --hoot-sidebar-border: oklch(1 0 0 / 10%);+ --hoot-sidebar-ring: oklch(0.552 0.016 285.938);+}++:root {+ --hoot-text-xs: 0.75rem; /* 12px */+ --hoot-text-sm: 0.875rem; /* 14px */+ --hoot-text-base: 0.9375rem; /* 15px */+ --hoot-text-lg: 1.0625rem; /* 17px */+ --hoot-text-xl: 1.1875rem; /* 19px */+ --hoot-text-2xl: 1.4375rem; /* 23px */+ --hoot-text-3xl: 1.8125rem; /* 29px */++ --hoot-leading-xs: 1rem; /* 16px */+ --hoot-leading-sm: 1.25rem; /* 20px */+ --hoot-leading-base: 1.5rem; /* 24px */+ --hoot-leading-lg: 1.625rem; /* 26px */+ --hoot-leading-xl: 1.75rem; /* 28px */+ --hoot-leading-2xl: 2rem; /* 32px */+ --hoot-leading-3xl: 2.25rem; /* 36px */++ /* Border radius — theme-independent. Signature = --hoot-radius (10px). */+ --hoot-radius-none: 0;+ --hoot-radius-px: 1px;+ --hoot-radius-sm: 0.125rem; /* 2px */+ --hoot-radius-base: 0.25rem; /* 4px */+ --hoot-radius-md: 0.375rem; /* 6px */+ --hoot-radius-lg: 0.5rem; /* 8px */+ --hoot-radius-signature: 0.625rem; /* 10px — mirrors --hoot-radius */+ --hoot-radius-xl: 0.75rem; /* 12px */+ --hoot-radius-2xl: 1rem; /* 16px */+ --hoot-radius-full: 9999px;++ /* Spacing — theme-independent, standard 4px scale (only steps Hoot uses).+ Dots in step names are encoded as `_` (CSS vars can't contain `.`). */+ --hoot-space-0: 0;+ --hoot-space-0_5: 0.125rem; /* 2px */+ --hoot-space-1: 0.25rem; /* 4px */+ --hoot-space-1_5: 0.375rem; /* 6px */+ --hoot-space-2: 0.5rem; /* 8px */+ --hoot-space-2_5: 0.625rem; /* 10px */+ --hoot-space-3: 0.75rem; /* 12px */+ --hoot-space-3_5: 0.875rem; /* 14px */+ --hoot-space-4: 1rem; /* 16px */+ --hoot-space-5: 1.25rem; /* 20px */+ --hoot-space-6: 1.5rem; /* 24px */+ --hoot-space-7: 1.75rem; /* 28px */+ --hoot-space-8: 2rem; /* 32px */+ --hoot-space-9: 2.25rem; /* 36px */+ --hoot-space-10: 2.5rem; /* 40px */+ --hoot-space-12: 3rem; /* 48px */+ --hoot-space-16: 4rem; /* 64px */+ --hoot-space-20: 5rem; /* 80px */+ --hoot-space-24: 6rem; /* 96px */++ /* Elevation — "depth is whispered": a single soft ambient glow, never a+ hard drop shadow. Ladder: surface -> card -> popover -> modal. */+ --hoot-shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.04);+ --hoot-shadow-surface: 0 0 12px 0 rgb(0 0 0 / 0.04);+ --hoot-shadow-rail-active: 0 0 12px 2px rgb(0 0 0 / 0.04);+ --hoot-shadow-popover: 0 0 4px 0 rgb(0 0 0 / 0.1), 0 1px 10px 0 rgb(0 0 0 / 0.06);+ --hoot-shadow-modal: 0 0 8px 0 rgb(0 0 0 / 0.12), 0 8px 32px 0 rgb(0 0 0 / 0.12);++ /* Hoot's canvas: the warm off-white the whole app floats on. */+ --hoot-canvas: #f4eee6;+}++[data-mui-color-scheme="dark"] {+ --hoot-canvas: oklch(0.11 0.004 285.823);+}diff --git a/gateway/src/theme/hootFormat.ts b/gateway/src/theme/hootFormat.tsnew file mode 100644index 000000000..31a932cf5--- /dev/null+++ b/gateway/src/theme/hootFormat.ts@@ -0,0 +1,103 @@+/* Formatting conventions from the Hoot design system's DESIGN.md.+ * Dates (§1), numbers (§3), empty states (§6) and identifiers (§9) are+ * prescriptive there — these helpers are the single place they're applied. */++/** Missing values render as a muted em-dash, never "N/A" and never a blank. */+export const EM_DASH = "—";++const pad = (n: number) => String(n).padStart(2, "0");++const parse = (value: string | number | Date | null | undefined): Date | null => {+ if (value === null || value === undefined || value === "") return null;+ const date = value instanceof Date ? value : new Date(value);+ return Number.isNaN(date.getTime()) ? null : date;+};++/** `2026-07-02` — unambiguous and sortable. Use in tables and filters, where+ * scannability and column alignment matter more than the exact minute. */+export function formatDate(value: string | number | Date | null | undefined): string {+ const date = parse(value);+ if (!date) return EM_DASH;+ return `${date.getFullYear()}-${pad(date.getMonth() + 1)}-${pad(date.getDate())}`;+}++/** `2026-07-02 9:23 AM` — the `YYYY-MM-DD` order is kept even though the time+ * carries AM/PM. Use in detail views and anywhere precise metadata is the point. */+export function formatDateTime(value: string | number | Date | null | undefined): string {+ const date = parse(value);+ if (!date) return EM_DASH;+ const hours = date.getHours();+ const suffix = hours < 12 ? "AM" : "PM";+ const hour12 = hours % 12 === 0 ? 12 : hours % 12;+ return `${formatDate(date)} ${hour12}:${pad(date.getMinutes())} ${suffix}`;+}++/** Recency ladder: `Just now`, `N min ago`, `N hr ago`, `N days ago`, then a+ * short absolute date once something is more than a week old. Always pair with+ * the full absolute timestamp on hover — see `absoluteTitle`. */+export function formatRelative(value: string | number | Date | null | undefined): string {+ const date = parse(value);+ if (!date) return "Never";++ const seconds = Math.floor((Date.now() - date.getTime()) / 1000);+ if (seconds < 0) return formatDate(date);+ if (seconds < 60) return "Just now";++ const minutes = Math.floor(seconds / 60);+ if (minutes < 60) return `${minutes} min ago`;++ const hours = Math.floor(minutes / 60);+ if (hours < 24) return `${hours} hr ago`;++ const days = Math.floor(hours / 24);+ if (days <= 7) return `${days} ${days === 1 ? "day" : "days"} ago`;++ return formatDate(date);+}++/** The absolute timestamp that every relative time reveals on hover. */+export const absoluteTitle = (value: string | number | Date | null | undefined): string =>+ formatDateTime(value);++/** Thousands separators below 1,000; `1.5k` / `2.4M` above, for glanceable spots. */+export function formatCount(value: number | null | undefined): string {+ if (value === null || value === undefined || Number.isNaN(value)) return EM_DASH;+ if (Math.abs(value) < 1000) return value.toLocaleString("en-US");+ if (Math.abs(value) < 1_000_000) return `${(value / 1000).toFixed(1)}k`;+ return `${(value / 1_000_000).toFixed(1)}M`;+}++/** Match the noun to the number: `1 issue`, `3 issues`, and explicit zero copy. */+export function pluralize(count: number, singular: string, plural = `${singular}s`): string {+ if (count === 0) return `No ${plural}`;+ return `${count.toLocaleString("en-US")} ${count === 1 ? singular : plural}`;+}++/** Raw enum values never reach the UI; every status carries one canonical label. */+export const CHANNEL_TYPE_LABELS: Record<string, string> = {+ channel_public: "Public channel",+ channel_private: "Private channel",+ direct: "Direct message",+};++export const channelTypeLabel = (value: string | null | undefined): string =>+ value ? (CHANNEL_TYPE_LABELS[value] ?? titleCase(value)) : EM_DASH;++/** `session_addressable` -> `Session Addressable`. Status labels are Title Case. */+export function titleCase(value: string): string {+ return value+ .replace(/[_-]+/g, " ")+ .trim()+ .replace(/\b\w/g, (c) => c.toUpperCase());+}++/** Identifiers, hashes, IPs and code render in monospace — character-level+ * precision is the point. Spread onto an `sx`. */+export const MONO_SX = {+ fontFamily:+ 'ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace',+ fontSize: "0.8125rem",+} as const;++/** Numeric cells line up. */+export const TABULAR_SX = { fontVariantNumeric: "tabular-nums" } as const;diff --git a/gateway/src/theme/theme.ts b/gateway/src/theme/theme.tsindex 167135034..29a709575 100644--- a/gateway/src/theme/theme.ts+++ b/gateway/src/theme/theme.ts@@ -1,101 +1,304 @@import { createTheme } from "@mui/material";-import type { PaletteOptions } from "@mui/material";+import type { PaletteOptions, Shadows } from "@mui/material";+import { HOOT_DARK, HOOT_LIGHT, hootVar } from "./hoot-tokens";declare module "@mui/material/styles" {interface TypeBackground {- nav?: string;+ /** The warm canvas the whole app floats on, behind the content surface. */+ canvas: string;+ /** The icon rail / chrome band. Sits bare on the canvas. */+ nav: string;+ /** Inset panels within a card ("cream" tiles). */+ surface: string;}}-const PRIMARY = "#A1C9D2";-const TEXT_PRIMARY = "#F2F2F2";-const TEXT_SECONDARY = "#F2F2F2B3";-const TEXT_DISABLED = "rgba(242, 242, 242, 0.5)";+/** Identity tint — Switch's own accent, used for avatars and org badges only.+ * Hoot has no brand accent: `primary` is a near-black reserved for the single+ * primary action per view (DESIGN.md, "Colors"). */+export const IDENTITY_TINT = "#A1C9D2";-const PALETTE: Partial<PaletteOptions> = {+const FONT_SANS = '"Space Grotesk", sans-serif';+const FONT_MONO =+ 'ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace';++const RADIUS = 10;+const RADIUS_LG = 12;+const RADIUS_XL = 16;++/** "Depth is whispered": borders first, lift from a single soft ambient glow.+ * A fixed four-rung ladder — surface, card, popover, modal — repeated across+ * MUI's 25 elevation slots so nothing can stack heavier shadows to fake importance. */+const SURFACE = "0 0 12px 0 rgb(0 0 0 / 0.04)";+const CARD = "0 1px 2px 0 rgb(0 0 0 / 0.04)";+const POPOVER = "0 0 4px 0 rgb(0 0 0 / 0.1), 0 1px 10px 0 rgb(0 0 0 / 0.06)";+const MODAL = "0 0 8px 0 rgb(0 0 0 / 0.12), 0 8px 32px 0 rgb(0 0 0 / 0.12)";++const HOOT_SHADOWS = [+ "none",+ CARD,+ SURFACE,+ SURFACE,+ POPOVER,+ ...Array<string>(20).fill(MODAL),+] as unknown as Shadows;++type HootTokens = { [K in keyof typeof HOOT_LIGHT]: string };++const palette = (t: HootTokens, mode: "light" | "dark"): PaletteOptions => ({+ mode,contrastThreshold: 4.5,- primary: { main: PRIMARY },- background: { default: "#0A0C0D", nav: "#0E0F0F", paper: "#121415" },- text: { primary: TEXT_PRIMARY, secondary: TEXT_SECONDARY, disabled: TEXT_DISABLED },- divider: "#FFFFFF14",- action: { disabled: TEXT_DISABLED },-};+ primary: { main: t.primary, contrastText: t.primaryForeground },+ secondary: { main: t.secondary, contrastText: t.secondaryForeground },+ error: { main: t.destructive, contrastText: t.destructiveForeground },+ success: { main: t.success, contrastText: t.successForeground },+ warning: { main: t.warning, contrastText: t.warningForeground },+ background: {+ default: t.background,+ paper: t.card,+ canvas: mode === "light" ? "#f4eee6" : "#0b0b0e",+ nav: t.sidebar,+ surface: t.surface,+ },+ text: { primary: t.foreground, secondary: t.mutedForeground, disabled: t.mutedForeground },+ divider: t.border,+});++/** Every focusable control carries a visible ring (DESIGN.md §12). */+const focusRing = {+ "&.Mui-focusVisible, &:focus-visible": {+ outline: `2px solid ${hootVar("ring")}`,+ outlineOffset: "2px",+ },+} as const;-export const APP_THEME = () => {- return createTheme({- cssVariables: true,- palette: { mode: "dark", ...PALETTE },- shape: { borderRadius: 8 },+export const APP_THEME = () =>+ createTheme({+ cssVariables: { colorSchemeSelector: "data-mui-color-scheme" },+ defaultColorScheme: "light",+ colorSchemes: {+ light: { palette: palette(HOOT_LIGHT, "light") },+ dark: { palette: palette(HOOT_DARK, "dark") },+ },+ shape: { borderRadius: RADIUS },+ shadows: HOOT_SHADOWS,typography: {- fontFamily: "DM Sans, sans-serif",- allVariants: { letterSpacing: "-0.02em" },- button: { textTransform: "none" },- body1: { fontSize: "0.9375rem" },- body2: { fontSize: "0.875rem" },+ fontFamily: FONT_SANS,+ // Hierarchy comes from weight and a tight ramp, not size jumps (DESIGN.md).+ h1: { fontSize: "1.8125rem", lineHeight: "2.25rem", fontWeight: 700, letterSpacing: "-0.02em" },+ h2: { fontSize: "1.4375rem", lineHeight: "2rem", fontWeight: 700, letterSpacing: "-0.02em" },+ h3: { fontSize: "1.1875rem", lineHeight: "1.75rem", fontWeight: 600, letterSpacing: "-0.02em" },+ h4: { fontSize: "1.0625rem", lineHeight: "1.625rem", fontWeight: 600, letterSpacing: "-0.02em" },+ // Gateway's existing convention is h5 for a page title and h6 for a+ // section title, so those two variants carry Hoot's page and section+ // rungs rather than continuing the ramp downwards.+ h5: { fontSize: "1.8125rem", lineHeight: "2.25rem", fontWeight: 700, letterSpacing: "-0.02em" },+ h6: { fontSize: "1.1875rem", lineHeight: "1.75rem", fontWeight: 600, letterSpacing: "-0.02em" },+ subtitle1: { fontSize: "0.9375rem", lineHeight: "1.5rem", fontWeight: 500 },+ subtitle2: { fontSize: "0.875rem", lineHeight: "1.25rem", fontWeight: 500 },+ body1: { fontSize: "0.9375rem", lineHeight: "1.5rem" },+ body2: { fontSize: "0.875rem", lineHeight: "1.25rem" },+ caption: { fontSize: "0.75rem", lineHeight: "1rem" },+ // Section labels: small, uppercase, letter-spaced, muted — segmenting+ // dense screens without adding chrome.+ overline: {+ fontSize: "0.75rem",+ lineHeight: "1rem",+ fontWeight: 600,+ letterSpacing: "0.08em",+ textTransform: "uppercase",+ },+ button: { fontSize: "0.875rem", fontWeight: 500, textTransform: "none", letterSpacing: 0 },},components: {+ MuiCssBaseline: {+ styleOverrides: {+ body: { backgroundColor: hootVar("canvas") },+ // Monospace is reserved for identifiers, hashes, IPs and code.+ "code, kbd, samp, pre, .mono": { fontFamily: FONT_MONO },+ // Numbers in tables and metrics line up.+ ".tabular": { fontVariantNumeric: "tabular-nums" },+ },+ },MuiAccordion: {- styleOverrides: { root: { backgroundColor: "inherit" } },+ styleOverrides: { root: { backgroundColor: "inherit", backgroundImage: "none" } },},MuiButtonBase: {- styleOverrides: { root: { fontFamily: "inherit" } },+ styleOverrides: { root: { fontFamily: "inherit", ...focusRing } },},MuiButton: {- defaultProps: { disableElevation: true },+ defaultProps: { disableElevation: true, disableRipple: true },styleOverrides: {root: {+ borderRadius: RADIUS,+ transition: "all 150ms",variants: [+ { props: { size: "small" }, style: { height: 32, padding: "0 12px", borderRadius: RADIUS - 2 } },+ { props: { size: "medium" }, style: { height: 36, padding: "0 16px" } },+ { props: { size: "large" }, style: { height: 40, padding: "0 24px", borderRadius: RADIUS + 2 } },{- props: { variant: "outlined", color: "inherit" },- style: { borderColor: "var(--mui-palette-action-selected)" },+ props: { variant: "contained" },+ style: { boxShadow: CARD, "&:hover": { filter: "brightness(1.1)", boxShadow: CARD } },},+ {+ props: { variant: "outlined" },+ style: {+ borderColor: hootVar("input"),+ backgroundColor: hootVar("card"),+ color: hootVar("foreground"),+ boxShadow: CARD,+ "&:hover": { borderColor: hootVar("input"), backgroundColor: hootVar("accent") },+ },+ },+ { props: { variant: "outlined", color: "inherit" }, style: { borderColor: hootVar("input") } },],},},},MuiCard: {- defaultProps: {- variant: "elevation",- elevation: 1,- sx: { p: 1 },+ defaultProps: { variant: "outlined" },+ styleOverrides: {+ root: {+ borderRadius: RADIUS,+ borderColor: hootVar("border"),+ backgroundColor: hootVar("card"),+ boxShadow: CARD,+ backgroundImage: "none",+ },},},+ // Hoot's Badge: a small rounded pill driven by a semantic variant, never+ // a hand-picked colour.MuiChip: {- styleOverrides: { root: { height: "1.75rem" } },+ styleOverrides: {+ root: {+ height: 24,+ borderRadius: 8,+ fontSize: "0.875rem",+ fontWeight: 500,+ "& .MuiChip-label": { paddingLeft: 8, paddingRight: 8 },+ // Status colours are rationed: a filled chip reads as a tinted+ // wash of its semantic hue, never a saturated block.+ variants: [+ {+ props: { variant: "filled", color: "default" },+ style: { backgroundColor: hootVar("muted"), color: hootVar("muted-foreground") },+ },+ {+ props: { variant: "filled", color: "success" },+ style: { backgroundColor: hootVar("success-muted"), color: hootVar("success") },+ },+ {+ props: { variant: "filled", color: "warning" },+ style: { backgroundColor: hootVar("warning-muted"), color: hootVar("warning") },+ },+ {+ props: { variant: "filled", color: "error" },+ style: { backgroundColor: hootVar("destructive-muted"), color: hootVar("destructive") },+ },+ ],+ },+ outlined: { borderColor: hootVar("border"), backgroundColor: "transparent" },+ },},+ MuiDivider: { styleOverrides: { root: { borderColor: hootVar("border") } } },MuiDrawer: {defaultProps: {elevation: 0,- slotProps: {- backdrop: { sx: { backgroundColor: "rgba(0, 0, 0, 0.75)" } },- },+ slotProps: { backdrop: { sx: { backgroundColor: "rgb(0 0 0 / 0.6)" } } },+ },+ styleOverrides: { paper: { backgroundColor: hootVar("canvas"), borderRight: "none" } },+ },+ // Modals rest above a dimmed backdrop. Scoped to Dialog and Drawer —+ // menus and popovers mount an invisible backdrop that must stay invisible.+ MuiDialog: {+ defaultProps: {+ slotProps: { backdrop: { sx: { backgroundColor: "rgb(0 0 0 / 0.6)" } } },+ },+ styleOverrides: {+ paper: { borderRadius: RADIUS_LG, boxShadow: MODAL, backgroundColor: hootVar("card") },},},MuiIconButton: {defaultProps: { size: "small" },+ styleOverrides: { root: { borderRadius: RADIUS } },},+ MuiListItemButton: {+ styleOverrides: {+ root: {+ borderRadius: RADIUS,+ "&.Mui-selected": { backgroundColor: hootVar("muted"), fontWeight: 500 },+ },+ },+ },+ MuiMenu: { defaultProps: { elevation: 4 } },+ MuiMenuItem: { styleOverrides: { root: { borderRadius: 6, fontSize: "0.875rem" } } },MuiPaper: {defaultProps: { variant: "outlined", elevation: 0 },- styleOverrides: { root: { backgroundImage: "none" } },+ styleOverrides: {+ root: { backgroundImage: "none", borderColor: hootVar("border") },+ rounded: { borderRadius: RADIUS },+ },},MuiPopover: {- defaultProps: { elevation: 0 },+ defaultProps: { elevation: 4 },+ styleOverrides: { paper: { borderRadius: RADIUS_LG, boxShadow: POPOVER } },},- MuiSvgIcon: {- defaultProps: { fontSize: "inherit" },+ MuiOutlinedInput: {+ styleOverrides: {+ root: {+ borderRadius: RADIUS,+ backgroundColor: "transparent",+ "& .MuiOutlinedInput-notchedOutline": { borderColor: hootVar("input") },+ "&:hover .MuiOutlinedInput-notchedOutline": { borderColor: hootVar("border-strong") },+ "&.Mui-focused .MuiOutlinedInput-notchedOutline": {+ borderColor: hootVar("ring"),+ borderWidth: 1,+ },+ "&.Mui-focused": { outline: `2px solid ${hootVar("ring")}`, outlineOffset: "1px" },+ },+ input: { fontSize: "0.875rem" },+ },},- MuiTab: {- styleOverrides: { root: { minWidth: "auto" } },+ MuiSvgIcon: { defaultProps: { fontSize: "inherit" } },+ MuiSwitch: { defaultProps: { size: "small" } },+ // Underline tabs with a foreground indicator — chrome recedes.+ MuiTabs: {+ styleOverrides: {+ root: { minHeight: 40 },+ indicator: { height: 2, backgroundColor: hootVar("foreground") },+ },},- MuiTextField: {- defaultProps: { size: "small", fullWidth: true, variant: "outlined" },+ MuiTab: {+ styleOverrides: {+ root: {+ minWidth: "auto",+ minHeight: 40,+ padding: "4px 16px 12px",+ fontSize: "0.875rem",+ color: hootVar("muted-foreground"),+ "&.Mui-selected": { color: hootVar("foreground"), fontWeight: 500 },+ },+ },},+ MuiTextField: { defaultProps: { size: "small", fullWidth: true, variant: "outlined" } },MuiTooltip: {defaultProps: { arrow: true },styleOverrides: {- tooltip: { fontSize: "0.875rem", textAlign: "center" },+ tooltip: {+ fontSize: "0.75rem",+ lineHeight: "1.1rem",+ textAlign: "center",+ borderRadius: RADIUS,+ padding: "8px 12px",+ backgroundColor: hootVar("foreground"),+ color: hootVar("background"),+ },+ arrow: { color: hootVar("foreground") },},},},});-};++export const HOOT_RADIUS = { base: RADIUS, lg: RADIUS_LG, xl: RADIUS_XL };+export const HOOT_ELEVATION = { card: CARD, surface: SURFACE, popover: POPOVER, modal: MODAL };diff --git a/gateway/src/vite-env.d.ts b/gateway/src/vite-env.d.tsnew file mode 100644index 000000000..11f02fe2a--- /dev/null+++ b/gateway/src/vite-env.d.ts@@ -0,0 +1 @@+/// <reference types="vite/client" />