manager-ui
manager-ui copied to clipboard
Global: Update Favicon Modal - Show the File Name and File Title in the File List Item
Problem
See Loom: https://www.loom.com/share/e98e57e81a4447028377c88c3df49d7e
Solution
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 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 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 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 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.