Skip to content

[DON-3517] Document subHeading naming difference for BPKSnippet and fix onClick example - #2794

Merged
Jasper Sion (jaspersion05) merged 1 commit into
mainfrom
donburi/DON-3517-Snippet-readme-naming-note
Aug 20, 2026
Merged

[DON-3517] Document subHeading naming difference for BPKSnippet and fix onClick example#2794
Jasper Sion (jaspersion05) merged 1 commit into
mainfrom
donburi/DON-3517-Snippet-readme-naming-note

Conversation

@jaspersion05

Copy link
Copy Markdown
Contributor

Summary

Docs-only fixes for the Snippet Compose component README: corrects a broken usage example and documents a known iOS/Android naming discrepancy, rather than renaming the parameter (which would be a breaking API change).

Changes

  • Fixed the "Snippet with action to be performed on tap" example in docs/compose/Snippet/README.md — it passed description = description, but BpkSnippet has no description parameter. Replaced with headline = headline, matching the real signature.
  • Added a note documenting that the subheading parameter is named subHeading on Android and subheading on iOS, and that this is an intentional, known discrepancy rather than a bug.

Context

Found while working DON-3517 (Snippet iOS/Android parity audit). The naming mismatch itself was left un-renamed to avoid a breaking change for any caller using subHeading as a named argument.

Test plan

  • Docs-only change, no code touched
  • Confirmed BpkSnippet's real parameters (headline, subHeading, bodyText, imageOrientation, onClick) against BpkSnippet.kt

Copilot AI lite review requested due to automatic review settings August 18, 2026 15:49

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Note

Copilot was unable to run its full agentic suite in this review.

Updates the Backpack Compose Snippet documentation to clarify cross-platform naming differences and adjust the Android Compose usage example.

Changes:

  • Documented the intentional subHeading (Android) vs subheading (iOS) parameter naming discrepancy.
  • Updated the Kotlin BpkSnippet example to use headline instead of description.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment on lines 80 to 82
BpkSnippet(
description = description,
headline = headline,
subHeading = subHeading,
@jaspersion05 Jasper Sion (jaspersion05) added the minor A new & backwards compatible feature/component label Aug 18, 2026
@jaspersion05 Jasper Sion (jaspersion05) changed the title [DON-3517] Document subHeading naming difference and fix onClick example [DON-3517] Document subHeading naming difference for BPKSnippet and fix onClick example Aug 18, 2026
@henrik-sky Henrik Sym (henrik-sky) added skip-changelog Used for any changes that shouldn't be referrenced in the changelog and removed minor A new & backwards compatible feature/component labels Aug 19, 2026
@jaspersion05
Jasper Sion (jaspersion05) merged commit 771dbfb into main Aug 20, 2026
21 of 22 checks passed
@jaspersion05
Jasper Sion (jaspersion05) deleted the donburi/DON-3517-Snippet-readme-naming-note branch August 20, 2026 09:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

skip-changelog Used for any changes that shouldn't be referrenced in the changelog

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants