[COMPASS-3360] Confusing String Interface Created: 16/Dec/18  Updated: 27/Oct/23  Resolved: 19/Dec/18

Status: Closed
Project: Compass
Component/s: Compass
Affects Version/s: None
Fix Version/s: None

Type: Bug Priority: Minor - P4
Reporter: Jamie McGrory Assignee: Unassigned
Resolution: Works as Designed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

MacOS Mojave


Issue Links:
Documented
Documentation Changes: Needed

 Description   

The interface for entering String data type on MongoDB Compass Community has an annoying biproduct, issue:

 

String data is represented with enclosing "" speechmarks, however these do not represent actual speechmarks within the content. This caused me a few hours of hair pulling today as I was having issues storing `JSON.stringify`'d data within a String field, not realising that I actually required double speechmarks as such:

 

// My Content
"## This is a subheader\n This is a sentence"
 
// How it appears in MongoDB Compass (double speechmarks)
key: ""## This is a subheader\n This is a sentence""

 

Image example here: https://imgur.com/a/pUctylB

Could you please either:

  1. Remove the speechmarks as they are confusing/not actually part of the data
  2. Restyle them to show they are not part of the data, either using visibly "incorrect" speech marks (the unidirectional ones) or by making them obviously different to actual speechmarks in the content (different colour/size)

Per #2 I can see when inspecting closely (image above) that there has been a small effort to do so in that they speechmarks are ~1px above where those in the content are; however this is simply not obvious enough and would be a quick fix to restyle.

 



 Comments   
Comment by Jamie McGrory [ 19/Dec/18 ]

@Massimiliano Marcon Thanks for getting back on this and acknowledging it! Love the UI otherwise, great product.

Comment by Massimiliano Marcon [ 19/Dec/18 ]

Hi jmcgrory, thank you for reporting it. We looked at this and it makes sense to visually differentiate the quotes from the actual data. We will keep it in mind with the next round of improvements in the Documents tab.

Generated at Wed Feb 07 22:32:57 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.