Skip to content

Commit 9db8a09

Browse files
committed
Fix
1 parent 864c1fd commit 9db8a09

5 files changed

Lines changed: 34 additions & 51 deletions

File tree

docs/assets/css/styles.css

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -787,7 +787,21 @@ h4 { font-size: 1rem; font-weight: 600; letter-spacing: 0; }
787787
.chip.active[data-module="ghaw"] { background: var(--c-ghaw); }
788788
.chip.active[data-module="agentic-devops"] { background: var(--c-agentic); }
789789
.chip.active[data-module="sre-agent"] { background: var(--c-agentic); }
790-
.chip-outcome { max-width: 260px; overflow: hidden; text-overflow: ellipsis; }
790+
.chip-outcome {
791+
--outcome-color: var(--c-gold);
792+
max-width: 260px;
793+
overflow: hidden;
794+
text-overflow: ellipsis;
795+
color: var(--outcome-color);
796+
border-color: color-mix(in srgb, var(--outcome-color) 42%, var(--c-line));
797+
background: color-mix(in srgb, var(--outcome-color) 9%, var(--c-800));
798+
}
799+
.chip-outcome:hover,
800+
.chip-outcome.active {
801+
color: #fff;
802+
border-color: transparent;
803+
background: var(--outcome-color);
804+
}
791805

