Skip to content

Commit

Permalink
App: ⬆ Update Redwood to v7.4.1
Browse files Browse the repository at this point in the history
  • Loading branch information
chuckcarpenter committed Apr 15, 2024
1 parent 81e679b commit 423fed7
Show file tree
Hide file tree
Showing 8 changed files with 414 additions and 483 deletions.
Binary file modified app/.yarn/install-state.gz
Binary file not shown.
18 changes: 9 additions & 9 deletions app/api/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,20 +8,20 @@
"@honeybadger-io/js": "^6.8.3",
"@paralleldrive/cuid2": "^2.2.2",
"@react-email/components": "^0.0.14",
"@redwoodjs/api": "7.3.2",
"@redwoodjs/api-server": "7.3.2",
"@redwoodjs/auth-dbauth-api": "7.3.2",
"@redwoodjs/graphql-server": "7.3.2",
"@redwoodjs/mailer-core": "7.3.2",
"@redwoodjs/mailer-handler-nodemailer": "7.3.2",
"@redwoodjs/mailer-renderer-react-email": "7.3.2",
"@redwoodjs/api": "7.4.1",
"@redwoodjs/api-server": "7.4.1",
"@redwoodjs/auth-dbauth-api": "7.4.1",
"@redwoodjs/graphql-server": "7.4.1",
"@redwoodjs/mailer-core": "7.4.1",
"@redwoodjs/mailer-handler-nodemailer": "7.4.1",
"@redwoodjs/mailer-renderer-react-email": "7.4.1",
"@sendgrid/mail": "^8.1.0",
"@simplewebauthn/server": "^7",
"posthog-node": "^3.6.2",
"stream": "^0.0.2"
},
"devDependencies": {
"@redwoodjs/mailer-handler-in-memory": "7.3.2",
"@redwoodjs/mailer-handler-studio": "7.3.2"
"@redwoodjs/mailer-handler-in-memory": "7.4.1",
"@redwoodjs/mailer-handler-studio": "7.4.1"
}
}
8 changes: 4 additions & 4 deletions app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@
]
},
"devDependencies": {
"@redwoodjs/auth-dbauth-setup": "7.3.2",
"@redwoodjs/cli-storybook": "7.3.2",
"@redwoodjs/core": "7.3.2",
"@redwoodjs/realtime": "7.3.2",
"@redwoodjs/auth-dbauth-setup": "7.4.1",
"@redwoodjs/cli-storybook": "7.4.1",
"@redwoodjs/core": "7.4.1",
"@redwoodjs/realtime": "7.4.1",
"@redwoodjs/studio": "11",
"prettier-plugin-tailwindcss": "0.4.1"
},
Expand Down
12 changes: 6 additions & 6 deletions app/web/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,11 @@
"@headlessui/react": "^2.0.0-alpha.4",
"@heroicons/react": "^2.1.1",
"@paralleldrive/cuid2": "^2.2.2",
"@redwoodjs/auth-dbauth-web": "7.3.2",
"@redwoodjs/forms": "7.3.2",
"@redwoodjs/router": "7.3.2",
"@redwoodjs/web": "7.3.2",
"@redwoodjs/web-server": "7.3.2",
"@redwoodjs/auth-dbauth-web": "7.4.1",
"@redwoodjs/forms": "7.4.1",
"@redwoodjs/router": "7.4.1",
"@redwoodjs/web": "7.4.1",
"@redwoodjs/web-server": "7.4.1",
"@simplewebauthn/browser": "^7",
"@tremor/react": "^3.14.0",
"clsx": "^2.1.0",
Expand All @@ -30,7 +30,7 @@
"react-syntax-highlighter": "^15.5.0"
},
"devDependencies": {
"@redwoodjs/vite": "7.3.2",
"@redwoodjs/vite": "7.4.1",
"@tailwindcss/typography": "^0.5.10",
"@types/react": "18.2.37",
"@types/react-dom": "18.2.15",
Expand Down
5 changes: 4 additions & 1 deletion app/web/src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,10 @@ const App = () => (
<FatalErrorBoundary page={FatalErrorPage}>
<RedwoodProvider titleTemplate="%PageTitle | %AppTitle">
<AuthProvider>
<RedwoodApolloProvider useAuth={useAuth}>
<RedwoodApolloProvider graphQLClientConfig={{
connectToDevTools: process.env.NODE_ENV === 'development' ? true : false,
queryDeduplication: true,
}} useAuth={useAuth}>
<PostHogProvider client={posthog}>
<Routes />
</PostHogProvider>
Expand Down
23 changes: 14 additions & 9 deletions app/web/src/components/DemoDialog/DemoDialog.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,9 @@ const SEND_DEMO_REQUEST = gql`

const DemoDialog = () => {
const formMethods = useForm();
const [requestDemo] = useLazyQuery(SEND_DEMO_REQUEST);
const [requestDemo] = useLazyQuery(SEND_DEMO_REQUEST, {
fetchPolicy: 'no-cache',
});

const closeDialog = () => {
const dialog = document.querySelector('dialog');
Expand All @@ -30,15 +32,18 @@ const DemoDialog = () => {
};

const onSubmit = async (data: Record<string, string>) => {
const input = {
description: data.description,
from: data.email,
name: data.name,
subject: 'Shepherd Demo Request',
title: data.title,
};
const response = await requestDemo({ variables: { input } });
// close the dialog and send the request regardless of response
closeDialog();

const response = await requestDemo({ variables: { input: {
description: data.description,
from: data.email,
name: data.name,
subject: 'Shepherd Demo Request',
title: data.title,
}
}
});
if (response.error) {
toast(response.error.message);
} else {
Expand Down
3 changes: 3 additions & 0 deletions app/web/src/pages/SignUpContactPage/SignUpContactPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,9 @@ const SignupPageContact = () => {
toastOptions={{
className: 'rounded-none shadow-default border-2 border-black',
duration: 6000,
style: {
borderRadius: '0px',
},
}}
/>

Expand Down
Loading

0 comments on commit 423fed7

Please sign in to comment.