Coder Social home page Coder Social logo

nbw / treelib_elixir Goto Github PK

View Code? Open in Web Editor NEW
7.0 1.0 0.0 13.06 MB

TreeLib: A collection of high-quality tree photographs for educators, students and lay persons.

Home Page: https://treelib.ca

Elixir 46.66% JavaScript 27.65% HTML 12.06% SCSS 13.63% Procfile 0.01%
elixir treelib educators phoenix

treelib_elixir's Introduction

TreeLib

circleci

TreeLib is a dendrology website with curated high-quality tree photographs for educators, students and lay persons.

It uses Flickr (with their API) as a CDN for images.

History

The website was originally written in [ Ruby // Sinatra // MySQL // React ] between 2015-2016. It's all hand rolled with "caching" (sort of), SQL, a db client, etc.. It works really well actually, but I've been inspired to rewrite it in Elixir so that it's more maintainable and stable.

treelib

treelib_elixir's People

Contributors

dependabot-support avatar nbw avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

treelib_elixir's Issues

Picture Viewing Enhancement

It would be helpful to enhance the way pictures are viewed.
For example, on clicking on a picture, rather than going up the screen to open it, rather open it in front of the other pictures (ie, with them in the background).
Possibly consider that if one hovers the mouse over a picture that it enlarges 2x or 3x?

Lack of Scripts for pictures

When I open any species I have edited by adding a picture, etc (Aesculus californica, Cercidiphyllum japonicum), the scripts to the pictures do not appear. I have tried deleting the species and re-importing, but still no scripts.
At this point, quite a few species no longer have scrips attached.

I also emptied my cache and then tried again, but still no scripts.

Ipad Pictures Not Scolling

When one clicks a species on ipad, the pictures do not scroll (ie, they are locked in place). To unlock, one must to to full-screen first and then back, and it then works.

Image horizontal overflow

.photoviewer .image .imageWrapper img {
    border: 1px solid #444;
    max-height: 550px;
    width: 100%;
}

should fix it

Species page bugs

  • Sort alphabetical regardless of capitalization
  • Searching with a word that has a space
  • Sort alphabetically with full name
  • wrap around photo scroll

Random Photo Search not functioning

When in Family or Genus, 12 or so random photos used to be displayed, with a button at the bottom to generate new random photos. This is not configured, with now having too many photos and not generating new ones.

SEO Feedback

Screenshot 2020-05-27 09 00 00

Screenshot 2020-05-27 09 05 57


Okay so couple things from initial look through:

  • 1.<title>Treelib</title> pretty short title not super descriptive you can probably make this a lot better by adding like a - and then like a short 100 characters worth of description

  • 2. This could also be increased characters You can have max up to 255 more the better

  • 3. You may want to look into getting rid of the fact that all your page content is set with window.pageData = { blah... } and not within the actual html within h1, p, h2 tags etc. This will hurt ya for bing yahoo etc, google is fairly smart and can handle it. I would consider making each phylum or whatever its called a separate page instead of having it all just wthin one page if you wanted to get higher rankings for bing/yahoo. Just because then they find more value in each page with small tidbits of information about each subject. Increasing your page rankings for those specific keywords.
    Like for example if you had a page for Aceraceae and you had all that iniformation within proper p tags and all that withiin the page source you would kill it because google would realize that you are specifying that specific content. One big thing is the fact that you have no tags within the page source other than simple meta tags. You will get wrecked with bing yahoo, duckduckgo etc. (edited)

Dawson Walker 2:58 AM

  • Also one big thing too is that your performance of the site is not super good. looks like some of the major issues are:
    Enable text compression I believe you can do this one easily it will help speed up your site by 2s which is pretty huge.
  • You got a lot of unused css in there you may wanna look into that. It causes higher rendering time because it has to parse through all that css
    Add font-display: swap to where you added your fonts thats a big win there. save you like .5s or something and its pretty easy
  • Your images do not have alt tags associated with them its a good idea
  • Forms should have labels and some do not
  • Some of your Links that wrap around images should have an aria-label.
  • You should add and HTML doctype thats currently missing.
  • Outbound links should have rel="noopener noreferrer"
    (edited)
    Screen Shot 2020-05-24 at 10.52.54 AM.png
    Screen Shot 2020-05-24 at 10.52.54 AM.png

2:59

  • One other thing if you type in google site:treelib.ca you will see all the things that google is reading from your site. And for a lot of these things you can see that you could increase the description text or add text to these areas and you will get a lot more traffic
    2:59
  • Lots of the pages actually seem fairly good but some of them are still hurting
    3:00
  • Also consider setting up google search console
    3:00
  • and add robots.txt and a sitemap.xml
    3:00
    Anyways thats what I've noticed. Hope that helps. Other than that its a good tree encyclopedia app
    3:02
  • Some other ideas is look into adding structured data to some of the pages
    3:02
  • So you could have cool stuff like the stuff below this search:
    Common Name: hop tree etc
    Screen Shot 2020-05-24 at 11.02.30 AM.png
    Screen Shot 2020-05-24 at 11.02.30 AM.png

Overhaul

  • only the search page needs to be react, all other pages should be converted to SSR templates

  • this above change would also make it easier to assign and maintain admin roles

  • revamp the login process to use an email with verification token system

  • once the only react page is search, then we replace that page with updates react code

  • start tracking 起案者 and 編集者 for things

Searching

Current searching only results in listing some of the items, but I need this expanded to include all items (e.g., if searching Pine, to list all titles with 'pine' in them). This should work on computer and all other devices, including phone.

I would also like you check that the scrolling works so that I can scroll up and down them to pick the one I like. Scrolling currently does not work well on the phone.

Institutions

Places using Treelib photos:

Support

  • International Dendrology Society
  • California Poly
  • UBC Faculty of Forestry
  • American Conifer Society

Pending

  • Tree Canada
  • UBC

Tangentially

  • UVIC

Cannot add a new species or genus

When trying to add a new species or genus, "Response is not ok". They cannot be created.
This is becoming a problem as I now have 20 species that I cannot display.

Family Name too Bold

The LARGE TEXT Family name above the red line is a bit too heavy (thick). Turn off bolding maybe?

apostrophes made into quotations

On Nov 14, 2017, at 1:35 PM, Blake > wrote:

When I import a picture form Flickr, that has a caption of "last year's cones", on TreeLib.ca, is come out as "last year"s". i.e., the r's becomes an r"s.

Hiding of Menu

If I press Hide, everything goes full-screen but I cannot see the Unhide button properly.

Quick search of Family

When I do a Quick Search of the family Fabaceae, a list of the genera appears in the genera column (center or screen). On the right side of the screen, another list of the genera appears (in the family description). This second list is not in the right order, and the general do not click through.

Sorry on Prtscn, but how do I attach one? The Prtscn on my keyboard does not add a screen as I normally do a copy and past.

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.