792806
/* Search box */
793807
.search-box {

docs/assets/js/catalog.js

Lines changed: 15 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
let _modules = [];
77
let _outcomes = [];
88
let _activeOutcome = null;
9-
let _activeModule = null;
109
let _activeDiff = null;
1110
let _activeTrack = null;
1211
let _query = '';
@@ -21,7 +20,6 @@
2120
_outcomes = data.outcomes || [];
2221

2322
buildOutcomeChips();
24-
buildModuleChips();
2523
buildDiffChips();
2624
initSearch();
2725
applyUrlState();
@@ -30,13 +28,10 @@
3028

3129
const DIFFS = ['beginner', 'intermediate', 'advanced'];
3230

33-
/* Seed filter state from the URL query string (?module=&difficulty=&q=) and
31+
/* Seed filter state from the URL query string (?outcome=&difficulty=&q=) and
3432
reflect it on the chips + search input before the first render. Invalid
3533
values are ignored rather than applied. */
3634
function applyUrlState() {
37-
const mod = FP.qp('module');
38-
if (mod && _modules.some((m) => m.id === mod)) _activeModule = mod;
39-
4035
const outcome = FP.qp('outcome');
4136
if (outcome && _outcomes.some((o) => o.id === outcome)) _activeOutcome = outcome;
4237

@@ -54,13 +49,8 @@
5449
syncUrl();
5550
}
5651

57-
/* Reflect _activeModule / _activeDiff onto the rendered chips. */
52+
/* Reflect the active filters onto the rendered chips. */
5853
function syncChipState() {
59-
document.querySelectorAll('#moduleChips .chip').forEach((b) => {
60-
const on = b.dataset.module === _activeModule;
61-
b.classList.toggle('active', on);
62-
b.setAttribute('aria-pressed', String(on));
63-
});
6454
document.querySelectorAll('#outcomeChips .chip').forEach((b) => {
6555
const on = b.dataset.outcome === _activeOutcome;
6656
b.classList.toggle('active', on);
@@ -77,7 +67,6 @@
7767
shareable. replaceState avoids polluting back/forward history. */
7868
function syncUrl() {
7969
const q = new URLSearchParams();
80-
if (_activeModule) q.set('module', _activeModule);
8170
if (_activeOutcome) q.set('outcome', _activeOutcome);
8271
if (_activeDiff) q.set('difficulty', _activeDiff);
8372
if (_query) q.set('q', _query);
@@ -86,38 +75,13 @@
8675
window.history.replaceState(null, '', url);
8776
}
8877

89-
function buildModuleChips() {
90-
const container = document.getElementById('moduleChips');
91-
if (!container) return;
92-
93-
container.innerHTML = _modules.map((m) =>
94-
`<button class="chip" data-module="${FP.esc(m.id)}"
95-
aria-pressed="false" type="button"
96-
style="--mod-color:${FP.moduleColor(m.id)}">
97-
${FP.esc(m.name.replace('GitHub ', ''))}
98-
</button>`
99-
).join('');
100-
101-
container.querySelectorAll('.chip').forEach((btn) => {
102-
btn.addEventListener('click', () => {
103-
const id = btn.dataset.module;
104-
_activeModule = _activeModule === id ? null : id;
105-
container.querySelectorAll('.chip').forEach((b) => {
106-
b.classList.toggle('active', b.dataset.module === _activeModule);
107-
b.setAttribute('aria-pressed', String(b.dataset.module === _activeModule));
108-
});
109-
syncUrl();
110-
render();
111-
});
112-
});
113-
}
114-
11578
function buildOutcomeChips() {
11679
const container = document.getElementById('outcomeChips');
11780
if (!container) return;
11881
container.innerHTML = _outcomes.map((o) =>
11982
`<button class="chip chip-outcome" data-outcome="${FP.esc(o.id)}"
120-
aria-pressed="false" type="button">
83+
aria-pressed="false" type="button"
84+
style="--outcome-color:${FP.moduleColor(outcomeModule(o.id))}">
12185
${FP.esc(o.name)}
12286
</button>`
12387
).join('');
@@ -133,6 +97,17 @@
13397
});
13498
}
13599

100+
function outcomeModule(outcomeId) {
101+
const moduleByOutcome = {
102+
'github-adoption': 'ghec',
103+
'platform-migration': 'ghec',
104+
'ghas-adoption': 'ghas',
105+
'agentic-workflows': 'ghaw',
106+
'agentic-devops-cloud': 'sre-agent',
107+
};
108+
return moduleByOutcome[outcomeId];
109+
}
110+
136111
function buildDiffChips() {
137112
const container = document.getElementById('diffChips');
138113
if (!container) return;
@@ -170,7 +145,6 @@
170145
_query = '';
171146
input.value = '';
172147
_activeOutcome = null;
173-
_activeModule = null;
174148
_activeDiff = null;
175149
document.querySelectorAll('.chip').forEach((b) => {
176150
b.classList.remove('active');
@@ -184,7 +158,6 @@
184158

185159
function filtered() {
186160
return _all.filter((c) => {
187-
if (_activeModule && c.module !== _activeModule) return false;
188161
if (_activeOutcome && !(c.outcomes || []).includes(_activeOutcome)) return false;
189162
if (_activeDiff && c.difficulty !== _activeDiff) return false;
190163
if (_query) {

docs/catalog.html

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@
5353
<div class="wrap">
5454
<span class="eyebrow">Outcome catalog</span>
5555
<h1 id="catalogHeading" style="margin-top:14px">Find the right path.</h1>
56-
<p>Filter by business outcome, module, or delivery complexity. Every card is data-driven from <span
56+
<p>Filter by business outcome or delivery complexity. Every card is data-driven from <span
5757
class="mono">platform.json</span>, including journey membership and work-package metadata.</p>
5858
<p style="margin-top:18px"><a class="btn btn-primary btn-sm" href="builder.html">⊞ Build a custom set for your
5959
delivery team →</a></p>
@@ -66,10 +66,6 @@ <h1 id="catalogHeading" style="margin-top:14px">Find the right path.</h1>
6666
<span class="filter-label" id="outcomeFilterLabel">Outcome</span>
6767
<div id="outcomeChips" role="group" aria-labelledby="outcomeFilterLabel" style="display:contents"></div>
6868
</div>
69-
<div class="filter-group">
70-
<span class="filter-label" id="moduleFilterLabel">Module</span>
71-
<div id="moduleChips" role="group" aria-labelledby="moduleFilterLabel" style="display:contents"></div>
72-
</div>
7369
<div class="filter-group">
7470
<span class="filter-label" id="diffFilterLabel">Level</span>
7571
<div id="diffChips" role="group" aria-labelledby="diffFilterLabel" style="display:contents"></div>

docs/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<meta charset="utf-8" />
66
<meta name="viewport" content="width=device-width, initial-scale=1" />
77

8-
<title>Agentic DevSecOps — Outcome Journeys</title>
8+
<title>RVAS Agentic DevSecOps</title>
99
<meta name="description"
1010
content="Production adoption paths for GitHub — Enterprise Cloud, migrations, Advanced Security, agentic workflows, and cloud DevOps. Hands-on activities your teams run in their own organization." />
1111
<link rel="preconnect" href="https://fonts.googleapis.com" />

outcomes.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -95,8 +95,8 @@
9595
},
9696
{
9797
"id": "agentic-workflows",
98-
"name": "Adopt agentic workflows",
99-
"tagline": "Put safe agentic workflows into GitHub issues, pull requests, and CI.",
98+
"name": "Adopt agentic workflows for your SDLC",
99+
"tagline": "Change how you build software and deliver it throughout your Software Development Lifecycle.",
100100
"description": "Build and operate GitHub-native agents in the customer's repositories for issue triage, pull-request review, CI diagnosis, documentation, testing, security, and continuous intelligence with reviewable outputs.",
101101
"personas": ["customer-developer", "platform-engineer", "solution-architect", "platform-governance"],
102102
"adoption_stage": ["pilot", "scale", "operate"],

0 commit comments

Comments
 (0)