From 294abd04211408d7006b398bf44467585cdae4db Mon Sep 17 00:00:00 2001 From: Rita Nkem Daniel Date: Fri, 13 Oct 2023 03:51:29 +0100 Subject: [PATCH 01/25] fix: add responsiveness to profile detail --- .../ContributorProfilePage/contributor-profile-page.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/organisms/ContributorProfilePage/contributor-profile-page.tsx b/components/organisms/ContributorProfilePage/contributor-profile-page.tsx index 9549c31d1..aea2cbb56 100644 --- a/components/organisms/ContributorProfilePage/contributor-profile-page.tsx +++ b/components/organisms/ContributorProfilePage/contributor-profile-page.tsx @@ -116,7 +116,7 @@ const ContributorProfilePage = ({ /> )}
-
+
{loading ? ( ) : ( From 574f575a98eca6a1c7e0e4e44e8836042068a50f Mon Sep 17 00:00:00 2001 From: Rita Nkem Daniel Date: Thu, 19 Oct 2023 15:51:33 +0100 Subject: [PATCH 02/25] fix: remove orange notification indicator on button click --- components/molecules/AuthSection/auth-section.tsx | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/components/molecules/AuthSection/auth-section.tsx b/components/molecules/AuthSection/auth-section.tsx index 28423c666..dd7c10dde 100644 --- a/components/molecules/AuthSection/auth-section.tsx +++ b/components/molecules/AuthSection/auth-section.tsx @@ -117,7 +117,16 @@ const AuthSection: React.FC = ({}) => { )} - )} @@ -303,7 +303,7 @@ const ContributorProfileHeader = ({ } className="flex items-center gap-1 pl-3 pr-7" > - Collaborate + Connect )} @@ -319,7 +319,7 @@ const ContributorProfileHeader = ({ - Collaborate with {username}! + Connect with {username}!
diff --git a/pages/start.tsx b/pages/start.tsx index 75309b36c..f1abf4ccf 100644 --- a/pages/start.tsx +++ b/pages/start.tsx @@ -269,7 +269,7 @@ const LoginStep3: React.FC = ({ interests, user }) => {
- Provide your timezone to help companies discover you and collaborate on open source projects. + Provide your timezone to help companies discover you and connect on open source projects.
diff --git a/stories/atoms/notification-card.stories.tsx b/stories/atoms/notification-card.stories.tsx index f381bb9dd..bf64d26cb 100644 --- a/stories/atoms/notification-card.stories.tsx +++ b/stories/atoms/notification-card.stories.tsx @@ -26,6 +26,6 @@ Follows.args = { Connections.args = { type: "connections", - message: "bdougie invited you to collaborate", + message: "bdougie invited you to connect", id: "1s356g", }; From 0a86d33a7e3a025cec0457ace182b11b2b936eec Mon Sep 17 00:00:00 2001 From: Nick Taylor Date: Fri, 20 Oct 2023 18:40:42 +0000 Subject: [PATCH 10/25] chore(patch): release 1.71.2-beta.3 on beta channel [skip ci] MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ### [1.71.2-beta.3](https://github.com/open-sauced/insights/compare/v1.71.2-beta.2...v1.71.2-beta.3) (2023-10-20) ### πŸ› Bug Fixes * added missing is_maintainer info for Posthog ([b9c0c1e](https://github.com/open-sauced/insights/commit/b9c0c1ee141d4d86a1327ff1b875ca90c1255e69)) * added missing is_maintainer info for Posthog ([#1975](https://github.com/open-sauced/insights/issues/1975)) ([25d603b](https://github.com/open-sauced/insights/commit/25d603b28894c0637bef3d6718deb4835bc620ca)) --- CHANGELOG.md | 8 ++++++++ npm-shrinkwrap.json | 4 ++-- package.json | 2 +- 3 files changed, 11 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 3bd90b789..cbcf62341 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,14 @@ > All notable changes to this project will be documented in this file +### [1.71.2-beta.3](https://github.com/open-sauced/insights/compare/v1.71.2-beta.2...v1.71.2-beta.3) (2023-10-20) + + +### πŸ› Bug Fixes + +* added missing is_maintainer info for Posthog ([b9c0c1e](https://github.com/open-sauced/insights/commit/b9c0c1ee141d4d86a1327ff1b875ca90c1255e69)) +* added missing is_maintainer info for Posthog ([#1975](https://github.com/open-sauced/insights/issues/1975)) ([25d603b](https://github.com/open-sauced/insights/commit/25d603b28894c0637bef3d6718deb4835bc620ca)) + ### [1.71.2-beta.2](https://github.com/open-sauced/insights/compare/v1.71.2-beta.1...v1.71.2-beta.2) (2023-10-20) diff --git a/npm-shrinkwrap.json b/npm-shrinkwrap.json index 3c548cc11..0c9eadfd7 100644 --- a/npm-shrinkwrap.json +++ b/npm-shrinkwrap.json @@ -1,12 +1,12 @@ { "name": "@open-sauced/insights", - "version": "1.71.2-beta.2", + "version": "1.71.2-beta.3", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "@open-sauced/insights", - "version": "1.71.2-beta.2", + "version": "1.71.2-beta.3", "hasInstallScript": true, "license": "Apache 2.0", "dependencies": { diff --git a/package.json b/package.json index 6e33b14bc..18b466765 100644 --- a/package.json +++ b/package.json @@ -2,7 +2,7 @@ "name": "@open-sauced/insights", "description": "πŸ•The dashboard for open source discovery.", "keywords": [], - "version": "1.71.2-beta.2", + "version": "1.71.2-beta.3", "author": "Brian Douglas ", "private": true, "license": "Apache 2.0", From 88c13d90998cbe4e18f8f250036c91dce780ede8 Mon Sep 17 00:00:00 2001 From: Nick Taylor Date: Fri, 20 Oct 2023 19:07:28 +0000 Subject: [PATCH 11/25] chore(patch): release 1.71.2-beta.4 on beta channel [skip ci] MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ### [1.71.2-beta.4](https://github.com/open-sauced/insights/compare/v1.71.2-beta.3...v1.71.2-beta.4) (2023-10-20) ### πŸ§‘β€πŸ’» Code Refactoring * remove key ([b84d4b1](https://github.com/open-sauced/insights/commit/b84d4b19e10001e7346b0eb669f2413cefa74759)) ### πŸ› Bug Fixes * add responsiveness to profile detail ([294abd0](https://github.com/open-sauced/insights/commit/294abd04211408d7006b398bf44467585cdae4db)) * notification indicator ([#1955](https://github.com/open-sauced/insights/issues/1955)) ([fd78097](https://github.com/open-sauced/insights/commit/fd780974e24441affed9b6df50c58553159b61fe)) * remove orange notification indicator on button click ([574f575](https://github.com/open-sauced/insights/commit/574f575a98eca6a1c7e0e4e44e8836042068a50f)) --- CHANGELOG.md | 14 ++++++++++++++ npm-shrinkwrap.json | 4 ++-- package.json | 2 +- 3 files changed, 17 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index cbcf62341..ff99f4f09 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,20 @@ > All notable changes to this project will be documented in this file +### [1.71.2-beta.4](https://github.com/open-sauced/insights/compare/v1.71.2-beta.3...v1.71.2-beta.4) (2023-10-20) + + +### πŸ§‘β€πŸ’» Code Refactoring + +* remove key ([b84d4b1](https://github.com/open-sauced/insights/commit/b84d4b19e10001e7346b0eb669f2413cefa74759)) + + +### πŸ› Bug Fixes + +* add responsiveness to profile detail ([294abd0](https://github.com/open-sauced/insights/commit/294abd04211408d7006b398bf44467585cdae4db)) +* notification indicator ([#1955](https://github.com/open-sauced/insights/issues/1955)) ([fd78097](https://github.com/open-sauced/insights/commit/fd780974e24441affed9b6df50c58553159b61fe)) +* remove orange notification indicator on button click ([574f575](https://github.com/open-sauced/insights/commit/574f575a98eca6a1c7e0e4e44e8836042068a50f)) + ### [1.71.2-beta.3](https://github.com/open-sauced/insights/compare/v1.71.2-beta.2...v1.71.2-beta.3) (2023-10-20) diff --git a/npm-shrinkwrap.json b/npm-shrinkwrap.json index 0c9eadfd7..29981a63f 100644 --- a/npm-shrinkwrap.json +++ b/npm-shrinkwrap.json @@ -1,12 +1,12 @@ { "name": "@open-sauced/insights", - "version": "1.71.2-beta.3", + "version": "1.71.2-beta.4", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "@open-sauced/insights", - "version": "1.71.2-beta.3", + "version": "1.71.2-beta.4", "hasInstallScript": true, "license": "Apache 2.0", "dependencies": { diff --git a/package.json b/package.json index 18b466765..7c81b44cf 100644 --- a/package.json +++ b/package.json @@ -2,7 +2,7 @@ "name": "@open-sauced/insights", "description": "πŸ•The dashboard for open source discovery.", "keywords": [], - "version": "1.71.2-beta.3", + "version": "1.71.2-beta.4", "author": "Brian Douglas ", "private": true, "license": "Apache 2.0", From 01ca13ccbbb76157f3ca0fadda0bd1b936faf83c Mon Sep 17 00:00:00 2001 From: Nick Taylor Date: Fri, 20 Oct 2023 17:12:15 -0400 Subject: [PATCH 12/25] feat: add hovercards to list contributors page --- components/atoms/Avatar/avatar-hover-card.tsx | 55 ++++++++++++------- .../contributor-list-table-row.tsx | 10 +--- 2 files changed, 37 insertions(+), 28 deletions(-) diff --git a/components/atoms/Avatar/avatar-hover-card.tsx b/components/atoms/Avatar/avatar-hover-card.tsx index 9ed11f08d..1dbfd32af 100644 --- a/components/atoms/Avatar/avatar-hover-card.tsx +++ b/components/atoms/Avatar/avatar-hover-card.tsx @@ -10,27 +10,42 @@ import { getAvatarByUsername } from "lib/utils/github"; declare interface AvatarProps { contributor: string; repositories: number[]; + size?: "small" | "large"; } -const AvatarHoverCard = ({ contributor, repositories }: AvatarProps): JSX.Element => ( - - - - {contributor} - - - - - - - - -); +const AvatarHoverCard = ({ contributor, repositories, size = "large" }: AvatarProps): JSX.Element => { + let width = 500; + let height = 500; + + switch (size) { + case "small": + width = 35; + height = 35; + break; + default: + break; + } + + return ( + + + + {contributor} + + + + + + + + + ); +}; export default AvatarHoverCard; diff --git a/components/molecules/ContributorListTableRow/contributor-list-table-row.tsx b/components/molecules/ContributorListTableRow/contributor-list-table-row.tsx index e2bcc69a7..bb3f1f460 100644 --- a/components/molecules/ContributorListTableRow/contributor-list-table-row.tsx +++ b/components/molecules/ContributorListTableRow/contributor-list-table-row.tsx @@ -11,6 +11,7 @@ import useContributorPullRequests from "lib/hooks/api/useContributorPullRequests import useRepoList from "lib/hooks/useRepoList"; import { useFetchUser } from "lib/hooks/useFetchUser"; import Checkbox from "components/atoms/Checkbox/checkbox"; +import AvatarHoverCard from "components/atoms/Avatar/avatar-hover-card"; import { getActivity } from "../RepoRow/repo-row"; import DevProfile from "../DevProfile/dev-profile"; @@ -155,14 +156,7 @@ const ContributorListTableRow = ({ )} {/* Column: Contributors */} -
- -
- + {/* Column: Act */}
{contributor.author_login ? getActivity(totalPrs, false) : "-"} From 2643269ac745623c839e5d16c259217e872048b5 Mon Sep 17 00:00:00 2001 From: Nick Taylor Date: Mon, 23 Oct 2023 12:26:17 +0000 Subject: [PATCH 13/25] chore(minor): release 1.72.0-beta.1 on beta channel [skip ci] MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ## [1.72.0-beta.1](https://github.com/open-sauced/insights/compare/v1.71.2-beta.4...v1.72.0-beta.1) (2023-10-23) ### πŸ• Features * add hovercards to list contributors page ([01ca13c](https://github.com/open-sauced/insights/commit/01ca13ccbbb76157f3ca0fadda0bd1b936faf83c)) * add hovercards to list contributors page ([#1980](https://github.com/open-sauced/insights/issues/1980)) ([7e5ab98](https://github.com/open-sauced/insights/commit/7e5ab98bba0418c41bbdad0fcf19afc5a9a36f9e)) --- CHANGELOG.md | 8 ++++++++ npm-shrinkwrap.json | 4 ++-- package.json | 2 +- 3 files changed, 11 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index ff99f4f09..6d8f38bd1 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,14 @@ > All notable changes to this project will be documented in this file +## [1.72.0-beta.1](https://github.com/open-sauced/insights/compare/v1.71.2-beta.4...v1.72.0-beta.1) (2023-10-23) + + +### πŸ• Features + +* add hovercards to list contributors page ([01ca13c](https://github.com/open-sauced/insights/commit/01ca13ccbbb76157f3ca0fadda0bd1b936faf83c)) +* add hovercards to list contributors page ([#1980](https://github.com/open-sauced/insights/issues/1980)) ([7e5ab98](https://github.com/open-sauced/insights/commit/7e5ab98bba0418c41bbdad0fcf19afc5a9a36f9e)) + ### [1.71.2-beta.4](https://github.com/open-sauced/insights/compare/v1.71.2-beta.3...v1.71.2-beta.4) (2023-10-20) diff --git a/npm-shrinkwrap.json b/npm-shrinkwrap.json index 29981a63f..2b512b526 100644 --- a/npm-shrinkwrap.json +++ b/npm-shrinkwrap.json @@ -1,12 +1,12 @@ { "name": "@open-sauced/insights", - "version": "1.71.2-beta.4", + "version": "1.72.0-beta.1", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "@open-sauced/insights", - "version": "1.71.2-beta.4", + "version": "1.72.0-beta.1", "hasInstallScript": true, "license": "Apache 2.0", "dependencies": { diff --git a/package.json b/package.json index 7c81b44cf..a85e9bff5 100644 --- a/package.json +++ b/package.json @@ -2,7 +2,7 @@ "name": "@open-sauced/insights", "description": "πŸ•The dashboard for open source discovery.", "keywords": [], - "version": "1.71.2-beta.4", + "version": "1.72.0-beta.1", "author": "Brian Douglas ", "private": true, "license": "Apache 2.0", From 973be2f97ad2b1f5416765808548de56406a5788 Mon Sep 17 00:00:00 2001 From: Soundarya Koutharapu <71914071+SoundaryaKoutharapu@users.noreply.github.com> Date: Mon, 23 Oct 2023 18:12:05 +0530 Subject: [PATCH 14/25] fix: add build command to Netlify `.toml` configuration (#1961) Co-authored-by: Nick Taylor --- netlify.toml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/netlify.toml b/netlify.toml index 9ba4c89c6..a47a330c7 100644 --- a/netlify.toml +++ b/netlify.toml @@ -1,6 +1,10 @@ [build.environment] NODE_VERSION = "18" +[build] +command = "npm run build" +publish = ".next" + [context.alpha] environment = { CHANNEL = "alpha" } From c6c73f7ac4a8b9038d32c66c41ff01de7f52eec3 Mon Sep 17 00:00:00 2001 From: OGBONNA SUNDAY <62995161+OgDev-01@users.noreply.github.com> Date: Mon, 23 Oct 2023 15:18:39 +0100 Subject: [PATCH 15/25] fix: No more 404 errors in the browser console (#1983) --- .../contributor-highlight-card.tsx | 11 +++++++++-- pages/feed/index.tsx | 15 ++++++++++----- 2 files changed, 19 insertions(+), 7 deletions(-) diff --git a/components/molecules/ContributorHighlight/contributor-highlight-card.tsx b/components/molecules/ContributorHighlight/contributor-highlight-card.tsx index 839f27408..64c20d3be 100644 --- a/components/molecules/ContributorHighlight/contributor-highlight-card.tsx +++ b/components/molecules/ContributorHighlight/contributor-highlight-card.tsx @@ -120,8 +120,9 @@ const ContributorHighlightCard = ({ const [tagRepoSearchLoading, setTagRepoSearchLoading] = useState(false); const [addTaggedRepoFormOpen, setAddTaggedRepoFormOpen] = useState(false); const [host, setHost] = useState(""); + const [dropdownOpen, setDropdownOpen] = useState(false); const { follow, unFollow, isError } = useFollowUser( - loggedInUser && loggedInUser?.user_metadata.username !== user ? user : "" + dropdownOpen && loggedInUser && loggedInUser?.user_metadata.user_name !== user ? user : "" ); const [date, setDate] = useState(shipped_date ? new Date(shipped_date) : undefined); @@ -441,7 +442,13 @@ const ContributorHighlightCard = ({ {icon} {getHighlightTypePreset(type).text}
- + { + setDropdownOpen(value); + }} + modal={false} + > )} - + {isDesktop && ( + + )} Date: Mon, 23 Oct 2023 14:25:41 +0000 Subject: [PATCH 16/25] chore(patch): release 1.72.0-beta.2 on beta channel [skip ci] MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ## [1.72.0-beta.2](https://github.com/open-sauced/insights/compare/v1.72.0-beta.1...v1.72.0-beta.2) (2023-10-23) ### πŸ› Bug Fixes * add build command to Netlify `.toml` configuration ([#1961](https://github.com/open-sauced/insights/issues/1961)) ([973be2f](https://github.com/open-sauced/insights/commit/973be2f97ad2b1f5416765808548de56406a5788)) * No more 404 errors in the browser console ([#1983](https://github.com/open-sauced/insights/issues/1983)) ([c6c73f7](https://github.com/open-sauced/insights/commit/c6c73f7ac4a8b9038d32c66c41ff01de7f52eec3)) --- CHANGELOG.md | 8 ++++++++ npm-shrinkwrap.json | 4 ++-- package.json | 2 +- 3 files changed, 11 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 6d8f38bd1..70de4c600 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,14 @@ > All notable changes to this project will be documented in this file +## [1.72.0-beta.2](https://github.com/open-sauced/insights/compare/v1.72.0-beta.1...v1.72.0-beta.2) (2023-10-23) + + +### πŸ› Bug Fixes + +* add build command to Netlify `.toml` configuration ([#1961](https://github.com/open-sauced/insights/issues/1961)) ([973be2f](https://github.com/open-sauced/insights/commit/973be2f97ad2b1f5416765808548de56406a5788)) +* No more 404 errors in the browser console ([#1983](https://github.com/open-sauced/insights/issues/1983)) ([c6c73f7](https://github.com/open-sauced/insights/commit/c6c73f7ac4a8b9038d32c66c41ff01de7f52eec3)) + ## [1.72.0-beta.1](https://github.com/open-sauced/insights/compare/v1.71.2-beta.4...v1.72.0-beta.1) (2023-10-23) diff --git a/npm-shrinkwrap.json b/npm-shrinkwrap.json index 2b512b526..19cce4e62 100644 --- a/npm-shrinkwrap.json +++ b/npm-shrinkwrap.json @@ -1,12 +1,12 @@ { "name": "@open-sauced/insights", - "version": "1.72.0-beta.1", + "version": "1.72.0-beta.2", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "@open-sauced/insights", - "version": "1.72.0-beta.1", + "version": "1.72.0-beta.2", "hasInstallScript": true, "license": "Apache 2.0", "dependencies": { diff --git a/package.json b/package.json index a85e9bff5..01ba41f80 100644 --- a/package.json +++ b/package.json @@ -2,7 +2,7 @@ "name": "@open-sauced/insights", "description": "πŸ•The dashboard for open source discovery.", "keywords": [], - "version": "1.72.0-beta.1", + "version": "1.72.0-beta.2", "author": "Brian Douglas ", "private": true, "license": "Apache 2.0", From 4b675a0960e59d09a7482834acf90ba2857f5553 Mon Sep 17 00:00:00 2001 From: OGBONNA SUNDAY <62995161+OgDev-01@users.noreply.github.com> Date: Mon, 23 Oct 2023 15:38:11 +0100 Subject: [PATCH 17/25] refactor: show tootip indication for disabled CTA when repo limit is reached (#1915) --- .../organisms/InsightPage/InsightPage.tsx | 20 +++++++++++++++++-- .../UserSettingsPage/user-settings-page.tsx | 2 +- 2 files changed, 19 insertions(+), 3 deletions(-) diff --git a/components/organisms/InsightPage/InsightPage.tsx b/components/organisms/InsightPage/InsightPage.tsx index 3b4219dc9..797e355e0 100644 --- a/components/organisms/InsightPage/InsightPage.tsx +++ b/components/organisms/InsightPage/InsightPage.tsx @@ -4,6 +4,7 @@ import dynamic from "next/dynamic"; import { UserGroupIcon } from "@heroicons/react/24/outline"; import { useDebounce } from "rooks"; +import Link from "next/link"; import Button from "components/atoms/Button/button"; import TextInput from "components/atoms/TextInput/text-input"; import ToggleSwitch from "components/atoms/ToggleSwitch/toggle-switch"; @@ -68,6 +69,7 @@ const staticSuggestedRepos: RepoCardProfileProps[] = [ const InsightPage = ({ edit, insight, pageRepos }: InsightPageProps) => { const { sessionToken, providerToken, user } = useSupabaseAuth(); + const { toast } = useToast(); const router = useRouter(); const pageHref = router.asPath; @@ -473,18 +475,32 @@ const InsightPage = ({ edit, insight, pageRepos }: InsightPageProps) => { onSearch={(search) => setRepoSearchTerm(search as string)} /> -
+
+ + + {repos.length >= insightRepoLimit! && insightRepoLimit! < 50 ? ( +

+ Your insight pages are limited to + {insightRepoLimit} repos,{" "} + + upgrade + {" "} + to increase the limit +

+ ) : null} +
{
-
+