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

Ensure that only 6-character hex values are passed to monaco editor #18943

Merged
merged 2 commits into from
Nov 7, 2022

Conversation

lmossman
Copy link
Contributor

@lmossman lmossman commented Nov 3, 2022

What

Without this change, trying to access localhost:8000/connector-builder would case this error to be thrown:
Screen Shot 2022-11-03 at 2 58 37 PM

This is thrown even though the original definition of that hex value uses 6 characters:


So there is likely some minifying going on that converts that 6-character value into a 3-character one.

How

This PR solves the problem by adding a JS function to convert 3-character hex values to 6-character ones, and using this function on the strings being passed into the custom monaco theme definition.

@github-actions github-actions bot added area/platform issues related to the platform area/frontend Related to the Airbyte webapp labels Nov 3, 2022
@lmossman lmossman marked this pull request as ready for review November 3, 2022 22:21
@lmossman lmossman requested a review from a team as a code owner November 3, 2022 22:21
@lmossman lmossman requested review from timroes and josephkmh November 3, 2022 22:21
Copy link
Collaborator

@timroes timroes left a comment

Choose a reason for hiding this comment

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

Code LGTM

@lmossman lmossman merged commit 0944f5e into master Nov 7, 2022
@lmossman lmossman deleted the lmossman/fix-monaco-3-character-hex-error branch November 7, 2022 19:16
letiescanciano added a commit that referenced this pull request Nov 8, 2022
…nent

* master:
  🪟 🎉 Enable frontend validation for <1hr syncs (cloud) #19028
  Stream returns AirbyteMessages (#18572)
  🎉 New Source - Recruitee [low-code SDK] (#18671)
  🎉 New source: Breezometer [low-code cdk] (#18650)
  Check disabled connections after protocol update (#18990)
  Simple default replication worker refactor (#19002)
  🎉 New Source: Visma e-conomic (#18595)
  🎉 New Source: Fastbill (#18593)
  Bmoric/extract state api (#18980)
  🎉 New Source: Zapier Supported Storage (#18442)
  🎉 New source: Klarna (#18385)
  `AirbyteEstimateTraceMessage` (#18875)
  Extract source definition api (#18977)
  [low-code cdk] Allow for spec file to be defined in the yaml manifest instead of an external file (#18411)
  🐛 Source HubSpot: fix property scopes (#18624)
  Ensure that only 6-character hex values are passed to monaco editor (#18943)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/frontend Related to the Airbyte webapp area/platform issues related to the platform
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants