Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(cozy-dataproxy-lib): Embed assistant's icon as base64 instead of PNG #2732

Merged
merged 1 commit into from
Feb 11, 2025

Conversation

Ldoppea
Copy link
Member

@Ldoppea Ldoppea commented Feb 10, 2025

The assistant's icon cannot be a SVG because it uses some conical gradients

Also we don't want to embed it as a PNG resource for now because we encounter some issues in the Flagship app's WebViews when loaded in offline mode (the cache control seems not to work after an app's restart)

To fix those issues, we chose to embed the icon PNG as a base64 string until we find a better solution.

The assistant's icon cannot be a SVG because it uses some conical
gradients

Also we don't want to embed it as a PNG resource for now because we
encounter some issues in the Flagship app's WebViews when loaded in
offline mode (the cache control seems not to work after an app's
restart)

To fix those issues, we chose to embed the icon PNG as a base64 string
until we find a better solution.
Copy link
Contributor

@zatteo zatteo left a comment

Choose a reason for hiding this comment

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

Tested on Home/Drive desktop/mobile ?

Copy link
Contributor

@paultranvan paultranvan left a comment

Choose a reason for hiding this comment

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

Thanks! 🎉

@Ldoppea Ldoppea merged commit c455dc5 into master Feb 11, 2025
2 checks passed
@Ldoppea Ldoppea deleted the fix/embed_assistant_icon_base64 branch February 11, 2025 16:13
Ldoppea added a commit to cozy/cozy-home that referenced this pull request Feb 11, 2025
`cozy-dataproxy-lib` has been upgraded to `3.4.1` in order to retrieve
a fix on the Assistant icon that would not be displayed on Flagship app
in offline mode

Related PR: cozy/cozy-libs#2732
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