diff --git a/assets/css/atlas.css b/assets/css/atlas.css index 136358a..ccda4d2 100644 --- a/assets/css/atlas.css +++ b/assets/css/atlas.css @@ -1,21 +1,21 @@ /* Constellate: styles and theme tokens */ :root{ - --sky:#E8ECF2;--ink:#1B2A44;--faint:#58657C;--line:#AEBBCF;--panel:#F6F8FB;--panel-line:#C9D2DF;--control-line:#76839A;--hover:#DEE5EF;--bgstar:#8E9AB0;--halo:.13; + color-scheme:light;--sky:#E8ECF2;--ink:#1B2A44;--faint:#58657C;--line:#AEBBCF;--panel:#F6F8FB;--panel-line:#C9D2DF;--control-line:#76839A;--hover:#DEE5EF;--bgstar:#8E9AB0;--halo:.13; --entra:#2F5BC4;--exchange:#94690A;--intune:#B0560E;--defender:#B5352A;--purview:#6A4BB5;--collab:#1B7A66;--copilot:#B02E79;--apps365:#4E7A14;--power:#0B6E99;--viva:#8E3FA8;--admin:#45657F; --text-xs:12px;--text-sm:13px;--text-md:14px;--text-lg:15px; --font-display:"EB Garamond",Georgia,"Times New Roman",serif;--font-body:"IBM Plex Sans",system-ui,-apple-system,"Segoe UI",Roboto,sans-serif; --shadow-pop:0 12px 30px -12px rgba(8,16,34,.45); --ease-out:cubic-bezier(.3,.7,.3,1);--dur-fast:.2s;--dur-base:.4s;--dur-slow:1s; - --target:44px; + --target:44px;--radius-sm:6px;--radius-md:8px;--radius-lg:10px;--radius-sheet:16px;--radius-pill:999px;--thread-o:.4;--thread-o-hot:.9; box-sizing:border-box;padding-top:env(safe-area-inset-top,0px);padding-bottom:env(safe-area-inset-bottom,0px); padding-left:env(safe-area-inset-left,0px);padding-right:env(safe-area-inset-right,0px); } @media (prefers-color-scheme:dark){:root:not([data-theme="light"]){ - --sky:#0C1526;--ink:#ECE6D5;--faint:#8593AD;--line:#2C3E5E;--panel:#101C33;--panel-line:#25395B;--control-line:#61749A;--hover:#1A2B4A;--bgstar:#C9D3E8;--halo:.22; + color-scheme:dark;--sky:#0C1526;--ink:#ECE6D5;--faint:#8593AD;--line:#2C3E5E;--panel:#101C33;--panel-line:#25395B;--control-line:#61749A;--hover:#1A2B4A;--bgstar:#C9D3E8;--halo:.22; --entra:#8FB3FF;--exchange:#F4D07C;--intune:#FFAD69;--defender:#FF8B7B;--purview:#CDB9FF;--collab:#7FDCC6;--copilot:#F49AD0;--apps365:#C2E88A;--power:#86D3F5;--viva:#E7A8F2;--admin:#A3BDD3; }} :root[data-theme="dark"]{ - --sky:#0C1526;--ink:#ECE6D5;--faint:#8593AD;--line:#2C3E5E;--panel:#101C33;--panel-line:#25395B;--control-line:#61749A;--hover:#1A2B4A;--bgstar:#C9D3E8;--halo:.22; + color-scheme:dark;--sky:#0C1526;--ink:#ECE6D5;--faint:#8593AD;--line:#2C3E5E;--panel:#101C33;--panel-line:#25395B;--control-line:#61749A;--hover:#1A2B4A;--bgstar:#C9D3E8;--halo:.22; --entra:#8FB3FF;--exchange:#F4D07C;--intune:#FFAD69;--defender:#FF8B7B;--purview:#CDB9FF;--collab:#7FDCC6;--copilot:#F49AD0;--apps365:#C2E88A;--power:#86D3F5;--viva:#E7A8F2;--admin:#A3BDD3; } *,*::before,*::after{box-sizing:border-box} @@ -55,12 +55,18 @@ button{font:inherit;color:inherit} .cmp.rel .relring{opacity:.9} .cmp .lbl{font-size:var(--text-sm);fill:var(--ink);opacity:0;transition:opacity var(--dur-fast) var(--ease-out)} #sky.deep:not(.focused) .cmp:not(.lbl-off) .lbl,#sky.deep .is-focus .cmp:not(.lbl-off) .lbl{opacity:.9} -.cmp:hover .lbl,.cmp:focus-visible .lbl,.cmp.sel .lbl,.cmp.rel .lbl{opacity:1} +.cmp:hover .lbl,.cmp:focus-visible .lbl,.cmp.sel .lbl,.cmp.rel:not(.lbl-off) .lbl{opacity:1} +.cmp .selhalo{fill:var(--c);opacity:0;pointer-events:none;transition:opacity var(--dur-fast) var(--ease-out)} +.cmp.sel .selhalo{opacity:calc(var(--halo) * 2)} +.cmp.sel .relring{opacity:1;stroke-width:2} .cmp.sel .core{stroke:var(--ink);stroke-width:2} .cmp.sel .lbl{font-weight:600} .cmp.muted{opacity:.14} -.thread{fill:none;stroke-width:1.5;vector-effect:non-scaling-stroke;stroke-linecap:round;opacity:.85} +.thread{fill:none;stroke-width:1.5;vector-effect:non-scaling-stroke;stroke-linecap:round;opacity:var(--thread-o);transition:opacity var(--dur-fast) var(--ease-out);animation:thread-in var(--dur-base) var(--ease-out)} +.thread.hot{opacity:var(--thread-o-hot)} +/* no "to": the fade ends at the rule's own opacity */ +@keyframes thread-in{from{opacity:0}} /* top bar */ .top{position:absolute;top:0;left:0;right:0;display:flex;flex-wrap:wrap;align-items:flex-start;justify-content:space-between;gap:12px 20px;padding:18px 22px 10px;pointer-events:none;z-index:3;transition:right var(--dur-base) var(--ease-out)} @@ -72,16 +78,19 @@ button{font:inherit;color:inherit} .crumbs .cur{color:var(--ink)} .tools{display:flex;gap:10px;align-items:center} .search{position:relative} -.search input,.filter select{height:38px;border:1px solid var(--control-line);background:var(--panel);color:var(--ink);border-radius:8px;padding:0 12px;font:inherit;font-size:var(--text-md)} +.search input,.filter select{height:38px;border:1px solid var(--control-line);background:var(--panel);color:var(--ink);border-radius:var(--radius-md);padding:0 12px;font:inherit;font-size:var(--text-md)} .search input{width:240px} .search input::placeholder{color:var(--faint)} .filter{display:flex;align-items:center;gap:8px;font-size:var(--text-sm);color:var(--faint)} -.filter select{padding-right:8px;cursor:pointer} +.filter select{appearance:none;-webkit-appearance:none;padding-right:30px;cursor:pointer;background-image:linear-gradient(45deg,transparent 50%,currentColor 50%),linear-gradient(135deg,currentColor 50%,transparent 50%);background-position:calc(100% - 16px) 50%,calc(100% - 11px) 50%;background-size:5px 5px;background-repeat:no-repeat} +.icon-btn{display:inline-grid;place-items:center;flex:none;width:38px;height:38px;padding:0;border:1px solid var(--control-line);background:var(--panel);color:var(--ink);border-radius:var(--radius-md);cursor:pointer} +.icon-btn:hover{background:var(--hover)} +.icon-btn:active,.btn:active,.close:active{transform:translateY(1px)} .filter[hidden]{display:none} input:focus-visible,select:focus-visible,button:focus-visible,a:focus-visible{outline:2px solid var(--ink);outline-offset:2px} -.results{position:absolute;top:44px;left:0;right:0;min-width:260px;margin:0;padding:6px;list-style:none;background:var(--panel);border:1px solid var(--panel-line);border-radius:10px;box-shadow:var(--shadow-pop);z-index:5} -.results button{display:flex;width:100%;gap:10px;align-items:center;text-align:left;background:none;border:0;padding:8px 8px;border-radius:6px;cursor:pointer;font-size:var(--text-md)} -.results button:hover,.results button:focus-visible{background:var(--hover)} +.results{position:absolute;top:44px;left:0;right:0;min-width:260px;margin:0;padding:6px;list-style:none;background:var(--panel);border:1px solid var(--panel-line);border-radius:var(--radius-lg);box-shadow:var(--shadow-pop);z-index:5} +.results button{display:flex;width:100%;gap:10px;align-items:center;text-align:left;background:none;border:0;padding:8px 8px;border-radius:var(--radius-sm);cursor:pointer;font-size:var(--text-md)} +.results button:hover,.results button:focus-visible,.results button:active{background:var(--hover)} .results .where{margin-left:auto;font-size:var(--text-xs);color:var(--faint);white-space:nowrap} .results .empty{padding:8px;font-size:var(--text-sm);color:var(--faint)} .dot{width:8px;height:8px;border-radius:50%;background:var(--c);flex:none} @@ -99,9 +108,9 @@ input:focus-visible,select:focus-visible,button:focus-visible,a:focus-visible{ou .panel h2{margin:0 0 12px;font-family:var(--font-display);font-weight:500;font-size:31px;line-height:1.12} .sum{margin:0 0 16px;font-size:var(--text-lg);line-height:1.6;max-width:60ch} .licline{display:flex;flex-wrap:wrap;gap:8px 10px;align-items:baseline;margin:0 0 18px;font-size:var(--text-sm);color:var(--faint);line-height:1.5} -.chip{display:inline-block;padding:3px 10px;border-radius:999px;border:1px solid var(--c);color:var(--ink);font-size:var(--text-xs);font-weight:500;white-space:nowrap} +.chip{display:inline-block;padding:3px 10px;border-radius:var(--radius-pill);border:1px solid var(--c);color:var(--ink);font-size:var(--text-xs);font-weight:500;white-space:nowrap} .actions{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 24px} -.btn{display:inline-flex;align-items:center;height:38px;padding:0 14px;border-radius:8px;background:var(--ink);color:var(--panel);text-decoration:none;font-size:var(--text-md);font-weight:500} +.btn{display:inline-flex;align-items:center;height:38px;padding:0 14px;border-radius:var(--radius-md);background:var(--ink);color:var(--panel);text-decoration:none;font-size:var(--text-md);font-weight:500} .btn:hover{opacity:.88} .btn.ghost{background:transparent;color:var(--ink);border:1px solid var(--control-line)} .btn.ghost:hover{background:var(--hover);opacity:1} @@ -109,20 +118,25 @@ input:focus-visible,select:focus-visible,button:focus-visible,a:focus-visible{ou .list{list-style:none;margin:0;padding:0;border-top:1px solid var(--panel-line)} .list li{border-bottom:1px solid var(--panel-line)} .list button{display:flex;width:100%;align-items:center;gap:10px;padding:10px 4px;background:none;border:0;text-align:left;cursor:pointer;font-size:var(--text-md)} -.list button:hover{background:var(--hover)} +.list button:hover,.list button:active{background:var(--hover)} .list .lic{margin-left:auto;font-size:var(--text-xs);color:var(--faint);white-space:nowrap} .list .is-muted{color:var(--faint)} .list .is-muted .dot{background:none;box-shadow:inset 0 0 0 1px var(--c)} /* chrome */ .foot{position:absolute;left:22px;bottom:14px;font-size:var(--text-xs);color:var(--faint);max-width:46ch;line-height:1.45;z-index:2} -.hint{position:absolute;left:50%;bottom:46px;transform:translateX(-50%);font-size:var(--text-sm);color:var(--faint);background:var(--panel);border:1px solid var(--panel-line);padding:8px 14px;border-radius:999px;white-space:nowrap;transition:opacity var(--dur-base) var(--ease-out);z-index:2} +.hint{position:absolute;left:50%;bottom:46px;transform:translateX(-50%);font-size:var(--text-sm);color:var(--faint);background:var(--panel);border:1px solid var(--panel-line);padding:8px 14px;border-radius:var(--radius-pill);white-space:nowrap;transition:opacity var(--dur-base) var(--ease-out);z-index:2} .hint.gone{opacity:0;pointer-events:none} @media (min-width:721px){.app.panel-open .top{right:380px}} +/* below this width a centred hint would sit on the footer text, so it moves to the free corner */ +@media (min-width:721px) and (max-width:1200px){.hint{left:auto;right:22px;bottom:14px;transform:none;white-space:normal;max-width:calc(100% - 46ch - 66px)}} @media (max-width:720px){ .top{padding:12px 14px 8px} .brand h1{font-size:23px} + /* the toggle sits beside the title so the search row keeps its width */ + .icon-btn{position:absolute;top:8px;right:14px} + .brand{padding-right:54px} .tools{width:100%;flex-wrap:wrap} .search{flex:1 1 140px} .search input{width:100%} @@ -130,8 +144,8 @@ input:focus-visible,select:focus-visible,button:focus-visible,a:focus-visible{ou .filter select{max-width:175px} #suite-filter{flex:1 1 100%} #suite-filter select{max-width:none;width:100%} - .panel{left:0;right:0;top:auto;width:auto;max-height:56%;border-left:0;border-top:1px solid var(--panel-line);border-radius:16px 16px 0 0;transform:translateY(100%);padding:22px 20px 26px} - .panel::before{left:0;right:0;top:0;bottom:auto;width:auto;height:3px;border-radius:16px 16px 0 0} + .panel{left:0;right:0;top:auto;width:auto;max-height:56%;border-left:0;border-top:1px solid var(--panel-line);border-radius:var(--radius-sheet) var(--radius-sheet) 0 0;transform:translateY(100%);padding:22px 20px 26px} + .panel::before{left:0;right:0;top:0;bottom:auto;width:auto;height:3px;border-radius:var(--radius-sheet) var(--radius-sheet) 0 0} .panel h2{font-size:26px} .foot{left:14px;right:14px;bottom:10px;max-width:none} .app.panel-open .foot{display:none} @@ -140,6 +154,7 @@ input:focus-visible,select:focus-visible,button:focus-visible,a:focus-visible{ou /* touch: 44px targets; small text buttons get an invisible hit area so layout doesn't shift */ @media (pointer:coarse){ .search input,.filter select,.btn{height:var(--target)} + .icon-btn{width:var(--target);height:var(--target)} /* 16px stops mobile browsers zooming the page when a field gets focus */ .search input,.filter select{font-size:16px} .results button,.list button{min-height:var(--target)} @@ -151,5 +166,6 @@ input:focus-visible,select:focus-visible,button:focus-visible,a:focus-visible{ou @media (prefers-reduced-motion:reduce){ .reveal{animation:none} - .panel,.top,.svc-g,.link,.cline,.hint,.cmp .lbl{transition:none} + .panel,.top,.svc-g,.link,.cline,.hint,.cmp .lbl,.cmp .selhalo,.thread{transition:none} + .thread{animation:none} } diff --git a/assets/js/atlas.js b/assets/js/atlas.js index 8046fc6..b99a1a0 100644 --- a/assets/js/atlas.js +++ b/assets/js/atlas.js @@ -70,6 +70,7 @@ const cn=rv.selectAll('g.cmp').data(d=>d.components).join('g').attr('class','nod .attr('transform',d=>`translate(${d.x},${d.y})`).attr('tabindex',-1).attr('role','button') .attr('aria-label',d=>`${d.name}, part of ${SVC[d.svc].short}`); const ci=cn.append('g').attr('class','inner'); +ci.append('circle').attr('class','selhalo').attr('r',17); ci.append('circle').attr('class','hit').attr('r',COARSE?22:15); ci.append('circle').attr('class','focusring').attr('r',11); ci.append('circle').attr('class','relring').attr('r',9.5); @@ -95,6 +96,9 @@ d3.selectAll('.node') const step={ArrowRight:1,ArrowDown:1,ArrowLeft:-1,ArrowUp:-1}[e.key]; if(step){e.preventDefault(); stepFocus(d,step);} }); +// Threads are drawn faint; the one leading to a hovered or focused feature brightens. +function heat(id,on){ gThreads.selectAll('path').classed('hot',d=>on&&d.b.id===id); } +cn.on('mouseenter focus',(e,d)=>heat(d.id,true)).on('mouseleave blur',()=>heat(null,false)); // Roving focus: only service stars are tab stops. Arrows walk a service's features, // skipping ones the licence filter has muted. @@ -114,7 +118,8 @@ const zoom=d3.zoom().scaleExtent([.2,12]).on('zoom',e=>{ world.attr('transform',t); bg.attr('transform',`translate(${t.x*.18},${t.y*.18}) scale(${.6+.4*Math.pow(t.k,.25)})`); svgEl.style.setProperty('--inv',1/t.k); - svgEl.classList.toggle('deep',t.k>overviewK*1.6); + // A focused constellation may be fitted at a lower zoom to leave room for its labels. + svgEl.classList.toggle('deep',t.k>overviewK*(state.focus?1.15:1.6)); if(e.sourceEvent) hideHint(); }); svg.call(zoom).on('dblclick.zoom',null); @@ -122,21 +127,24 @@ zoom.on('end',declutter); // Labels keep a fixed screen size, so on narrow screens they collide once zoomed in. // After each zoom, place labels greedily (selected, related, focused, then the rest) -// and hide any that would overlap one already placed. Hover and tap still reveal them. +// and hide any that would overlap one already placed. Only the selected label is always +// kept; a related feature keeps its ring when its label is hidden. Hover and tap still reveal them. function declutter(){ cn.classed('lbl-off',false); - if(!svgEl.classList.contains('deep')) return; + // Zoomed out, only the selected and related labels are showing, so only those can collide. + const deep=svgEl.classList.contains('deep'); + if(!deep&&!state.sel) return; const box=el=>{const r=el.getBoundingClientRect(); return {l:r.left-3,t:r.top-1,r:r.right+3,b:r.bottom+1};}; const hits=(a,b)=>a.ln.classList.contains('sel')?0:n.classList.contains('rel')?1:n.closest('.is-focus')?2:3; - const nodes=cn.nodes().filter(n=>!n.classList.contains('muted')&&(!state.focus||rank(n)<3)) + const nodes=cn.nodes().filter(n=>!n.classList.contains('muted')&&(deep ? !state.focus||rank(n)<3 : rank(n)<2)) .map((n,i)=>({n,i,k:rank(n)})).sort((a,b)=>a.k-b.k||a.i-b.i); for(const {n,k} of nodes){ const b=box(n.querySelector('.lbl')); - if(k>1&&kept.some(o=>hits(o,b))) n.classList.add('lbl-off'); else kept.push(b); + if(k>0&&kept.some(o=>hits(o,b))) n.classList.add('lbl-off'); else kept.push(b); } } @@ -150,15 +158,35 @@ function viewportBox(ignorePanel){ } function bounds(pts,px,py){const xs=pts.map(p=>p.x),ys=pts.map(p=>p.y);return[Math.min(...xs)-px,Math.min(...ys)-py,Math.max(...xs)+px,Math.max(...ys)+py+30];} const ALL_B = bounds(ALL,70,60); -const clusterB = id => bounds([SVC[id],...SVC[id].components],95,45); +const clusterB = id => bounds([SVC[id],...SVC[id].components],20,20); function transformFor(b,ignorePanel){ const v=viewportBox(ignorePanel); const k=Math.min(v.w/(b[2]-b[0]), v.h/(b[3]-b[1])); const cx=(b[0]+b[2])/2, cy=(b[1]+b[3])/2; return d3.zoomIdentity.translate(v.x0+v.w/2-k*cx, v.y0+v.h/2-k*cy).scale(k); } -function fitTo(b,dur=850){ - const t=transformFor(b); +// Labels keep a fixed screen size, so world-unit padding can't reserve room for them. +// Find the largest zoom at which every outward-facing label still ends inside the free area, +// but never go below 70% of the label-free fit: on a narrow view a clipped label beats a tiny map. +// On the phone layout no zoom fits the labels, so leave them to declutter() and keep the map large. +function clusterFit(id){ + const v=viewportBox(), b=clusterB(id), cx=(b[0]+b[2])/2, cy=(b[1]+b[3])/2; + const base=Math.min(v.w/(b[2]-b[0]), v.h/(b[3]-b[1])); + let k=base*.9; + if(svgEl.getBoundingClientRect().width>720){ + k=base; + SVC[id].components.forEach(c=>{ + const out=c.left ? cx-c.x : c.x-cx; if(out<=0) return; + const room=v.w/2-(20+nodeEl(c.id).querySelector('.lbl').getComputedTextLength()); + if(room>0) k=Math.min(k,room/out); + }); + k=Math.max(k,base*.7); + } + return d3.zoomIdentity.translate(v.x0+v.w/2-k*cx, v.y0+v.h/2-k*cy).scale(k); +} +const fitCluster = (id,dur) => zoomTo(clusterFit(id),dur); +const fitTo = (b,dur) => zoomTo(transformFor(b),dur); +function zoomTo(t,dur=850){ svg.interrupt(); if(RM||!dur) svg.call(zoom.transform,t); else svg.transition().duration(dur).ease(d3.easeCubicInOut).call(zoom.transform,t); @@ -173,7 +201,7 @@ function selectNode(id,fromRoute,dur){ state.sel = id; apply(); showPanel(id); - requestAnimationFrame(()=>fitTo(clusterB(state.focus),dur)); + requestAnimationFrame(()=>fitCluster(state.focus,dur)); if(!fromRoute) syncUrl(true); } function resetAll(fromRoute,dur){ @@ -212,9 +240,7 @@ function drawThreads(){ const n=state.sel&&N[state.sel]; const data = n&&n.type==='cmp' ? [...REL[n.id]].map(t=>({a:n,b:N[t]})) : []; gThreads.selectAll('path').data(data,d=>d.a.id+'>'+d.b.id).join( - en=>en.append('path').attr('class','thread').style('opacity',0) - .call(p=>p.transition().duration(RM?0:500).style('opacity',.85)), - up=>up, ex=>ex.remove()) + en=>en.append('path').attr('class','thread'), up=>up, ex=>ex.remove()) .attr('d',d=>{ const {a,b}=d, mx=(a.x+b.x)/2, my=(a.y+b.y)/2, dx=b.x-a.x, dy=b.y-a.y; return `M${a.x},${a.y}Q${mx-dy*.2},${my+dx*.2} ${b.x},${b.y}`; @@ -247,6 +273,21 @@ planSel.addEventListener('change',()=>{ }); suitesSel.addEventListener('change',()=>{ state.suites=suitesSel.value?suitesSel.value.split('+'):[]; applyLicence(); syncUrl(false); }); +/* ---------- theme ---------- */ +// index.html applies a stored choice before first paint; with none stored the OS setting decides. +const themeBtn=document.getElementById('theme'), darkQuery=matchMedia('(prefers-color-scheme: dark)'); +const currentTheme = () => document.documentElement.dataset.theme || (darkQuery.matches?'dark':'light'); +const otherTheme = () => currentTheme()==='dark' ? 'light' : 'dark'; +function labelTheme(){ const t=`Switch to ${otherTheme()} theme`; themeBtn.setAttribute('aria-label',t); themeBtn.title=t; } +themeBtn.addEventListener('click',()=>{ + const to=otherTheme(); + document.documentElement.dataset.theme=to; + try{ localStorage.setItem('constellate-theme',to); }catch(e){} + labelTheme(); +}); +darkQuery.addEventListener('change',labelTheme); +labelTheme(); + /* ---------- crumbs & panel ---------- */ function renderCrumbs(){ if(!state.focus){ crumbEl.innerHTML=`Microsoft 365 as a star chart: ${SERVICES.length} constellations, ${CMP_COUNT} features`; return; } @@ -260,7 +301,8 @@ function renderCrumbs(){ const EX = ``; // Plans below the component's tier that include it anyway, e.g. desktop apps in Business Standard. const extraPlans = c => { const ps=Object.values(PLANS).filter(p=>p.with?.includes(c.id)).map(p=>p.label); - return ps.length ? `or ${esc(ps.join(', '))}` : ''; }; + return ps.length ? `or ${esc(ps.join(', '))}` : ''; }; +const SVC_ORDER = Object.fromEntries(SERVICES.map((s,i)=>[s.id,i])); const addToPlans = c => Object.values(PLANS).filter(p=>p.suites && !p.without?.includes(c.id)).map(p=>p.label); const addTo = c => { const ps=addToPlans(c); return ps.length ? `Add to: ${esc(ps.join(', '))}` : ''; }; const licShort = c =>LIC[c.lic].short + (c.suite ? ' / '+SUITES[c.suite].label.split(' ')[0] : ''); @@ -275,10 +317,12 @@ function showPanel(id){

${n.components.length} components

`; } else { - const rel=[...REL[n.id]].map(r=>N[r]); + // Same-service features first, then the rest grouped by service in chart order. + const at=r=>r.svc===n.svc?-1:SVC_ORDER[r.svc]; + const rel=[...REL[n.id]].map(r=>N[r]).sort((a,b)=>at(a)-at(b)); h+=`

Part of

${esc(n.name)}

${esc(n.summary)}

-

${esc(LIC[n.lic].label)}${extraPlans(n)}${n.suite?`or ${esc(SUITES[n.suite].label)}${addTo(n)}`:''}${n.note?`${esc(n.note)}`:''}

+

${esc(LIC[n.lic].label)}${extraPlans(n)}${n.suite?`or ${esc(SUITES[n.suite].label)}${addTo(n)}`:''}${n.note?`${esc(n.note)}`:''}

Open Microsoft Learn docs
${rel.length?`

Works with

`:''}`; @@ -298,9 +342,13 @@ function hidePanel(returnTo){ function closePanel(){ hidePanel(state.sel); if(state.sel && N[state.sel].type==='cmp'){ state.sel=state.focus; apply(); } - requestAnimationFrame(()=>fitTo(state.focus?clusterB(state.focus):ALL_B)); + requestAnimationFrame(()=>state.focus?fitCluster(state.focus):fitTo(ALL_B)); syncUrl(true); } +['mouseover','focusin'].forEach(t=>panel.addEventListener(t,e=>{ + const b=e.target.closest('.list [data-go]'); heat(b?b.dataset.go:null,!!b); +})); +['mouseleave','focusout'].forEach(t=>panel.addEventListener(t,()=>heat(null,false))); document.addEventListener('click',e=>{ const go=e.target.closest('[data-go]'); if(go){ go.dataset.go==='__all' ? resetAll() : selectNode(go.dataset.go); return; } @@ -357,4 +405,4 @@ addEventListener('hashchange',()=>restore(true)); if(location.hash) restore(false); syncUrl(false); let rt; -addEventListener('resize',()=>{ clearTimeout(rt); rt=setTimeout(()=>{ refreshOverviewK(); fitTo(state.focus?clusterB(state.focus):ALL_B,0); },120); }); +addEventListener('resize',()=>{ clearTimeout(rt); rt=setTimeout(()=>{ refreshOverviewK(); state.focus?fitCluster(state.focus,0):fitTo(ALL_B,0); },120); }); diff --git a/docs/ROADMAP.md b/docs/ROADMAP.md index 7c38d49..f087517 100644 --- a/docs/ROADMAP.md +++ b/docs/ROADMAP.md @@ -7,7 +7,7 @@ Ideas in rough priority order. Move items into GitHub issues as work starts. - [x] **Deep links.** Put the selected node in the URL hash (`#ca`) so a specific feature can be shared or linked from a proposal. - [ ] **More constellations.** Decide whether Windows 365 joins Intune or gets its own. Consider Azure as a separate atlas. - [ ] **Entra Verified ID.** Left out of the October 2026 gap fill because Entra is at the 12-component limit. Needs a swap or a split. -- [ ] **Theme toggle.** A button that sets `data-theme` on ``, remembered in `localStorage`. +- [x] **Theme toggle.** A button that sets `data-theme` on ``, remembered in `localStorage`. - [ ] **Export view.** Download the current view as PNG or SVG for decks and proposals. - [x] **Licensing review.** All 121 components checked against Microsoft Learn and the service plan CSV on 1 October 2026; date recorded in the data file. - [x] **Plan-based filter.** Business Basic, Standard and Premium, Office 365 E1, and Microsoft 365 E3, E5 and E7, with add-on suites as a separate control. diff --git a/index.html b/index.html index 756c758..8e7d0db 100644 --- a/index.html +++ b/index.html @@ -19,6 +19,7 @@ + @@ -50,6 +51,7 @@

Constellate

+ diff --git a/package.json b/package.json index a91da64..4b267c0 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "constellate", - "version": "0.2.0", + "version": "0.3.0", "private": true, "description": "Constellate: an interactive star chart of Microsoft 365 services, features, licensing and documentation.", "type": "module",