decred / politeiagui

ISC License
62 stars 56 forks source link

feat: Add Proposal Edit and Raw pages #2892

Closed victorgcramos closed 1 year ago

victorgcramos commented 1 year ago

This PR adds the Proposal Edit and Proposal Raw pages.

Part of #2875

While implementing this, I noticed that the logic used to fetch proposal details, on Details (record/:token) page, was being affected by the proposal details fetch on Edit (record/:token/edit) page. Since we have already fetched it on another page, other listeners such as voteSummaries, comments, piSummaries, weren't triggered.

One way to quick fix that was to force a request on every page load on both details and edit pages. This, of course isn't a correct design in terms of cache and navigation delays, but since it's out of this PR scope, I decided to go for this quick fix.