Skip to content

Conversation

@dhonti-axpe
Copy link
Contributor

🥅 What's the goal?

Provide a description of the overall goal. The description in the Jira ticket may help.

🚧 How do we do it?

Provide a description of the implementation. A list of steps would be ideal.

  • Step 1
  • Step 2
  • Step 3

☑️ Checks

  • I updated the documentation, including readmes and wikis. If this is a breaking change, tag the PR with "Breaking Change" label and remember to include breaking change migration guide in release notes where this version is released.
  • Tested with dark mode.
  • Tested with API 24.
  • Sync done with iOS team for this feature to ensure alignment, if applies.
  • Accessibility considerations.

🧪 How can I test this?

If it cannot be tested explain why.

  • 🖼️ Screenshots/Videos
  • Mistica App QR or download link
  • Reviewed by Mistica design team
  • ...

@github-actions
Copy link

github-actions bot commented Dec 2, 2025

[Firebase] 📱 New catalog for testing generated:
Download from Firebase
Download from App Tester

@pmartinbTEF pmartinbTEF requested a review from Copilot December 2, 2025 12:22
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR renames a button style enum value and a parameter name. The changes rename PRIMARY_SMALL to PRIMAY_VERY_SMALL (with a typo) across the codebase, modify a tag height, and rename a parameter in PasswordInput.

Key Changes:

  • Renamed ButtonStyle.PRIMARY_SMALL to ButtonStyle.PRIMAY_VERY_SMALL across all usages
  • Changed tag height from 28.dp to 42.dp
  • Renamed onClick parameter to onClickAction in PasswordInput

Reviewed changes

Copilot reviewed 11 out of 11 changed files in this pull request and generated 4 comments.

Show a summary per file
File Description
library/src/main/java/com/telefonica/mistica/compose/button/Button.kt Renamed enum value PRIMARY_SMALL to PRIMAY_VERY_SMALL
library/src/main/java/com/telefonica/mistica/compose/button/ButtonStyles.kt Updated button style mapping to use renamed enum
library/src/main/java/com/telefonica/mistica/compose/button/ButtonSizes.kt Updated button size configuration to use renamed enum
library/src/main/java/com/telefonica/mistica/button2/Button.kt Updated XML attribute mapping to use renamed enum
library/src/main/java/com/telefonica/mistica/compose/card/Card.kt Updated CardActions to use renamed button style
library/src/main/java/com/telefonica/mistica/compose/callout/Callout.kt Updated callout primary button to use renamed style
library/src/main/java/com/telefonica/mistica/compose/card/highlightedcard/HighLightedCard.kt Updated style transformation logic to use renamed enum
library/src/main/java/com/telefonica/mistica/compose/input/PasswordInput.kt Renamed onClick parameter to onClickAction
library/src/main/java/com/telefonica/mistica/compose/tag/Tag.kt Changed tag height from 28.dp to 42.dp
library/src/test/java/com/telefonica/mistica/button/ButtonTest.kt Updated test to use renamed button style
catalog/src/main/java/com/telefonica/mistica/catalog/ui/compose/components/Inputs.kt Updated catalog examples to use renamed button style

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

enum class ButtonStyle {
PRIMARY,
PRIMARY_SMALL,
PRIMAY_VERY_SMALL,
Copy link

Copilot AI Dec 2, 2025

Choose a reason for hiding this comment

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

Corrected spelling of 'PRIMAY_VERY_SMALL' to 'PRIMARY_VERY_SMALL'.

Copilot uses AI. Check for mistakes.
enum class ButtonStyle {
PRIMARY,
PRIMARY_SMALL,
PRIMAY_VERY_SMALL,
Copy link

Copilot AI Dec 2, 2025

Choose a reason for hiding this comment

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

This is a breaking change. The enum value PRIMARY_SMALL has been removed and replaced with PRIMAY_VERY_SMALL (note the typo). This will break existing consumers who reference ButtonStyle.PRIMARY_SMALL. Please apply the 'Breaking change' label to this PR and remember to include migration notes when drafting the release.

Copilot generated this review using guidance from repository custom instructions.
enabled: Boolean = true,
readOnly: Boolean = false,
onClick: (() -> Unit)? = null,
onClickAction: (() -> Unit)? = null,
Copy link

Copilot AI Dec 2, 2025

Choose a reason for hiding this comment

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

This is a breaking change. The parameter name has been changed from onClick to onClickAction, which will break existing consumers using named parameters. Please apply the 'Breaking change' label to this PR and remember to include migration notes when drafting the release.

Copilot generated this review using guidance from repository custom instructions.
.wrapContentSize()
.defaultMinSize(minWidth = 48.dp)
.height(28.dp),
.height(42.dp),
Copy link

Copilot AI Dec 2, 2025

Choose a reason for hiding this comment

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

This is a breaking change. The tag height has been modified from 28.dp to 42.dp, which changes the visual contract and may break layouts or UI tests that depend on the previous size. Please apply the 'Breaking change' label to this PR and remember to include migration notes when drafting the release.

Copilot generated this review using guidance from repository custom instructions.
@github-actions
Copy link

github-actions bot commented Dec 2, 2025

[Firebase] 📱 New catalog for testing generated:
Download from Firebase
Download from App Tester

@github-actions
Copy link

github-actions bot commented Dec 2, 2025

[Firebase] 📱 New catalog for testing generated:
Download from Firebase
Download from App Tester

@pmartinbTEF pmartinbTEF requested a review from Copilot December 2, 2025 13:37
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 13 out of 13 changed files in this pull request and generated 1 comment.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

import com.telefonica.mistica.compose.theme.brand.Brand

class ComponentComposeFragment(private val theme: Brand, private val component: @Composable () -> Unit) : Fragment() {
class ComponentValueComposeFragment(private val theme: Brand, private val component: @Composable () -> Unit) : Fragment() {
Copy link

Copilot AI Dec 2, 2025

Choose a reason for hiding this comment

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

Breaking Change Detected: The class has been renamed from ComponentComposeFragment to ComponentValueComposeFragment. This is a breaking change for any code that references this class. Please apply the 'Breaking change' label to this PR. Migration notes should be added when drafting the release.

Copilot generated this review using guidance from repository custom instructions.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants