fix(console): Improve default org selection method in new breadcrumbs (#10612)

# Which Problems Are Solved

e2e tests work again in chrome and all other browsers

# How the Problems Are Solved

If the user has no org selected we have to choose a default org to
select. The logic for this was faulty if a new organization was created
as the breadcrumb wasn't aware of the new org so it defaulted back to
the ZITADEL org.

# Additional changes

Improved the @zitadel/client package readme so the example code would
compile.
This commit is contained in:
Ramon
2025-09-01 15:06:35 +00:00
committed by GitHub
parent adaa6a8de6
commit 5517fe234f
4 changed files with 35 additions and 15 deletions
+9 -9
View File
@@ -300,8 +300,8 @@ importers:
specifier: ^15.0.0
version: 15.0.0(@angular/[email protected](@angular/[email protected]([email protected])([email protected]))([email protected]))(@angular/[email protected]([email protected])([email protected]))([email protected])
'@tanstack/angular-query-experimental':
specifier: ^5.85.5
version: 5.85.5(@angular/[email protected](@angular/[email protected]([email protected])([email protected]))([email protected]))(@angular/[email protected]([email protected])([email protected]))
specifier: ^5.85.6
version: 5.85.6(@angular/[email protected](@angular/[email protected]([email protected])([email protected]))([email protected]))(@angular/[email protected]([email protected])([email protected]))
'@zitadel/client':
specifier: workspace:*
version: link:../packages/zitadel-client
@@ -5065,14 +5065,14 @@ packages:
'@tanem/[email protected]':
resolution: {integrity: sha512-UkJajeR44u73ujtr5GVSbIlELDWD/mzjqWe54YMK61ljKxFcJoPd9RBSaO7xj02ISCWUqJW99GjrS+sVF0UnrA==}
'@tanstack/[email protected].5':
resolution: {integrity: sha512-IhjAOcmrLK49P0w6dszIdfRlEmZkI+fuC+OvlhOT6Y0o6khWL0b3hEUTPFtFqzRes6WQMfUNfVDzEhTcHxLVRQ==}
'@tanstack/[email protected].6':
resolution: {integrity: sha512-HUdexlhqpIdToIxQtN328ZBtc3FpqPbKK/irrW7ZMgjMk6zdAQeVlULwN7yigP9FnjWqu11MiKOk22JGdGeu6A==}
peerDependencies:
'@angular/common': '>=16.0.0'
'@angular/core': '>=16.0.0'
'@tanstack/[email protected].5':
resolution: {integrity: sha512-KO0WTob4JEApv69iYp1eGvfMSUkgw//IpMnq+//cORBzXf0smyRwPLrUvEe5qtAEGjwZTXrjxg+oJNP/C00t6w==}
'@tanstack/[email protected].6':
resolution: {integrity: sha512-hCj0TktzdCv2bCepIdfwqVwUVWb+GSHm1Jnn8w+40lfhQ3m7lCO7ADRUJy+2unxQ/nzjh2ipC6ye69NDW3l73g==}
'@tanstack/[email protected]':
resolution: {integrity: sha512-fbF3n+z1rqhvd9EoGp5knHkv3p5B2Zml1yNRjh7sNXklngYI5RVIWUrUjZ1RIcEoscarUb0+bOvIs5x9dwzOXQ==}
@@ -20839,14 +20839,14 @@ snapshots:
content-type: 1.0.5
tslib: 2.8.1
'@tanstack/[email protected].5(@angular/[email protected](@angular/[email protected]([email protected])([email protected]))([email protected]))(@angular/[email protected]([email protected])([email protected]))':
'@tanstack/[email protected].6(@angular/[email protected](@angular/[email protected]([email protected])([email protected]))([email protected]))(@angular/[email protected]([email protected])([email protected]))':
dependencies:
'@angular/common': 16.2.12(@angular/[email protected]([email protected])([email protected]))([email protected])
'@angular/core': 16.2.12([email protected])([email protected])
'@tanstack/query-core': 5.85.5
'@tanstack/query-core': 5.85.6
'@tanstack/query-devtools': 5.84.0
'@tanstack/[email protected].5': {}
'@tanstack/[email protected].6': {}
'@tanstack/[email protected]': {}