Skip to content

Commit 3730229

Browse files
authored
Merge pull request #662 from rowyio/rc
v2.4.0
2 parents b934668 + 09bdbb0 commit 3730229

File tree

84 files changed

+2495
-2153
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

84 files changed

+2495
-2153
lines changed

package.json

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
2-
"name": "Rowy",
3-
"version": "2.3.2",
2+
"name": "rowy",
3+
"version": "2.4.0",
44
"homepage": "https://rowy.io",
55
"repository": {
66
"type": "git",
@@ -15,10 +15,10 @@
1515
"@hookform/resolvers": "^2.8.5",
1616
"@mdi/js": "^6.5.95",
1717
"@monaco-editor/react": "^4.3.1",
18-
"@mui/icons-material": "^5.4.1",
19-
"@mui/lab": "^5.0.0-alpha.68",
20-
"@mui/material": "^5.4.1",
21-
"@mui/styles": "^5.4.1",
18+
"@mui/icons-material": "^5.4.4",
19+
"@mui/lab": "^5.0.0-alpha.71",
20+
"@mui/material": "^5.4.4",
21+
"@mui/styles": "^5.4.4",
2222
"@rowy/form-builder": "^0.5.3",
2323
"@rowy/multiselect": "^0.2.3",
2424
"@tinymce/tinymce-react": "^3.12.6",
@@ -43,6 +43,7 @@
4343
"notistack": "^2.0.2",
4444
"pb-util": "^1.0.1",
4545
"query-string": "^6.8.3",
46+
"quicktype-core": "^6.0.70",
4647
"react": "^17.0.2",
4748
"react-beautiful-dnd": "^13.0.0",
4849
"react-color-palette": "^6.1.0",

src/App.tsx

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ import ErrorBoundary from "@src/components/ErrorBoundary";
1212
import Loading from "@src/components/Loading";
1313
import Navigation from "@src/components/Navigation";
1414
import Logo from "@src/assets/Logo";
15+
import RowyRunModal from "@src/components/RowyRunModal";
1516

1617
import SwrProvider from "@src/contexts/SwrContext";
1718
import ConfirmationProvider from "@src/components/ConfirmationDialog/Provider";
@@ -24,7 +25,6 @@ import routes from "@src/constants/routes";
2425
import AuthPage from "@src/pages/Auth";
2526
import SignOutPage from "@src/pages/Auth/SignOut";
2627
import SignUpPage from "@src/pages/Auth/SignUp";
27-
import DeployPage from "@src/pages/Deploy";
2828
import TestPage from "@src/pages/Test";
2929
import RowyRunTestPage from "@src/pages/RowyRunTest";
3030
import PageNotFound from "@src/pages/PageNotFound";
@@ -65,6 +65,7 @@ export default function App() {
6565
<ConfirmationProvider>
6666
<SnackLogProvider>
6767
<CustomBrowserRouter>
68+
<RowyRunModal />
6869
<Suspense fallback={<Loading fullScreen />}>
6970
<Switch>
7071
<Route
@@ -97,11 +98,6 @@ export default function App() {
9798
path={routes.setup}
9899
render={() => <SetupPage />}
99100
/>
100-
<Route
101-
exact
102-
path={routes.deploy}
103-
render={() => <DeployPage />}
104-
/>
105101

106102
<Route
107103
exact

src/assets/LogoRowyRun.tsx

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
import { SVGProps } from "react";
2+
import { useTheme } from "@mui/material";
3+
4+
export interface ILogoRowyRunProps extends SVGProps<SVGSVGElement> {
5+
size?: number;
6+
}
7+
8+
export default function LogoRowyRun({
9+
size = 1.5,
10+
...props
11+
}: ILogoRowyRunProps) {
12+
const theme = useTheme();
13+
14+
return (
15+
<svg
16+
width={Math.round(108 * size)}
17+
height={Math.round(26 * size)}
18+
viewBox="0 0 108 26"
19+
xmlns="http://www.w3.org/2000/svg"
20+
aria-labelledby="rowy-run-logo-title"
21+
role="img"
22+
{...props}
23+
>
24+
<title id="rowy-run-logo-title">Rowy Run</title>
25+
26+
<path
27+
fill-rule="evenodd"
28+
clip-rule="evenodd"
29+
d="M32 7.75a6.25 6.25 0 1 1 0 12.5 6.25 6.25 0 0 1 0-12.5Zm0 2a4.25 4.25 0 1 0 0 8.5 4.25 4.25 0 0 0 0-8.5ZM20 20V8h6v2h-4v10h-2Zm24 0 3-9 3 9h2l4-12 5 11.5-2 4.5h2l7-16h-2l-4 9-4-9h-4l-3 9-3-9h-2l-3 9-3-9h-2l4 12h2Z"
30+
fill={theme.palette.text.primary}
31+
/>
32+
<path
33+
fill-rule="evenodd"
34+
clip-rule="evenodd"
35+
d="M0 8v10a3 3 0 1 0 6 0v-7h7a3 3 0 1 0 0-6H8a2.997 2.997 0 0 0-2.5 1.341A3 3 0 0 0 0 8Zm10-2H8a2 2 0 0 0-1.995 1.85L6 8v2h4V6Zm-5 4V8a2 2 0 0 0-1.85-1.995L3 6a2 2 0 0 0-1.995 1.85L1 8v2h4Zm0 1H1v4h4v-4Zm-4 5v2a2 2 0 0 0 1.85 1.994L3 20a2 2 0 0 0 1.995-1.85L5 18v-2H1ZM11.001 6H13l.15.005A2 2 0 0 1 15 8l-.005.15A2 2 0 0 1 13 10h-1.999V6Z"
36+
fill={theme.palette.primary.main}
37+
/>
38+
<path
39+
d="M73.25 20h1.825v-8.375c.775-1.475 2.125-2.35 3.2-2.35.425 0 .925.075 1.35.225V7.775c-.275-.1-.725-.175-1.225-.175-1.25 0-2.65.85-3.325 2.175V7.85H73.25V20Zm17.65 0h1.85V7.85h-1.824L90.9 16.3c-.75 1.35-2.25 2.175-3.875 2.175-2.125 0-3.55-1.525-3.55-3.875V7.85H81.65v7c0 3.275 2 5.4 5 5.4 1.775 0 3.45-.825 4.25-2.175V20Zm7.007-12.15h-1.825V20h1.825v-8.475c.75-1.325 2.275-2.15 3.875-2.15 2.125 0 3.55 1.525 3.55 3.875V20h1.825v-7c0-3.275-2-5.4-5-5.4-1.775 0-3.45.825-4.25 2.15v-1.9Z"
40+
fill={theme.palette.primary.main}
41+
/>
42+
</svg>
43+
);
44+
}

src/assets/logo-sticker.svg

Lines changed: 0 additions & 35 deletions
This file was deleted.

src/atoms/RowyRunModal.ts

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
import { atom, useAtom } from "jotai";
2+
3+
export const rowyRunModalAtom = atom({ open: false, feature: "", version: "" });
4+
5+
export const useRowyRunModal = () => {
6+
const [, setOpen] = useAtom(rowyRunModalAtom);
7+
8+
return (feature: string = "", version: string = "") =>
9+
setOpen({ open: true, feature, version });
10+
};

src/components/CodeEditor/CodeEditorHelper.tsx

Lines changed: 59 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
1-
import { Stack, Typography, Grid, Tooltip, Button } from "@mui/material";
2-
import InlineOpenInNewIcon from "@src/components/InlineOpenInNewIcon";
1+
import { Stack, Typography, Grid, Tooltip, IconButton } from "@mui/material";
2+
import SecretsIcon from "@mui/icons-material/VpnKeyOutlined";
3+
import FunctionsIcon from "@mui/icons-material/CloudOutlined";
4+
import DocsIcon from "@mui/icons-material/DescriptionOutlined";
5+
6+
import { useAppContext } from "@src/contexts/AppContext";
37

48
export interface ICodeEditorHelperProps {
59
docLink: string;
@@ -13,6 +17,7 @@ export default function CodeEditorHelper({
1317
docLink,
1418
additionalVariables,
1519
}: ICodeEditorHelperProps) {
20+
const { projectId } = useAppContext();
1621
const availableVariables = [
1722
{
1823
key: "row",
@@ -35,23 +40,29 @@ export default function CodeEditorHelper({
3540
description: `firebase Storage can be accessed through this, storage.bucket() returns default storage bucket of the firebase project.`,
3641
},
3742
{
38-
key: "utilFns",
39-
description: `utilFns provides a set of functions that are commonly used, such as easy access to GCP Secret Manager`,
43+
key: "rowy",
44+
description: `rowy provides a set of functions that are commonly used, such as easy access to GCP Secret Manager`,
4045
},
4146
];
4247

4348
return (
4449
<Stack
4550
direction="row"
46-
alignItems="baseline"
51+
alignItems="flex-start"
52+
justifyItems="space-between"
53+
spacing={1}
4754
justifyContent="space-between"
4855
sx={{ my: 1 }}
4956
>
50-
<Typography variant="body2" color="textSecondary" sx={{ mr: 0.5 }}>
57+
<Typography variant="body2" color="textSecondary">
5158
Available:
5259
</Typography>
5360

54-
<Grid container spacing={1}>
61+
<Grid
62+
container
63+
spacing={1}
64+
style={{ flexGrow: 1, marginTop: -8, marginLeft: 0 }}
65+
>
5566
{availableVariables.concat(additionalVariables ?? []).map((v) => (
5667
<Grid item key={v.key}>
5768
<Tooltip title={v.description}>
@@ -61,17 +72,48 @@ export default function CodeEditorHelper({
6172
))}
6273
</Grid>
6374

64-
<Button
65-
size="small"
66-
color="primary"
67-
target="_blank"
68-
rel="noopener noreferrer"
69-
href={docLink}
70-
style={{ flexShrink: 0 }}
75+
<Stack
76+
direction="row"
77+
alignItems="center"
78+
spacing={1}
79+
style={{ marginTop: -4 }}
7180
>
72-
Examples & docs
73-
<InlineOpenInNewIcon />
74-
</Button>
81+
<Tooltip title="Secret Manager&nbsp;↗">
82+
<IconButton
83+
size="small"
84+
color="primary"
85+
target="_blank"
86+
rel="noopener noreferrer"
87+
href={`https://console.cloud.google.com/security/secret-manager?project=${projectId}`}
88+
>
89+
<SecretsIcon fontSize="small" />
90+
</IconButton>
91+
</Tooltip>
92+
93+
<Tooltip title="Configure Cloud Function&nbsp;↗">
94+
<IconButton
95+
size="small"
96+
color="primary"
97+
target="_blank"
98+
rel="noopener noreferrer"
99+
href={`https://console.cloud.google.com/functions/list?project=${projectId}`}
100+
>
101+
<FunctionsIcon fontSize="small" />
102+
</IconButton>
103+
</Tooltip>
104+
105+
<Tooltip title="Examples & documentation&nbsp;↗">
106+
<IconButton
107+
size="small"
108+
color="primary"
109+
target="_blank"
110+
rel="noopener noreferrer"
111+
href={docLink}
112+
>
113+
<DocsIcon fontSize="small" />
114+
</IconButton>
115+
</Tooltip>
116+
</Stack>
75117
</Stack>
76118
);
77119
}

src/components/CodeEditor/extensions.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ type ExtensionContext = {
2424
requiredFields: string[];
2525
extensionBody: any;
2626
};
27-
utilFns: any;
27+
RULES_UTILS: any;
2828
};
2929

3030
// extension body definition

0 commit comments

Comments
 (0)