firebase / firebase/firebase-tools-ui

Round brackets in Firestore document or collection names break UI

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

Description

When I put a bracket in either the document or collection name it breaks the emulator navigation.

If you look at the following screenshot, you see that I have the document selected, which would move the document to the middle column and show me in the right column the contents of the collection, but in fact, it does not get opened properly!

![image](https://user-images.githubusercontent.com/10195482/162639142-f33dabbb-ebcb-4aba-8a77-7b9b145d6df2.png)

This then in turn does also not allow me to open any sub-collection of `(foo)/bar`!
I've tested a bit and only with the opening and closing brackets it does break.
If I do `(foo/bar` or `foo)/bar` or `)foo(/bar` or `{foo}/bar` or `[foo]/bar`it works.

The brackets do not have to be at the start or
end, as long as a round opening bracket comes before a closing bracket the error occurs, so `a(foo)b/bar` also breaks.

---

Here's an example of having the brackets in the document id, which also breaks:
![image](https://user-images.githubusercontent.com/10195482/162639374-e8e96c53-41ab-4efd-9365-eb0f711789c1.png)

---

Here are two example data exports with the failing documents:

[brackets_in_collection.zip](https://github.com/firebase/firebase-tools-ui/files/8459897/brackets_in_collection.zip)
[brackets_in_document.zip](https://github.com/firebase/firebase-tools-ui/files/8459898/brackets_in_document.zip)

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.