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

Network page #67

Merged
merged 6 commits into from
Feb 9, 2017
Merged

Network page #67

merged 6 commits into from
Feb 9, 2017

Conversation

Flaburgan
Copy link
Contributor

I started to work on the network pages. The code is still quite dirty and will be refactored but I wanted to open this PR to have feedback. As for the previous PR, the texts are not definitive and the design is not correctly done. I just tried to get the data from the DB and to display them. Still a lot of work to do.

@Flaburgan
Copy link
Contributor Author

So code is still dirty but features should be there. I think this is ready for review, the whole project code has to be cleaned up at the end anyway ;)

@Flaburgan Flaburgan mentioned this pull request Feb 5, 2017
Copy link
Member

@jaywink jaywink left a comment

Choose a reason for hiding this comment

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

Nice work! A few comments.

@@ -28,8 +46,12 @@ routes.info = function (req, res, db) {
}

routes.renderNetwork = function (network, res, db) {
db.Pod.projectStats(network, function (projectStats) {
Copy link
Member

Choose a reason for hiding this comment

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

So is db.Pod.projectStats used anywhere after this? Can be removed in database.js?

Copy link
Member

Choose a reason for hiding this comment

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

@Flaburgan I think you were supposed to remove this from database.js by looking at the commit - but it's still there? :)

src/routes.js Outdated
@@ -3,6 +3,24 @@
var routes = {},
util = require('util');

var networkTexts = {
Copy link
Member

Choose a reason for hiding this comment

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

Any chance we could put texts like these in a separate file and require them? For example src/texts.js.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I was wondering if we would even put them in the DB so I considered that as a temp. But it can be kept as a json somewhere.

@Flaburgan
Copy link
Contributor Author

Remarks corrected.

Copy link
Member

@jaywink jaywink left a comment

Choose a reason for hiding this comment

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

If you can remove the unused db method then we can merge!

@@ -28,8 +46,12 @@ routes.info = function (req, res, db) {
}

routes.renderNetwork = function (network, res, db) {
db.Pod.projectStats(network, function (projectStats) {
Copy link
Member

Choose a reason for hiding this comment

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

@Flaburgan I think you were supposed to remove this from database.js by looking at the commit - but it's still there? :)

src/texts.js Outdated
@@ -0,0 +1,22 @@
//TODO Move them directly in the DB?
Copy link
Member

Choose a reason for hiding this comment

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

Hmm I'm not sure what would be the benefit. If they are in a file we can make them translatable easily in the future. There is no need for these to be dynamic, thus imho they shouldn't be in the db. People can change them via PR's.

@Flaburgan
Copy link
Contributor Author

Corrected.

@jaywink
Copy link
Member

jaywink commented Feb 9, 2017

Alright, thanks a lot, merging!

@jaywink jaywink merged commit c4378f5 into thefederationinfo:redesign Feb 9, 2017
@Flaburgan Flaburgan deleted the network-page branch February 10, 2017 09:50
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