Skip to content

Commit

Permalink
Update UI Server
Browse files Browse the repository at this point in the history
  • Loading branch information
temporal-data committed Sep 24, 2024
1 parent 80cedd8 commit b8de147
Show file tree
Hide file tree
Showing 430 changed files with 594 additions and 604 deletions.
1 change: 1 addition & 0 deletions config/development.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ workflowResetDisabled: false
batchActionsDisabled: false
startWorkflowDisabled: false
hideWorkflowQueryErrors: false
refreshWorkflowCountsDisabled: false
auth:
enabled: false
providers:
Expand Down
1 change: 1 addition & 0 deletions docker/config-template.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ workflowResetDisabled: {{ default .Env.TEMPORAL_WORKFLOW_RESET_DISABLED "false"
batchActionsDisabled: {{ default .Env.TEMPORAL_BATCH_ACTIONS_DISABLED "false" }}
startWorkflowDisabled: {{ default .Env.TEMPORAL_START_WORKFLOW_DISABLED "true" }}
hideWorkflowQueryErrors: {{ default .Env.TEMPORAL_HIDE_WORKFLOW_QUERY_ERRORS "false" }}
refreshWorkflowCountsDisabled: {{ default .Env.TEMPORAL_REFRESH_WORKFLOW_COUNTS_DISABLED "false" }}
cors:
cookieInsecure: {{ default .Env.TEMPORAL_CSRF_COOKIE_INSECURE "false" }}
allowOrigins:
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module github.com/temporalio/ui-server/v2

go 1.20
go 1.22.6

require (
github.com/coreos/go-oidc/v3 v3.1.0
Expand Down
52 changes: 27 additions & 25 deletions server/api/handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -56,22 +56,23 @@ type CodecResponse struct {
}

type SettingsResponse struct {
Auth *Auth
BannerText string
DefaultNamespace string
ShowTemporalSystemNamespace bool
FeedbackURL string
NotifyOnNewVersion bool
Codec *CodecResponse
Version string
DisableWriteActions bool
WorkflowTerminateDisabled bool
WorkflowCancelDisabled bool
WorkflowSignalDisabled bool
WorkflowResetDisabled bool
BatchActionsDisabled bool
StartWorkflowDisabled bool
HideWorkflowQueryErrors bool
Auth *Auth
BannerText string
DefaultNamespace string
ShowTemporalSystemNamespace bool
FeedbackURL string
NotifyOnNewVersion bool
Codec *CodecResponse
Version string
DisableWriteActions bool
WorkflowTerminateDisabled bool
WorkflowCancelDisabled bool
WorkflowSignalDisabled bool
WorkflowResetDisabled bool
BatchActionsDisabled bool
StartWorkflowDisabled bool
HideWorkflowQueryErrors bool
RefreshWorkflowCountsDisabled bool
}

func TemporalAPIHandler(cfgProvider *config.ConfigProviderWithRefresh, apiMiddleware []Middleware, conn *grpc.ClientConn) echo.HandlerFunc {
Expand Down Expand Up @@ -136,15 +137,16 @@ func GetSettings(cfgProvider *config.ConfigProviderWithRefresh) func(echo.Contex
PassAccessToken: cfg.Codec.PassAccessToken,
IncludeCredentials: cfg.Codec.IncludeCredentials,
},
Version: version.UIVersion,
DisableWriteActions: cfg.DisableWriteActions,
WorkflowTerminateDisabled: cfg.WorkflowTerminateDisabled,
WorkflowCancelDisabled: cfg.WorkflowCancelDisabled,
WorkflowSignalDisabled: cfg.WorkflowSignalDisabled,
WorkflowResetDisabled: cfg.WorkflowResetDisabled,
BatchActionsDisabled: cfg.BatchActionsDisabled,
StartWorkflowDisabled: cfg.StartWorkflowDisabled,
HideWorkflowQueryErrors: cfg.HideWorkflowQueryErrors,
Version: version.UIVersion,
DisableWriteActions: cfg.DisableWriteActions,
WorkflowTerminateDisabled: cfg.WorkflowTerminateDisabled,
WorkflowCancelDisabled: cfg.WorkflowCancelDisabled,
WorkflowSignalDisabled: cfg.WorkflowSignalDisabled,
WorkflowResetDisabled: cfg.WorkflowResetDisabled,
BatchActionsDisabled: cfg.BatchActionsDisabled,
StartWorkflowDisabled: cfg.StartWorkflowDisabled,
HideWorkflowQueryErrors: cfg.HideWorkflowQueryErrors,
RefreshWorkflowCountsDisabled: cfg.RefreshWorkflowCountsDisabled,
}

return c.JSON(http.StatusOK, settings)
Expand Down
2 changes: 2 additions & 0 deletions server/config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,8 @@ type (
StartWorkflowDisabled bool `yaml:"startWorkflowDisabled"`
// Whether to hide server errors for workflow queries in UI
HideWorkflowQueryErrors bool `yaml:"hideWorkflowQueryErrors"`
// Whether to disable refreshing workflow counts in UI
RefreshWorkflowCountsDisabled bool `yaml:"refreshWorkflowCountsDisabled"`
// Forward specified HTTP headers from HTTP API requests to Temporal gRPC backend
ForwardHeaders []string `yaml:"forwardHeaders"`
HideLogs bool `yaml:"hideLogs"`
Expand Down
1 change: 1 addition & 0 deletions ui/assets/local/_app/immutable/assets/2.C6erxnDW.css

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

1 change: 0 additions & 1 deletion ui/assets/local/_app/immutable/assets/2.CiBZh5IG.css

This file was deleted.

1 change: 1 addition & 0 deletions ui/assets/local/_app/immutable/assets/_layout.C6erxnDW.css

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

1 change: 0 additions & 1 deletion ui/assets/local/_app/immutable/assets/_layout.CiBZh5IG.css

This file was deleted.

1 change: 1 addition & 0 deletions ui/assets/local/_app/immutable/assets/app.B5OrHKxO.css

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions ui/assets/local/_app/immutable/assets/app.Bm8dkgu5.css

Large diffs are not rendered by default.

1 change: 0 additions & 1 deletion ui/assets/local/_app/immutable/assets/app.DV2zdnII.css

This file was deleted.

1 change: 0 additions & 1 deletion ui/assets/local/_app/immutable/assets/app.POPVJYmX.css

This file was deleted.

1 change: 0 additions & 1 deletion ui/assets/local/_app/immutable/assets/card.2EeElPgg.css

This file was deleted.

1 change: 1 addition & 0 deletions ui/assets/local/_app/immutable/assets/card.C1v2hj_B.css
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
.card.svelte-h7p5gd{border-color:rgb(var(--color-border-subtle));border-radius:1rem;border-width:2px;padding:1rem}

Large diffs are not rendered by default.

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

Loading

0 comments on commit b8de147

Please sign in to comment.