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

fix: UI issues with code editor #23332

Merged
merged 13 commits into from
May 17, 2023
Merged

fix: UI issues with code editor #23332

merged 13 commits into from
May 17, 2023

Conversation

arunvjn
Copy link
Contributor

@arunvjn arunvjn commented May 15, 2023

Description

#22652 introduced new styles to code in Appsmith. Along with it was some unintentional changes.
Bundle optimization PR introduced, CodeEditorFallback component which incorrectly renders borders and causes UI to flicker. It also broke styles of lint message popover. This PR fixes these issues.

Code changes

  • Added 6px padding to code editor lines
  • Use class variables instead of ref
  • Removed border for JSEditor's CodeEditorFallback component
  • Fixes lint message style

Links to Notion, Figma or any other documents that might be relevant to the PR
https://www.notion.so/appsmith/Visual-changes-to-code-in-Appsmith-8bb530c60ee844e5b44adec039bf9280#d99e8450f022439f845b5a0d7deb1d3f

PR fixes following issue(s)

Fixes # (issue number)

if no issue exists, please create an issue and ask the maintainers about this first

Media

A video or a GIF is preferred. when using Loom, don’t embed because it looks like it’s a GIF. instead, just link to the video

Type of change

  • Bug fix (non-breaking change which fixes an issue)

Testing

How Has This Been Tested?

  • Manual

Test Plan

Visual checks to test for changes as per this Notion doc

Issues raised during DP testing

None

Checklist:

Dev activity

  • My code follows the style guidelines of this project
  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • My changes generate no new warnings
  • I have added tests that prove my fix is effective or that my feature works
  • New and existing unit tests pass locally with my changes
  • PR is being merged under a feature flag

QA activity:

  • Speedbreak features have been covered
  • Test plan covers all impacted features and areas of interest
  • Test plan has been peer reviewed by project stakeholders and other QA members
  • Manually tested functionality on DP
  • We had an implementation alignment call with stakeholders post QA Round 2
  • Cypress test cases have been added and approved by SDET/manual QA
  • Added Test Plan Approved label after Cypress tests were reviewed
  • Added Test Plan Approved label after JUnit tests were reviewed

- Added 6px x padding
- Use class variables instead of ref
@github-actions github-actions bot added the Bug Something isn't working label May 15, 2023
@arunvjn
Copy link
Contributor Author

arunvjn commented May 15, 2023

/ok-to-test sha=fea4749

@github-actions
Copy link

Tests running at: https://github.com/appsmithorg/appsmith/actions/runs/4977578355.
Workflow: Appsmith External Integration Test Workflow.
Commit: fea4749.
PR: 23332.
Perf tests will be available at https://app.appsmith.com/app/performance-infra-dashboard/pr-details-638dd7cd2913ba43778b915e?pr=23332&runId=4977578355_1

@arunvjn
Copy link
Contributor Author

arunvjn commented May 15, 2023

/build-deploy-preview env=release

@github-actions
Copy link

Deploying Your Preview: https://github.com/appsmithorg/appsmith/actions/runs/4977582413.
Workflow: On demand build Docker image and deploy preview.
skip-tests: ``.
env: release.
PR: 23332.
recreate: .

@github-actions
Copy link

Deploy-Preview-URL: https://appsmith-onnbjow0i-get-appsmith.vercel.app

@github-actions
Copy link

Workflow run: https://github.com/appsmithorg/appsmith/actions/runs/4977578355.
Commit: fea4749.
The following are new failures, please fix them before merging the PR:

  1. cypress/integration/Regression_TestSuite/ClientSideTests/ActionExecution/ActionSelector_JsToNonJSMode_spec.ts

  2. cypress/integration/Regression_TestSuite/ClientSideTests/Git/GitImport/GitImport_spec.js
  3. cypress/integration/Regression_TestSuite/ClientSideTests/Widgets/ListV2/Listv2_container_spec.js
  4. cypress/integration/Regression_TestSuite/ClientSideTests/Widgets/TableV1/TableFilter2_Spec.ts
  5. cypress/integration/Regression_TestSuite/ClientSideTests/Workspace/DeleteWorkspace_spec.js
  6. cypress/integration/Regression_TestSuite/ServerSideTests/ApiTests/API_CurlPOSTImport_spec.js
  7. cypress/integration/Regression_TestSuite/ServerSideTests/Postgres_DataTypes/BooleanEnum_Spec.ts
  8. cypress/integration/Regression_TestSuite/ServerSideTests/QueryPane/S3_1_spec.js
