Plots2: Tag pages have non-standard headers on each tab

Created on 11 May 2018  Â·  7Comments  Â·  Source: publiclab/plots2

Please describe the problem (or idea)

What happened just before the problem occurred?

It's really great to have a direct link to all the Contributors to a tag, but the contributor tab on Tag Pages is missing the standard header that is present on other tabs of the tag page. See below GIF:

Notice that all tabs on the Tag Page have the same header EXCEPT for the Contributors tab. Here's what's different:

  • sidebar is present on the Contributors tab (the other tabs don't have it)
  • there is no Wiki Preview and "Read More" link at the top of the page, instead the graph is the topmost item on the page
  • the tab structure itself is missing, thwarting attempts to navigate back to the main Tag Page from Contributors Tab, ESPECIALLY when arriving at the Contributors Tab via a direct link.

tag-page-headers
-

What did you expect to see that you didn't?

  • no sidebar
  • standard header with other tabs on Tag Page
  • presence of Tabs for navigation through the entire Tag Page

Please show us where to look

https://publiclab.org/contributors/pm

What's your PublicLab.org username?

This can help us diagnose the issue: liz

Ruby add-code-links break-me-up fto-candidate help wanted

Most helpful comment

so, https://publiclab.org/contributors/tag/balloon-mapping is driven by the def show method in this file:

https://github.com/publiclab/plots2/blob/7896dfa2fab442088022400fb676aae289a120f4/app/controllers/tag_controller.rb#L92

Whereas https://publiclab.org/contributors/balloon-mapping is driven by this code:

https://github.com/publiclab/plots2/blob/7896dfa2fab442088022400fb676aae289a120f4/app/controllers/tag_controller.rb#L421-L427

The first one is great and we don't really need the second. Let's get rid of the 2nd one (https://publiclab.org/contributors/balloon-mapping), including:

That should close out this issue!

All 7 comments

Oh! i believe @Gauravano fixed this back in January! Scroll down to the bottom of https://github.com/publiclab/plots2/commits/master/app/views/tag/_contributors.html.erb -- can we bring this back?

OMG @jywarren just found out what was up with this:

There are two pages:

@jywarren please advise on this :)

Let's merge the best parts of each, and have /contributors/tag/_____
redirect to /contributors/_______ in config/routes.rb --

Things to preserve:

  • tabs
  • nice 3-panel "stats"
  • nice new graph
  • no sidebar
  • preview of wiki page and 'Read more' at top

Anything else?

On Fri, May 11, 2018 at 1:58 PM, Liz Barry notifications@github.com wrote:

OMG @jywarren https://github.com/jywarren just found out what was up
with this:

There are two pages:

@jywarren https://github.com/jywarren please advise on this :)

—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/publiclab/plots2/issues/2718#issuecomment-388439382,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AABfJ3IU-YPdSgAqMvunsQxqksQwJV9Cks5txdFVgaJpZM4T7cq8
.

so, https://publiclab.org/contributors/tag/balloon-mapping is driven by the def show method in this file:

https://github.com/publiclab/plots2/blob/7896dfa2fab442088022400fb676aae289a120f4/app/controllers/tag_controller.rb#L92

Whereas https://publiclab.org/contributors/balloon-mapping is driven by this code:

https://github.com/publiclab/plots2/blob/7896dfa2fab442088022400fb676aae289a120f4/app/controllers/tag_controller.rb#L421-L427

The first one is great and we don't really need the second. Let's get rid of the 2nd one (https://publiclab.org/contributors/balloon-mapping), including:

That should close out this issue!

Can I take this up?

sure, yes please!

On Mon, Dec 10, 2018 at 3:35 AM Oorjit Chowdhary notifications@github.com
wrote:

Can I take this up?

—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/publiclab/plots2/issues/2718#issuecomment-445749834,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AABfJxIv821nPnkLemvvfQPfPGfY5yQIks5u3irYgaJpZM4T7cq8
.

Closing and merging into https://github.com/publiclab/plots2/issues/6307 after the major tag page overhaul!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

jywarren picture jywarren  Â·  3Comments

keshavsethi picture keshavsethi  Â·  3Comments

grvsachdeva picture grvsachdeva  Â·  3Comments

keshavsethi picture keshavsethi  Â·  3Comments

jywarren picture jywarren  Â·  3Comments