immich icon indicating copy to clipboard operation
immich copied to clipboard

feat(web): Album preview overview in menu

Open TimVanOnckelen opened this issue 1 year ago • 4 comments
trafficstars

This PR introduces a visual overview of the three latest albums in the main menu, similar to the App-Which-Must-Not-Be-Named. The addition provides quick album previews for users, enhancing navigation and user experience.

Changes Overview:

Album Menu Extension: Added a visual preview of three albums directly within the Album menu for quick access. New Optional Parameter in API: Introduced top as an optional parameter in the /albums (getAllAlbums) route, allowing flexible limits on album retrieval. Technical Details:

The top parameter supports optimized retrieval of album data by limiting results, enhancing efficiency for both UI rendering and API load. The visual display integrates seamlessly with the existing menu styling, ensuring consistent user experience.

image

TimVanOnckelen avatar Nov 07 '24 12:11 TimVanOnckelen

Implements part of #8743

bo0tzz avatar Nov 07 '24 12:11 bo0tzz

Hello, thanks for the PR. I am working on migrate the whole web codebase to the new rune syntax so new features on the web will have to wait 😅

alextran1502 avatar Nov 07 '24 12:11 alextran1502

Hello, thanks for the PR. I am working on migrate the whole web codebase to the new rune syntax so new features on the web will have to wait 😅

Np, ofcourse! Where possible, i used your changes on the rune syntax from your pr #13883

TimVanOnckelen avatar Nov 07 '24 12:11 TimVanOnckelen

I will temporary set this PR back to draft until the svelte 5 migration is done.

TimVanOnckelen avatar Nov 10 '24 08:11 TimVanOnckelen

We don't need to modify the server query. We can use the existing getAllAlbums, in the future we can optimize this behavior by having a dedicated endpoint to search for albums

alextran1502 avatar Nov 15 '24 22:11 alextran1502

We don't need to modify the server query. We can use the existing getAllAlbums, in the future we can optimize this behavior by having a dedicated endpoint to search for albums

fair point, i'll remove the changes and just add a filter on the frontend.

TimVanOnckelen avatar Nov 18 '24 10:11 TimVanOnckelen

I removed all server changes, the PR is now web only.

TimVanOnckelen avatar Nov 22 '24 13:11 TimVanOnckelen