Conversation
🛠 PR Checks Summary🔴 Must not contain the "don't merge" label Manual Checks (for Reviewers):
Read More🤖 This bot helps streamline PR reviews by verifying automated checks and providing guidance for contributors and reviewers. ✅ Automated Checks (for Contributors):🟢 Maintainers must be able to edit this pull request (more info) ☑️ Contributor Actions:
☑️ Reviewer Actions:
📚 Resources:Debug
|
Codecov ReportAll modified and coverable lines are covered by tests ✅ 📢 Thoughts on this report? Let us know! |
| urequire.Equal(t, true, contains(dao.Render(""), "NO PERCENT: 68.42105263157895%")) | ||
| } | ||
|
|
||
| func TestProposalPagination(t *testing.T) { |
There was a problem hiding this comment.
No need to test this, its tested in p/demo/avl/pager already
| } | ||
| println(dao.Render("")) | ||
|
|
||
| func contains(s, substr string) bool { |
There was a problem hiding this comment.
Also strings.Contains exists
| r.HandleFunc("/", func(rw *mux.ResponseWriter, req *mux.Request) { | ||
| rw.Write(ren.renderActiveProposals(req.RawPath, d)) | ||
| }) |
There was a problem hiding this comment.
this checks for pkgpath:/ so kind of useless as well
| out += ufmt.Sprintf("[Detailed voting list](%v:%v/votes)", ren.relativeRealmPath, sPid) | ||
| out += "\n\n---\n\n" | ||
|
|
||
| out += renderActionBar(sPid) |
There was a problem hiding this comment.
Is this not missing the eligible tiers?
There was a problem hiding this comment.
It's given out by out += ps.String()
|
Let's wait until we're good with the current impl on the chain and then we can easily upgrade to this. |
|
Would still love to merge this; I'll try to solve the conflicts |
|
Updates to the prop reason/name in r/gnoland/users/v1 can be discarded, or taken from this PR: #4415 ie, the "Realm Name Version: Proposal" format is nice. |
|
Superseded by #4453, thanks @MikaelVallenet. closing. |
based on leon PR #4164 what i did its just merge master & fixing tests & introduce crossing --------- Co-authored-by: leohhhn <hudakleon@gmail.com> Co-authored-by: Leon <33522493+leohhhn@users.noreply.github.com>
based on leon PR gnolang#4164 what i did its just merge master & fixing tests & introduce crossing --------- Co-authored-by: leohhhn <hudakleon@gmail.com> Co-authored-by: Leon <33522493+leohhhn@users.noreply.github.com>
Description
Adds better rendering to GovDAO v3. Includes nicer proposal listing, proposal page, and txlinks to vote on proposals.

