Skip to content

Commit

Permalink
chore: release 1.68.0 (#1846)
Browse files Browse the repository at this point in the history
  • Loading branch information
brandonroberts authored Oct 10, 2023
2 parents 2672f58 + 6514718 commit 7ca4cc9
Show file tree
Hide file tree
Showing 72 changed files with 3,636 additions and 504 deletions.
142 changes: 142 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,148 @@

> All notable changes to this project will be documented in this file
## [1.68.0-beta.16](https://github.com/open-sauced/insights/compare/v1.68.0-beta.15...v1.68.0-beta.16) (2023-10-10)


### 🧑‍💻 Code Refactoring

* update all collaboration copy to connection ([#1831](https://github.com/open-sauced/insights/issues/1831)) ([c0bb683](https://github.com/open-sauced/insights/commit/c0bb68398f8cfa41cfb020010b81d91ff039e384))

## [1.68.0-beta.15](https://github.com/open-sauced/insights/compare/v1.68.0-beta.14...v1.68.0-beta.15) (2023-10-09)


### 🐛 Bug Fixes

* disable tier session check ([#1840](https://github.com/open-sauced/insights/issues/1840)) ([173227b](https://github.com/open-sauced/insights/commit/173227bd2e1f5f5bc7d9eea1af07b834fc0f7435))

## [1.68.0-beta.14](https://github.com/open-sauced/insights/compare/v1.68.0-beta.13...v1.68.0-beta.14) (2023-10-09)


### 🐛 Bug Fixes

* update GitHub API request for user following ([#1833](https://github.com/open-sauced/insights/issues/1833)) ([d62f557](https://github.com/open-sauced/insights/commit/d62f557919eb9b2e7f8710b0f36a9915bbe689ba))

## [1.68.0-beta.13](https://github.com/open-sauced/insights/compare/v1.68.0-beta.12...v1.68.0-beta.13) (2023-10-09)


### 🐛 Bug Fixes

* pass list name and public flag to contributor search ([#1832](https://github.com/open-sauced/insights/issues/1832)) ([d54ddab](https://github.com/open-sauced/insights/commit/d54ddabb7af3c0b395e8196f49ceb038beb8dc25))

## [1.68.0-beta.12](https://github.com/open-sauced/insights/compare/v1.68.0-beta.11...v1.68.0-beta.12) (2023-10-09)


### 🍕 Features

* add new lists creation page ([#1798](https://github.com/open-sauced/insights/issues/1798)) ([7ebc99b](https://github.com/open-sauced/insights/commit/7ebc99b4bfbf8b128d87b433dfcd8e5265be43e5))

## [1.68.0-beta.11](https://github.com/open-sauced/insights/compare/v1.68.0-beta.10...v1.68.0-beta.11) (2023-10-09)


### 🍕 Features

* implemented list activity page with most active contributors graph ([#1796](https://github.com/open-sauced/insights/issues/1796)) ([0c9b1e2](https://github.com/open-sauced/insights/commit/0c9b1e2cbe1f6749aad0015e06701dce6423401e))


### 🐛 Bug Fixes

* Fix re-rendering of Highlights "Repositories" table with duplicates ([#1811](https://github.com/open-sauced/insights/issues/1811)) ([f729457](https://github.com/open-sauced/insights/commit/f72945748f91929b3ea0fad0f4950704a3ae0435))

## [1.68.0-beta.10](https://github.com/open-sauced/insights/compare/v1.68.0-beta.9...v1.68.0-beta.10) (2023-10-09)


### 🧑‍💻 Code Refactoring

* use api timezone options for contributors filter ([#1827](https://github.com/open-sauced/insights/issues/1827)) ([f7276e9](https://github.com/open-sauced/insights/commit/f7276e97c54f71ece8b5b60e6c76fa11ad1f96b3))


### 🐛 Bug Fixes

* show insight link for not onboarded users ([#1830](https://github.com/open-sauced/insights/issues/1830)) ([566b0d1](https://github.com/open-sauced/insights/commit/566b0d1f8946b3d19ed6a8ea38251891e435610d))

## [1.68.0-beta.9](https://github.com/open-sauced/insights/compare/v1.68.0-beta.8...v1.68.0-beta.9) (2023-10-06)


### 🍕 Features

* move range filter to list pages header ([#1817](https://github.com/open-sauced/insights/issues/1817)) ([0b82760](https://github.com/open-sauced/insights/commit/0b82760dfd20b14230f8f0b4496b75c3086db139))

## [1.68.0-beta.8](https://github.com/open-sauced/insights/compare/v1.68.0-beta.7...v1.68.0-beta.8) (2023-10-06)


### 🧑‍💻 Code Refactoring

* redirect user to newly created insight page after creation ([#1808](https://github.com/open-sauced/insights/issues/1808)) ([cf12456](https://github.com/open-sauced/insights/commit/cf1245625c0611a57ba6f0997ccb4ddb02a79ad0))


### 🐛 Bug Fixes

* now range filter works on list contributors page ([d711207](https://github.com/open-sauced/insights/commit/d7112074ec7996d86258c3d7b7814cf7fcc3b16a))
* now range filter works on list contributors page grid view ([#1819](https://github.com/open-sauced/insights/issues/1819)) ([989ebba](https://github.com/open-sauced/insights/commit/989ebbaa97b7c8fa1498d329bd27c2c1e95df3b2))

## [1.68.0-beta.7](https://github.com/open-sauced/insights/compare/v1.68.0-beta.6...v1.68.0-beta.7) (2023-10-06)


### 🐛 Bug Fixes

* hide weird top nav for edit insight page ([#1809](https://github.com/open-sauced/insights/issues/1809)) ([f3da2a1](https://github.com/open-sauced/insights/commit/f3da2a1512e36900d1c9edceb490d893323b1f49))

## [1.68.0-beta.6](https://github.com/open-sauced/insights/compare/v1.68.0-beta.5...v1.68.0-beta.6) (2023-10-04)


### 🎨 Styles

* add w-full ([9b156d1](https://github.com/open-sauced/insights/commit/9b156d1c7e974924e8689be6dc2b8dd600443b64))
* remove unused style prop ([1fe65c0](https://github.com/open-sauced/insights/commit/1fe65c039ba6cf4f23bbb225ed257b77d0a03d1d))


### 🧑‍💻 Code Refactoring

* remove unused props in Search component ([783b1c9](https://github.com/open-sauced/insights/commit/783b1c9d957f4998f7bbb73fb7548bcd57118eee))


### 🐛 Bug Fixes

* add style prop to SearchProps ([16fbc82](https://github.com/open-sauced/insights/commit/16fbc82f3c72dde7d54359c61cf15e3c9563ff96))
* adjust style to fit urls ([55a6bbc](https://github.com/open-sauced/insights/commit/55a6bbcf799856477b80c0286507c0475867f4b3))
* Improve the input's width to accommodate full URL ([#1789](https://github.com/open-sauced/insights/issues/1789)) ([e37df4f](https://github.com/open-sauced/insights/commit/e37df4f8c5b52246d7c48f7e7c2c94bf22c227e5))

## [1.68.0-beta.5](https://github.com/open-sauced/insights/compare/v1.68.0-beta.4...v1.68.0-beta.5) (2023-10-03)


### 🍕 Features

* add timezone filters for list contributors ([#1747](https://github.com/open-sauced/insights/issues/1747)) ([674a588](https://github.com/open-sauced/insights/commit/674a58815886a836567bc6c3999ea9d0764e9a44))

## [1.68.0-beta.4](https://github.com/open-sauced/insights/compare/v1.68.0-beta.3...v1.68.0-beta.4) (2023-10-03)


### 🍕 Features

* add Treemap chart prototype ([#1569](https://github.com/open-sauced/insights/issues/1569)) ([f057de8](https://github.com/open-sauced/insights/commit/f057de8b59bbdcf7c6a8cecab859cdcd6ba1d121))

## [1.68.0-beta.3](https://github.com/open-sauced/insights/compare/v1.68.0-beta.2...v1.68.0-beta.3) (2023-10-03)


### 🍕 Features

* add prototype contributor activity charts ([#1594](https://github.com/open-sauced/insights/issues/1594)) ([379db6d](https://github.com/open-sauced/insights/commit/379db6dbe6d852da52ef333c7fc313817647f477))

## [1.68.0-beta.2](https://github.com/open-sauced/insights/compare/v1.68.0-beta.1...v1.68.0-beta.2) (2023-10-03)


### 🐛 Bug Fixes

* removed GitHub avatar when loading user profile avatars ([9b81371](https://github.com/open-sauced/insights/commit/9b81371bde8ce5a9838dec6d19a007aa964b072b))
* removed GitHub avatar when loading user profile avatars ([#1781](https://github.com/open-sauced/insights/issues/1781)) ([49ba38f](https://github.com/open-sauced/insights/commit/49ba38f44bd2c1bc9af949d73ddb3a1cfde9f20f))

## [1.68.0-beta.1](https://github.com/open-sauced/insights/compare/v1.67.0...v1.68.0-beta.1) (2023-10-02)


### 🍕 Features

* add form to user settings to apply coupon code ([#1771](https://github.com/open-sauced/insights/issues/1771)) ([504d7e2](https://github.com/open-sauced/insights/commit/504d7e2499a6b2a9dd5beaa560dd9ca7aa6af4c8))

## [1.67.0](https://github.com/open-sauced/insights/compare/v1.66.0...v1.67.0) (2023-10-02)


Expand Down
2 changes: 1 addition & 1 deletion components/atoms/Button/button.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ const Button = React.forwardRef<HTMLElement, ButtonsProps>(
fill="currentColor"
></path>
</svg>
{showLoadingText && <span>Loading...</span>}
{showLoadingText && <span className="text-white">Loading...</span>}
</div>
) : (
children
Expand Down
4 changes: 2 additions & 2 deletions components/atoms/NotificationsCard/notification-card.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { FaRegSmile, FaUserCircle } from "react-icons/fa";
import { getNotificationURL } from "lib/utils/get-notification-url";

interface NotificationCard {
type: "highlight_reaction" | "follow" | "collaboration";
type: "highlight_reaction" | "follow" | "connections";
message: string;
id: string;
}
Expand All @@ -14,7 +14,7 @@ const NotificationCard = ({ type, message, id }: NotificationCard) => {
const Icons = {
highlight_reaction: FaRegSmile,
follow: FaUserCircle,
collaboration: FaUserCircle,
connections: FaUserCircle,
};

const Icon = Icons[type];
Expand Down
28 changes: 28 additions & 0 deletions components/atoms/SVGIcon/svg-icon.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
import clsx from "clsx";
import React from "react";

interface IconProps {
IconImage: string;
className?: string;
alt?: string;
size?: number;
onClick?: (...args: any) => any;
}

const SVGIcon: React.FC<IconProps> = ({ onClick, className, IconImage, size = 16 }) => {
return (
<div className={clsx(`inline-flex`, className)} onClick={onClick}>
<svg>
<use
href={IconImage}
width={size}
height={size}
className="items-center justify-center"
style={{ stroke: "currentcolor", maxWidth: "100%", height: "auto" }}
/>
</svg>
</div>
);
};

export default SVGIcon;
2 changes: 1 addition & 1 deletion components/atoms/Search/search.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ const Search = ({
>
<FaSearch className="text-light-slate-9" fontSize={16} onClick={handleOnSearch} />
<input
className="w-max pl-2 placeholder:text-sm focus:outline-none placeholder:text-slate-400"
className="w-full pl-2 placeholder:text-sm focus:outline-none placeholder:text-slate-400"
autoFocus={autoFocus}
placeholder={placeholder}
name={name}
Expand Down
50 changes: 13 additions & 37 deletions components/atoms/Select/multi-select.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,7 @@ export type OptionKeys = Record<"value" | "label", string>;
interface MultiSelectProps {
options: OptionKeys[];
selected: OptionKeys[];
handleSelect: (value: OptionKeys["value"]) => void;
handleUnSelect: (option: OptionKeys["value"]) => void;
handleSelect: (value: OptionKeys) => void;
placeholder?: string;
inputPlaceholder?: string;
className?: string;
Expand All @@ -27,7 +26,6 @@ const MultiSelect = ({
handleSelect,
className,
placeholder,
handleUnSelect,
handleKeyDown,
inputPlaceholder,
}: MultiSelectProps) => {
Expand All @@ -37,28 +35,6 @@ const MultiSelect = ({
const [dummySelected, setDummySelected] = useState<OptionKeys[]>([]);

// For testing purposes, this component is meant to be stateless.
const dummyOptions = [
{ value: "1", label: "Option 1" },
{ value: "2", label: "Option 2" },
{ value: "3", label: "Option 3" },
{ value: "4", label: "Option 4" },
{ value: "5", label: "Option 5" },
{ value: "6", label: "Option 6" },
{ value: "7", label: "Option 7" },
{ value: "8", label: "Option 8" },
{ value: "9", label: "Option 9" },
{ value: "10", label: "Option 10" },
{ value: "11", label: "Option 11" },
{ value: "12", label: "Option 12" },
{ value: "13", label: "Option 13" },
{ value: "14", label: "Option 14" },
{ value: "15", label: "Option 15" },
{ value: "16", label: "Option 16" },
{ value: "17", label: "Option 17" },
{ value: "18", label: "Option 18" },
{ value: "19", label: "Option 19" },
{ value: "20", label: "Option 20" },
];

const toggleFramework = (option: OptionKeys) => {
const isOptionSelected = dummySelected.some((s) => s.value === option.value);
Expand All @@ -72,27 +48,27 @@ const MultiSelect = ({

return (
<Popover open={open} onOpenChange={(value) => setOpen(value)}>
<div className="max-w-xs min-w-[250px]">
<div className="min-w-[250px] max-w-[100px] ">
<PopoverTrigger
asChild
className="p-1.5 border rounded-md data-[state=open]:border-orange-500 max-w-xs min-w-[250px] "
className="p-1.5 border rounded-md bg-white data-[state=open]:border-orange-500 min-w-[250px] "
>
<button
aria-controls="select-menu-list"
role="combobox"
aria-expanded={open}
className="flex items-center justify-between text-foreground"
>
{dummySelected.length > 0 ? (
{selected.length > 0 ? (
<span className="truncate">
{dummySelected[0].label}
{dummySelected.length > 1 ? `, +${dummySelected.length - 1}` : null}
{selected[0].label}
{selected.length > 1 ? `, +${dummySelected.length - 1}` : null}
</span>
) : (
<span className="opacity-50">{placeholder ?? "Select Items"}</span>
)}

{dummySelected.length > 0 ? (
{selected.length > 0 ? (
<button
onClick={(e) => {
e.preventDefault();
Expand All @@ -107,7 +83,7 @@ const MultiSelect = ({
)}
</button>
</PopoverTrigger>
<PopoverContent className="!w-full !min-w-[250px] p-0">
<PopoverContent className="!w-full !min-w-[250px] bg-white p-0 max-w-sm">
<Command loop onKeyDown={handleKeyDown} className="w-full px-0 bg-transparent">
<CommandInput
ref={inputRef}
Expand All @@ -116,8 +92,8 @@ const MultiSelect = ({
onValueChange={setInputValue}
/>
<CommandGroup className="flex flex-col !px-0 overflow-scroll max-h-48">
{open && dummyOptions.length > 0
? dummyOptions.map((option) => (
{open && options.length > 0
? options.map((option) => (
<CommandItem
key={option.value}
onMouseDown={(e) => {
Expand All @@ -130,12 +106,12 @@ const MultiSelect = ({
}}
onClick={() => toggleFramework(option)}
className={clsx(
"!cursor-pointer flex justify-between items-center !px-1 rounded-md",
dummySelected.some((s) => s.value === option.value) && "bg-gray-100"
"!cursor-pointer flex justify-between items-center !px-1 rounded-md truncate break-words w-full",
selected.some((s) => s.value === option.value) && "bg-gray-100"
)}
>
{option.label}
{dummySelected.some((s) => s.value === option.value) && (
{selected.some((s) => s.value === option.value) && (
<IoCheckmarkSharp className="w-5 h-5 ml-2 text-sauced-orange shrink-0" />
)}
</CommandItem>
Expand Down
41 changes: 41 additions & 0 deletions components/atoms/Select/single-select.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
import React from "react";
import { RiArrowDownSLine } from "react-icons/ri";

import { truncateString } from "lib/utils/truncate-string";

import { Select, SelectContent, SelectItem, SelectTrigger, SelectValue } from "./select";

interface SingleSelectProps {
value?: string;
onValueChange: (value: string) => void;
placeholder?: string;
options: { label: string; value: string }[];
position?: "popper" | "item-aligned";
}

const SingleSelect = ({ placeholder, value, onValueChange, options, position }: SingleSelectProps) => {
return (
<Select value={value} onValueChange={(value) => onValueChange(value)}>
<SelectTrigger
className="bg-white min-w-[200px] w-full"
selectIcon={
<div className="flex items-center">
<RiArrowDownSLine size={20} className="" />
</div>
}
>
<SelectValue className="w-10 truncate" placeholder={placeholder ?? "Select time zone"} />
</SelectTrigger>

<SelectContent position={position ?? "item-aligned"} className="z-50 bg-white">
{options.map((option, index) => (
<SelectItem title={option.label} key={`timezone_${index}`} value={option.value}>
{truncateString(option.label, 30)}
</SelectItem>
))}
</SelectContent>
</Select>
);
};

export default SingleSelect;
2 changes: 1 addition & 1 deletion components/atoms/Toast/toast.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ const ToastViewport = React.forwardRef<
<ToastPrimitives.Viewport
ref={ref}
className={clsx(
"fixed z-50 top-24 md:top-14 flex max-h-screen w-full flex-col-reverse right-0 lg:right-4 sm:flex-col md:max-w-[420px]",
"fixed z-[100] top-24 md:top-14 flex max-h-screen w-full flex-col-reverse right-0 lg:right-4 sm:flex-col md:max-w-[420px]",
className
)}
{...props}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ const ComponentDateFilter = ({ setRangeFilter, defaultRange }: ComponentDateFilt
};

return (
<div className="flex items-center text-sm bg-white rounded-lg">
<div className="flex items-center text-sm bg-white rounded-lg shrink-0 w-max">
{dates.map((range, index) => (
<div
onClick={() => handleFilterClick(range)}
Expand Down
Loading

0 comments on commit 7ca4cc9

Please sign in to comment.