Skip to content
This repository was archived by the owner on Mar 4, 2025. It is now read-only.

[$30] - Add Unregister button to Dashboard #1071

Closed
birdofpreyru opened this issue Mar 4, 2017 · 6 comments
Closed

[$30] - Add Unregister button to Dashboard #1071

birdofpreyru opened this issue Mar 4, 2017 · 6 comments
Assignees

Comments

@birdofpreyru
Copy link
Collaborator

birdofpreyru commented Mar 4, 2017

Add Unregister button to active challenge tiles in Dashboard.

Should have the same reddish style, as the Complete Appeals button (see Savvas-cl@ea261e3). Should be visible only for submitters to that challenge, when they have not submitted yet (you can have a look at the logic of similar button in Challenge Details page in tc-site repo). Should be present both in Grid and List views of the active challenges in Dashboard.

Also, as this button will be visible together with Submit button, you should ensure that these two buttons have the same width, so that tiles look pretty when these two buttons are shown one under another.

@birdofpreyru birdofpreyru changed the title Add Unregister button to Dashboard [$30] - Add Unregister button to Dashboard Mar 13, 2017
@shizhouxing shizhouxing self-assigned this Mar 13, 2017
@shizhouxing
Copy link
Contributor

@birdofpreyru How can I test this locally? It seems there is nothing in My challenges.

@birdofpreyru
Copy link
Collaborator Author

You can run it against production backend and just register/unregister from any active challenge

@shizhouxing
Copy link
Contributor

@birdofpreyru It's now ready for review.

@birdofpreyru
Copy link
Collaborator Author

@shizhouxing Can you update this so that, instead of redirecting to the confirmation page, the button just unregisters the user from the challenge (as it happens on the Challenge Details page), and updates the Dashboard appropriately?

@shizhouxing
Copy link
Contributor

shizhouxing commented Mar 14, 2017

@birdofpreyru It seems the logic of buttons at challenge detail page and dashbord are very different. In challenge detail page (in tc-site repo) , there are services to do such things, but in the current repo, all buttons on the challenge tile on dashboard page just uses links. The complete appeal button also redirects to the Online Review. In fact I don't know if there is a proper approach to implementing your requirement.

@birdofpreyru
Copy link
Collaborator Author

Ok, got it. We'll try to handle it in a separate ticket later.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants