diff --git a/CHANGELOG.md b/CHANGELOG.md index db81c1031f..61bae595e8 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,46 @@ > All notable changes to this project will be documented in this file +## [1.43.0-beta.5](https://github.com/open-sauced/insights/compare/v1.43.0-beta.4...v1.43.0-beta.5) (2023-04-20) + + +### π Bug Fixes + +* only redirect on contributor profile if login is defined ([#1114](https://github.com/open-sauced/insights/issues/1114)) ([483f38c](https://github.com/open-sauced/insights/commit/483f38c54c6c707873b9e63c78b751bc5a994494)) + +## [1.43.0-beta.4](https://github.com/open-sauced/insights/compare/v1.43.0-beta.3...v1.43.0-beta.4) (2023-04-20) + + +### π Features + +* connect contributors page to API ([#1113](https://github.com/open-sauced/insights/issues/1113)) ([e51c51e](https://github.com/open-sauced/insights/commit/e51c51e4b4f6bc21fa171495578993325c3427ba)) + +## [1.43.0-beta.3](https://github.com/open-sauced/insights/compare/v1.43.0-beta.2...v1.43.0-beta.3) (2023-04-20) + + +### π Bug Fixes + +* adds spacing to contributor highlights container ([#1089](https://github.com/open-sauced/insights/issues/1089)) ([83d89bd](https://github.com/open-sauced/insights/commit/83d89bd95212fd6e739343c3b9774217b5433cab)), closes [#1057](https://github.com/open-sauced/insights/issues/1057) + + +### π Features + +* connect contributor page and graphs to the API ([#1072](https://github.com/open-sauced/insights/issues/1072)) ([#1112](https://github.com/open-sauced/insights/issues/1112)) ([4fc471c](https://github.com/open-sauced/insights/commit/4fc471c3223a6cff4bf8cc3c1a4c8a074a56d576)) + +## [1.43.0-beta.2](https://github.com/open-sauced/insights/compare/v1.43.0-beta.1...v1.43.0-beta.2) (2023-04-18) + + +### π Features + +* implement insights team feature ([#1080](https://github.com/open-sauced/insights/issues/1080)) ([5186a60](https://github.com/open-sauced/insights/commit/5186a6089c7dd5f306b7854f5a7706015e33e0f0)) + +## [1.43.0-beta.1](https://github.com/open-sauced/insights/compare/v1.42.0...v1.43.0-beta.1) (2023-04-18) + + +### π Features + +* add page to accept insight member invitation ([#1102](https://github.com/open-sauced/insights/issues/1102)) ([ffe35e2](https://github.com/open-sauced/insights/commit/ffe35e210e6d4115480a0c44478998c73fade875)) + ## [1.42.0](https://github.com/open-sauced/insights/compare/v1.41.1...v1.42.0) (2023-04-18) diff --git a/components/atoms/Search/search.tsx b/components/atoms/Search/search.tsx index 33f4203f24..3d42188c6b 100644 --- a/components/atoms/Search/search.tsx +++ b/components/atoms/Search/search.tsx @@ -1,4 +1,4 @@ -import React, { useState } from "react"; +import React, { useEffect, useState } from "react"; import { GrClose } from "react-icons/gr"; import { FaSearch } from "react-icons/fa"; import { Spinner } from "../SpinLoader/spin-loader"; @@ -44,6 +44,10 @@ const Search = ({ onChange?.(""); }; + useEffect(() => { + setSearch(value); + }, [value]); + const handleOnSelect = (suggestion: string) => { setSearch(suggestion); onSearch?.(suggestion); diff --git a/components/atoms/Selector/selector.tsx b/components/atoms/Selector/selector.tsx index 427d35e29f..13a36af095 100644 --- a/components/atoms/Selector/selector.tsx +++ b/components/atoms/Selector/selector.tsx @@ -2,46 +2,39 @@ import Radio from "components/atoms/Radio/radio"; import RadioCheck from "../RadioCheck/radio-check"; interface SelectorProps { - filterOptions: string[]; + filterOptions: { name: string; value: string }[]; handleFilterClick: (filter: string) => void; selected?: string; - variation?: "circle" | "check" + variation?: "circle" | "check"; } -const Selector = ({ - filterOptions, - handleFilterClick, - selected, - variation = "circle" -}: SelectorProps) => { +const Selector = ({ filterOptions, handleFilterClick, selected, variation = "circle" }: SelectorProps) => { return ( -
{name}
+{name || email}
{getFormattedDate(created_at)}
@@ -200,7 +200,7 @@ const ContributorProfileTab = ({