Skip to content

Commit

Permalink
release: 2024-07-19 (#1337)
Browse files Browse the repository at this point in the history
  • Loading branch information
kodiakhq[bot] authored Jul 19, 2024
2 parents ee20a26 + 07e99c1 commit e9ee27b
Show file tree
Hide file tree
Showing 15 changed files with 690 additions and 687 deletions.
20 changes: 10 additions & 10 deletions apps/app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
"with-env": "dotenv -e ../../.env --"
},
"dependencies": {
"@emotion/react": "11.11.4",
"@emotion/react": "11.12.0",
"@emotion/server": "11.11.0",
"@hookform/resolvers": "3.9.0",
"@mantine/carousel": "6.0.22",
Expand All @@ -47,19 +47,19 @@
"@opentelemetry/sdk-trace-node": "1.25.1",
"@opentelemetry/semantic-conventions": "1.25.1",
"@prisma/instrumentation": "5.17.0",
"@sentry/browser": "8.18.0",
"@sentry/nextjs": "8.18.0",
"@sentry/node": "8.18.0",
"@sentry/opentelemetry": "8.18.0",
"@sentry/profiling-node": "8.18.0",
"@sentry/browser": "8.19.0",
"@sentry/nextjs": "8.19.0",
"@sentry/node": "8.19.0",
"@sentry/opentelemetry": "8.19.0",
"@sentry/profiling-node": "8.19.0",
"@tanstack/react-query": "4.36.1",
"@tanstack/react-table": "8.19.3",
"@trpc/client": "10.45.2",
"@trpc/next": "10.45.2",
"@trpc/react-query": "10.45.2",
"@trpc/server": "10.45.2",
"@vercel/analytics": "1.3.1",
"@vercel/edge-config": "1.2.0",
"@vercel/edge-config": "1.2.1",
"@vercel/kv": "2.0.0",
"@vercel/speed-insights": "1.0.12",
"@weareinreach/analytics": "workspace:*",
Expand All @@ -72,11 +72,11 @@
"@weareinreach/util": "workspace:*",
"cookies-next": "4.2.1",
"crud-object-diff": "2.3.6",
"dayjs": "1.11.11",
"dayjs": "1.11.12",
"embla-carousel-autoplay": "7.1.0",
"embla-carousel-react": "7.1.0",
"flat": "6.0.1",
"i18next": "23.12.1",
"i18next": "23.12.2",
"i18next-browser-languagedetector": "8.0.0",
"i18next-chained-backend": "4.6.2",
"i18next-http-backend": "2.5.2",
Expand Down Expand Up @@ -132,7 +132,7 @@
"prettier": "3.3.3",
"trpc-panel": "1.3.4",
"trpc-playground": "1.0.4",
"type-fest": "4.22.0",
"type-fest": "4.22.1",
"typescript": "5.5.3",
"webpack-bundle-analyzer": "4.10.2"
},
Expand Down
6 changes: 3 additions & 3 deletions apps/web/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
},
"dependencies": {
"@crowdin/ota-client": "1.0.0",
"@emotion/react": "11.11.4",
"@emotion/react": "11.12.0",
"@emotion/server": "11.11.0",
"@mantine/carousel": "6.0.22",
"@mantine/core": "6.0.22",
Expand All @@ -25,9 +25,9 @@
"@mantine/nprogress": "6.0.22",
"@weareinreach/env": "workspace:*",
"@weareinreach/ui": "workspace:*",
"dayjs": "1.11.11",
"dayjs": "1.11.12",
"embla-carousel-react": "7.1.0",
"i18next": "23.12.1",
"i18next": "23.12.2",
"next": "14.2.5",
"react": "18.3.1",
"react-dom": "18.3.1",
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
"docker-compose": "0.24.8",
"dotenv": "16.4.5",
"dotenv-expand": "11.0.6",
"husky": "9.1.0",
"husky": "9.1.1",
"knip": "5.26.0",
"lint-staged": "15.2.7",
"prettier": "3.3.3",
Expand Down
2 changes: 1 addition & 1 deletion packages/analytics/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
"eslint": "8.57.0",
"next": "14.2.5",
"nextjs-google-analytics": "2.3.3",
"type-fest": "4.22.0",
"type-fest": "4.22.1",
"typescript": "5.5.3"
},
"peerDependencies": {
Expand Down
10 changes: 5 additions & 5 deletions packages/api/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,14 @@
"dependencies": {
"@googlemaps/google-maps-services-js": "3.4.0",
"@opentelemetry/api": "1.9.0",
"@sentry/nextjs": "8.18.0",
"@sentry/nextjs": "8.19.0",
"@tanstack/react-query": "4.36.1",
"@terraformer/wkt": "2.2.1",
"@trpc/client": "10.45.2",
"@trpc/next": "10.45.2",
"@trpc/react-query": "10.45.2",
"@trpc/server": "10.45.2",
"@vercel/edge-config": "1.2.0",
"@vercel/edge-config": "1.2.1",
"@vercel/kv": "2.0.0",
"@weareinreach/auth": "workspace:*",
"@weareinreach/crowdin": "workspace:*",
Expand Down Expand Up @@ -63,17 +63,17 @@
"@weareinreach/eslint-config": "workspace:*",
"dotenv-cli": "7.4.2",
"eslint": "8.57.0",
"i18next": "23.12.1",
"i18next": "23.12.2",
"inquirer-search-list": "1.2.6",
"just-pascal-case": "3.2.0",
"next": "14.2.5",
"prettier": "3.3.3",
"trpc-panel": "1.3.4",
"type-fest": "4.22.0",
"type-fest": "4.22.1",
"typescript": "5.5.3"
},
"peerDependencies": {
"i18next": "23.12.1",
"i18next": "23.12.2",
"next": "14.2.5"
}
}
4 changes: 3 additions & 1 deletion packages/api/router/location/query.forVisitCard.handler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,17 +29,19 @@ const forVisitCard = async ({ input }: TRPCHandlerParams<TForVisitCardSchema>) =
latitude: true,
longitude: true,
addressVisibility: true,
hours: { where: { active: true }, select: { id: true } },
},
})
if (!result) {
return null
}
const { attributes, ...rest } = result
const { attributes, hours, ...rest } = result
const transformed = {
...rest,
...formatAddressVisiblity(rest),
remote: attributes.find(({ attribute }) => attribute.tsKey === 'additional.offers-remote-services')
?.attribute,
hasHours: hours.length > 0,
}
return transformed
} catch (err) {
Expand Down
9 changes: 6 additions & 3 deletions packages/api/router/misc/query.hasContactInfo.handler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -74,8 +74,8 @@ const whereId = (
locations: { some: { location: { id: input, ...isPublic } } },
...isPublic,
},
socialMedia: { locations: { every: { location: { id: input, ...isPublic } } }, ...isPublic },
website: { locations: { every: { location: { id: input, ...isPublic } } }, ...isPublic },
socialMedia: { locations: { some: { location: { id: input, ...isPublic } } }, ...isPublic },
website: { locations: { some: { location: { id: input, ...isPublic } } }, ...isPublic },
}
}
case isIdFor('orgService', input): {
Expand Down Expand Up @@ -120,7 +120,10 @@ const hasContactInfo = async ({ input }: TRPCHandlerParams<THasContactInfoSchema
? prisma.orgWebsite.count({ where: whereId(input, isSingleLoc).website })
: 0,
])
return email + phone + socialMedia + website !== 0 // ? 'true' : 'false'

