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 demo UI for CQL parser #1439

Open
wants to merge 6 commits into
base: feature-multiplatform-cql-parser
Choose a base branch
from

Conversation

antvaset
Copy link
Contributor

@antvaset antvaset commented Nov 8, 2024

  • Compile Kotlin-based mini-CQL parser to JS and WASM
  • Add a demo front end that uses the generated JS/WASM and parses CQL in the browser and Node

Overview

The front end is a Next.js app that has the Kotlin/JS- and Kotlin/WASM-based CQL parser dependencies pre-installed. It includes a simple CqlPlayground component that allows you to enter CQL code and see the parse tree. The parser also executes on the server when the page is server-side rendered.

This is a starting point for a demo where the focus has also been to figure out the configuration and wiring for the Kotlin/JS and Kotlin/WASM builds.

Steps to run the app

  1. Build the Java/Kotlin project in /Src/java (:cql:build is enough)
  2. Run npm install and npm run dev in /Src/js/cql-ui
image

Copy link

github-actions bot commented Nov 8, 2024

Formatting check succeeded!

Copy link

codecov bot commented Nov 8, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Please upload report for BASE (feature-multiplatform-cql-parser@0f3af36). Learn more about missing BASE report.

Additional details and impacted files
@@                         Coverage Diff                         @@
##             feature-multiplatform-cql-parser    #1439   +/-   ##
===================================================================
  Coverage                                    ?   64.41%           
  Complexity                                  ?     2173           
===================================================================
  Files                                       ?      493           
  Lines                                       ?    28100           
  Branches                                    ?     5560           
===================================================================
  Hits                                        ?    18102           
  Misses                                      ?     7755           
  Partials                                    ?     2243           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@antvaset antvaset marked this pull request as ready for review November 8, 2024 21:09
Copy link

sonarcloud bot commented Nov 13, 2024

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.

1 participant