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

Feat: Visual canvas dashboard #6294

Open
wants to merge 100 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
100 commits
Select commit Hold shift + click to select a range
002a5f9
Remove data resolvers from components
begelundmuller Oct 25, 2024
e873f1e
wip
briangregoryholmes Nov 5, 2024
2b80cff
merge main
briangregoryholmes Nov 5, 2024
0ffe720
wip
briangregoryholmes Nov 7, 2024
27b579f
Merge branch 'main' into bgh/visual-explore-editing
briangregoryholmes Nov 7, 2024
05e361e
create theme input
briangregoryholmes Nov 7, 2024
27729ea
add default case when key not set
briangregoryholmes Nov 7, 2024
add21fd
cleanup
briangregoryholmes Nov 7, 2024
36c1a44
merge main
briangregoryholmes Nov 7, 2024
0c2d217
Merge branch 'main' into bgh/visual-explore-editing
briangregoryholmes Nov 8, 2024
96c827f
cleanup and set defaults feature
briangregoryholmes Nov 8, 2024
a6ce459
test fix
briangregoryholmes Nov 9, 2024
595ffbb
Init canvas screen
djbarnwal Nov 14, 2024
4d25035
uxqa
briangregoryholmes Nov 15, 2024
2a972b2
Merge branch 'main' into bgh/visual-explore-editing
briangregoryholmes Nov 15, 2024
c62f476
uxqa
briangregoryholmes Nov 15, 2024
e17b46d
add tabs for chart options
djbarnwal Nov 18, 2024
8ac6ccb
Working chart
djbarnwal Nov 18, 2024
d610d84
uxqa, exclude mode
briangregoryholmes Nov 18, 2024
0ed000b
Merge branch 'main' into feat/canvas-2.0
djbarnwal Nov 19, 2024
065bc28
Merge branch 'bgh/visual-explore-editing' into feat/canvas-2.0
djbarnwal Nov 19, 2024
a25becc
Update UI to match visual editing
djbarnwal Nov 19, 2024
a289a2f
Remove unused file
djbarnwal Nov 19, 2024
76835a6
Larger icons
djbarnwal Nov 19, 2024
1b356b9
merge main
djbarnwal Nov 24, 2024
e8ca858
Merge branch 'main' into feat/canvas-2.0
djbarnwal Nov 25, 2024
33fa567
Share props
djbarnwal Nov 25, 2024
0512cab
Merge branch 'main' into begelundmuller/remove-component-resolvers
begelundmuller Dec 4, 2024
9ffddc4
Fix test
begelundmuller Dec 4, 2024
a2a4d7f
Add `max_width` and `theme`; remove `gap` and `column`; move `vega_li…
begelundmuller Dec 4, 2024
3434bc0
Add state and visual inspector
djbarnwal Dec 5, 2024
fe72b44
Merge main
djbarnwal Dec 5, 2024
2faedd8
Remove logs
djbarnwal Dec 5, 2024
f4d976b
Add component framework
djbarnwal Dec 10, 2024
97f1b5a
Merge main
djbarnwal Dec 10, 2024
d91c5d3
Fallback for MesaureBigNum for canvas
djbarnwal Dec 10, 2024
f6a3199
Merge branch 'main' into feat/canvas-2.0
djbarnwal Dec 12, 2024
5c548e8
Add input UI
djbarnwal Dec 14, 2024
44b9013
Merge main
djbarnwal Dec 14, 2024
b99aebe
Update schema
djbarnwal Dec 17, 2024
453a46d
Merge branch 'main' into feat/canvas-2.0
djbarnwal Dec 17, 2024
bec6332
Add bar positional inputs
djbarnwal Dec 17, 2024
ee35a13
Remove old import
djbarnwal Dec 18, 2024
4476e5a
Merge main
djbarnwal Dec 18, 2024
6a998c1
Merge branch 'main' into begelundmuller/remove-component-resolvers
begelundmuller Dec 18, 2024
26cc8e3
Remove non required fields from spec
djbarnwal Dec 18, 2024
871b1a8
Merge branch 'begelundmuller/remove-component-resolvers' into feat/ca…
djbarnwal Dec 18, 2024
f237dde
Remove old canvas deprecated properties
djbarnwal Dec 18, 2024
4458b80
Code hygiene
djbarnwal Dec 18, 2024
6e3337b
Remove eslint errors
djbarnwal Dec 19, 2024
fd4020f
Relax types for updating property
djbarnwal Dec 19, 2024
0bb083f
Remove stale code
djbarnwal Dec 19, 2024
70a22a3
Update preview
djbarnwal Dec 19, 2024
40d5875
Merge main
djbarnwal Dec 19, 2024
eb5bcb9
Update file artifact references
djbarnwal Dec 20, 2024
41c2d12
Remove unused prop
djbarnwal Dec 20, 2024
dfe6d62
remove ai chart gen from codebase
djbarnwal Dec 20, 2024
302ca97
Add support for adding component from menu
djbarnwal Dec 20, 2024
f563a09
Fix Go lint and test
begelundmuller Dec 20, 2024
b656cff
Use first metricsView as default
djbarnwal Dec 20, 2024
223d203
Merge remote-tracking branch 'origin/feat/canvas-2.0' into feat/canva…
djbarnwal Dec 20, 2024
ba704d0
Code hygiene
djbarnwal Dec 20, 2024
001b84c
use query for valid spec store
djbarnwal Dec 20, 2024
edd973d
Wait for container dimensions to be available before render
djbarnwal Dec 20, 2024
bab44b4
Fix fileartifact reference in component class
djbarnwal Dec 20, 2024
432bb26
Add theme root class
djbarnwal Dec 20, 2024
5ddd484
Sanitize bindings for inputs
djbarnwal Dec 21, 2024
48ff51e
Update styling for inputs
djbarnwal Dec 21, 2024
a41c459
Sidebar header UI changes
djbarnwal Dec 21, 2024
80477d2
Add small styles for theme input
djbarnwal Dec 21, 2024
98f7523
Add measure titles to charts
djbarnwal Dec 23, 2024
dcea247
Generalize query for chart data
djbarnwal Dec 23, 2024
08fb7ca
add color field input
djbarnwal Dec 23, 2024
456e3dc
Fix xoffset field
djbarnwal Dec 23, 2024
849d56c
Add multi select for measure and dimensions
djbarnwal Dec 23, 2024
0f2a700
Make multi selections removable
djbarnwal Dec 23, 2024
1644b84
Update chart type selector to accomodate new artifact changes
djbarnwal Dec 23, 2024
d4f3157
Merge main
djbarnwal Dec 24, 2024
476d0b5
Lint fix
djbarnwal Dec 24, 2024
242b3eb
Add time filter UI controls
djbarnwal Dec 26, 2024
927a3cf
Use class based store of stores
djbarnwal Dec 27, 2024
9540afe
Update selectors to use chips
djbarnwal Dec 27, 2024
c9c1afa
Lint fix
djbarnwal Dec 27, 2024
a9958ad
Move to new API
djbarnwal Dec 28, 2024
c256aa5
Merge branch 'main' into feat/canvas-2.0
djbarnwal Jan 2, 2025
608828d
Add grain selector
djbarnwal Jan 2, 2025
c0a4357
Separate out filter params in config
djbarnwal Jan 3, 2025
ff2fdea
Remove canvas entities as a store and use class
djbarnwal Jan 3, 2025
9242858
Cleanup
djbarnwal Jan 3, 2025
68673a2
Review
djbarnwal Jan 3, 2025
9e7d779
add filters tab
djbarnwal Jan 5, 2025
db53a72
Show editor eevn if there is resource errors
djbarnwal Jan 6, 2025
1a75df7
Derive time range from global selector in KPI and Charts
djbarnwal Jan 6, 2025
73213c1
Lint fix
djbarnwal Jan 6, 2025
b43eb28
Use map for components
djbarnwal Jan 7, 2025
3b67fb5
Combine time summary from multiple metrics view
djbarnwal Jan 7, 2025
3b189c4
Review
begelundmuller Jan 7, 2025
9c2e237
Merge remote-tracking branch 'origin/feat/canvas-2.0' into feat/canva…
djbarnwal Jan 7, 2025
0cc9eb4
Keep single copy of base component
djbarnwal Jan 7, 2025
22601c8
Merge branch 'main' into feat/canvas-2.0
begelundmuller Jan 8, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
353 changes: 126 additions & 227 deletions package-lock.json

Large diffs are not rendered by default.

1,758 changes: 866 additions & 892 deletions proto/gen/rill/runtime/v1/queries.pb.go

Large diffs are not rendered by default.

63 changes: 0 additions & 63 deletions proto/gen/rill/runtime/v1/queries.pb.validate.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

540 changes: 265 additions & 275 deletions proto/gen/rill/runtime/v1/resources.pb.go

Large diffs are not rendered by default.

64 changes: 31 additions & 33 deletions proto/gen/rill/runtime/v1/resources.pb.validate.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

23 changes: 6 additions & 17 deletions proto/gen/rill/runtime/v1/runtime.swagger.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1133,7 +1133,7 @@ paths:
properties:
args:
type: object
title: Optional args to pass to the data resolver and for resolving templating in the renderer properties
title: Optional args for resolving templating in the renderer properties
tags:
- QueryService
/v1/instances/{instanceId}/queries/descriptive-statistics/tables/{tableName}:
Expand Down Expand Up @@ -3477,12 +3477,13 @@ definitions:
properties:
displayName:
type: string
columns:
type: integer
format: int64
gap:
maxWidth:
type: integer
format: int64
theme:
type: string
embeddedTheme:
$ref: '#/definitions/v1ThemeSpec'
variables:
type: array
items:
Expand Down Expand Up @@ -3832,10 +3833,6 @@ definitions:
type: string
description:
type: string
resolver:
type: string
resolverProperties:
type: object
renderer:
type: string
rendererProperties:
Expand Down Expand Up @@ -5901,14 +5898,6 @@ definitions:
description: |-
Show property with templating resolved for the provided args.
If it resolves to false, the other fields are not set.
schema:
$ref: '#/definitions/v1StructType'
title: Schema of the resolved component data
data:
type: array
items:
type: object
title: Resolved component data
rendererProperties:
type: object
title: Renderer properties with templating resolved for the provided args
Expand Down
8 changes: 2 additions & 6 deletions proto/rill/runtime/v1/queries.proto
Original file line number Diff line number Diff line change
Expand Up @@ -779,20 +779,16 @@ message ResolveComponentRequest {
string instance_id = 1;
// Component name
string component = 2;
// Optional args to pass to the data resolver and for resolving templating in the renderer properties
// Optional args for resolving templating in the renderer properties
google.protobuf.Struct args = 3;
}

message ResolveComponentResponse {
// Show property with templating resolved for the provided args.
// If it resolves to false, the other fields are not set.
bool show = 1;
// Schema of the resolved component data
StructType schema = 2;
// Resolved component data
repeated google.protobuf.Struct data = 3;
// Renderer properties with templating resolved for the provided args
google.protobuf.Struct renderer_properties = 4;
google.protobuf.Struct renderer_properties = 2;
}

// **********
Expand Down
7 changes: 3 additions & 4 deletions proto/rill/runtime/v1/resources.proto
Original file line number Diff line number Diff line change
Expand Up @@ -675,8 +675,6 @@ message Component {
message ComponentSpec {
string display_name = 1;
string description = 7;
string resolver = 2;
google.protobuf.Struct resolver_properties = 3;
string renderer = 4;
google.protobuf.Struct renderer_properties = 5;
repeated ComponentVariable input = 8;
Expand All @@ -702,8 +700,9 @@ message Canvas {

message CanvasSpec {
string display_name = 1;
uint32 columns = 2;
uint32 gap = 3;
uint32 max_width = 2;
string theme = 7;
ThemeSpec embedded_theme = 8;
repeated ComponentVariable variables = 5;
repeated CanvasItem items = 4;
repeated SecurityRule security_rules = 6;
Expand Down
2 changes: 0 additions & 2 deletions runtime/compilers/rillv1/connectors.go
Original file line number Diff line number Diff line change
Expand Up @@ -81,8 +81,6 @@ func (a *connectorAnalyzer) analyzeResource(ctx context.Context, r *Resource) {
a.trackConnector(r.MigrationSpec.Connector, r, false)
} else if r.APISpec != nil {
a.analyzeResourceWithResolver(r, r.APISpec.Resolver, r.APISpec.ResolverProperties)
} else if r.ComponentSpec != nil {
a.analyzeResourceWithResolver(r, r.ComponentSpec.Resolver, r.ComponentSpec.ResolverProperties)
} else if r.AlertSpec != nil {
a.analyzeResourceNotifiers(r, r.AlertSpec.Notifiers)
} else if r.ReportSpec != nil {
Expand Down
Loading
Loading