server icon indicating copy to clipboard operation
server copied to clipboard

fix(templates): deduplicate provider templates

Open elzody opened this issue 1 month ago • 1 comments

Summary

This PR de-duplicates provider templates. This will prevent the same global template from showing up twice in the template picker, as you can see in the screenshots. The reason this happens is because apps can provide the same template for several MIME types and there does not seem to be a way for an app to de-duplicate them itself. It is given one MIME type at a time when called by the server, so it is just expected to return the matching templates for that type and cannot know whether a given template has already been returned.

Screenshots

Before image
After image

Checklist

elzody avatar Nov 26 '25 18:11 elzody

The failing tests are not related to these changes from what I can tell.

elzody avatar Nov 26 '25 21:11 elzody

/backport to stable32 please

elzody avatar Dec 11 '25 18:12 elzody

/backport to stable31 please

elzody avatar Dec 12 '25 18:12 elzody