Skip to content

Commit

Permalink
feat: Experimenting with new Console layout (#1130)
Browse files Browse the repository at this point in the history
Still need to improve layout engine a bit and iterate on right panel
details.

![Screenshot 2024-03-22 at 12 03
14 PM](https://github.com/TBD54566975/ftl/assets/51647/7a7152f8-0ea9-47d8-b2a4-aa9a04e9b8b2)
![Screenshot 2024-03-22 at 12 04
56 PM](https://github.com/TBD54566975/ftl/assets/51647/a739000a-f34c-4af6-bfc3-54c443586c88)
![Screenshot 2024-03-22 at 12 05
14 PM](https://github.com/TBD54566975/ftl/assets/51647/4036ba6a-2577-45e6-a77f-f14afe8bde7d)
![Screenshot 2024-03-22 at 12 05
28 PM](https://github.com/TBD54566975/ftl/assets/51647/8eb99ff9-0cac-469e-bc44-c95922204e72)
  • Loading branch information
wesbillman authored Mar 22, 2024
1 parent f64a686 commit 7579a4d
Show file tree
Hide file tree
Showing 29 changed files with 1,636 additions and 423 deletions.
21 changes: 20 additions & 1 deletion backend/controller/console.go
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,8 @@ func (c *ConsoleService) GetModules(ctx context.Context, req *connect.Request[pb
for _, deployment := range deployments {
var verbs []*pbconsole.Verb
var data []*pbconsole.Data
var secrets []*pbconsole.Secret
var configs []*pbconsole.Config

for _, decl := range deployment.Schema.Decls {
switch decl := decl.(type) {
Expand Down Expand Up @@ -89,7 +91,21 @@ func (c *ConsoleService) GetModules(ctx context.Context, req *connect.Request[pb
Schema: schema.DataFromProto(d).String(),
})

case *schema.Database, *schema.Enum, *schema.Config, *schema.Secret:
case *schema.Secret:
//nolint:forcetypeassert
s := decl.ToProto().(*schemapb.Secret)
secrets = append(secrets, &pbconsole.Secret{
Secret: s,
})

case *schema.Config:
//nolint:forcetypeassert
c := decl.ToProto().(*schemapb.Config)
configs = append(configs, &pbconsole.Config{
Config: c,
})

case *schema.Database, *schema.Enum:
}
}

Expand All @@ -99,6 +115,9 @@ func (c *ConsoleService) GetModules(ctx context.Context, req *connect.Request[pb
Language: deployment.Language,
Verbs: verbs,
Data: data,
Secrets: secrets,
Configs: configs,
Schema: deployment.Schema.String(),
})
}

Expand Down
Loading

0 comments on commit 7579a4d

Please sign in to comment.