mirror of
https://github.com/andwati/zitadel.git
synced 2026-11-24 13:48:45 +00:00
chore: management console naming inconsistency (#11390)
# Which Problems Are Solved The following terms have all been renamed to management console: - Customer Portal (when used to mean the console) - Console - Admin Console # How the Problems Are Solved - Search & Replace smartly - Use Copilot for translation files Changes done to: backend + frontend codebase, docs, translations and protobufs (descriptions only) # Additional Context - Partially Closes #11279
This commit is contained in:
@@ -15,8 +15,8 @@ var emptyInstance = &instance{}
|
||||
type Instance interface {
|
||||
InstanceID() string
|
||||
ProjectID() string
|
||||
ConsoleClientID() string
|
||||
ConsoleApplicationID() string
|
||||
ManagementConsoleClientID() string
|
||||
ManagementConsoleApplicationID() string
|
||||
DefaultLanguage() language.Tag
|
||||
DefaultOrganisationID() string
|
||||
SecurityPolicyAllowedOrigins() []string
|
||||
@@ -62,11 +62,11 @@ func (i *instance) ProjectID() string {
|
||||
return i.projectID
|
||||
}
|
||||
|
||||
func (i *instance) ConsoleClientID() string {
|
||||
func (i *instance) ManagementConsoleClientID() string {
|
||||
return i.clientID
|
||||
}
|
||||
|
||||
func (i *instance) ConsoleApplicationID() string {
|
||||
func (i *instance) ManagementConsoleApplicationID() string {
|
||||
return i.appID
|
||||
}
|
||||
|
||||
@@ -124,7 +124,7 @@ func WithDefaultLanguage(ctx context.Context, defaultLanguage language.Tag) cont
|
||||
return context.WithValue(ctx, instanceKey, i)
|
||||
}
|
||||
|
||||
func WithConsole(ctx context.Context, projectID, appID string) context.Context {
|
||||
func WithManagementConsole(ctx context.Context, projectID, appID string) context.Context {
|
||||
i, ok := ctx.Value(instanceKey).(*instance)
|
||||
if !ok {
|
||||
i = new(instance)
|
||||
@@ -135,7 +135,7 @@ func WithConsole(ctx context.Context, projectID, appID string) context.Context {
|
||||
return context.WithValue(ctx, instanceKey, i)
|
||||
}
|
||||
|
||||
func WithConsoleClientID(ctx context.Context, clientID string) context.Context {
|
||||
func WithManagementConsoleClientID(ctx context.Context, clientID string) context.Context {
|
||||
i, ok := ctx.Value(instanceKey).(*instance)
|
||||
if !ok {
|
||||
i = new(instance)
|
||||
|
||||
@@ -57,7 +57,7 @@ func Test_Instance(t *testing.T) {
|
||||
res{
|
||||
instanceID: "instanceID",
|
||||
projectID: "projectID",
|
||||
consoleID: "consoleID",
|
||||
consoleID: "managementConsoleID",
|
||||
},
|
||||
},
|
||||
{
|
||||
@@ -79,7 +79,7 @@ func Test_Instance(t *testing.T) {
|
||||
got := GetInstance(tt.args.ctx)
|
||||
assert.Equal(t, tt.res.instanceID, got.InstanceID())
|
||||
assert.Equal(t, tt.res.projectID, got.ProjectID())
|
||||
assert.Equal(t, tt.res.consoleID, got.ConsoleClientID())
|
||||
assert.Equal(t, tt.res.consoleID, got.ManagementConsoleClientID())
|
||||
assert.Equal(t, tt.res.features, got.Features())
|
||||
})
|
||||
}
|
||||
@@ -103,11 +103,11 @@ func (m *mockInstance) ProjectID() string {
|
||||
return "projectID"
|
||||
}
|
||||
|
||||
func (m *mockInstance) ConsoleClientID() string {
|
||||
return "consoleID"
|
||||
func (m *mockInstance) ManagementConsoleClientID() string {
|
||||
return "managementConsoleID"
|
||||
}
|
||||
|
||||
func (m *mockInstance) ConsoleApplicationID() string {
|
||||
func (m *mockInstance) ManagementConsoleApplicationID() string {
|
||||
return "appID"
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user