ARK-Builders / ARK-Builders/Gallery

Small Refactor to Utilize SvelteKit Routing

Open
#31 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Svelte
Stars
2
Forks
1
PR merge metrics
No merged PRs in 30d

Description

#### Description
Currently we are switching between the gallery route and the image view via svelte stores, this adds too much global state and makes it difficult to expand and add more files.

#### Example
Checks like this are problematic
https://github.com/ARK-Builders/ARK-Gallery/blob/c3dc213b2b04fe335262fa6e12c01d9f31cd8eb8/src/routes/%2Bpage.svelte#L177

#### Solution
We can add new routes to the application, such as `/view?image=...` or some sort of other implementation that is compatible with sveltekit and tauri
https://kit.svelte.dev/docs/routing

Contributor guide

No contributing guide indexed for this repository

Research direction

Start with src/routes/+page.svelte around line 177 and review the linked SvelteKit routing documentation. Trace how the gallery and image view currently switch through stores, then evaluate a route such as /view?image=... for compatibility with Tauri. Done means navigation no longer depends on the problematic global route state and image viewing still works.

Written by the indexing model from the issue text.

Assessment

Tech stack
tauri
Domain
desktop, frontend
Issue type
Refactor
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.