To know the list of identified flaky tests - Refer here

@arunvjn
Copy link
Contributor Author

arunvjn commented May 15, 2023

/ok-to-test sha=2d54c36

@github-actions
Copy link

Tests running at: https://github.com/appsmithorg/appsmith/actions/runs/4979924785.
Workflow: Appsmith External Integration Test Workflow.
Commit: 2d54c36.
PR: 23332.
Perf tests will be available at https://app.appsmith.com/app/performance-infra-dashboard/pr-details-638dd7cd2913ba43778b915e?pr=23332&runId=4979924785_1

@arunvjn
Copy link
Contributor Author

arunvjn commented May 15, 2023

/ok-to-test sha=d987d9d

@github-actions
Copy link

Tests running at: https://github.com/appsmithorg/appsmith/actions/runs/4980001560.
Workflow: Appsmith External Integration Test Workflow.
Commit: d987d9d.
PR: 23332.
Perf tests will be available at https://app.appsmith.com/app/performance-infra-dashboard/pr-details-638dd7cd2913ba43778b915e?pr=23332&runId=4980001560_1

@arunvjn
Copy link
Contributor Author

arunvjn commented May 15, 2023

/build-deploy-preview env=release

@github-actions
Copy link

Deploying Your Preview: https://github.com/appsmithorg/appsmith/actions/runs/4980352802.
Workflow: On demand build Docker image and deploy preview.
skip-tests: ``.
env: release.
PR: 23332.
recreate: .

@github-actions
Copy link

Deploy-Preview-URL: https://appsmith-rfy9bfhks-get-appsmith.vercel.app

@arunvjn
Copy link
Contributor Author

arunvjn commented May 16, 2023

/ok-to-test sha=e342e2a

@arunvjn
Copy link
Contributor Author

arunvjn commented May 16, 2023

/build-deploy-preview env=release

@github-actions
Copy link

Tests running at: https://github.com/appsmithorg/appsmith/actions/runs/4987283926.
Workflow: Appsmith External Integration Test Workflow.
Commit: e342e2a.
PR: 23332.
Perf tests will be available at https://app.appsmith.com/app/performance-infra-dashboard/pr-details-638dd7cd2913ba43778b915e?pr=23332&runId=4987283926_1

@github-actions
Copy link

Deploying Your Preview: https://github.com/appsmithorg/appsmith/actions/runs/4987284913.
Workflow: On demand build Docker image and deploy preview.
skip-tests: ``.
env: release.
PR: 23332.
recreate: .

@github-actions
Copy link

Deploy-Preview-URL: https://appsmith-mmj7qern7-get-appsmith.vercel.app

@arunvjn
Copy link
Contributor Author

arunvjn commented May 16, 2023

/ok-to-test sha=45868bf


word-wrap: break-word !important;
white-space: pre-wrap !important;
word-break: normal !important;

