Skip to content

Conversation

@IanArb
Copy link
Contributor

@IanArb IanArb commented Dec 11, 2025

Screenshot_20251212_104009

@IanArb IanArb requested a review from a team as a code owner December 11, 2025 15:50
@DawidSeroka
Copy link
Contributor

Hi Ian,
The Zendesk demo is a minimal implementation showing how to initialize and use it. What do you think about adding a new independent section that guides integrators on how to use customized colors?

@IanArb
Copy link
Contributor Author

IanArb commented Dec 12, 2025

Hi Ian, The Zendesk demo is a minimal implementation showing how to initialize and use it. What do you think about adding a new independent section that guides integrators on how to use customized colors?

I can try but I will have to make the Zendesk initialisation a global instance to inject the default factory. Let me try this.

@IanArb
Copy link
Contributor Author

IanArb commented Dec 12, 2025

Hi Ian, The Zendesk demo is a minimal implementation showing how to initialize and use it. What do you think about adding a new independent section that guides integrators on how to use customized colors?

Done. I added a ZendeskManager class to allow to change the colors at runtime with the click of a button from the card in the UI.

import zendesk.logger.Logger
import javax.inject.Inject

class ZendeskManager @Inject constructor() {
Copy link
Contributor

Choose a reason for hiding this comment

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

I believe we don't need Hilt for this demo. We can simply wrap ZendeskManager in object and keep the demo free from any specific API constraints.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yeah you're right. It's overly complicating it. I can remove it.

<string name="conversation_card_description">Displays the conversation screen for the initial conversation created for your user. A user and a new conversation will automatically be created if they don\'t exist. Ensure you have previously initialized the Zendesk SDK.</string>
<string name="conversation_button">Show conversation</string>

<string name="colors_api_card_title">Change the theme color</string>
Copy link
Contributor

Choose a reason for hiding this comment

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

To avoid confusion, maybe we should specify that we're setting custom colors with this section?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

We can add that in the card description.

@IanArb IanArb merged commit 182ae9f into main Dec 15, 2025
@IanArb IanArb deleted the feature/MFD-13002-add-custom-colours-demo-app branch December 15, 2025 09:28
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.

3 participants