Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feat: show project tributes #161

Open
wants to merge 20 commits into
base: dev
Choose a base branch
from
Open

Feat: show project tributes #161

wants to merge 20 commits into from

Conversation

cptnanon
Copy link
Contributor

#93

@netlify
Copy link

netlify bot commented Oct 10, 2022

Deploy Preview for sporosdaoapp-dev ready!

Name Link
🔨 Latest commit 6f77377
🔍 Latest deploy log https://app.netlify.com/sites/sporosdaoapp-dev/deploys/6383739f11313b0009ab6655
😎 Deploy Preview https://deploy-preview-161--sporosdaoapp-dev.netlify.app/
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

@ivelin ivelin temporarily deployed to sweat-token-feat-get-pr-pvivuy October 10, 2022 21:05 Inactive
@ivelin ivelin temporarily deployed to sweat-token-feat-get-pr-fdbqok October 12, 2022 20:18 Inactive
…t-token into feat/get-project-tributes

# Conflicts:
#	frontend/src/pages/Projects/ProjectDetails.tsx
@ivelin ivelin temporarily deployed to sweat-token-feat-get-pr-vvg5pe October 12, 2022 20:34 Inactive
@ivelin ivelin temporarily deployed to sweat-token-feat-get-pr-nsi4je October 12, 2022 21:28 Inactive
@ivelin ivelin temporarily deployed to sweat-token-feat-get-pr-d7xegu October 12, 2022 22:09 Inactive
@ivelin ivelin temporarily deployed to sweat-token-feat-get-pr-ffh2jz October 12, 2022 22:10 Inactive
@ivelin
Copy link
Contributor

ivelin commented Oct 19, 2022

Nice @cptnanon ! Very clean code ! On standby to review and test thoroughly when all checks are green.

@cptnanon cptnanon changed the title [WIP] Feat: show project tributes Feat: show project tributes Oct 27, 2022
@cptnanon cptnanon requested a review from ivelin October 27, 2022 18:53
@cptnanon cptnanon marked this pull request as ready for review October 27, 2022 18:53
Copy link
Contributor

@ivelin ivelin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

First of all, very nice work! Clean and readable code!

The tribute history page seems to work well.

Next, the failing test seems to be doing their job.

I tested manually the UI and found out a couple of things that need to be fixed:

  1. On Projects page, the tribute button no longer works. It goes to tribute history instead. Probably a simple fix. Add a View Past Tributes button to distinguish clearly the two functions. The overall card click can be view past tributes. That seems like a reasonable default. Unless users complain.
  2. The /tribute route itself is now broken. Instead of opening the Tribute form for submitting a new tribute to the project it goes to the historical tributes page.

Both 1&2 might be easily fixable with one line change here:
https://github.com/SporosDAO/sweat-token/pull/161/files#diff-e56cb91573ddb6a97ecd071925fe26504bb5a65f921dc64c63e534162950e1ebR18

To be safe, we should cover 1&2 with test cases.

@@ -14,6 +15,7 @@ function App() {
<Route path="dao/chain/:chainId/address/:daoId" element={<Dao />}>
<Route path="projects" element={<Projects />}></Route>
<Route path="projects/propose" element={<ProjectProposal />}></Route>
<Route path="projects/:projectId" element={<ProjectDetails />}></Route>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this route hides the next line and /tribute page is unreachable. Would be good to write some tests for these cases.

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

Successfully merging this pull request may close these issues.

2 participants