waterthetrees / wtt_front

Water the Trees React frontend
https://waterthetrees.com
Creative Commons Zero v1.0 Universal
9 stars 24 forks source link

[Epic - Tree Details Redesign] Tree Details Container Redesign / Additions Project #433

Open mwpark2014 opened 1 year ago

mwpark2014 commented 1 year ago

Quick summary:

The Tree Details Container is the sidebar component that pops open upon selecting a tree marker on waterthetrees.com. It contains information about a tree including health, core details, maintenance history, photo, carbon stats. It is also the primary way users interact with existing trees where the maintenance, adopt, and like actions live. This design revamp will seek to improve the UI and UX so that: 1) Users can understand what maintenance actions they can do and what maintenance a tree is in dire need of 2) Users can intuitively find the information they're looking for

Issues:

The current UI isn't the most appealing. We want it to be modern and sleek. Other issues include mobile has a tree details menu that works, but is frustrating if you are searching for a tree since you have to open and close it until you find the tree you want to investigate further. This is solved by the new preview for mobile.

Example of current state of the Tree Details Container: image

Design of completion of first milestone of the tree details container: All Tree Profile

UX Flow:

223666228-0dd031bc-2417-438d-897d-eaa8d3ff4e18

Get Started:

To get started looking at the front-end code, start looking at client/src/pages/Tree/Tree.js The front-end code makes a couple calls per tree id to https://waterthetrees.com/api/trees?${tree_id} and https://waterthetrees.com/api/treehistory?id=${tree_id} endpoints that live in https://github.com/waterthetrees/wtt_server

Resources:

What's out:

Bugs

Milestone 0 - Redesigning Tree Details

Milestone 1 - Restyling the overall tree details to match All Tree Tab mocks, without adding tab components yet

Milestone 2 - Break components into tabs, and add improvements to mobile experience

Milestone 3 - Maintenance Features - Multiple Actions (City Request, Maintenance, Modify Info)

Milestone 4 - New features (Extras)

Milestone ??? - Photos Implementation

Milestone ??? - Future Implementation

ri0nardo commented 1 year ago

@mwpark2014 To add to this epic, where should we plan to add the sticky component, animations for mobile, and I need to add the carbon section. For mobile, rather than having the tree details just fade in the screen, I would like to see it slideup from the bottom of the screen. Function as a swiping section. Would like to help out on the planning of this feature.

mwpark2014 commented 1 year ago

Great call-outs. I'll add these tasks to the overall project.

ri0nardo commented 1 year ago

@zoobot I may be missing a few categories / information that isn't present on the tree information sidebar. Could you list all possible categories / sections of the tree info sidebar? Initially I didn't know there was a plant date (Date of plant) but added it into the sticky section of the tree info menu.

Also FUF wanted a comment / notes section which seemed like a comment thread that is similar to what you see on reddit, youtube, and end of articles. I dont know if that is what you are thinking, but seems like a large task to moderate as well (if we want it child friendly).

I sort of see some flaws in the design especially the photo upload and how I designed photo preview which I want to resolve soon since paul is working on it.

I believe I have to design out more of the photos since its very bare.

Anything else am I missing regarding the tree info sidebar?

Image

zoobot commented 1 year ago

Best place to look for all the fields on the front end so far is when you click the plant button and the form pops up.

This is all possible ones: https://github.com/waterthetrees/wtt_db/blob/main/tables/public.treedata.sql

Will look over this more later. Everyone just got home.