Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 15 additions & 8 deletions .github/workflows/link-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
- uses: actions/checkout@v7
- uses: actions/setup-node@v7
with:
node-version: 24
node-version: 26
- name: List documentation URLs
run: node tools/validate-data.mjs --urls > lychee-urls.txt
- name: Check links
Expand All @@ -31,10 +31,17 @@ jobs:
lychee-urls.txt
output: ./lychee/out.md
fail: false
- name: Open issue if links are broken
if: steps.lychee.outputs.exit_code != 0
uses: peter-evans/create-issue-from-file@v6
with:
title: Broken documentation links
content-filepath: ./lychee/out.md
labels: data, links
- name: Update link check issue
env:
GH_TOKEN: ${{ github.token }}
GH_REPO: ${{ github.repository }}
BROKEN: ${{ steps.lychee.outputs.exit_code != 0 }}
run: |
gh label create links --force --description "Broken documentation links" || true
n=$(gh issue list --state open --search 'in:title "Broken documentation links"' --json number --jq '.[0].number // empty')
if [ "$BROKEN" = "true" ]; then
if [ -n "$n" ]; then gh issue edit "$n" --body-file ./lychee/out.md
else gh issue create --title "Broken documentation links" --body-file ./lychee/out.md --label links; fi
elif [ -n "$n" ]; then
gh issue close "$n" --comment "All documentation links pass."
fi
4 changes: 3 additions & 1 deletion .github/workflows/pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,11 @@ jobs:
- uses: actions/checkout@v7
- uses: actions/setup-node@v7
with:
node-version: 24
node-version: 26
- name: Validate data
run: npm run validate
- name: Run tests
run: npm test
- name: Assemble site
run: |
mkdir _site
Expand Down
8 changes: 5 additions & 3 deletions .github/workflows/validate.yml
Original file line number Diff line number Diff line change
@@ -1,16 +1,18 @@
name: Validate data

on:
push:
branches: [main]
pull_request:

permissions:
contents: read

jobs:
validate:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v7
- uses: actions/setup-node@v7
with:
node-version: 24
node-version: 26
- run: npm run validate
- run: npm test
1 change: 1 addition & 0 deletions CLAUDE.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,4 @@ Context for Claude Code or similar tools working in Constellate, an interactive
- Stars and labels are counter-scaled with `--inv`; new SVG elements inside nodes should go in the `.inner` group, and new lines need `vector-effect: non-scaling-stroke`.
- UI copy uses sentence case and British/South African spelling (licence, centre, enrolment).
- Respect `prefers-reduced-motion` (`RM` in atlas.js) for any new animation.
- Licence rules live in `assets/js/licence.js`; run `npm test` after changing them or the plan data.
16 changes: 11 additions & 5 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,17 @@ Most contributions are content: correcting a summary, updating a licence tier, f

1. Create a branch: `git switch -c data/update-purview-labels`.
2. Edit `data/services.js`.
3. Run `npm run validate` and fix any errors. Review warnings.
3. Run `npm run validate` and `npm test`. Fix any errors and review warnings.
4. Open `index.html` and check the change on the map (zoom in, select the item, check the threads).
5. Open a pull request. CI runs the validator again.

## Data schema

`data/services.js` returns five things.
`data/services.js` returns six things.

### `REVIEWED`: licensing review date

An ISO date string (`'YYYY-MM-DD'`) for when the licensing data was last checked against Microsoft's documentation. It is shown in the page footer. `npm run validate` errors if it is not a real date and warns when it is more than 100 days old, since a review is due each quarter.

### `LIC`: licence tiers

Expand All @@ -30,8 +34,8 @@ Most contributions are content: correcting a summary, updating a licence tier, f

| Key | Label | Meaning |
| --- | --- | --- |
| `defender` | Defender Suite | Formerly E5 Security. Entra ID P2 and the E5 Defender workloads, as an add-on to E3 or Business Premium. A frontline (FLW) version adds to F1 and F3 |
| `purview` | Purview Suite | Formerly E5 Compliance. E5 Purview features, as an add-on to E3 or Business Premium. A frontline (FLW) version adds to F1 and F3 |
| `defender` | Defender Suite | Formerly E5 Security. Entra ID P2 and the E5 Defender workloads, as an add-on to a plan that takes suites. A frontline (FLW) version adds to F1 and F3 |
| `purview` | Purview Suite | Formerly E5 Compliance. E5 Purview features, as an add-on to a plan that takes suites. A frontline (FLW) version adds to F1 and F3 |

