Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

[Plan Sharing] Copy a validated shared plan

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

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
35/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
nextjs, react, typescript
Ambito
frontend

Direzione di ricerca

Start in src/app/share/[shareId]/page.tsx and the starting example src/hooks/data/useSavedPlans.ts to see how plans are saved for signed-out and signed-in users. This depends on #860 (shared-data import validation), so confirm that is merged first. Done means a copy creates a new plan with the same CRNs and term, leaves the source unchanged, and shows saving, error, and success states, as checked in src/app/share/[shareId]/page.test.tsx.

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

Descrizione

sharing

What to build

Add “Copy to My Plans” to a shared plan after its classes pass import checks. Save a new plan for the current student rather than changing the original owner’s plan.

Files

Steps

  1. Validate mapped public data and course IDs, then pass it to insertPlans with explicit term and pinned=false.
  2. Let signed-in/local writer generate fresh identity; source share remains unchanged.
  3. Show saving/error/success states and a link to own plans; do not silently change source term to navbar term.

Example

Signed-out copy creates a new local plan in202702; signed-in copy creates a new own row with same CRNs.

Check it works

In src/app/share/[shareId]/page.test.tsx, check the example above and the failure or limit described in the steps. Run pnpm test -- src/app/share/[shareId]/page.test.tsx, pnpm lint and pnpm typecheck.

Before starting

  • #860 — Map shared data into import validation

References

Assign yourself before starting, or comment to claim the issue. Project setup.

Lingua principale
TypeScript
Stelle
19
Fork
94
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

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 DevDogsUGA/DogDays

Tutte le issue di DevDogsUGA/DogDays

Issue simili

Altre issue su TypeScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.