From 50103f3a885cee9eabdec78d49a43a5d121c4d8b Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Tue, 27 Feb 2024 18:55:20 +0000 Subject: [PATCH 01/21] chore(deps): bump es5-ext from 0.10.62 to 0.10.64 in /site Bumps [es5-ext](https://github.com/medikoo/es5-ext) from 0.10.62 to 0.10.64. - [Release notes](https://github.com/medikoo/es5-ext/releases) - [Changelog](https://github.com/medikoo/es5-ext/blob/main/CHANGELOG.md) - [Commits](https://github.com/medikoo/es5-ext/compare/v0.10.62...v0.10.64) --- updated-dependencies: - dependency-name: es5-ext dependency-type: indirect ... Signed-off-by: dependabot[bot] --- site/package-lock.json | 26 +++++++++++++++++++++++--- 1 file changed, 23 insertions(+), 3 deletions(-) diff --git a/site/package-lock.json b/site/package-lock.json index fba012131..61d23f902 100644 --- a/site/package-lock.json +++ b/site/package-lock.json @@ -7361,13 +7361,14 @@ } }, "node_modules/es5-ext": { - "version": "0.10.62", - "resolved": "https://registry.npmjs.org/es5-ext/-/es5-ext-0.10.62.tgz", - "integrity": "sha512-BHLqn0klhEpnOKSrzn/Xsz2UIW8j+cGmo9JLzr8BiUapV8hPL9+FliFqjwr9ngW7jWdnxv6eO+/LqyhJVqgrjA==", + "version": "0.10.64", + "resolved": "https://registry.npmjs.org/es5-ext/-/es5-ext-0.10.64.tgz", + "integrity": "sha512-p2snDhiLaXe6dahss1LddxqEm+SkuDvV8dnIQG0MWjyHpcMNfXKPE+/Cc0y+PhxJX3A4xGNeFCj5oc0BUh6deg==", "hasInstallScript": true, "dependencies": { "es6-iterator": "^2.0.3", "es6-symbol": "^3.1.3", + "esniff": "^2.0.1", "next-tick": "^1.1.0" }, "engines": { @@ -7870,6 +7871,25 @@ "node": ">= 4" } }, + "node_modules/esniff": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/esniff/-/esniff-2.0.1.tgz", + "integrity": "sha512-kTUIGKQ/mDPFoJ0oVfcmyJn4iBDRptjNVIzwIFR7tqWXdVI9xfA2RMwY/gbSpJG3lkdWNEjLap/NqVHZiJsdfg==", + "dependencies": { + "d": "^1.0.1", + "es5-ext": "^0.10.62", + "event-emitter": "^0.3.5", + "type": "^2.7.2" + }, + "engines": { + "node": ">=0.10" + } + }, + "node_modules/esniff/node_modules/type": { + "version": "2.7.2", + "resolved": "https://registry.npmjs.org/type/-/type-2.7.2.tgz", + "integrity": "sha512-dzlvlNlt6AXU7EBSfpAscydQ7gXB+pPGsPnfJnZpiNJBDj7IaJzQlBZYGdEi4R9HmPdBv2XmWJ6YUtoTa7lmCw==" + }, "node_modules/espree": { "version": "7.3.1", "resolved": "https://registry.npmjs.org/espree/-/espree-7.3.1.tgz", From 1cbef13aec1e4d86d0e0ee76948ccd86d890d491 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Sat, 16 Mar 2024 20:00:17 +0000 Subject: [PATCH 02/21] build(deps): bump follow-redirects from 1.15.3 to 1.15.6 in /site Bumps [follow-redirects](https://github.com/follow-redirects/follow-redirects) from 1.15.3 to 1.15.6. - [Release notes](https://github.com/follow-redirects/follow-redirects/releases) - [Commits](https://github.com/follow-redirects/follow-redirects/compare/v1.15.3...v1.15.6) --- updated-dependencies: - dependency-name: follow-redirects dependency-type: indirect ... Signed-off-by: dependabot[bot] --- site/package-lock.json | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/site/package-lock.json b/site/package-lock.json index fba012131..068ab6b4f 100644 --- a/site/package-lock.json +++ b/site/package-lock.json @@ -8399,9 +8399,9 @@ "integrity": "sha512-36yxDn5H7OFZQla0/jFJmbIKTdZAQHngCedGxiMmpNfEZM0sdEeT+WczLQrjK6D7o2aiyLYDnkw0R3JK0Qv1RQ==" }, "node_modules/follow-redirects": { - "version": "1.15.3", - "resolved": "https://registry.npmjs.org/follow-redirects/-/follow-redirects-1.15.3.tgz", - "integrity": "sha512-1VzOtuEM8pC9SFU1E+8KfTjZyMztRsgEfwQl44z8A25uy13jSzTj6dyK2Df52iV0vgHCfBwLhDWevLn95w5v6Q==", + "version": "1.15.6", + "resolved": "https://registry.npmjs.org/follow-redirects/-/follow-redirects-1.15.6.tgz", + "integrity": "sha512-wWN62YITEaOpSK584EZXJafH1AGpO8RVgElfkuXbTOrPX4fIfOyEpW/CsiNd8JdYrAoOvafRTOEnvsO++qCqFA==", "funding": [ { "type": "individual", From 2649d1dd75373f025925e0debb9696e5c46c5f71 Mon Sep 17 00:00:00 2001 From: captain-Akshay Date: Mon, 18 Mar 2024 13:42:13 +0530 Subject: [PATCH 03/21] feat(icon): fixed the icon used for feedback Signed-off-by: captain-Akshay --- src/custom/Feedback/FeedbackButton.tsx | 4 ++-- src/custom/Feedback/style.tsx | 4 +++- src/icons/Calender/CalenderIcon.tsx | 1 + src/icons/Feedback/FeedbackIcon.tsx | 21 +++++---------------- src/icons/Idea/IdeaIcon.tsx | 1 + 5 files changed, 12 insertions(+), 19 deletions(-) diff --git a/src/custom/Feedback/FeedbackButton.tsx b/src/custom/Feedback/FeedbackButton.tsx index f8c2b6661..7e8f35da6 100644 --- a/src/custom/Feedback/FeedbackButton.tsx +++ b/src/custom/Feedback/FeedbackButton.tsx @@ -8,7 +8,7 @@ import { QuestionIcon, SuccessIcon } from '../../icons'; -import { CULTURED, KEPPEL } from '../../theme'; +import { CULTURED } from '../../theme'; import { CustomTooltip } from '../CustomTooltip'; import { ModalCard } from '../ModalCard'; import { @@ -55,7 +55,7 @@ interface FeedbackDataItem { const feedbackData: FeedbackDataItem[] = [ { - icon: , + icon: , label: 'Issue', placeholder: 'I’m having an issue with...', isTextInput: true diff --git a/src/custom/Feedback/style.tsx b/src/custom/Feedback/style.tsx index 5a9e4bfe5..36d6484db 100644 --- a/src/custom/Feedback/style.tsx +++ b/src/custom/Feedback/style.tsx @@ -268,10 +268,12 @@ export const FeedbackOptionButton = styled(Button)(({ them ? SNOW_WHITE : SNOW_WHITE, fill: isOpen ? (theme.palette.mode === 'dark' ? CULTURED : DARK_PRIMARY_COLOR) : CULTURED, + stroke: isOpen ? SNOW_WHITE : KEPPEL, '&:hover': { color: theme.palette.mode === 'dark' ? SNOW_WHITE : BLACK, fill: theme.palette.mode === 'dark' ? CULTURED : DARK_PRIMARY_COLOR, - backgroundColor: WHITE + backgroundColor: WHITE, + stroke: SNOW_WHITE } })); diff --git a/src/icons/Calender/CalenderIcon.tsx b/src/icons/Calender/CalenderIcon.tsx index ca0cf3266..5b04635c6 100644 --- a/src/icons/Calender/CalenderIcon.tsx +++ b/src/icons/Calender/CalenderIcon.tsx @@ -10,6 +10,7 @@ const CalenderIcon: FC = ({ width, height, ...props }) => { version="1.1" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 19 24" + stroke="none" {...props} > diff --git a/src/icons/Feedback/FeedbackIcon.tsx b/src/icons/Feedback/FeedbackIcon.tsx index f62f91fb4..42f566ef3 100644 --- a/src/icons/Feedback/FeedbackIcon.tsx +++ b/src/icons/Feedback/FeedbackIcon.tsx @@ -21,23 +21,12 @@ const FeedbackIcon: FC = ({ fill={props.fill} {...props} > - - - + + ); }; diff --git a/src/icons/Idea/IdeaIcon.tsx b/src/icons/Idea/IdeaIcon.tsx index e1c92dfc0..a736cf1b6 100644 --- a/src/icons/Idea/IdeaIcon.tsx +++ b/src/icons/Idea/IdeaIcon.tsx @@ -10,6 +10,7 @@ const IdeaIcon: FC = ({ width = DEFAULT_WIDTH, height = DEFAULT_HEIGH version="1.1" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 15 24" + stroke="none" {...props} > From 6996b85ab9d1ec40c10ffff50461f89812ee6232 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Tue, 26 Mar 2024 06:24:51 +0000 Subject: [PATCH 04/21] build(deps): bump express from 4.18.2 to 4.19.2 in /site Bumps [express](https://github.com/expressjs/express) from 4.18.2 to 4.19.2. - [Release notes](https://github.com/expressjs/express/releases) - [Changelog](https://github.com/expressjs/express/blob/master/History.md) - [Commits](https://github.com/expressjs/express/compare/4.18.2...4.19.2) --- updated-dependencies: - dependency-name: express dependency-type: indirect ... Signed-off-by: dependabot[bot] --- site/package-lock.json | 55 ++++++++++++++++++++++++++++++++++++++---- 1 file changed, 50 insertions(+), 5 deletions(-) diff --git a/site/package-lock.json b/site/package-lock.json index 3c9ac8721..49f25d720 100644 --- a/site/package-lock.json +++ b/site/package-lock.json @@ -8033,16 +8033,16 @@ } }, "node_modules/express": { - "version": "4.18.2", - "resolved": "https://registry.npmjs.org/express/-/express-4.18.2.tgz", - "integrity": "sha512-5/PsL6iGPdfQ/lKM1UuielYgv3BUoJfz1aUwU9vHZ+J7gyvwdQXFEBIEIaxeGf0GIcreATNyBExtalisDbuMqQ==", + "version": "4.19.2", + "resolved": "https://registry.npmjs.org/express/-/express-4.19.2.tgz", + "integrity": "sha512-5T6nhjsT+EOMzuck8JjBHARTHfMht0POzlA60WV2pMD3gyXw2LZnZ+ueGdNxG+0calOJcWKbpFcuzLZ91YWq9Q==", "dependencies": { "accepts": "~1.3.8", "array-flatten": "1.1.1", - "body-parser": "1.20.1", + "body-parser": "1.20.2", "content-disposition": "0.5.4", "content-type": "~1.0.4", - "cookie": "0.5.0", + "cookie": "0.6.0", "cookie-signature": "1.0.6", "debug": "2.6.9", "depd": "2.0.0", @@ -8094,6 +8094,37 @@ "ms": "^2.1.1" } }, + "node_modules/express/node_modules/body-parser": { + "version": "1.20.2", + "resolved": "https://registry.npmjs.org/body-parser/-/body-parser-1.20.2.tgz", + "integrity": "sha512-ml9pReCu3M61kGlqoTm2umSXTlRTuGTx0bfYj+uIUKKYycG5NtSbeetV3faSU6R7ajOPw0g/J1PvK4qNy7s5bA==", + "dependencies": { + "bytes": "3.1.2", + "content-type": "~1.0.5", + "debug": "2.6.9", + "depd": "2.0.0", + "destroy": "1.2.0", + "http-errors": "2.0.0", + "iconv-lite": "0.4.24", + "on-finished": "2.4.1", + "qs": "6.11.0", + "raw-body": "2.5.2", + "type-is": "~1.6.18", + "unpipe": "1.0.0" + }, + "engines": { + "node": ">= 0.8", + "npm": "1.2.8000 || >= 1.4.16" + } + }, + "node_modules/express/node_modules/cookie": { + "version": "0.6.0", + "resolved": "https://registry.npmjs.org/cookie/-/cookie-0.6.0.tgz", + "integrity": "sha512-U71cyTamuh1CRNCfpGY6to28lxvNwPG4Guz/EVjgf3Jmzv0vlDp1atT9eS5dDjMYHucpHbWns6Lwf3BKz6svdw==", + "engines": { + "node": ">= 0.6" + } + }, "node_modules/express/node_modules/debug": { "version": "2.6.9", "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", @@ -8107,6 +8138,20 @@ "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", "integrity": "sha512-Tpp60P6IUJDTuOq/5Z8cdskzJujfwqfOTkrwIwj7IRISpnkJnT6SyJ4PCPnGMoFjC9ddhal5KVIYtAt97ix05A==" }, + "node_modules/express/node_modules/raw-body": { + "version": "2.5.2", + "resolved": "https://registry.npmjs.org/raw-body/-/raw-body-2.5.2.tgz", + "integrity": "sha512-8zGqypfENjCIqGhgXToC8aB2r7YrBX+AQAfIPs/Mlk+BtPTztOvTS01NRW/3Eh60J+a48lt8qsCzirQ6loCVfA==", + "dependencies": { + "bytes": "3.1.2", + "http-errors": "2.0.0", + "iconv-lite": "0.4.24", + "unpipe": "1.0.0" + }, + "engines": { + "node": ">= 0.8" + } + }, "node_modules/ext": { "version": "1.7.0", "resolved": "https://registry.npmjs.org/ext/-/ext-1.7.0.tgz", From 9a8304c3c119e5aee103927e54310d6db8a87a96 Mon Sep 17 00:00:00 2001 From: captain-Akshay Date: Fri, 29 Mar 2024 18:59:56 +0530 Subject: [PATCH 05/21] feat(button): action button Signed-off-by: captain-Akshay --- src/custom/ActionButton/ActionButton.tsx | 104 +++++++++++++++++++++++ src/custom/ActionButton/index.tsx | 3 + src/custom/index.tsx | 2 + 3 files changed, 109 insertions(+) create mode 100644 src/custom/ActionButton/ActionButton.tsx create mode 100644 src/custom/ActionButton/index.tsx diff --git a/src/custom/ActionButton/ActionButton.tsx b/src/custom/ActionButton/ActionButton.tsx new file mode 100644 index 000000000..ddb3b994a --- /dev/null +++ b/src/custom/ActionButton/ActionButton.tsx @@ -0,0 +1,104 @@ +import ArrowDropDownIcon from '@mui/icons-material/ArrowDropDown'; +import { + Button, + ButtonGroup, + ClickAwayListener, + Grow, + MenuItem, + MenuList, + Paper, + Popper +} from '@mui/material'; +import * as React from 'react'; + +interface Option { + icon: React.ReactNode; + label: string; + onClick: (event: React.MouseEvent, index: number) => void; +} + +interface ActionButtonProps { + defaultActionClick: () => void; + options: Option[]; +} + +export default function ActionButton({ + defaultActionClick, + options +}: ActionButtonProps): JSX.Element { + const [open, setOpen] = React.useState(false); + const anchorRef = React.useRef(null); + + const handleMenuItemClick = () => { + setOpen(false); + }; + + const handleToggle = (event: React.MouseEvent) => { + event.stopPropagation(); + setOpen((prevOpen) => !prevOpen); + }; + + const handleClose = (event: MouseEvent | TouchEvent) => { + if (anchorRef.current && anchorRef.current.contains(event.target as Node)) { + return; + } + + setOpen(false); + }; + + return ( + + + + + + + {({ TransitionProps, placement }) => ( + + + + + {options.map((option, index) => ( + { + handleMenuItemClick(); + option.onClick(event, index); + }} + > +
{option.icon}
+ {option.label} +
+ ))} +
+
+
+
+ )} +
+
+ ); +} diff --git a/src/custom/ActionButton/index.tsx b/src/custom/ActionButton/index.tsx new file mode 100644 index 000000000..b06dacf43 --- /dev/null +++ b/src/custom/ActionButton/index.tsx @@ -0,0 +1,3 @@ +import ActionButton from './ActionButton'; + +export { ActionButton }; diff --git a/src/custom/index.tsx b/src/custom/index.tsx index 4e7041f88..07f0ee2d0 100644 --- a/src/custom/index.tsx +++ b/src/custom/index.tsx @@ -1,3 +1,4 @@ +import { ActionButton } from './ActionButton'; import { ConnectionChip } from './ConnectionChip'; import { CustomColumn, @@ -33,6 +34,7 @@ import UniversalFilter, { UniversalFilterProps } from './UniversalFilter'; export { StyledChartDialog } from './ChartDialog'; export { StyledSearchBar } from './StyledSearchBar'; export { + ActionButton, ConnectionChip, CustomColumnVisibilityControl, CustomDialog, From f3539b1eeb610301680e80c91dc70129b681191e Mon Sep 17 00:00:00 2001 From: captain-Akshay Date: Fri, 29 Mar 2024 20:10:02 +0530 Subject: [PATCH 06/21] feat(button): action Signed-off-by: captain-Akshay --- src/base/Grow/Grow.tsx | 5 +++++ src/base/Grow/index.tsx | 1 + src/base/index.tsx | 1 + src/custom/ActionButton/ActionButton.tsx | 8 ++++---- src/icons/DropDownIcon/DropDownIcon.tsx | 23 +++++++++++++++++++++++ src/icons/DropDownIcon/index.ts | 1 + src/icons/index.ts | 1 + 7 files changed, 36 insertions(+), 4 deletions(-) create mode 100644 src/base/Grow/Grow.tsx create mode 100644 src/base/Grow/index.tsx create mode 100644 src/icons/DropDownIcon/DropDownIcon.tsx create mode 100644 src/icons/DropDownIcon/index.ts diff --git a/src/base/Grow/Grow.tsx b/src/base/Grow/Grow.tsx new file mode 100644 index 000000000..558f294bc --- /dev/null +++ b/src/base/Grow/Grow.tsx @@ -0,0 +1,5 @@ +import { Grow as MuiGrow, GrowProps as MuiGrowProps } from '@mui/material'; + +export function Grow(props: MuiGrowProps): JSX.Element { + return ; +} diff --git a/src/base/Grow/index.tsx b/src/base/Grow/index.tsx new file mode 100644 index 000000000..614294659 --- /dev/null +++ b/src/base/Grow/index.tsx @@ -0,0 +1 @@ +export { Grow } from './Grow'; diff --git a/src/base/index.tsx b/src/base/index.tsx index a210c5a12..327a04408 100644 --- a/src/base/index.tsx +++ b/src/base/index.tsx @@ -31,6 +31,7 @@ export * from './FormControl'; export * from './FormControlLabel'; export * from './FormGroup'; export * from './Grid'; +export * from './Grow'; export * from './IconButton'; export * from './Input'; export * from './InputLabel'; diff --git a/src/custom/ActionButton/ActionButton.tsx b/src/custom/ActionButton/ActionButton.tsx index ddb3b994a..f40f2e277 100644 --- a/src/custom/ActionButton/ActionButton.tsx +++ b/src/custom/ActionButton/ActionButton.tsx @@ -1,4 +1,4 @@ -import ArrowDropDownIcon from '@mui/icons-material/ArrowDropDown'; +import * as React from 'react'; import { Button, ButtonGroup, @@ -8,8 +8,8 @@ import { MenuList, Paper, Popper -} from '@mui/material'; -import * as React from 'react'; +} from '../../base'; +import DropDownIcon from '../../icons'; interface Option { icon: React.ReactNode; @@ -58,7 +58,7 @@ export default function ActionButton({ Action { + return ( + + + + ); +}; + +export default DropDownIcon; diff --git a/src/icons/DropDownIcon/index.ts b/src/icons/DropDownIcon/index.ts new file mode 100644 index 000000000..f05b787dc --- /dev/null +++ b/src/icons/DropDownIcon/index.ts @@ -0,0 +1 @@ +export { default as DropDownIcon } from './DropDownIcon'; diff --git a/src/icons/index.ts b/src/icons/index.ts index a29e2ba13..a659713bc 100644 --- a/src/icons/index.ts +++ b/src/icons/index.ts @@ -22,6 +22,7 @@ export * from './Delete'; export * from './Deploy'; export * from './Designer'; export * from './Detail'; +export * from './DropDownIcon'; export * from './Error'; export * from './Favorite'; export * from './Filter'; From 02e747ff0a11d00d6e9b81db1522616f1c2c181b Mon Sep 17 00:00:00 2001 From: mevrin Date: Mon, 1 Apr 2024 12:29:32 -0400 Subject: [PATCH 07/21] Fix broken link to community guide Signed-off-by: mevrin --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index c6f5e807f..405eacc63 100644 --- a/README.md +++ b/README.md @@ -72,7 +72,7 @@ attach sistent to your project: ## Join the Layer5 community! -Our projects are community-built and welcome collaboration. 👍 Be sure to see the Layer5 Community Welcome Guide for a tour of resources available to you and jump into our Slack! +Our projects are community-built and welcome collaboration. 👍 Be sure to see the Layer5 Community Welcome Guide for a tour of resources available to you and jump into our Slack!

MeshMates From 6c67d6a37613b6b7fd0f6061038b688a96a751ce Mon Sep 17 00:00:00 2001 From: Lee Calcote Date: Tue, 2 Apr 2024 14:54:10 -0500 Subject: [PATCH 08/21] [CI] Add issue labeler workflow Signed-off-by: Lee Calcote --- .github/label-commenter-config.yml | 55 +++++++++++++++++++++++++++ .github/workflows/label-commenter.yml | 29 ++++++++++++++ 2 files changed, 84 insertions(+) create mode 100644 .github/label-commenter-config.yml create mode 100644 .github/workflows/label-commenter.yml diff --git a/.github/label-commenter-config.yml b/.github/label-commenter-config.yml new file mode 100644 index 000000000..0a97e9b55 --- /dev/null +++ b/.github/label-commenter-config.yml @@ -0,0 +1,55 @@ +comment: + # header: "Please note the following requirement:" + footer: "\ + ---\n\n + >         Be sure to [join the community](https://slack.meshery.io), if you haven't yet and please leave a :star: [star on the project](../stargazers) :smile: + " + +labels: + - name: issue/design required + labeled: + issue: + body: This issue has been labeled with 'design-required'. Note that prior to commencing on implementation, a design specification needs to be created and reviewed for approval. See [Creating a Functional Specification](https://docs.google.com/document/d/1RP3IWLc-MiQS-QYasqCoVuCH7--G87p5ezE5f_nOzB8/edit?usp=sharing) to create a design spec. + action: open + - name: issue/remind + labeled: + issue: + body: Checking in... it has been awhile since we've heard from you on this issue. Are you still working on it? Please let us know and please don't hesitate to contact a [MeshMate](https://layer5.io/community/meshmates/) or any other [community member](https://layer5.io/community/members) for assistance. + action: open + pr: + body: Checking in... it has been awhile since we've heard from you on this issue. Are you still working on it? Please let us know and please don't hesitate to contact a [MeshMate](https://layer5.io/community/meshmates/) or any other [community member](https://layer5.io/community/members) for assistance. + action: open + - name: issue/dco + labeled: + issue: + body: "🚨 Alert! Git Police! We couldn’t help but notice that one or more of your commits is missing a sign-off. _A what?_ A commit sign-off (your email address).\n\n + To amend the commits in this PR with your signoff using the instructions provided in the DCO check. \n\n + To configure your dev environment to automatically signoff on your commits in the future, see [these instructions](https://github.com/meshery/meshery/blob/master/CONTRIBUTING.md#signing-off-on-commits-developer-certificate-of-origin)." + action: open + pr: + body: "🚨 Alert! Git Police! We couldn’t help but notice that one or more of your commits is missing a sign-off. _A what?_ A commit sign-off (your email address).\n\n + To amend the commits in this PR with your signoff using the instructions provided in the DCO check. \n\n + To configure your dev environment to automatically signoff on your commits in the future, see [these instructions](https://github.com/meshery/meshery/blob/master/CONTRIBUTING.md#signing-off-on-commits-developer-certificate-of-origin)." + action: open + - name: component/ui + labeled: + issue: + body: This issue has been labeled with 'component/ui'. 🧰 Here are docs on [Contributing to Meshery UI](https://docs.meshery.io/project/contributing/contributing-ui). 🎨 Here is the [Meshery UI Figma File](https://www.figma.com/file/SMP3zxOjZztdOLtgN4dS2W/Meshery-UI?node-id=4%3A0) File. Lastly, here are docs on [Contributing to Meshery's End-to-End Tests Using Cypress](https://docs.meshery.io/project/contributing/contributing-cypress). + action: open + pr: + body: This PR has been labeled with 'component/ui'. 🧰 Here are docs on [Contributing to Meshery UI](https://docs.meshery.io/project/contributing/contributing-ui). 🎨 Here is the [Meshery UI Figma File](https://www.figma.com/file/SMP3zxOjZztdOLtgN4dS2W/Meshery-UI?node-id=4%3A0) File. Lastly, here are docs on [Contributing to Meshery's End-to-End Tests Using Cypress](https://docs.meshery.io/project/contributing/contributing-cypress) + action: open + - name: component/mesheryctl + labeled: + issue: + body: This issue has been labeled with 'component/mesheryctl'. Note that after making changes you need to update it in the [mesheryctl command tracker](https://docs.google.com/spreadsheets/d/1q63sIGAuCnIeDs8PeM-0BAkNj8BBgPUXhLbe1Y-318o/edit#gid=0) spreadsheet. + action: open + pr: + body: This PR has been labeled with 'component/mesheryctl'. Note that after making changes you need to update it in the [mesheryctl command tracker](https://docs.google.com/spreadsheets/d/1q63sIGAuCnIeDs8PeM-0BAkNj8BBgPUXhLbe1Y-318o/edit#gid=0) spreadsheet. + action: open + # pr: + # body: Hi, please note that this issue will need an approved design specification before implementation proceeds. See [Creating a Functional Specification](https://docs.google.com/document/d/1RP3IWLc-MiQS-QYasqCoVuCH7--G87p5ezE5f_nOzB8/edit?usp=sharing) to create a design spec. + # action: open + + + diff --git a/.github/workflows/label-commenter.yml b/.github/workflows/label-commenter.yml new file mode 100644 index 000000000..2ad4e1cce --- /dev/null +++ b/.github/workflows/label-commenter.yml @@ -0,0 +1,29 @@ +name: Label Commenter + +on: + issues: + types: + - labeled + + pull_request_target: + types: + - labeled + +permissions: + contents: read + issues: write + pull-requests: write + +jobs: + comment: + runs-on: ubuntu-22.04 + steps: + - name: Checkout repo 🛎️ + uses: actions/checkout@master + with: + ref: master # Set your default branch + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + - name: Label Commenter + uses: peaceiris/actions-label-commenter@v1.10.0 + From 6b39030d41ab3c35c96de36ec24e8b21317ed808 Mon Sep 17 00:00:00 2001 From: Sudhanshu Dasgupta Date: Wed, 3 Apr 2024 18:37:19 +0530 Subject: [PATCH 09/21] fix(link): link of import design Signed-off-by: Sudhanshu Dasgupta --- src/schemas/importDesign/schema.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/schemas/importDesign/schema.tsx b/src/schemas/importDesign/schema.tsx index 98d1b27fb..1fd277339 100644 --- a/src/schemas/importDesign/schema.tsx +++ b/src/schemas/importDesign/schema.tsx @@ -15,7 +15,7 @@ const importDesignSchema = { default: 'Meshery Design', 'x-rjsf-grid-area': '6', description: - "Select the type of design you are uploading. The 'Design Type' determines the format, structure, and content of the file you are uploading. Choose the appropriate design type that matches the nature of your file. Checkout https://docs.meshery.io/guides/meshery-design to learn more about designs" + "Select the type of design you are uploading. The 'Design Type' determines the format, structure, and content of the file you are uploading. Choose the appropriate design type that matches the nature of your file. Checkout https://docs.meshery.io/guides/configuration-management/creating-a-meshery-design to learn more about designs" } }, allOf: [ From 32f988ec6ff84df667a1794713858879efaf69f8 Mon Sep 17 00:00:00 2001 From: captain-Akshay Date: Sat, 6 Apr 2024 13:00:36 +0530 Subject: [PATCH 10/21] feat(button): feedbackbutton & action button Signed-off-by: captain-Akshay --- src/custom/ActionButton/ActionButton.tsx | 71 ++++++++++-------------- src/custom/Feedback/FeedbackButton.tsx | 19 ++++--- src/icons/DropDownIcon/DropDownIcon.tsx | 2 +- 3 files changed, 39 insertions(+), 53 deletions(-) diff --git a/src/custom/ActionButton/ActionButton.tsx b/src/custom/ActionButton/ActionButton.tsx index f40f2e277..86937c6ac 100644 --- a/src/custom/ActionButton/ActionButton.tsx +++ b/src/custom/ActionButton/ActionButton.tsx @@ -3,14 +3,12 @@ import { Button, ButtonGroup, ClickAwayListener, - Grow, MenuItem, MenuList, Paper, Popper } from '../../base'; -import DropDownIcon from '../../icons'; - +import { DropDownIcon } from '../../icons'; interface Option { icon: React.ReactNode; label: string; @@ -20,29 +18,28 @@ interface Option { interface ActionButtonProps { defaultActionClick: () => void; options: Option[]; + label: string; } export default function ActionButton({ defaultActionClick, - options + options, + label }: ActionButtonProps): JSX.Element { const [open, setOpen] = React.useState(false); - const anchorRef = React.useRef(null); - + const [anchorEl, setAnchorEl] = React.useState(null); const handleMenuItemClick = () => { setOpen(false); }; const handleToggle = (event: React.MouseEvent) => { event.stopPropagation(); + setAnchorEl(event.currentTarget); setOpen((prevOpen) => !prevOpen); }; - const handleClose = (event: MouseEvent | TouchEvent) => { - if (anchorRef.current && anchorRef.current.contains(event.target as Node)) { - return; - } - + const handleClose = () => { + setAnchorEl(null); setOpen(false); }; @@ -51,11 +48,10 @@ export default function ActionButton({