Coder Social home page Coder Social logo

datasets's Introduction

The datasets module

A dataset listing and information application, written for Angular 1.5.x.

After cloning, install client dependencies...

bower update

Clone the MOL UI components into a separate directory and link them in with bower

git clone [email protected]:MapofLife/ui-components /path/to/my/workspace/
cd /path/to/my/workspace/ui-components
bower link
cd /path/to/my/workspace/datasets
bower link mol-ui-components

Install all local dev dependencies

npm install

Run the development server using

grunt serve

That will serve the application at the given base configured in package.json (here http://localhost:9001/inventory/)

Build and deploy to gh-pages using

grunt build
git commit -am 'Updating dist'
grunt deploy

Both of these rely on css hosted at //mol.org/ for the MOL theme.

All routes in the app are relative to /{pkg.base}/ are and handled by ui-router client side configurations.

datasets's People

Contributors

funkycoda avatar rafelafrance avatar jmalczyk avatar

Stargazers

Daniel Mietchen avatar

Watchers

Rob avatar Walter Jetz avatar Ben Carlson avatar Javier Otegui avatar Christopher Manciero avatar James Cloos avatar Adam M. Wilson avatar  avatar  avatar John Wilshire avatar Caitlin avatar Michelle Duong avatar T. Lauren Cremeans avatar  avatar

Forkers

mannguyen

datasets's Issues

Going back from dataset does not send to the same tab

If I click on a rangemap in the list, then go back, the list of datasets will be on the inventories, not in the list of rangemaps.

Can the page go back to whichever the active tab was instead of always to the inventories?

Update external libraries

Might need to update some of the external libraries we are using to build this. Got the following message post-installing a fresh copy of the repo.

Please note that,
    angular-ui-select3#fa739d3363 depends on angular#>=1.0.2 <1.2 which resolved to angular#1.0.8
    angular-animate#1.5.7, angular-cookies#1.5.7, angular-resource#1.5.7, angular-sanitize#1.5.7, angular-touch#1.5.7 depends on angular#1.5.7 which resolved to angular#1.5.7
    angular-simple-logger#0.1.7, angular-simple-logger#0.1.7 depends on angular#^1.2 which resolved to angular#1.5.7
    angular-rangeslider#0.0.14 depends on angular#>=1.0.* which resolved to angular#1.5.7
    angular-loading-bar#0.8.0 depends on angular#^1.2.9 which resolved to angular#1.5.7
    angular-bootstrap#1.0.3 depends on angular#>=1.4.0 which resolved to angular#1.5.7
    angular-nvd3#1.0.7 depends on angular#^1.x which resolved to angular#1.5.7
    inventory depends on angular#~1.5.5 which resolved to angular#1.5.7
    angular-ui-router#0.2.18 depends on angular#^1.0.8 which resolved to angular#1.5.7
    ui-leaflet#1.0.1 depends on angular#1.x which resolved to angular#1.5.7
    ui-select#0.16.1 depends on angular#>=1.2.18 which resolved to angular#1.5.7
    angular-bootstrap-checkbox#0.4.0 depends on angular#>= 1.2.0 which resolved to angular#1.5.7
    angular-filter#0.5.8 depends on angular#* which resolved to angular#1.5.7
    angular-google-maps#2.3.3 depends on angular#1.2 - 1.5 which resolved to angular#1.5.7
Resort to using angular#~1.5.5 which resolved to angular#1.5.7
Code incompatibilities may occur.

Implement other metrics for map and legend API

inventory/map should support a property and reducer attribute to allow aggregate metrics across other grid cell statistics that are being added to geohash_summary_stats. Example

{
   "property" :  "feature_count",
   "reducer" : "sum",
}

Represent more application state via URL

Users should be able to link to any combination of selected facets or map options. For instance,

https://mol.org/datasets/map?metric=records&type=localinv,points&taxa=mammals 

would boot the UI into a map view of inventory and point record counts for mammals.

Fix scrolling

Have the facets and map/list areas scroll independently

Page title missing

The list and each dataset page shows this as the title in the browser title bar:

Map of Life - 

I'm guessing the title is missing after the -.

Metadata area too small

Looking in a small-ish screen, area of the text is too small. Plus, footer is moving from the bottom.

smscreen

Format numbers in tables

  1. Determine data type from fields
  2. If the data type is numeric then put a filter on it for better formatting

Make HTTPS calls

Just so the security works, let's also add the map tiles via HTTPS

Map should clear as soon as facets change

Removing or adding a facet selection triggers a new map api call, but the map does not change until it returns. We should remove the current overlay (just set it to undefined) while waiting for the api to return. Also, make sure to set the "loading" param to true in order to display the mol-loading-indicator while the call is out.

Sidebar hider styling

Give it a margin-left: -2 to make it look like part of the sidebar. And maybe set position as fixed and top to 50vh. While we are at it, see if you can make the facet toolbar stick in view as you scroll down using fixed positioning.

Fill in more dataset types

Gridded range atlases are still missing, and regional checklists dont seem to have geohash maps behind them

Make visualization types configurable.

Add an additional field added to the inventory/datasets api that the UI that can allow the UI to determine what map visualizations are available for a given dataset. For example record counts are only appropriate for points.

Map issues

  • Have map fit to width of page. It may be OK to have a horizontal scroll of the facets are displaying
  • The map is not showing on small screens
  • The map is not centering on every other redisplay. It seems to center on Antarctica in those cases. This is only happening on the single dataset display

Make sidebar content smaller

We should try to get all this to stay on screen as much as possible, so the only scroll-able is the content area. That is not possible for all screen sizes, but we can try.

Make content area fill down to footer.

This may have to do with how the footer is being positioned. It seems the height of the content area is being limited by the height of the map/table content. It should fill down to the footer.

Get rid of console error

Get rid of "angular.js:13708 TypeError: Cannot read property 'controls' of undefined" console error

Legend buckets are off by 1

Looks like the legend is offset by one bucket.
The API returns the upper bounds of a bucket. So the first bucket value in the legend should read "under xx" and the top end would read "yy-zz" instead of "zz and over".

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.