A task's contact cannot be linked, changed or removed after the task is created
I maintainer di solito rispondono entro 1 giorno
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Idoneità per principianti
- 55/100
- Tipo di issue
- Funzionalità
- Chiarezza
- Specificata chiaramente
- Stato di attività
- Attiva
- Stack tecnologico
- go, graphql, react, sql, typescript
- Ambito
- backend-api-design, database, frontend, full-stack
Direzione di ricerca
Read TaskScreen.tsx, NewTaskScreen.tsx and operations.ts for the contact field and save flow, then trace UpdateTaskInput through tasks.go, changes.go and the UpdateTask query. Run the named graph and task detail tests to check setting, changing, clearing and preserving a contact when contactId is absent. Done means the task page supports those contact actions with a persistent label, and invalid or cross-tenant contacts are rejected.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
What happens
The New task form has a "Link a contact" field. The task page has none. A linked contact shows only as a bare link above the Title field, with no label. A task with no contact shows nothing. So you cannot link a contact later, swap it or remove it. On the New task form, the label also goes once a contact is picked.
The graph cannot do it either. UpdateTaskInput has no contactId, task.Changes has no contact, and the UpdateTask query never sets contact_id.
What should happen
The task page shows the contact field after Priority, as the New task form does. With no contact it shows the search. With one, it shows Maria Perez as a link to her contact page and a "Remove Maria Perez" button. The field keeps one visible label in both states, on both screens.
WordPress draws one form for a new page and a saved page. Its Parent field keeps its label, shows None or the parent's title, and lets you search for another page or clear it, before and after the first save.
updateTask takes contactId the way it takes dueTime: absent keeps the contact, null clears it, an id sets it. Save sends it only when it changed, as timeChange does for the time. The resolver reads the contact through the contact store first, so a deleted contact or one from another tenant is refused with a plain error.
A graph test sets, changes and clears the contact, and proves an absent contactId keeps it. Detail tests link, swap and remove a contact.
Where
frontend/src/tasks/TaskScreen.tsx,TaskFormandContactLinkfrontend/src/tasks/NewTaskScreen.tsx,ContactPicker, moved to its own filefrontend/src/index.css,.alphone-tasks__contactand.alphone-tasks__pickedfrontend/src/tasks/operations.ts,updateTaskMutationgraph/schema/tasks.graphqls,UpdateTaskInputinternal/graphres/tasks.go,taskChangesinternal/task/changes.go,ChangesandApplyinternal/postgres/queries.sql,UpdateTaskinternal/graphres/mutations_test.goandfrontend/src/test/task-detail.test.tsx
- Lingua principale
- Go
- Stelle
- 287
- Fork
- 64
- Merge medio
- 13h 3m
- PR unite (30g)
- 66
Preparare l'ambiente
- Include un Dockerfile o un file Docker Compose
- Nessun modello di pull request
- Nessuna guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di gopherium/AlphOne
-
help wanted
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
gopherium/AlphOne#296 · 3 commenti ·
I maintainer di solito rispondono entro 1 giorno
-
help wanted
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
I maintainer di solito rispondono entro 1 giorno
-
good first issue help wanted javascript
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
I maintainer di solito rispondono entro 1 giorno
-
bug help wanted
Difficoltà 2/5 1-3 ore Idoneità per principianti 84/100
I maintainer di solito rispondono entro 1 giorno
-
bug help wanted
Difficoltà 2/5 1-3 ore Idoneità per principianti 88/100
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di gopherium/AlphOne
Issue simili
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 74/100
I maintainer di solito rispondono entro 1 giorno
-
Project submission: BivyAperta
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 78/100
slavakurilyak/awesome-ai-agents#880 ·
I maintainer di solito rispondono entro 1 giorno
-
后缀带有LTX的番号无法自动匹配Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
metatube-community/metatube-sdk-go#387 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 70/100
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
apache/openserverless#282 · 2 commenti ·