Skip to content

Commit

Permalink
datacube: setup base landing page
Browse files Browse the repository at this point in the history
  • Loading branch information
akphi committed Dec 24, 2024
1 parent 6ebc304 commit df82e6b
Show file tree
Hide file tree
Showing 55 changed files with 1,324 additions and 1,132 deletions.
14 changes: 14 additions & 0 deletions .changeset/clean-swans-pretend.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
---
'@finos/legend-application-data-cube-deployment': patch
'@finos/legend-application-data-cube-bootstrap': patch
'@finos/legend-vscode-extension-dependencies': patch
'@finos/legend-application-data-cube': patch
'@finos/legend-application-pure-ide': patch
'@finos/legend-application-studio': patch
'@finos/legend-application-query': patch
'@finos/legend-application-repl': patch
'@finos/legend-query-builder': patch
'@finos/legend-application': patch
'@finos/legend-data-cube': patch
'@finos/legend-graph': patch
---
12 changes: 12 additions & 0 deletions .changeset/loud-eagles-sip.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
---
'@finos/legend-application-data-cube-deployment': patch
'@finos/legend-application-data-cube-bootstrap': patch
'@finos/legend-application-data-cube': patch
'@finos/legend-application-pure-ide': patch
'@finos/legend-application-studio': patch
'@finos/legend-application-query': patch
'@finos/legend-application-repl': patch
'@finos/legend-query-builder': patch
'@finos/legend-application': patch
'@finos/legend-data-cube': patch
---
2 changes: 1 addition & 1 deletion packages/legend-application-data-cube-bootstrap/README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
# @finos/legend-application-data-cube-bootstrap

