firebase / firebase/firebase-tools-ui

[firestore] Invalid Collection ID causes an error to occur and UI to disappear

Open
#1,092 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
291
Forks
74
PR merge metrics
No merged PRs in 30d

Description

**Describe the bug**
Entering invalid input into the following form causes an error and the UI disappears

![Image](https://github.com/user-attachments/assets/9b1887a2-ef5e-4db5-abcd-7169ecd3e606)

**To Reproduce**
Steps to reproduce the behavior:

1. Go to '**Firestore**'
2. Click on '**+ Start collection**'
3. Click '**Collection ID**' input
4. Enter or paste in something invalid, like "https://example.com/"

**Expected behavior**
Shows an error message like "Invalid collection name", or something similar.

**Screenshots**
This is me pasting in "https://example.com/"
https://gyazo.com/a90851e51de9c71fa8a9c2e9474fc8e2

**Desktop (please complete the following information):**

- OS: **Windows**
- Browser: **Firefox**
- Version: **140.0.2**

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.