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

Collect layer information #317

Conversation

crisner
Copy link
Contributor

@crisner crisner commented Dec 23, 2019

Fixes #316 (<=== Add issue number here)

Make sure these boxes are checked before your pull request (PR) is ready to be reviewed and merged. Thanks!

  • PR is descriptively titled 📑 and links the original issue above 🔗
  • tests pass -- look for a green checkbox ✔️ a few minutes after opening your PR
  • code is in uniquely-named feature branch and has no merge conflicts 📁
  • screenshots/GIFs are attached 📎 in case of UI updation
  • ask @publiclab/reviewers for help, in a comment below

We're happy to help you get this ready -- don't be afraid to ask for help, and don't be discouraged if your tests fail at first!

If tests do fail, click on the red X to learn why by reading the logs.

Please be sure you've reviewed our contribution guidelines at https://publiclab.org/contributing-to-public-lab-software

Thanks!

@crisner
Copy link
Contributor Author

crisner commented Dec 23, 2019

@jywarren, I have collected the information for all layers and have added a short text in layer_desc to be displayed under each layer.

One of the layers had mentioned 'near real-time' data and some others mentioned 'real-time' or 'current' data. Is it okay to classify them all under 'near real-time'? We could display these layers as NRT or as NRT/RT as shown in the screenshot below.

For data validity and reliability, we could add an exclamation icon for each layer which would open up a modal containing information about the data. The text under disclaimer in the JSON file would go in the modal.

Mockup:

menu

Copy link
Member

@jywarren jywarren left a comment

Choose a reason for hiding this comment

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

Awesome!!!

@crisner
Copy link
Contributor Author

crisner commented Dec 23, 2019

I had also looked for links for reporting information for layers that accept community submissions. Only the odorreport layer had a link that directly pointed to a form. Opensense and Purpleair layers accept sensor data but one has to register or sign in to do so. Pfas layer has an email where people can send in a report if a site was missing in the data provided by them.

Do I include them all in the menu so that users are directed to those pages if they want to submit a report? or do we display the report option only for odorreport layer?

@jywarren
Copy link
Member

jywarren commented Dec 23, 2019 via email

@crisner
Copy link
Contributor Author

crisner commented Dec 23, 2019

Bumped version indicating minor change.

@crisner
Copy link
Contributor Author

crisner commented Dec 23, 2019

so for PA do they have a signup page?

Yes, they have a register page.

What about an (i) icon for info, instead?

That'd be great! We could use the info circle icon from fontawesome. https://fontawesome.com/icons/info-circle?style=solid

@crisner
Copy link
Contributor Author

crisner commented Dec 23, 2019

Information gathered in this PR related to this Issue #138.

Copy link
Collaborator

@sagarpreet-chadha sagarpreet-chadha left a comment

Choose a reason for hiding this comment

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

Looks good to me. Shall we merge this?

@crisner
Copy link
Contributor Author

crisner commented Dec 24, 2019

@sagarpreet-chadha, I was thinking about npm versioning in LEL and began wondering if the changes we have contribute to a major change instead of a minor one? We've changed the hashing library used and changed the location of the lib folder as well. Wouldn't this be a breaking change? Just wondering here. Please correct me if I am wrong. What are your thoughts on this?

@jywarren
Copy link
Member

jywarren commented Dec 24, 2019 via email

@crisner
Copy link
Contributor Author

crisner commented Dec 24, 2019

@jywarren, thanks for explaining it to me! I think I get it. I may have to do a bit more reading on the topic to become comfortable with it. 😄

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.

Collect layer information to be displayed in the layers browser menu
3 participants