Skip to content

Andi/filtering#92

Open
andi-halim wants to merge 7 commits into
masterfrom
andi/Filtering
Open

Andi/filtering#92
andi-halim wants to merge 7 commits into
masterfrom
andi/Filtering

Conversation

@andi-halim
Copy link
Copy Markdown
Contributor

@andi-halim andi-halim commented Jun 15, 2021

What's new in this PR?

Implemented Filtering for Farm Production History Graph (ProductionGraph.js), Top Items Graph (TopItemsGraph.js), and Recent Harvests Graph (RecentHarvestsGraph.js). The filtering takes the inputted dates and filters them by the month interval specified.

Additionally, I implemented an extra feature on changing the filter's header when dates are applied to the filter selection. It changes from "Date Filters" to "[start date] to [end date]".

(Andi's Last PR thanks for all the good times!)

How to Review

  • Farm Production History Graph (ProductionGraph.js)
  • Top Items Graph (TopItemsGraph.js)
  • Recent Harvests Graph (RecentHarvestsGraph.js)
  • Date Filter Menu (DateFilterMenu.js)
  • passing on the filter's startDate and endDate on from the Data Filter Menu to the Graphs (Graph.js).

Related PRs

Next steps

  • Additional Options was commented out from the file as it does not work unless implemented. Currently, it will freeze if an additional option is selected and the filter is applied. Once implemented, it will work again.
    image

  • VictoryGraphs are still buggy with 3 or less X values (categories/dates).
    image

  • Filter Menu should save/cache the Applied Filtered Dates so that a user can pick up where they left off if they choose to filter again.
    image

  • Filtering for the other two graphs have not been implemented (HarvestLogs and GAP Certification).

  • Not very related to this PR but related to the page. There's a bug with the See More button under the Harvest Logs graph that affects the rest of the page too.
    image

  • Stretch Feature: Could create a Top # Items as a filter in the Top Items Graph.

Screenshots

image
image
image

Design Status

CC: @phoebeli23

@andi-halim andi-halim requested a review from phoebeli23 June 15, 2021 23:03
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.

1 participant