Sidebar: remote functions for queue actions and a PostList component

Aperta
#12 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
Mezza giornata
Idoneità per principianti
66/100
Tipo di issue
Refactoring
Chiarezza
Specificata chiaramente
Stato di attività
Attiva
Stack tecnologico
typescript
Ambito
backend, frontend

Direzione di ricerca

Start with src/lib/components/Sidebar.svelte and trace how postAction handles queue actions and refreshes the list. Check the project’s SvelteKit remote-function conventions, then extract the swipe-to-delete and drag-and-drop behavior into PostList.svelte and move the four actions into a .remote.ts module. Run pnpm test; done means the listed queue behaviors are unchanged, each action refreshes the list, and the tests including svelte-check pass.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

Context

postAction in src/lib/components/Sidebar.svelte posts FormData to /?/action and then calls refreshAll(). Queue add, remove, reorder and trash have no typed API.

Scope

  • Move those four actions to SvelteKit remote functions (command()) in a .remote.ts module.
  • Extract the swipe-to-delete and queue drag-and-drop handling from Sidebar.svelte into a PostList.svelte component; Sidebar keeps layout only.

Acceptance criteria

  • No FormData posting from Sidebar.svelte.
  • Behaviour is unchanged: add to queue, remove, reorder by drag, swipe to trash, and the list refreshes after each.
  • pnpm test (including svelte-check) passes.

Estimate: about 4 hours.

Lingua principale
HTML
Stelle
0
Fork
0
Merge medio
1m
PR unite (30g)
2

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di mrgnw/cfcms

Tutte le issue di mrgnw/cfcms

Issue simili

Altre issue su Backend & API Design

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.