[COMPASS-4975] UI improvements in Document Tab with scroll bar Created: 28/Jul/21  Updated: 31/Aug/21  Resolved: 31/Aug/21

Status: Closed
Project: Compass
Component/s: Compass, UI / UX
Affects Version/s: 1.24.1, 1.24.6, 1.25.0, 1.26.1, 1.27.1, 1.28.1
Fix Version/s: 1.28.4

Type: Bug Priority: Minor - P4
Reporter: Felicia Hsieh Assignee: Unassigned
Resolution: Duplicate Votes: 2
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Attachments: PNG File image-2021-07-28-11-58-24-320.png    
Issue Links:
Related
is related to COMPASS-4988 Text area height and field width cann... Closed
Documentation Changes: Not Needed

 Description   

Problem Statement/Rationale

What is going wrong?

Scroll bar for long fields is obstructs text

Scroll bar hides property names

Steps to Reproduce

How could an engineer replicate the issue you’re reporting?

Create a document with long string names where the scroll bars appear

Resize the scroll bars to see the text

Also, 1.26.1, 1.25.0 1.24.6, 1.24.1 fails when the document's value reaches the 121st character in length. It works fine before that number.

Expected Results

What do you expect to happen?

All document fields' texts can be viewed without obstruction.

Scroll bars do not affect the appearance of the fields.

Actual Results

What do you observe is happening?

Document text is cut off.

Additional Notes

Any additional information that may be useful to include.

Compass 1.23.0 does not exhibit this regression. Problem seems like it was introduced between 1.23.0 and 1.24.1



 Comments   
Comment by Felicia Hsieh [ 30/Aug/21 ]

The fix version is 1.28.4

Comment by Yuriy Mann [ 02/Aug/21 ]

+1 for an ability to copy properties, or ideally BSON sub-nodes, without entering the edit mode - e.g. on right-click.
Our primary use of Compass if for browsing and copying data. It's convenient that the whole document can be copied, but the documents are often big and copying a single line or sub-node without entering the edit mode would make our work with Compass much more efficient. 

Comment by Ben Thompson [ 02/Aug/21 ]

Note that the issue is primarily with long string data, not the key names. We often need to extract data from nodes for analysis and currently you need to double-click the data for it to be selectable. The scroll-bar then just gets in the way for trying to select the text to copy. An alternative solution would to simply allow the user to copy select data without having to enter edit mode (e.g. right click element, copy data). 

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