manager-ui icon indicating copy to clipboard operation
manager-ui copied to clipboard

Global: Update Favicon Modal - Show the File Name and File Title in the File List Item

Open zcolah opened this issue 1 year ago • 5 comments

Problem

See Loom: https://www.loom.com/share/e98e57e81a4447028377c88c3df49d7e

Solution

CleanShot 2024-01-31 at 00 09 48

zcolah avatar Jan 30 '24 18:01 zcolah

favicon is saved as a headtag and only has context of the favicon url. To achieve this we must correlate the url to the corresponding file item

agalin920 avatar Jan 30 '24 19:01 agalin920

@agalin920 Is there a fast and easy way to do this? I would believe we could use the Media search api to search for the file by its file name. There should technically only be one result, so we take that result and use that to retrieve the file name and file title etc.

zcolah avatar Jan 30 '24 20:01 zcolah

@zcolah Media search does not support search by file url.

That being said my comment was to provide direction of how to solve this. I'm not raising concerns or limitations. This can and will be resolved

agalin920 avatar Jan 30 '24 20:01 agalin920

@agalin920 Understood. Also just wanted to add that I do not believe we would not search by the entire file URL. We just need to take the file name which is at the end of the URL and just search for that via the Media Search API.

zcolah avatar Jan 30 '24 20:01 zcolah

@zcolah Ah I see. Yea that is a clever solution but none the less it is not needed since all files are already loaded in memory so no extra api call is needed.

agalin920 avatar Jan 30 '24 20:01 agalin920