Repository navigation
feat: add ProgressIndicatorStyle.PILL for multi-step progress indicators - #52
paul-at-equal wants to merge 1 commit into
Conversation
Adds an alternative visual style for the multi-step tooltip progress indicator: instead of every step being a same-size dot, the current step renders as an elongated pill while the other steps stay small dots — matching an iOS-style page indicator, per a requested reference design (a "MyGate Security" style onboarding screen). - ProgressIndicatorStyle enum: DOTS (existing fill-up-to-current-step look, now the explicit default) and PILL (only the current step is highlighted, as a pill; other steps are plain dots regardless of whether they're before or after the current one). - CoachmarkConfig.progressIndicatorStyle selects the style; CoachmarkConfig.progressActivePillWidth sizes the pill (height matches the existing 8dp dot size, so PILL is a proper stadium shape via RoundedCornerShape rather than a stretched ellipse). - Reuses the existing CoachmarkColors.progressActiveColor / progressInactiveColor — no new color config needed. - Added a "Start Tour (Pill)" button to the Multi-Step Sequence sample to demo the new style alongside the existing dots tour. Bumped to 1.0.0-beta16 and updated CHANGELOG. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
|
Closing as superseded — Context: reviewing this alongside #51 against the actual design driving both showed a pattern of new visual requirements landing as new enum cases + config fields in Thanks for building it — no rework needed on your end. |
Summary
ProgressIndicatorStyle(DOTSdefault /PILL) so the current step in a multi-step tooltip's progress indicator can render as an elongated pill instead of a same-size dot — an iOS-style page indicator look, requested to match a reference onboarding screen.CoachmarkConfig.progressIndicatorStyleandCoachmarkConfig.progressActivePillWidth(default20.dp) control it. No new color config needed — reuses existingCoachmarkColors.progressActiveColor/progressInactiveColor.DOTSbehavior is unchanged (steps up to and including the current one fill in, matching current default behavior exactly).PILLhighlights only the current step; every other step (before or after) stays a plain dot.1.0.0-beta16and updatedCHANGELOG.md.This is independent of #51 (the
TEARDROPconnector PR) — branched frommaindirectly so it can be reviewed/merged on its own.Test plan
./gradlew :lumen:compileDebugKotlinAndroid :lumen:compileKotlinJvm :lumen:compileKotlinIosArm64 :lumen:compileKotlinIosSimulatorArm64 :lumen:compileKotlinIosX64 :sample:compileDebugKotlinAndroid— all targets compile./gradlew :lumen:apiDump/:lumen:apiCheck— API dumps regenerated and verified./gradlew :lumen:testDebugUnitTest :lumen:jvmTest— full suite green, including a new Roborazzi golden (tooltip_multiStep_pillIndicator.png) and a newProgressIndicatorStyle.entriesunit test🤖 Generated with Claude Code