Tag an `e5` component with `suite: 'defender'` or `suite: 'purview'` when that suite unlocks it without E5. The filter then lights it up when a plan with `suites: true` is chosen and that suite is added.

Expand Down Expand Up @@ -75,7 +79,7 @@ Example: Business Standard is `upTo:'core'` with the Microsoft 365 Apps features
| `note` | no | Licensing caveat, under 160 characters |
| `aka` | no | Space-separated search terms: acronyms, old names |
| `related` | no | Component IDs this works with. One direction is enough; the app makes links two-way |
| `suite` | no | `e5` components only: the `SUITES` key that unlocks it on E3 or Business Premium |
| `suite` | no | `e5` components only: the `SUITES` key that unlocks it on a plan that takes suites |

### `LINKS`: dashed lines between services

Expand All @@ -99,5 +103,7 @@ Pairs of service IDs, for example `['entra', 'intune']`.
## Pull request checklist

- [ ] `npm run validate` passes
- [ ] `npm test` passes
- [ ] Checked the change visually in light and dark themes
- [ ] Licence changes include a source link in the PR description
- [ ] Licensing changes update `REVIEWED` in `data/services.js`
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ Microsoft 365 is hard to hold in your head. Customers hear "Entra", "Defender" a
- **Feature detail.** Each feature has a short summary, a licence tier, licensing caveats, and a Microsoft Learn link. Services also link to their admin centre.
- **Cross-service threads.** Selecting a feature draws lines to related features in other services, such as Conditional Access to Intune compliance and ID Protection.
- **Licence filter.** Pick a plan (Business Basic, Standard or Premium, Office 365 E1 or E3, Microsoft 365 E3, E5 or E7, or frontline F1 or F3) and optionally add the Defender and Purview Suites. Everything outside it dims, to show what an upgrade would unlock.
- **Deep links.** The URL follows the view, so a feature and plan can be shared, such as `https://robinpza.github.io/constellate/#ca?plan=e3`.
- **Search.** Matches names, acronyms (MDE, DLP, PIM, SPF) and summaries.
- **Light and dark themes.** Follows the system setting: a printed atlas in light mode, a night sky in dark mode.
- **Responsive and accessible.** Works on mobile with a bottom-sheet panel, supports keyboard navigation (Tab, Enter, Esc) and respects reduced motion.
Expand All @@ -38,7 +39,7 @@ cd constellate
npm start # serves on http://localhost:8080
```

`npm start` uses `npx http-server`, so the only requirement is Node.js 18 or later. VS Code's Live Server extension works too.
`npm start` uses `npx http-server`, so the only requirement is Node.js 26 or later. VS Code's Live Server extension works too.

For first-time repo setup, GitHub Pages and branch protection, see [docs/GETTING-STARTED.md](docs/GETTING-STARTED.md).

Expand Down Expand Up @@ -78,7 +79,7 @@ Then run:
npm run validate
```

The validator checks for duplicate IDs, unknown licence tiers, broken `related` references, non-Learn doc URLs, overlong summaries and overlapping clusters. The full schema and writing guide are in [CONTRIBUTING.md](CONTRIBUTING.md).
The validator checks for duplicate IDs, unknown licence tiers, broken `related` references, non-Learn doc URLs, overlong summaries and overlapping clusters. `npm test` runs the unit tests for the licence rules and deep links. The full schema and writing guide are in [CONTRIBUTING.md](CONTRIBUTING.md).

## Deployment

Expand Down
80 changes: 53 additions & 27 deletions assets/js/atlas.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* Constellate: rendering and interaction
* Depends on: d3 v7 (global), data/services.js (window.ATLAS)
*/
const { LIC, SUITES, PLANS, SERVICES, LINKS } = window.ATLAS;
const { REVIEWED, LIC, SUITES, PLANS, SERVICES, LINKS } = window.ATLAS;

