decred / politeiagui

ISC License
62 stars 56 forks source link

multi: fix minor navigation and links issues #2853

Closed victorgcramos closed 2 years ago

victorgcramos commented 2 years ago

This PR fixes some small navigation issues:

Hyperlinks

Some buttons on our application behaves as links, therefore users normally expect them to have the universal hyperlink rendering, such as opening the page on another blank tab, copying its address and other related stuff.

This PR replaces all button-links by hyperlinks <a> tags.

Same URL Navigation

There are 2 different types of URL formatting that our application should receive: full URL paths, and only pathnames.

This PR handles both cases for navigation to the current window location path.

Navigation flickering

Removes navigation flickering on Details page when proposals are cached and index.md file was still not fetched, usually when navigating between Home and Details pages.

This PR now checks if record details was fetched before displaying the details card.

Closes #2796