Migrated from design-system-swarm with fresh git history.
Old project history preserved in /home/overbits/apps/design-system-swarm
Core components:
- MCP Server (Python FastAPI with mcp 1.23.1)
- Claude Plugin (agents, commands, skills, strategies, hooks, core)
- DSS Backend (dss-mvp1 - token translation, Figma sync)
- Admin UI (Node.js/React)
- Server (Node.js/Express)
- Storybook integration (dss-mvp1/.storybook)
Self-contained configuration:
- All paths relative or use DSS_BASE_PATH=/home/overbits/dss
- PYTHONPATH configured for dss-mvp1 and dss-claude-plugin
- .env file with all configuration
- Claude plugin uses ${CLAUDE_PLUGIN_ROOT} for portability
Migration completed: $(date)
🤖 Clean migration with full functionality preserved
2 lines
3.8 KiB
JavaScript
2 lines
3.8 KiB
JavaScript
import"/admin-ui/css/components.css";import"/admin-ui/css/layout.css";import e from"/admin-ui/js/core/theme.js";import"/admin-ui/js/components/ds-button.js";import"/admin-ui/js/components/ds-card.js";import"/admin-ui/js/components/ds-input.js";import"/admin-ui/js/components/ds-badge.js";import"/admin-ui/js/components/ds-action-bar.js";import"/admin-ui/js/components/ds-toast.js";import"/admin-ui/js/components/ds-toast-provider.js";import"/admin-ui/js/components/ds-notification-center.js";import"/admin-ui/js/components/ds-workflow.js";import"/admin-ui/js/core/ai.js";import t from"/admin-ui/js/stores/context-store.js";import o from"/admin-ui/js/services/notification-service.js";import"/admin-ui/js/core/browser-logger.js";import n from"/admin-ui/js/core/navigation.js";import s from"/admin-ui/js/core/app.js";!function(){const e=document.createElement("link").relList;if(!(e&&e.supports&&e.supports("modulepreload"))){for(const e of document.querySelectorAll('link[rel="modulepreload"]'))t(e);new MutationObserver(e=>{for(const o of e)if("childList"===o.type)for(const e of o.addedNodes)"LINK"===e.tagName&&"modulepreload"===e.rel&&t(e)}).observe(document,{childList:!0,subtree:!0})}function t(e){if(e.ep)return;e.ep=!0;const t=function(e){const t={};return e.integrity&&(t.integrity=e.integrity),e.referrerPolicy&&(t.referrerPolicy=e.referrerPolicy),"use-credentials"===e.crossOrigin?t.credentials="include":"anonymous"===e.crossOrigin?t.credentials="omit":t.credentials="same-origin",t}(e);fetch(e.href,t)}}(),document.addEventListener("DOMContentLoaded",()=>{s.init(),new n(document.querySelector(".sidebar__nav"));const i=document.getElementById("theme-toggle");i&&i.addEventListener("click",()=>{e.toggle()});const a=document.getElementById("team-context-select"),r=e=>{document.querySelectorAll(".help-section").forEach(t=>{const o=t.dataset.team;t.style.display="all"===e||o===e||"all"===o?"":"none"})};if(a){const e=localStorage.getItem("dss_team_context")||"all";a.value=e,r(e),t.setContext({team:e}),a.addEventListener("change",e=>{const o=e.target.value;localStorage.setItem("dss_team_context",o),r(o),t.setContext({team:o}),window.dispatchEvent(new CustomEvent("team-context-changed",{detail:{team:o}}))})}const d=document.getElementById("sidebar-toggle"),c=document.getElementById("ai-sidebar");if(d&&c){"true"===localStorage.getItem("dss_ai_sidebar_collapsed")&&(c.classList.add("collapsed"),d.setAttribute("aria-expanded","false")),d.addEventListener("click",()=>{const e=c.classList.toggle("collapsed");d.setAttribute("aria-expanded",!e),localStorage.setItem("dss_ai_sidebar_collapsed",e)})}const l=document.getElementById("notification-toggle"),m=document.querySelector("ds-notification-center"),u=document.getElementById("notification-indicator");l&&m&&(l.addEventListener("click",e=>{e.stopPropagation();m.hasAttribute("open")?m.removeAttribute("open"):m.setAttribute("open","")}),document.addEventListener("click",e=>{m.contains(e.target)||l.contains(e.target)||m.removeAttribute("open")}),o.addEventListener("unread-count-changed",e=>{const{count:t}=e.detail;u&&(u.style.display=t>0?"block":"none")}),m.addEventListener("notification-action",e=>{const{event:t,payload:o}=e.detail;if(console.log("Notification action:",t,o),t.startsWith("navigate:")){const e=t.replace("navigate:","");window.location.hash=e}})),window.addEventListener("dss-ask-ai",e=>{const{prompt:t,openSidebar:o}=e.detail;o&&c&&c.classList.contains("collapsed")&&(c.classList.remove("collapsed"),null==d||d.setAttribute("aria-expanded","true"),localStorage.setItem("dss_ai_sidebar_collapsed","false"));const n=document.querySelector("ds-ai-chat");n&&"function"==typeof n.setInput&&n.setInput(t)}),window.addEventListener("hashchange",()=>{const e=window.location.hash.substring(1)||"dashboard";t.setContext({page:e})}),t.setContext({page:window.location.hash.substring(1)||"dashboard"})});
|