Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add more props to the codemirror editor to ease migration from older version #178

Merged
merged 7 commits into from
May 2, 2024

Conversation

OskarDamkjaer
Copy link
Collaborator

@OskarDamkjaer OskarDamkjaer commented Feb 22, 2024

Pretty straightforward codemirror wiring & tests

fontFamily: 'Fira Code, Menlo, Monaco, Lucida Console, monospace',
height: '100%',
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This change is so that consumers can set a minimum height via the className property and have the background color extend to the full height

@OskarDamkjaer OskarDamkjaer marked this pull request as draft February 22, 2024 14:54
@OskarDamkjaer OskarDamkjaer changed the title Add more props to the codemirror editor so bloom/explore can migrate away from v1 Add more props to the codemirror editor to ease migration from older version Apr 11, 2024
@OskarDamkjaer OskarDamkjaer marked this pull request as ready for review April 11, 2024 13:32
'@neo4j-cypher/react-codemirror': patch
---

Adds more props the CypherEditor component
Copy link
Collaborator

@ncordon ncordon Apr 30, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Typo: to the CyherEditor component?

@@ -71,5 +71,10 @@ export class CypherEditorPage {
await this.page.getByText(queryChunk, { exact: true }).hover();
await expect(this.page.locator('.cm-tooltip-hover').last()).toBeVisible();
await expect(this.page.getByText(expectedMsg)).toBeVisible();
// make the sure the tooltip closes
await this.page.mouse.move(0, 0);
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Funnily enough I had to add this line in #202 🙈

@OskarDamkjaer OskarDamkjaer merged commit 6cc9022 into main May 2, 2024
4 checks passed
@OskarDamkjaer OskarDamkjaer deleted the bloom-compat branch May 2, 2024 14:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants