From 4a9cce0a996795df29b54abc6ccb18396eea7527 Mon Sep 17 00:00:00 2001 From: Pavol Hejny Date: Tue, 15 Aug 2023 16:43:30 +0200 Subject: [PATCH 1/2] =?UTF-8?q?Revert=20"=F0=9F=93=A4=20Move=20important?= =?UTF-8?q?=20TODOs=20to=20pull=20request"?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This reverts commit 07df1cf7409a8233a241af818f29dcc41cde302e. --- src/pages/gallery.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pages/gallery.tsx b/src/pages/gallery.tsx index 2171f3cb6..c6dfb759c 100644 --- a/src/pages/gallery.tsx +++ b/src/pages/gallery.tsx @@ -60,7 +60,7 @@ export async function getStaticProps({ locale }: { locale: string }) { props: { ...(await serverSideTranslations(locale, ['common'])), ...({ - wallpapers: (await getHardcodedWallpapers()).map((fullWallpaper) => { + wallpapers: (await getHardcodedWallpapers(/* TODO: !!! Here should be dynamic filtering */)).map((fullWallpaper) => { const { id, parent, src, colorStats, title, keywords, isPublic, author } = fullWallpaper; return { id, From 37002ca49e0ae4d75c5b66d05642d56c662540cb Mon Sep 17 00:00:00 2001 From: Pavol Hejny Date: Tue, 15 Aug 2023 16:44:20 +0200 Subject: [PATCH 2/2] More important TODOs --- src/pages/gallery.tsx | 35 +++++++++++++++++++---------------- 1 file changed, 19 insertions(+), 16 deletions(-) diff --git a/src/pages/gallery.tsx b/src/pages/gallery.tsx index c6dfb759c..0589f354a 100644 --- a/src/pages/gallery.tsx +++ b/src/pages/gallery.tsx @@ -60,28 +60,31 @@ export async function getStaticProps({ locale }: { locale: string }) { props: { ...(await serverSideTranslations(locale, ['common'])), ...({ - wallpapers: (await getHardcodedWallpapers(/* TODO: !!! Here should be dynamic filtering */)).map((fullWallpaper) => { - const { id, parent, src, colorStats, title, keywords, isPublic, author } = fullWallpaper; - return { - id, - parent, - src, - prompt: '[๐ŸŸฅ]' /* <- Note: [๐ŸŸฅ] No need to pass everything into index page */, - colorStats /* <- TODO: !! Also reduce colorStats */, - // TODO: shapeStats> IWallpaperShapeStats; - title, - content: '[๐ŸŸฅ]' /* <- Note: [๐ŸŸฅ] No need to pass everything into index page */, - keywords, - isPublic, - author, - } satisfies IWallpaperSerialized; - }), + wallpapers: (await getHardcodedWallpapers(/* TODO: !!! Here should be dynamic filtering */)).map( + (fullWallpaper) => { + const { id, parent, src, colorStats, title, keywords, isPublic, author } = fullWallpaper; + return { + id, + parent, + src, + prompt: '[๐ŸŸฅ]' /* <- Note: [๐ŸŸฅ] No need to pass everything into index page */, + colorStats /* <- TODO: !! Also reduce colorStats */, + // TODO: shapeStats> IWallpaperShapeStats; + title, + content: '[๐ŸŸฅ]' /* <- Note: [๐ŸŸฅ] No need to pass everything into index page */, + keywords, + isPublic, + author, + } satisfies IWallpaperSerialized; + }, + ), } satisfies GalleryPageProps), }, }; } /** + * TODO: !!! Create personalized gallery OR /portfolio * TODO: !! [๐Ÿงถ] FAQ section - how it works * TODO: !! [1] Filters - [Fulltext][Light/Dark/Color] * TODO: !! [1] Order - [Relevance][DateGenerated][Random][Lightness][Color] / [ASC][DESC]