Extract project join status from project-card component into a separate component
@daveconnis ci sta già lavorando.
Dal 18/10/2017.
Valutazione
Questa issue non è ancora stata valutata.
Descrizione
Problem
The logic for the project status/join button in the project card template is highly complex. We could simplify it by extracting a part.
The following code:
{{#if currentProjectMembership.isLoaded}}
{{#if (eq currentProjectMembership.role 'pending')}}
<button class="clear small" disabled>Request sent</button>
{{else}}
<button class="clear small" disabled>Member</button>
{{/if}}
{{/if}}
{{#unless currentProjectMembership}}
{{project-join-modal project=project skills=projectSkills}}
{{/unless}}
should be replaced with the equivalent of:
{{#if currentProjectMembership}}
{{membership-status membership=currentProjectMembership}}
{{else}}
{{project-join-modal project=project skills=projectSkills}}
{{/if}}
Subtasks
- Implement component
- Write integration tests for component
- If current project membership is loading, it renders nothing
- If current project membership is loaded and role is pending, it renders the "Request sent" button
- If current project membership is loaded and role is something else, it renders the "Member" button
- [ ] A page-object should be written for these tests
- Replace code with component
- Add integration tests for project card component
- If there is a current project membership, it renders the project-membership-subcomponent
- If there is no current project membership, it renders the project-join-modal subcomponent
- The project-card page object will need to be expanded with two new properties for this
- Lingua principale
- JavaScript
- Stelle
- 120
- Fork
- 75
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Guida per i contributori
Apri la 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 code-corps/code-corps-ember
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
code-corps/code-corps-ember#1616 ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 65/100
code-corps/code-corps-ember#1613 ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
code-corps/code-corps-ember#1612 ·
-
Difficulty: Medium Skill: ember-cli-page-object
Difficoltà 2/5 1-3 ore Idoneità per principianti 62/100
code-corps/code-corps-ember#1063 · 1 reazione ·
-
greenkeeper
Difficoltà 3/5 1-2 giorni Idoneità per principianti 25/100
code-corps/code-corps-ember#1765 · 1 commento ·
Tutte le issue di code-corps/code-corps-ember
Issue simili
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
-
area-deployment area-integrations triage:bot-seen
Difficoltà 2/5 Mezza giornata Idoneità per principianti 86/100
-
Issue-Bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
sugarlabs/musicblocks#8924 ·
-
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 90/100
ArduPilot/ardupilot_wiki#8088 ·
-
[BUG] createTool tools cannot be registered with Mastra when exactOptionalPropertyTypes is enabled Apertacustomer-eng status: needs triage
Difficoltà 2/5 1-3 ore Idoneità per principianti 84/100