Skip to content

Commit f0538ef

Browse files
Fix some DOM warnings and add extensions to the Emulator Suite UI. (#931)
1 parent 604e3a5 commit f0538ef

File tree

6 files changed

+40
-14
lines changed

6 files changed

+40
-14
lines changed
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
ALLOWED_EVENT_TYPES=com.stripe.v1.product.created
2+
CREATE_CHECKOUT_SESSION_MIN_INSTANCES=0
3+
CUSTOMERS_COLLECTION=customers
4+
DELETE_STRIPE_CUSTOMERS=Do not delete
5+
EVENTARC_CHANNEL=projects/${param:PROJECT_ID}/locations/us-west1/channels/firebase
6+
LOCATION=us-west2
7+
PRODUCTS_COLLECTION=products
8+
STRIPE_CONFIG_COLLECTION=configuration
9+
SYNC_USERS_ON_CREATE=Do not sync
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
STRIPE_API_KEY=asdf
2+
STRIPE_WEBHOOK_SECRET=fdsa
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
DELETE_ORIGINAL_FILE=false
2+
DO_BACKFILL=true
3+
FUNCTION_MEMORY=512
4+
IMAGE_TYPE=jpeg
5+
IMG_BUCKET=resize_images_storage_bucket_90210
6+
IMG_SIZES=200x200
7+
IS_ANIMATED=true
8+
LOCATION=us-west2
9+
MAKE_PUBLIC=true

firebase.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,5 +29,9 @@
2929
"pubsub": {
3030
"port": 8085
3131
}
32+
},
33+
"extensions": {
34+
"storage-resize-images": "firebase/[email protected]",
35+
"firestore-stripe-payments": "stripe/[email protected]"
3236
}
3337
}

src/components/Extensions/Details/DetailCard/Tabs/EventsConfig.tsx

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -134,13 +134,13 @@ export function EventsConfig() {
134134
Events aren't emitted to production Eventarc in the emulator, and
135135
there won't be any cost.
136136
</Callout>
137-
<p>
138-
<Typography
139-
className={styles.description}
140-
use="caption"
141-
tag="div"
142-
theme="secondary"
143-
>
137+
<Typography
138+
className={styles.description}
139+
use="caption"
140+
tag="div"
141+
theme="secondary"
142+
>
143+
<p>
144144
If you enable events, you can{' '}
145145
<a href="https://firebase.google.com/docs/extensions/install-extensions#eventarc">
146146
write custom event handlers
@@ -151,8 +151,8 @@ export function EventsConfig() {
151151
<a href={`/extensions/${extension.id}`}>
152152
How do events in this extension work?
153153
</a>
154-
</Typography>
155-
</p>
154+
</p>
155+
</Typography>
156156
{channelLocationDiv}
157157
{allowedEventTypesDiv}
158158
</div>

src/components/Firestore/Requests/RequestsCard/Table/TableRow.test.tsx

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -37,11 +37,13 @@ describe('RequestsTableRow', () => {
3737
const { getByRole } = render(
3838
<Router history={history}>
3939
<table>
40-
<RequestsTableRow
41-
request={FAKE_EVALUATION}
42-
requestId={FAKE_EVALUATION_ID}
43-
setShowCopyNotification={SET_SHOW_COPY_NOTIFICATION}
44-
/>
40+
<tbody>
41+
<RequestsTableRow
42+
request={FAKE_EVALUATION}
43+
requestId={FAKE_EVALUATION_ID}
44+
setShowCopyNotification={SET_SHOW_COPY_NOTIFICATION}
45+
/>
46+
</tbody>
4547
</table>
4648
</Router>
4749
);

0 commit comments

Comments
 (0)