color: ${({ contentKind }) =>
contentKind === ContentKind.CODE
? "#063289"
? "#304eaa"
Copy link
Contributor

Choose a reason for hiding this comment

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

If the same color is being used in the code editor component, can we use a constant at both places instead of hard coding the hex value?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done

@arunvjn
Copy link
Contributor Author

arunvjn commented May 16, 2023

/ok-to-test sha=356f67c

@arunvjn
Copy link
Contributor Author

arunvjn commented May 16, 2023

/build-deploy-preview env=release

@github-actions
Copy link

Tests running at: https://github.com/appsmithorg/appsmith/actions/runs/4990403567.
Workflow: Appsmith External Integration Test Workflow.
Commit: 356f67c.
PR: 23332.
Perf tests will be available at https://app.appsmith.com/app/performance-infra-dashboard/pr-details-638dd7cd2913ba43778b915e?pr=23332&runId=4990403567_1

@github-actions
Copy link

Deploying Your Preview: https://github.com/appsmithorg/appsmith/actions/runs/4990406988.
Workflow: On demand build Docker image and deploy preview.
skip-tests: ``.
env: release.
PR: 23332.
recreate: .

@arunvjn
Copy link
Contributor Author

arunvjn commented May 16, 2023

/ok-to-test sha=b7bf9f2

@github-actions
Copy link

Tests running at: https://github.com/appsmithorg/appsmith/actions/runs/4990488939.
Workflow: Appsmith External Integration Test Workflow.
Commit: b7bf9f2.
PR: 23332.
Perf tests will be available at https://app.appsmith.com/app/performance-infra-dashboard/pr-details-638dd7cd2913ba43778b915e?pr=23332&runId=4990488939_1

@arunvjn
Copy link
Contributor Author

arunvjn commented May 16, 2023

/ok-to-test sha=0a6f175

@github-actions
Copy link

Tests running at: https://github.com/appsmithorg/appsmith/actions/runs/4990513946.
Workflow: Appsmith External Integration Test Workflow.
Commit: 0a6f175.
PR: 23332.
Perf tests will be available at https://app.appsmith.com/app/performance-infra-dashboard/pr-details-638dd7cd2913ba43778b915e?pr=23332&runId=4990513946_1

@github-actions
Copy link

Deploy-Preview-URL: https://appsmith-ep4zpazz5-get-appsmith.vercel.app

@github-actions
Copy link

Workflow run: https://github.com/appsmithorg/appsmith/actions/runs/4990513946.
Commit: 0a6f175.
The following are new failures, please fix them before merging the PR:

  1. cypress/integration/Regression_TestSuite/ClientSideTests/BugTests/Moment_Spec.ts

  2. cypress/integration/Regression_TestSuite/ClientSideTests/Git/GitImport/GitImport_spec.js
  3. cypress/integration/Regression_TestSuite/ClientSideTests/OtherUIFeatures/Omnibar_spec.js
  4. cypress/integration/Regression_TestSuite/ServerSideTests/GenerateCRUD/Mongo_Spec.ts
To know the list of identified flaky tests - Refer here

@github-actions
Copy link

Workflow run: https://github.com/appsmithorg/appsmith/actions/runs/4990513946.
Commit: 0a6f175.
The following are new failures, please fix them before merging the PR:

  1. cypress/integration/Regression_TestSuite/ClientSideTests/BugTests/Moment_Spec.ts

  2. cypress/integration/Regression_TestSuite/ClientSideTests/Git/GitImport/GitImport_spec.js
  3. cypress/integration/Regression_TestSuite/ClientSideTests/OtherUIFeatures/Omnibar_spec.js
To know the list of identified flaky tests - Refer here

@arunvjn
Copy link
Contributor Author

arunvjn commented May 17, 2023

/ok-to-test sha=012b6cf

@github-actions
Copy link

Tests running at: https://github.com/appsmithorg/appsmith/actions/runs/4998608259.
Workflow: Appsmith External Integration Test Workflow.
Commit: 012b6cf.
PR: 23332.
Perf tests will be available at https://app.appsmith.com/app/performance-infra-dashboard/pr-details-638dd7cd2913ba43778b915e?pr=23332&runId=4998608259_1

@github-actions
Copy link

Workflow run: https://github.com/appsmithorg/appsmith/actions/runs/4998608259.
Commit: 012b6cf.
The following are new failures, please fix them before merging the PR:

  1. cypress/integration/Regression_TestSuite/ClientSideTests/AppNavigation/TopStacked_spec.js

  2. cypress/integration/Regression_TestSuite/ClientSideTests/Git/GitImport/GitImport_spec.js
  3. cypress/integration/Regression_TestSuite/ClientSideTests/Git/GitSync/GitSyncedApps_spec.js
  4. cypress/integration/Regression_TestSuite/ClientSideTests/Templates/Fork_Template_spec.js
  5. cypress/integration/Regression_TestSuite/ClientSideTests/Workspace/LeaveWorkspaceTest_spec.js
  6. cypress/integration/Regression_TestSuite/ServerSideTests/GenerateCRUD/Postgres2_Spec.ts
  7. cypress/integration/Regression_TestSuite/ServerSideTests/OnLoadTests/PostgresConnections_spec.ts
  8. cypress/integration/Regression_TestSuite/ServerSideTests/Postgres_DataTypes/Binary_Spec.ts
To know the list of identified flaky tests - Refer here

@github-actions
Copy link

Workflow run: https://github.com/appsmithorg/appsmith/actions/runs/4998608259.
Commit: 012b6cf.
All cypress tests have passed 🎉

@arunvjn arunvjn requested a review from ravikp7 May 17, 2023 04:31
@arunvjn arunvjn enabled auto-merge (squash) May 17, 2023 04:31
@github-actions
Copy link

Workflow run: https://github.com/appsmithorg/appsmith/actions/runs/4998608259.
Commit: 012b6cf.
All cypress tests have passed 🎉

@arunvjn arunvjn merged commit d1f1a19 into release May 17, 2023
@arunvjn arunvjn deleted the fix/code-editor-ui branch May 17, 2023 05:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something isn't working Test Plan Approved Manual/Cypress tests covers changes made on the PR. Else, add skip-testPlan label if not applicable
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants