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

improve query builder launch and save interactions #659

Merged
merged 18 commits into from
Nov 12, 2021

Conversation

akphi
Copy link
Contributor

@akphi akphi commented Nov 11, 2021

Summary

Closes #631

Also,

  • Fix styling for several element creation modals to be more consistent
  • Apply mode strategy for QueryBuilderState (similar strategy we adopted in EditorStoreMode in studio: rework handling of multiple SDLC instances #642
  • Minor improvements and bug fixes for setting up query from DataSpace:
    • Fix bug with cannot go to dataspace project
    • Allow getting dataspaces from latest snapshots
    • Fix a bug where the indicator in data space search box showing showing target project instead of the project that the dataspace belongs to

How did you test this change?

  • Test(s) added

I added screen recordings

Legend Query new look n feel 💪

Screen.Recording.2021-11-12.at.10.14.51.AM.mov

Studio mapping editor new look n feel 🎸

Screen.Recording.2021-11-12.at.10.15.28.AM.mov

@finos-cla-bot finos-cla-bot bot added the cla-present CLA Signed label Nov 11, 2021
@changeset-bot
Copy link

changeset-bot bot commented Nov 11, 2021

🦋 Changeset detected

Latest commit: fbfa2ae

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 26 packages
Name Type
@finos/legend-extension-dsl-data-space Minor
@finos/babel-preset-legend-studio Patch
@finos/eslint-plugin-legend-studio Patch
@finos/legend-application Patch
@finos/legend-art Patch
@finos/legend-dev-utils Patch
@finos/legend-query Patch
@finos/legend-query-deployment Patch
@finos/legend-studio Major
@finos/legend-studio-deployment Patch
@finos/legend-studio-extension-query-builder Patch
@finos/legend-extension-dsl-diagram Patch
@finos/legend-extension-dsl-serializer Patch
@finos/legend-extension-dsl-text Patch
@finos/legend-extension-external-store-service Patch
@finos/legend-graph Patch
@finos/legend-server-depot Patch
@finos/legend-server-sdlc Patch
@finos/legend-shared Patch
@finos/legend-studio-extension-management-toolkit Patch
@finos/legend-manual-tests Patch
@finos/legend-query-app Patch
@finos/legend-studio-app Patch
@finos/legend-extension-external-format-json-schema Patch
@finos/legend-model-storage Patch
@finos/legend-tracer-extension-zipkin Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@codecov
Copy link

codecov bot commented Nov 11, 2021

Codecov Report

Merging #659 (fbfa2ae) into master (c22549e) will decrease coverage by 0.03%.
The diff coverage is 39.53%.

@@            Coverage Diff             @@
##           master     #659      +/-   ##
==========================================
- Coverage   43.61%   43.58%   -0.04%     
==========================================
  Files         904      904              
  Lines       40328    40451     +123     
  Branches     9243     9274      +31     
==========================================
+ Hits        17591    17632      +41     
- Misses      22673    22750      +77     
- Partials       64       69       +5     
Impacted Files Coverage Δ
...rc/components/studio/DSLDataSpace_StudioPlugin.tsx 13.46% <0.00%> (ø)
...-dsl-data-space/src/stores/DataSpaceViewerState.ts 5.45% <ø> (ø)
...space/src/stores/query/DataSpaceQuerySetupState.ts 10.00% <0.00%> (-2.00%) ⬇️
...src/stores/studio/EnterpriseModelExplorerStore.tsx 10.89% <ø> (+0.06%) ⬆️
...uery/src/components/QueryBuilderParameterPanel.tsx 22.52% <ø> (ø)
...ackages/legend-query/src/components/QuerySetup.tsx 8.84% <ø> (ø)
.../legend-query/src/stores/QueryBuilderSetupState.ts 70.58% <ø> (-1.11%) ⬇️
...kages/legend-server-depot/src/DepotServerClient.ts 0.00% <ø> (ø)
packages/legend-server-depot/src/DepotUtils.ts 0.00% <0.00%> (ø)
...rc/components/editor/edit-panel/FunctionEditor.tsx 14.81% <ø> (ø)
... and 28 more

@akphi akphi marked this pull request as ready for review November 12, 2021 07:21
@akphi akphi changed the title improve query builder UX improve query builder launch and save interactions Nov 12, 2021
.changeset/chilled-tomatoes-know.md Show resolved Hide resolved
.github/PULL_REQUEST_TEMPLATE.md Show resolved Hide resolved
tabIndex={-1}
title={`[${
querySetupState.toGetSnapShot ? 'on' : 'off'
}] Toggle show data spaces from snapshot releases instead of latest releases`}
Copy link
Member

Choose a reason for hiding this comment

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

Confused on the logic here. Why can't we show both? one as HEAD and one as LATEST. That might be more align with what we do everywhere else? wydt

Copy link
Contributor Author

Choose a reason for hiding this comment

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

seeing both is confusing don't you think? I want to keep SNAPSHOT to something a little bit obscure as it's more meant for development

@@ -92,6 +93,7 @@ export class DepotServerClient extends AbstractServerClient {
classifierPath: string,
options?: {
search?: string | undefined;
scope?: DepotScope | undefined;
Copy link
Member

Choose a reason for hiding this comment

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

Not sure I agree with this scope input for the api.
We should be able to get both HEAD and latest, just one or none, when we query in scope it could be booleans
includeHead
includeLatest

Copy link
Contributor Author

Choose a reason for hiding this comment

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

hm, I don't have a strong comeback for that, but this is how depot APIs are kind of naturally set up. In the older infrastructure of depot before it gets open-sourced, this is also the pattern of usage they follow

@MauricioUyaguari MauricioUyaguari merged commit caf3d4a into finos:master Nov 12, 2021
@akphi akphi deleted the titan branch November 12, 2021 17:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cla-present CLA Signed
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Feature request: Minor improvements to query builder UI/UX (phase 1)
2 participants