Skip to content

Commit ded422a

Browse files
committed
Merge branch 'main' into 176-full-color-demo
2 parents 9607f4c + 75b2dc8 commit ded422a

File tree

17 files changed

+1417
-1008
lines changed

17 files changed

+1417
-1008
lines changed

.env

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,4 @@ NEXT_PUBLIC_PROVIDER_NAME=beachsidebiotech
66
NEXT_PUBLIC_PROVIDER_ID=5159
77
NEXT_PUBLIC_SCIENTIST_API_VERSION=v2
88

9-
# values to use for testing
10-
TEST_SCIENTIST_USER=[email protected]
11-
TEST_SCIENTIST_PW=!test1234
9+
SENTRY_DSN=https://[email protected]/4504805305810944

charts/webstore/templates/deployment.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,8 @@ spec:
5050
value: "{{ .Values.clientSecret }}"
5151
- name: CLIENT_ID
5252
value: "{{ .Values.clientId }}"
53+
- name: SENTRY_DSN
54+
value: "{{ .Values.sentryDsn }}"
5355
ports:
5456
- name: http
5557
containerPort: {{ .Values.service.port }}

cypress.config.js

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
require('dotenv').config({ path: `.env.local`, override: true })
2-
1+
const dotenvFlowPlugin = require('cypress-dotenv-flow')
32
const { defineConfig } = require("cypress")
43

54
module.exports = defineConfig({
@@ -14,11 +13,18 @@ module.exports = defineConfig({
1413
baseUrl: 'http://localhost:3000',
1514
chromeWebSecurity: false,
1615
setupNodeEvents(on, config) {
16+
config = dotenvFlowPlugin(config)
1717
config.env = {
1818
...process.env,
1919
...config.env
2020
}
2121
return config
2222
},
2323
},
24+
env: {
25+
TEST_SCIENTIST_USER: '[email protected]',
26+
TEST_SCIENTIST_PW: '!test1234',
27+
NEXT_PUBLIC_PROVIDER_NAME: 'acme',
28+
NEXT_PUBLIC_PROVIDER_ID: '572'
29+
},
2430
});
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"ware_refs": []
3+
}
Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
{
2+
"ware_refs": [
3+
{
4+
"id": 1234,
5+
"slug": "example-ware",
6+
"name": "Example Ware 1",
7+
"snippet": "This is an example snippet.",
8+
"urls": {
9+
"promo_image": "https://nick-intl.mtvnimages.com/uri/mgid:file:http:shared:media.mtvi.com/MBUS/GeoLocal/GB/mtv/201804/VIAVIMNUKC5966866/toons_spongebob_228_tinyfriends_3123_image_640x360.jpg?quality=1&height=360&width=640&matte=true&crop=false"
10+
}
11+
},
12+
{
13+
"id": 2345,
14+
"slug": "example-ware-2",
15+
"name": "Example Ware 2",
16+
"snippet": "Second Example Ware.",
17+
"urls": {
18+
"promo_image": "https://imgix.ranker.com/user_node_img/50101/1002011886/original/no-one-did-photo-u1?auto=format&q=60&fit=crop&fm=pjpg&dpr=2&w=375"
19+
}
20+
},
21+
{
22+
"id": 3456,
23+
"slug": "test-ware",
24+
"name": "Test Ware",
25+
"snippet": "Here is a test ware snippet.",
26+
"urls": {
27+
"promo_image": "https://y.yarn.co/193fa4ae-a245-4f7a-ac9d-64bbebb18c8d_screenshot.jpg"
28+
}
29+
},
30+
{
31+
"id": 4567,
32+
"slug": "another-test-ware",
33+
"name": "Another Test Ware",
34+
"snippet": "Another test snippet.",
35+
"urls": {
36+
"promo_image": "https://cdn.drawception.com/images/panels/2017/7-2/jtqKRKSpyj-6.png"
37+
}
38+
}
39+
]
40+
}

ops/staging-deploy.tmpl.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ nextPublicToken: $NEXT_PUBLIC_TOKEN
77
nextAuthSecret: $NEXTAUTH_SECRET
88
clientSecret: $CLIENT_SECRET
99
clientId: $CLIENT_ID
10-
10+
sentryDsn: 'https://[email protected]/4504805305810944'
1111
replicaCount: 1
1212

1313
image:

package.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@
1919
"@rjsf/utils": "^5.0.0-beta.17",
2020
"@rjsf/validator-ajv8": "^5.0.1",
2121
"@scientist-softserv/webstore-component-library": "^0.1.15",
22+
"@sentry/react": "^7.42.0",
23+
"@sentry/tracing": "^7.42.0",
2224
"axios": "^1.1.3",
2325
"bootstrap": "^5.2.3",
2426
"next": "12.3.1",
@@ -33,7 +35,9 @@
3335
"@testing-library/react": "^13.4.0",
3436
"cypress": "^12.1.0",
3537
"cypress-dotenv": "^2.0.0",
38+
"cypress-dotenv-flow": "^1.2.2",
3639
"dotenv": "^16.0.3",
40+
"dotenv-flow": "^3.2.0",
3741
"eslint": "8.25.0",
3842
"eslint-config-next": "12.3.1",
3943
"jest": "^29.3.1",

pages/_app.js

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
import { Integrations } from '@sentry/tracing'
2+
import * as Sentry from '@sentry/react'
13
import { Footer, Header } from '@scientist-softserv/webstore-component-library'
24
import { SWRConfig } from 'swr'
35
import {
@@ -17,6 +19,14 @@ import {
1719
} from '../utils'
1820
import '../utils/theme/globals.scss'
1921

22+
Sentry.init({
23+
dsn: process.env.SENTRY_DSN,
24+
integrations: [
25+
new Integrations.BrowserTracing(),
26+
],
27+
tracesSampleRate: 1.0,
28+
})
29+
2030
const WebStore = ({ Component }) => {
2131
const { data: session } = useSession()
2232

pages/browse/index.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ const Browse = () => {
3535
if (isError) {
3636
return (
3737
<Notice
38+
addClass='my-5'
3839
alert={configureErrors([isError])}
3940
dismissible={false}
4041
withBackButton={true}

pages/index.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ const Home = () => {
4949
<Notice
5050
alert={configureErrors([isError])}
5151
withBackButton={false}
52+
addClass='my-5'
5253
/>
5354
) : (
5455
<>

0 commit comments

Comments
 (0)