Legend Data Cube application bootstrap
Legend DataCube application bootstrap
3 changes: 2 additions & 1 deletion packages/legend-application-data-cube-bootstrap/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@finos/legend-application-data-cube-bootstrap",
"version": "12.87.0",
"description": "Legend Data Cube application bootstrap",
"description": "Legend DataCube application bootstrap",
"keywords": [
"legend",
"legend-application",
Expand Down Expand Up @@ -46,6 +46,7 @@
"dependencies": {
"@finos/legend-application": "workspace:*",
"@finos/legend-application-data-cube": "workspace:*",
"@finos/legend-data-cube": "workspace:*",
"@finos/legend-extension-dsl-data-space": "workspace:*",
"@finos/legend-shared": "workspace:*",
"@types/react": "19.0.2",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@ export class LegendDataCubeWebApplication {
.setup({ baseAddress: baseUrl })
.withPresets(LegendDataCubeWebApplication.getPresetCollection())
.withPlugins(LegendDataCubeWebApplication.getPluginCollection())
.withDownloadHelper()
.start()
.catch((e: unknown) => {
throw e;
Expand Down
34 changes: 5 additions & 29 deletions packages/legend-application-data-cube-bootstrap/style/index.scss
Original file line number Diff line number Diff line change
Expand Up @@ -14,36 +14,12 @@
* limitations under the License.
*/

@import url('@finos/legend-art/lib/normalize.css');
@import url('@finos/legend-art/lib/index.css');
@import url('@finos/legend-application/lib/index.css');
@import url('@finos/legend-lego/lib/index.css');
@import url('@finos/legend-art/lib/fonts.css');
@import url('@finos/legend-data-cube/lib/index.css');
@import url('@finos/legend-application-data-cube/lib/index.css');
@import url('@finos/legend-query-builder/lib/index.css');

// NOTE: the following styles are temporary so we can have a poor-man version of
// theming for Legend Query. The reason why we put the code here is that this is
// where we essentially do all the overriding for everything from every extensions.
// In other words, this is the only place where we can exhaustively and correctly
// override native dark theme with light them colors.
:root {
--color-legacylight-light-grey-100: #edf0f1;
--color-legacylight-light-grey-200: #dce2e4;
--color-legacylight-light-grey-300: #b5bec4;
--color-legacylight-light-grey-400: #95a0a8;
--color-legacylight-dark-grey-200: #29323a;
--color-legacylight-dark-grey-400: #4e5364;
--color-legacylight-light-blue-50: #def3ff;
--color-legacylight-light-blue-100: #7399c6;
--color-legacylight-light-blue-200: #6a8db6;
--color-legacylight-light-blue-250: #687b93;
--color-legacylight-light-blue-270: #597089;
--color-legacylight-light-blue-300: #4d6f9c;
--color-legacylight-light-blue-350: #475b72;
--color-legacylight-light-blue-400: #1b4c8c;
--color-legacylight-light-blue-600: #2d3d51;
--color-legacylight-green-100: #5cb65c;
--color-legacylight-orange-100: #f68f1e;
--color-legacylight-orange-150: #ea8212;
html {
box-sizing: border-box;
font-family: Roboto, sans-serif;
overflow-y: hidden;
}
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
"exclude": ["src/**/__tests__/**/*.*", "src/**/__mocks__/**/*.*"],
"references": [
{ "path": "../legend-shared/tsconfig.build.json" },
{ "path": "../legend-data-cube/tsconfig.build.json" },
{ "path": "../legend-application/tsconfig.build.json" },
{ "path": "../legend-application-data-cube/tsconfig.build.json" },
{ "path": "../legend-extension-dsl-data-space/tsconfig.build.json" }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
"include": ["src/**/*.ts", "src/**/*.tsx", "src/**/*.json"],
"references": [
{ "path": "../legend-shared" },
{ "path": "../legend-data-cube" },
{ "path": "../legend-application" },
{ "path": "../legend-application-data-cube" },
{ "path": "../legend-extension-dsl-data-space" }
Expand Down
2 changes: 1 addition & 1 deletion packages/legend-application-data-cube-deployment/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# @finos/legend-application-data-cube-deployment

This is the `Legend Data Cube` web application deployment. This is used for development locally and publishing of image [finos/legend-data-cube](https://hub.docker.com/r/finos/legend-data-cube) on [Docker Hub](https://hub.docker.com/).
This is the `Legend DataCube` web application deployment. This is used for development locally and publishing of image [finos/legend-data-cube](https://hub.docker.com/r/finos/legend-data-cube) on [Docker Hub](https://hub.docker.com/).

## Getting started

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "@finos/legend-application-data-cube-deployment",
"version": "12.87.0",
"private": true,
"description": "Legend Data Cube web application deployment",
"description": "Legend DataCube web application deployment",
"keywords": [
"legend",
"legend-application",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<!doctype html>
<html lang="en">
<head>
<title>Legend Data Cube</title>
<title>&#x229E; Legend DataCube</title>
<meta charset="UTF-8" />
<meta
name="viewport"
Expand Down
2 changes: 1 addition & 1 deletion packages/legend-application-data-cube/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@finos/legend-application-data-cube",
"version": "0.1.5",
"description": "Legend Data Cube application core",
"description": "Legend DataCube application core",
"keywords": [
"legend",
"legend-application",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,19 +17,19 @@
import { generatePath } from '@finos/legend-application/browser';

export enum LEGEND_DATA_CUBE_ROUTE_PATTERN_TOKEN {
DATA_CUBE_QUERY_ID = 'id',
QUERY_ID = 'id',
}

export const LEGEND_DATA_CUBE_ROUTE_PATTERN = Object.freeze({
VIEW_EXISTING_QUERY: `/:${LEGEND_DATA_CUBE_ROUTE_PATTERN_TOKEN.DATA_CUBE_QUERY_ID}`,
EDIT_EXISTING_QUERY: `/:${LEGEND_DATA_CUBE_ROUTE_PATTERN_TOKEN.QUERY_ID}`,
});

export type ExistingDataCubeViewerPathParams = {
[LEGEND_DATA_CUBE_ROUTE_PATTERN_TOKEN.DATA_CUBE_QUERY_ID]: string;
export type EditExistingQueryPathParams = {
[LEGEND_DATA_CUBE_ROUTE_PATTERN_TOKEN.QUERY_ID]: string;
};

export const generatedSavedQueryUrl = (id: string): string => {
return generatePath(LEGEND_DATA_CUBE_ROUTE_PATTERN.VIEW_EXISTING_QUERY, {
return generatePath(LEGEND_DATA_CUBE_ROUTE_PATTERN.EDIT_EXISTING_QUERY, {
id,
});
};
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ export class LegendDataCube extends LegendApplication {
): Promise<LegendApplicationConfig> {
return new LegendDataCubeApplicationConfig(input);
}

async loadApplication(
applicationStore: ApplicationStore<
LegendApplicationConfig,
Expand Down

This file was deleted.

Loading

0 comments on commit df82e6b

Please sign in to comment.