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

Closes #166 - Default and Custom Date Filters (Sidebar Filter) #255

Merged
merged 35 commits into from
Feb 17, 2020

Conversation

adamkendis
Copy link
Member

@adamkendis adamkendis commented Feb 14, 2020

Closes #166

Rundown of components and changes included in this PR:

New Components:

  • DateSelector
    Default date selector nested in the left slider <Menu />.
  • Modal
    A background overlay and empty container for modal content. This component will be nested in <Body />.
  • DateRangePicker
    Custom date range picker. This component is the content rendered in <Modal />
  • CustomDateInput
    Not currently in use as it is not 100% working.
    Planning on fixing this up after we hit MVP. It's a visual enhancement, not a functionality enhancement.

Changes to existing components:

  • Dropdown
    Renamed handleClick prop to onClick. Seemed more intuitive where the Dropdown is actually used.
  • Footer and Header
    Added an extremely high z-index to both components to prevent <Modal /> from stacking on top of them when active.

Notes:

  1. I haven't added the DateSelector to Menu yet. I don't know if it needs refactoring or if I can just drop the DateSelector in somewhere.

  2. Still need to add the circle info icon to DateSelector once <Icon /> is done.

  3. The custom date range picker differs from the mockup. It was easier to implement with individual calendar popups for each input.

  4. Some styles will be tweaked after Basic Sass setup. Issue Basic Sass setup #254

  5. What date format should we be sending to the back end?

  6. Everything is hooked up to Redux.

Screenshots

DateSelector

DateSelector

Modal + DateRangePicker

Modal_DateRangePicker

Modal_DateRangePicker2

@adamkendis adamkendis linked an issue Feb 14, 2020 that may be closed by this pull request
2 tasks
src/redux/reducers/data.js Outdated Show resolved Hide resolved
Copy link
Member

@brodly brodly left a comment

Choose a reason for hiding this comment

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

Some small comments and the modal discussion stuff. nice job

@brodly brodly merged commit 1b6a9ad into hackforla:dev Feb 17, 2020
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.

[Revised] Default and Custom Date Filters (Sidebar Filter)
2 participants