diff --git a/frontend/src/components/basic/popups/GlobPatternExamples.tsx b/frontend/src/components/basic/popups/GlobPatternExamples.tsx new file mode 100644 index 000000000..7939804f0 --- /dev/null +++ b/frontend/src/components/basic/popups/GlobPatternExamples.tsx @@ -0,0 +1,46 @@ +import { useState } from "react"; +import { faInfo } from "@fortawesome/free-solid-svg-icons"; +import { FontAwesomeIcon } from "@fortawesome/react-fontawesome"; + +import { Tooltip } from "@app/components/v2/Tooltip"; + +const GlobPatternExamples = () => { + const [showTip, setShowTip] = useState(false); + + return ( + +

Here are some examples of glob patterns:

+
+
  • + / - Matches all files and directories in the + current directory +
  • +
  • + **/* - Matches all files and directories in the + current directory and its subdirectories +
  • +
  • + {"/{dir1,dir2}"} - Matches all files and + directories in dir1 and dir2 +
  • +
    + + } + position="right" + className="text-xs" + > +
    setShowTip(true)} + > + +
    +
    + ); +}; + +export default GlobPatternExamples; diff --git a/frontend/src/components/v2/Table/Table.tsx b/frontend/src/components/v2/Table/Table.tsx index 82cfffd21..0880b3362 100644 --- a/frontend/src/components/v2/Table/Table.tsx +++ b/frontend/src/components/v2/Table/Table.tsx @@ -79,7 +79,7 @@ export const Tr = ({ }: TrProps): JSX.Element => ( ) : (
    -
    +
    @@ -324,7 +325,12 @@ export const SecretDropzone = ({ )} /> - + } + >
    Secrets
    -
    +
    )} -
    +
    {isSecretsLoading && Array.apply(0, Array(2)).map((_x, i) => (
    -
    -
    {title}
    +
    +
    {title}
    {subtitle}
    @@ -130,12 +131,19 @@ export const MultiEnvProjectPermission = ({ animate={{ height: isCustom ? "auto" : 0 }} className="overflow-hidden" > - + + diff --git a/frontend/src/views/Project/MembersPage/components/ProjectRoleListTab/components/ProjectRoleModifySection/ProjectRoleModifySection.tsx b/frontend/src/views/Project/MembersPage/components/ProjectRoleListTab/components/ProjectRoleModifySection/ProjectRoleModifySection.tsx index 7e39e3450..b85c1e9fb 100644 --- a/frontend/src/views/Project/MembersPage/components/ProjectRoleListTab/components/ProjectRoleModifySection/ProjectRoleModifySection.tsx +++ b/frontend/src/views/Project/MembersPage/components/ProjectRoleListTab/components/ProjectRoleModifySection/ProjectRoleModifySection.tsx @@ -169,7 +169,7 @@ export const ProjectRoleModifySection = ({ role, onGoBack }: Props) => { return (
    -
    +

    {isNewRole ? "New" : "Edit"} Role

    @@ -211,7 +211,7 @@ export const ProjectRoleModifySection = ({ role, onGoBack }: Props) => { > -
    +

    Add Permission

    @@ -255,7 +255,7 @@ export const ProjectRoleModifySection = ({ role, onGoBack }: Props) => { />
    -
    +
    - } - position="right" - className="text-xs" - > -
    setShowTip(true)} - > - -
    - - } + icon={} isRequired isError={Boolean(errors?.secretPath)} errorText={errors?.secretPath?.message}
    - Secret Path +
    + Secret Path + + + +
    +
    View Create Modify