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

New nodes table #74

Merged
merged 3 commits into from
Feb 15, 2017
Merged

Conversation

Flaburgan
Copy link
Contributor

  • Use a custom sorter for nodes table
  • Drop vendors
  • Display nodes table on network page
  • Clean global page (new table, no more pod chart)

This PR modifies a little bit the allForList database method used by an API. The result should be the same so we need to check after this is merged in dev. that the return of the API is the same and we don't have any regression.

This PR also fixes the version ordering method (actually, the order returns 0.5.1.0 < 0.5.10.2 < 0.5.2.0) and the software ordering method (described in https://github.com/jaywink/the-federation.info/issues/26)

The header of the table is not actually collapsed when the page scrolls. Is that something we want?

{% set podname = pod.name %}
{% endif %}
<tr>
{% if pod.network == "unknown" %}
Copy link
Member

Choose a reason for hiding this comment

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

Actually this could be if pod.network not in  ["diaspora", "friendica", "hubzilla", "redmatrix"] since those are the only images we have :) Not important, it used to be like this, but if you feel like changing it, would cause a few less 404 fetches.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

This code is copy pasted from the old page, I didn't even look at it. Don't hesitate if you have other feedback, I should also review / refactor it I guess. Maybe not in this PR ;)

@@ -95,5 +95,13 @@
</div>
</section>
{% include "charts/_stats_with_selectors.njk" %}
<section class="tile">
<header>
<h2>All the {{texts.title}} nodes</h2>
Copy link
Member

Choose a reason for hiding this comment

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

Strictly speaking the is unnecessary here. All diaspora* nodes for example is better than All the diaspora* nodes, as an English speaker.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Corrected.

@jaywink
Copy link
Member

jaywink commented Feb 15, 2017

(new table, no more pod chart)

What do you mean no more pod chart? You mean the count of pods over time? Would defo like to keep that..

The header of the table is not actually collapsed when the page scrolls. Is that something we want?

Do you mean the header doesn't stick to the top while scrolling? That was quite neat, it was actually contributed by someone else than me, to make the long list of pods actually readable. Would it be impossible to make it stick to the top while scrolling? For the previous table it was a ready plugin.

@Flaburgan
Copy link
Contributor Author

What do you mean no more pod chart?

I mean the global page is not able to display chart for a specific node anymore. This is going to be in the node page I'm building right now ;)

Do you mean the header doesn't stick to the top while scrolling?

Yep. The feature is not here anymore with that PR because I removed external vendors. I can re-add it of course. Do you want it to be part of this PR, or can I do it in a following one?

@jaywink
Copy link
Member

jaywink commented Feb 15, 2017

Yep. The feature is not here anymore with that PR because I removed external vendors. I can re-add it of course. Do you want it to be part of this PR, or can I do it in a following one?

You can do as a follow-up - would be nice to have that as it makes the table is less usable otherwise.

Thanks, mergy!

@jaywink jaywink merged commit 7dbc93d into thefederationinfo:redesign Feb 15, 2017
@Flaburgan Flaburgan deleted the new-nodes-table branch February 15, 2017 22:00
@Flaburgan
Copy link
Contributor Author

:D we're getting somewhere! We'll bel feature complete soon :)

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