Repository navigation
feat(#2864): Temporarily Unavailable toggle for mission paths - #2869
Merged
Merged
Conversation
- Add temporarilyUnavailable/unavailableReason fields to BrowseCardItem
(scripts/fetch-tutorials.ts) and CardItem (hugo-apps/src/shared/types.ts)
- Populate both fields in buildAllCards mission literal from mMeta lookup
- Add badge element to MissionCard.vue (v-if="item.temporarilyUnavailable")
and card-mission.html Hugo partial ({{- if $item.temporarilyUnavailable -}})
immediately after the nav-card__type--mission div
- Add .nav-card__unavailable-badge CSS rule to card.css reusing badge visual
conventions (orange background, white text, rounded, small caps)
- Add temporarilyUnavailable:true to mission fixture in cards.fixtures.json
so parity test exercises the badge branch
- Regenerate card-mission.expected.html, card-tutorial.expected.html,
card-group.expected.html, and browse-page-1.html via regen-card-parity-fixtures.sh
- Fix regen script: pass (dict "item" ...) to card partials which expect
.item context, not a raw item (pre-existing script/partial interface mismatch
that caused the partial to silently produce empty fixtures)
- Add two new vitest cases: positive (flag set) and negative (flag absent)
in fetch-tutorials-browse-channel.test.ts
Both vitest suites pass (20 tests total).
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #2864.
Adds a manual per-mission Temporarily Unavailable toggle so a broken or under-maintenance mission path can be pulled out of circulation in one switch, then restored just as fast.
Behaviour
Missions.temporarilyUnavailable : Boolean default false+unavailableReason : String(500).published./browse/and/tutorial-navigator/.items: []).published(a disabled mission stayspublished: true). Rebuild-gated propagation — takes effect on the next content rebuild, like every other mission edit.Not in scope (deliberate)
MissionRef/navigator plumbing not extended — the badge is baked intobrowse.jsonand rendered SSR.Testing
cds build --productiongreen. HANA migration table regenerated (migration=9) and committed.is null or = falsein the view,{ '!=': true }in JS) so legacy rows with the column unset still show.Docs
Design + implementation plan under
docs/superpowers/specs/anddocs/superpowers/plans/.🤖 Generated with Claude Code