-
Notifications
You must be signed in to change notification settings - Fork 28
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Install query-string * WIP, gather the event ids * WIP, render event card * Refactor list of cards into a cards container * Move the search_type into search page dir Add main search state type * Implement search page * Implement search container * Remove council members from search type Remove date range filter from home search bar * Remove search_type from project constants * Add link to card container * Use cards container in events container * Add empty search events page * Change to first-of-type * Fallback to false for option * Change the comittees in search events state to a record<string, boolean> * Implement search events page * Implement search events container * Remove props from home search bar * Move the fetching search result logic into a react hook * Add search bar, search page title * Keep only the search state prop * Keep the top 50% style * Use the searbar, search page title * Change to h1 * Remove the initial get call to get events, and let the container get the events * Refactor page container as a flex container * Refactor the show more events into show more cards * Refactor the fetch events msg into fetch cards status * Set initial fetch state to true * Refactor batch size into a project constant * Refactor the data fetching logic into useFetchData * Remove unused hooks * Rewrite fetch hook in events container * Refactor into use search cards hook * Include the function creator in dep array * Install react-hooks linting * Move up the handle search code * Add page titles to /search and /events/search * Allow popup to close on click outside * handle search on popupclose * Merge fetch and filter/sort into one step * Change to size 6 * Remove margin from h1 * Refactor filters container * Combine the margin bottom * Remove not needed onOpen callback * Comment out /search page Route to /events/search from the landing page * Weighted relevance is default sorting algo Change the labels of sorting options
- Loading branch information
Showing
44 changed files
with
1,276 additions
and
534 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
18 changes: 18 additions & 0 deletions
18
src/components/Filters/FiltersContainer/FiltersContainer.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
import styled from "@emotion/styled"; | ||
|
||
import { screenWidths } from "../../../styles/mediaBreakpoints"; | ||
|
||
const FiltersContainer = styled.div({ | ||
display: "flex", | ||
flexDirection: "column", | ||
gap: 4, | ||
[`@media (min-width:${screenWidths.tablet})`]: { | ||
flexDirection: "row", | ||
flexWrap: "wrap", | ||
"& > div:last-of-type:not(:first-of-type), & > button:last-of-type": { | ||
marginLeft: "auto", | ||
}, | ||
}, | ||
}); | ||
|
||
export default FiltersContainer; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
export { default as FiltersContainer } from "./FiltersContainer"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.