[COMPASS-5687] Consolidate Ace Editor usage into one Editor component in `compass-components` Created: 04/Apr/22  Updated: 10/Jan/24  Resolved: 28/Apr/22

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

Type: Task Priority: Major - P3
Reporter: Rhys Howell Assignee: Anna Henningsen
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Related
related to COMPASS-5764 Aggregations preview document renderi... Closed
Epic Link: COMPASS-5484
Documentation Changes: Not Needed
Sprint: Iteration Anemone

 Description   

There are a number of places where we use Ace Editor (react-ace) in Compass which are similar in their implementation. If, down the line, we wanted to transition away from react-ace or update one property it would take changes in all of those ace editor uses.
To help make changes like this easier and to abstract away the editor implementation let's add an `Editor` component to `compass-components`.

This `Editor` component should replace all of the direct `react-ace` uses in Compass and be able to provide the flexibility to accommodate all of the various ways it can be configured, maybe through something like a variant property as to hide some of the internals.



 Comments   
Comment by Githook User [ 09/May/22 ]

Author:

{'name': 'Anna Henningsen', 'email': 'anna.henningsen@mongodb.com', 'username': 'addaleax'}

Message: chore: group AceEditor usage in compass-components COMPASS-5687 (#3029)
Branch: COMPASS-5665-columnar-index-support
https://github.com/mongodb-js/compass/commit/ef6a2a2818d8202a19bc0837efb81ed0837f5b53

Comment by Githook User [ 02/May/22 ]

Author:

{'name': 'Anna Henningsen', 'email': 'anna.henningsen@mongodb.com', 'username': 'addaleax'}

Message: chore: group AceEditor usage in compass-components COMPASS-5687 (#3029)
Branch: 1.31-releases
https://github.com/mongodb-js/compass/commit/ef6a2a2818d8202a19bc0837efb81ed0837f5b53

Comment by Githook User [ 02/May/22 ]

Author:

{'name': 'Anna Henningsen', 'email': 'anna.henningsen@mongodb.com', 'username': 'addaleax'}

Message: chore: group AceEditor usage in compass-components COMPASS-5687 (#3029)
Branch: compass-components-eslint
https://github.com/mongodb-js/compass/commit/ef6a2a2818d8202a19bc0837efb81ed0837f5b53

Comment by Githook User [ 29/Apr/22 ]

Author:

{'name': 'Anna Henningsen', 'email': 'anna.henningsen@mongodb.com', 'username': 'addaleax'}

Message: chore: group AceEditor usage in compass-components COMPASS-5687 (#3029)
Branch: compass-5778-fix-stage-validation
https://github.com/mongodb-js/compass/commit/ef6a2a2818d8202a19bc0837efb81ed0837f5b53

Comment by Githook User [ 29/Apr/22 ]

Author:

{'name': 'Anna Henningsen', 'email': 'anna.henningsen@mongodb.com', 'username': 'addaleax'}

Message: chore: group AceEditor usage in compass-components COMPASS-5687 (#3029)
Branch: add-accordion-to-create-collection
https://github.com/mongodb-js/compass/commit/ef6a2a2818d8202a19bc0837efb81ed0837f5b53

Comment by Githook User [ 28/Apr/22 ]

Author:

{'name': 'Anna Henningsen', 'email': 'anna.henningsen@mongodb.com', 'username': 'addaleax'}

Message: chore: group AceEditor usage in compass-components COMPASS-5687 (#3029)
Branch: main
https://github.com/mongodb-js/compass/commit/ef6a2a2818d8202a19bc0837efb81ed0837f5b53

Comment by Githook User [ 27/Apr/22 ]

Author:

{'name': 'Anna Henningsen', 'email': 'anna@addaleax.net', 'username': 'addaleax'}

Message: chore: group AceEditor usage in compass-components COMPASS-5687
Branch: 5687-dev
https://github.com/mongodb-js/compass/commit/076f89a8959d59263f79082be0c231900dcdefda

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