const totalCount = email + phone + socialMedia + website

return totalCount !== 0
} catch (error) {
return handleError(error)
}
Expand Down
2 changes: 1 addition & 1 deletion packages/auth/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@
"with-env": "dotenv -e ../../.env --"
},
"dependencies": {
"@aws-sdk/client-cognito-identity-provider": "3.614.0",
"@aws-sdk/client-cognito-identity-provider": "3.616.0",
"@next-auth/prisma-adapter": "1.0.7",
"@weareinreach/db": "workspace:*",
"@weareinreach/env": "workspace:*",
Expand Down
2 changes: 1 addition & 1 deletion packages/db/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@
"string-byte-length": "3.0.0",
"tiny-invariant": "1.3.3",
"tsx": "4.16.2",
"type-fest": "4.22.0",
"type-fest": "4.22.1",
"typescript": "5.5.3",
"xliff": "6.2.1",
"zod-prisma-types": "3.1.8",
Expand Down
3 changes: 1 addition & 2 deletions packages/ui/components/data-portal/AddressDrawer/schema.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,7 @@ export const FormSchema = z.object({
.partial(),
services: z.string().array(),
})
.partial()
.required({ addressVisibility: true }),
.partial(),
})
export type FormSchema = z.infer<typeof FormSchema>
export const schemaTransform = ({ id, data }: FormSchema) => ({
Expand Down
4 changes: 3 additions & 1 deletion packages/ui/components/sections/ContactSection/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,9 @@ export const ContactSection = ({ parentId, edit }: ContactSectionProps) => {
const { isMobile, isTablet } = useScreenSize()
const { data: hasContactInfo } = api.misc.hasContactInfo.useQuery(parentId)

if (!hasContactInfo && !edit) return null
if (!hasContactInfo && !edit) {
return null
}

const body = (
<Stack spacing={isMobile ? 32 : 40}>
Expand Down
3 changes: 3 additions & 0 deletions packages/ui/components/sections/VisitCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,9 @@ const VisitCardDisplay = ({ locationId }: VisitCardProps) => {
</Stack> */}
</Stack>
)
if (!formattedAddress && !data.hasHours) {
return null
}

return isTablet ? body : <Card>{body}</Card>
}
Expand Down
18 changes: 9 additions & 9 deletions packages/ui/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@
},
"devDependencies": {
"@chromatic-com/storybook": "1.6.1",
"@emotion/react": "11.11.4",
"@emotion/react": "11.12.0",
"@emotion/server": "11.11.0",
"@faker-js/faker": "8.4.1",
"@hookform/devtools": "4.3.1",
Expand Down Expand Up @@ -108,7 +108,7 @@
"@storybook/test-runner": "0.19.1",
"@storybook/theming": "8.2.4",
"@storybook/types": "8.2.4",
"@swc/core": "1.6.13",
"@swc/core": "1.7.0",
"@swc/helpers": "0.5.12",
"@tanstack/react-query": "4.36.1",
"@tanstack/react-query-devtools": "4.36.1",
Expand All @@ -131,19 +131,19 @@
"@welldone-software/why-did-you-render": "8.0.3",
"chromatic": "11.5.5",
"css-loader": "6.11.0",
"dayjs": "1.11.11",
"dayjs": "1.11.12",
"dotenv": "16.4.5",
"embla-carousel-react": "7.1.0",
"eslint": "8.57.0",
"i18next": "23.12.1",
"i18next": "23.12.2",
"i18next-browser-languagedetector": "8.0.0",
"i18next-hmr": "3.1.2",
"i18next-http-backend": "2.5.2",
"i18next-intervalplural-postprocessor": "3.0.0",
"luxon": "3.4.4",
"mantine-react-table": "1.3.4",
"merge-anything": "6.0.2",
"msw": "2.3.1",
"msw": "2.3.2",
"msw-storybook-addon": "2.0.3",
"next": "14.2.5",
"next-auth": "4.24.7",
Expand All @@ -169,13 +169,13 @@
"swc-loader": "0.2.6",
"tsconfig-paths-webpack-plugin": "4.1.0",
"tsx": "4.16.2",
"type-fest": "4.22.0",
"type-fest": "4.22.1",
"typescript": "5.5.3",
"webpack": "5.93.0",
"zod": "3.23.8"
},
"peerDependencies": {
"@emotion/react": "11.11.4",
"@emotion/react": "11.12.0",
"@emotion/server": "11.11.0",
"@hookform/error-message": "2.0.1",
"@hookform/resolvers": "3.9.0",
Expand All @@ -198,9 +198,9 @@
"@trpc/react-query": "10.45.2",
"@weareinreach/api": "*",
"@weareinreach/auth": "*",
"dayjs": "1.11.11",
"dayjs": "1.11.12",
"embla-carousel-react": "7.1.0",
"i18next": "23.12.1",
"i18next": "23.12.2",
"i18next-http-backend": "2.5.2",
"i18next-intervalplural-postprocessor": "3.0.0",
"luxon": "3.4.4",
Expand Down
2 changes: 1 addition & 1 deletion packages/util/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"with-env": "dotenv -e ../../.env --"
},
"dependencies": {
"@vercel/edge-config": "1.2.0",
"@vercel/edge-config": "1.2.1",
"luxon": "3.4.4",
"social-links": "1.14.0",
"superjson": "2.2.1",
Expand Down
Loading

1 comment on commit e9ee27b

@vercel
Copy link

@vercel vercel bot commented on e9ee27b Jul 19, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.