feat: Add CnTimelineStages component#12
Merged
remko48 merged 4 commits intodevelopmentfrom Mar 31, 2026
Merged
Conversation
Abstract timeline/stages widget that visualizes progression through named stages (completed, current, upcoming). Supports horizontal/vertical orientation, click interaction, keyboard navigation, ARIA accessibility, size variants, subtitles, and scoped slots for customization.
- URL sync (SPOT pattern): filter, search, sort, and page state is
now synced to URL query parameters via router.replace(), enabling
shareable filtered views. Reads URL state on mount for deeplink
restoration. Opt-out via urlSync:false.
- objectStore option: consumers can pass their own Pinia store
instance instead of using the library default (conduction-objects).
Fixes dual-store bug where apps using createObjectStore('object')
registered types in a different store than useListView consumed.
- Retry logic: onMounted retries fetchSchema/fetchCollection with
backoff when the object type isn't registered yet, fixing the race
condition between async store init and component mount.
Resolve all 27 merge conflicts by accepting main's versions, which include: - CnAdvancedFormDialog, CnUserActionMenu, CnNotesCard, CnTasksCard components - selectionPlugin, searchPlugin store plugins - prefixUrl utility, extractId utility - Route-based navigation in CnStatsBlock - Improved CnTimelineStages with pre-computed stageStates, dot indicator, better JSDoc - Enhanced useObjectStore with state/getters/actions extension points - Updated specs with implementation status sections - CodeMirror and vue-codemirror6 dependencies - Jest mocks for @nextcloud/vue, vue-codemirror6, codemirror-lang-json - structuredClone polyfill in test setup
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.
Summary
CnTimelineStagesVue 2 component for visualizing sequential stage progression (e.g., case phases, pipeline leads)indicator,label) allow consumers to customize rendering per stageNew files
src/components/CnTimelineStages/CnTimelineStages.vue— Component SFCsrc/components/CnTimelineStages/index.js— Re-exportsrc/css/timeline-stages.css— Global styles withcn-prefixProps API
stages[{ id, label, subtitle? }]currentStagenullorientation'horizontal''horizontal'or'vertical'clickablefalsesize'medium''small'or'medium'ariaLabel'Progress stages'Test plan
currentStagestage-clickonly whenclickable=truerole="list",role="listitem",aria-current="step"🤖 Generated with Claude Code