/* ---------- build model ---------- */
function mulberry(a){return function(){a|=0;a=a+0x6D2B79F5|0;let t=Math.imul(a^a>>>15,1|a);t=t+Math.imul(t^t>>>7,61|t)^t;return((t^t>>>14)>>>0)/4294967296}}
Expand Down Expand Up @@ -166,19 +166,41 @@ function fitTo(b,dur=850){
function refreshOverviewK(){ overviewK=transformFor(ALL_B,true).k; }

/* ---------- state ---------- */
function selectNode(id){
function selectNode(id,fromRoute,dur){
const n=N[id]; if(!n) return;
hideHint(); closeResults();
state.focus = n.type==='svc' ? n.id : n.svc;
state.sel = id;
apply();
showPanel(id);
requestAnimationFrame(()=>fitTo(clusterB(state.focus)));
requestAnimationFrame(()=>fitTo(clusterB(state.focus),dur));
if(!fromRoute) syncUrl(true);
}
function resetAll(){
function resetAll(fromRoute,dur){
const back=state.focus;
state.focus=null; state.sel=null; apply(); hidePanel(back);
fitTo(ALL_B);
fitTo(ALL_B,dur);
if(!fromRoute) syncUrl(true);
}
/* ---------- deep links ---------- */
function syncUrl(push){
const h=window.ATLAS.formatHash({id:state.sel,plan:state.plan,suites:state.suites});
const cur=location.hash==='#'?'':location.hash;
if(h===cur) return;
try{
history[push?'pushState':'replaceState'](null,'',location.pathname+location.search+h);
}catch(e){}
}
function restore(animate){
const r=window.ATLAS.parseHash(location.hash);
if(r.id===state.sel && r.plan===state.plan && r.suites.join('+')===state.suites.join('+')) return;
state.plan=r.plan; state.suites=r.suites;
planSel.value=r.plan; suitesSel.value=r.suites.join('+');
suiteFilter.hidden=!PLANS[state.plan]?.suites;
const dur=animate?undefined:0;
if(r.id) selectNode(r.id,true,dur);
else if(state.focus||state.sel) resetAll(true,dur);
applyLicence();
}
function apply(){
svgEl.classList.toggle('focused',!!state.focus);
Expand All @@ -200,20 +222,7 @@ function drawThreads(){
.style('stroke',d=>`var(--${d.b.svc})`);
cn.classed('rel',d=>!!(n&&n.type==='cmp'&&REL[n.id].has(d.id)));
}
// A plan covers its tier and below, plus its own `with` list, minus its `without` list.
// Suites only count on plans that can take them. A plan's `suites` object lists extra
// components each suite adds on that plan, such as Defender for Endpoint on F3.
function inPlan(c){
if(state.plan==='all') return true;
if(state.plan==='addon') return c.lic==='addon';
const p=PLANS[state.plan];
if(p.without?.includes(c.id)) return false;
if(p.with?.includes(c.id)) return true;
if(typeof p.suites==='object' && state.suites.some(s=>p.suites[s]?.includes(c.id))) return true;
if(c.lic==='addon') return false;
if(LIC[c.lic].rank<=LIC[p.upTo].rank) return true;
return !!(p.suites && c.suite && state.suites.includes(c.suite));
}
const inPlan = c => window.ATLAS.inPlan(c, state.plan, state.suites);
function applyLicence(){
cn.classed('muted',d=>!inPlan(d));
declutter();
Expand All @@ -225,12 +234,18 @@ function applyLicence(){
}
const lastPlanOpt=planSel.querySelector('option[value="addon"]');
Object.entries(PLANS).forEach(([k,p])=>lastPlanOpt.before(new Option(p.label,k)));
{
const sk=Object.keys(SUITES);
sk.forEach(k=>suitesSel.add(new Option(`+ ${SUITES[k].label}`,k)));
if(sk.length>1) suitesSel.add(new Option('+ '+sk.map(k=>SUITES[k].label.replace(/ Suite$/,'')).join(' & ')+' Suites',sk.join('+')));
}
planSel.addEventListener('change',()=>{
state.plan=planSel.value;
suiteFilter.hidden=!PLANS[state.plan]?.suites;
applyLicence();
syncUrl(false);
});
suitesSel.addEventListener('change',()=>{ state.suites=suitesSel.value?suitesSel.value.split('+'):[]; applyLicence(); });
suitesSel.addEventListener('change',()=>{ state.suites=suitesSel.value?suitesSel.value.split('+'):[]; applyLicence(); syncUrl(false); });

/* ---------- crumbs & panel ---------- */
function renderCrumbs(){
Expand All @@ -246,23 +261,25 @@ const EX = `<span class="sr-only ex" hidden>, not in the selected licence</span>
// 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 ? `<span class="chip">or ${esc(ps.join(', '))}</span>` : ''; };
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 ? `<span>Add to: ${esc(ps.join(', '))}</span>` : ''; };
const licShort = c =>LIC[c.lic].short + (c.suite ? ' / '+SUITES[c.suite].label.split(' ')[0] : '');
function showPanel(id){
const n=N[id], s=SVC[n.type==='svc'?n.id:n.svc];
panel.style.setProperty('--c',`var(--${s.id})`);
let h=`<button class="close" data-close aria-label="Close details">\u00d7</button>`;
if(n.type==='svc'){
h+=`<p class="kind">Service</p><h2>${esc(n.name)}</h2><p class="sum">${esc(n.summary)}</p>
<div class="actions"><a class="btn" href="${n.docs}" target="_blank" rel="noopener">Open documentation</a>
<a class="btn ghost" href="${n.portal}" target="_blank" rel="noopener">Open admin centre</a></div>
<div class="actions"><a class="btn" href="${esc(n.docs)}" target="_blank" rel="noopener">Open documentation</a>
<a class="btn ghost" href="${esc(n.portal)}" target="_blank" rel="noopener">Open admin centre</a></div>
<h3>${n.components.length} components</h3><ul class="list">${n.components.map(c=>
`<li><button data-go="${c.id}"><span class="dot"></span><span>${esc(c.name)}${EX}</span><span class="lic" title="${esc(LIC[c.lic].label)}">${licShort(c)}</span></button></li>`).join('')}</ul>`;
`<li><button data-go="${c.id}"><span class="dot"></span><span>${esc(c.name)}${EX}</span><span class="lic" title="${esc(LIC[c.lic].label)}">${esc(licShort(c))}</span></button></li>`).join('')}</ul>`;
} else {
const rel=[...REL[n.id]].map(r=>N[r]);
h+=`<p class="kind">Part of <button data-go="${s.id}">${esc(s.name)}</button></p><h2>${esc(n.name)}</h2>
<p class="sum">${esc(n.summary)}</p>
<p class="licline"><span class="chip">${LIC[n.lic].label}</span>${extraPlans(n)}${n.suite?`<span class="chip" title="${esc(SUITES[n.suite].full)}">or ${esc(SUITES[n.suite].label)} on Business Premium / E3</span>`:''}${n.note?`<span>${esc(n.note)}</span>`:''}</p>
<div class="actions"><a class="btn" href="${n.docs}" target="_blank" rel="noopener">Open Microsoft Learn docs</a></div>
<p class="licline"><span class="chip">${esc(LIC[n.lic].label)}</span>${extraPlans(n)}${n.suite?`<span class="chip" title="${esc(SUITES[n.suite].full)}">or ${esc(SUITES[n.suite].label)}</span>${addTo(n)}`:''}${n.note?`<span>${esc(n.note)}</span>`:''}</p>
<div class="actions"><a class="btn" href="${esc(n.docs)}" target="_blank" rel="noopener">Open Microsoft Learn docs</a></div>
${rel.length?`<h3>Works with</h3><ul class="list">${rel.map(r=>
`<li><button data-go="${r.id}" style="--c:var(--${r.svc})"><span class="dot"></span><span>${esc(r.name)}${EX}</span><span class="lic">${esc(SVC[r.svc].short)}</span></button></li>`).join('')}</ul>`:''}`;
}
Expand All @@ -282,6 +299,7 @@ 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));
syncUrl(true);
}
document.addEventListener('click',e=>{
const go=e.target.closest('[data-go]');
Expand All @@ -308,8 +326,8 @@ q.addEventListener('input',()=>{
resultsStatus.textContent = m.length ? `${m.length} ${m.length===1?'result':'results'}. Press the down arrow to choose.` : 'No matches.';
});
q.addEventListener('keydown',e=>{
if(e.key==='Enter'){ const b=results.querySelector('button'); if(b){ b.click(); q.value=''; q.blur(); } }
if(e.key==='ArrowDown'){ const b=results.querySelector('button'); if(b){ e.preventDefault(); b.focus(); } }
if(e.key==='Enter'){ if(results.hidden) return; const b=results.querySelector('button'); if(b){ b.click(); q.value=''; q.blur(); } }
if(e.key==='ArrowDown'){ if(results.hidden) return; const b=results.querySelector('button'); if(b){ e.preventDefault(); b.focus(); } }
});
results.addEventListener('keydown',e=>{
const bs=[...results.querySelectorAll('button')], i=bs.indexOf(document.activeElement);
Expand All @@ -327,8 +345,16 @@ document.addEventListener('keydown',e=>{

/* ---------- hint, init, resize ---------- */
function hideHint(){ hint.classList.add('gone'); }
{
const el=document.getElementById('reviewed'), d=new Date(`${REVIEWED}T00:00:00Z`);
if(el&&!isNaN(d)) el.textContent=` Licensing reviewed ${d.toLocaleDateString('en-GB',{day:'numeric',month:'long',year:'numeric',timeZone:'UTC'})}.`;
}
refreshOverviewK();
renderCrumbs();
fitTo(ALL_B,0);
addEventListener('popstate',()=>restore(true));
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); });
18 changes: 18 additions & 0 deletions assets/js/licence.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
// Licence rules. Pure: reads LIC and PLANS from window.ATLAS and adds window.ATLAS.inPlan.
(function(){
const {LIC,PLANS}=window.ATLAS;
// A plan covers its tier and below, plus its own `with` list, minus its `without` list.
// Suites only count on plans that can take them. A plan's `suites` object lists extra
// components each suite adds on that plan, such as Defender for Endpoint on F3.
window.ATLAS.inPlan=function inPlan(c,plan,suites){
if(plan==='all') return true;
if(plan==='addon') return c.lic==='addon';
const p=PLANS[plan];
if(p.without?.includes(c.id)) return false;
if(p.with?.includes(c.id)) return true;
if(typeof p.suites==='object' && suites.some(s=>p.suites[s]?.includes(c.id))) return true;
if(c.lic==='addon') return false;
if(LIC[c.lic].rank<=LIC[p.upTo].rank) return true;
return !!(p.suites && c.suite && suites.includes(c.suite));
};
})();
40 changes: 40 additions & 0 deletions assets/js/route.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
// Deep-link hash rules. Pure: adds window.ATLAS.parseHash and window.ATLAS.formatHash.
// Format: #<id>?plan=<key>&suites=<a+b>. Every part is optional.
(function(){
const {PLANS,SUITES,SERVICES}=window.ATLAS;
const ids=new Set();
for(const s of SERVICES){ ids.add(s.id); for(const c of s.components||[]) ids.add(c.id); }
const takesSuites=plan=>plan!=='all' && plan!=='addon' && !!PLANS[plan]?.suites;

window.ATLAS.parseHash=function parseHash(hash){
const out={id:null,plan:'all',suites:[]};
try{
const h=String(hash||'').replace(/^#/,'');
const q=h.indexOf('?');
const idPart=decodeURIComponent(q<0?h:h.slice(0,q));
const query=q<0?'':h.slice(q+1);
if(ids.has(idPart)) out.id=idPart;
let suites=[];
for(const pair of query.split('&')){
const e=pair.indexOf('=');
if(e<0) continue;
const k=pair.slice(0,e), v=decodeURIComponent(pair.slice(e+1));
if(k==='plan' && (v==='all'||v==='addon'||Object.hasOwn(PLANS,v))) out.plan=v;
else if(k==='suites') suites=v.split('+');
}
if(takesSuites(out.plan)) out.suites=Object.keys(SUITES).filter(k=>suites.includes(k));
}catch(e){
return {id:null,plan:'all',suites:[]};
}
return out;
};

window.ATLAS.formatHash=function formatHash({id,plan,suites}){
const parts=[];
if(plan && plan!=='all') parts.push('plan='+encodeURIComponent(plan));
if(takesSuites(plan) && suites && suites.length) parts.push('suites='+suites.map(encodeURIComponent).join('+'));
const idPart=id?encodeURIComponent(id):'';
if(!idPart && !parts.length) return '';
return '#'+idPart+(parts.length?'?'+parts.join('&'):'');
};
})();
Binary file added assets/og.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Loading