Commit Graph

211 Commits

Author SHA1 Message Date
mario ma 4be9104eeb fix: review
Signed-off-by: mario ma <mario.ma.node@gmail.com>
2025-04-15 22:20:31 +08:00
mario ma f67caac211 fix: unit test
Signed-off-by: mario ma <mario.ma.node@gmail.com>
2025-04-10 15:20:49 +08:00
mario ma 0f28d7e94f fix: add sidebar translation
Signed-off-by: mario ma <mario.ma.node@gmail.com>
2025-04-10 15:20:48 +08:00
mario ma 50f0e841b2 fix: review
Signed-off-by: mario ma <mario.ma.node@gmail.com>
2025-04-10 15:20:48 +08:00
mario ma 0255fe402f fix: update translations
Signed-off-by: mario ma <mario.ma.node@gmail.com>
2025-04-10 15:20:48 +08:00
mario ma a7bfdb6c4d userSetting plugin support i18n
Signed-off-by: mario ma <mario.ma.node@gmail.com>
2025-04-10 15:20:47 +08:00
Paul Schultz 2e26579e06 chore: update react imports
Signed-off-by: Paul Schultz <pschultz@pobox.com>
2025-04-08 07:35:24 -05:00
Fredrik Adelöw b52715bc2e implement identity too
Signed-off-by: Fredrik Adelöw <freben@gmail.com>
2024-10-11 09:48:52 +02:00
Łukasz Jernaś 1a81c44162 Don't mutate retrieved identityProfile, replace it instead.
Signed-off-by: Łukasz Jernaś <lukasz.jernas@allegro.com>
2024-10-03 12:45:05 +02:00
Łukasz Jernaś 0040632c8c feat(user-settings): Search for user avatar also in the entities
If the identity system doesn't provide an avatar, but the existing
user entity does have the correct annotation use that as the profile
avatar.

Fixes #26838

Signed-off-by: Łukasz Jernaś <lukasz.jernas@allegro.com>
2024-09-27 11:09:38 +02:00
blam 75e79518ea chore: some more migrations
Signed-off-by: blam <ben@blam.sh>
2024-08-15 16:24:20 +02:00
Patrik Oldsberg 9b356dcaac frontend-plugin-api: renamed createPlugin to createFrontendPlugin
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
2024-08-14 16:01:25 +02:00
Camila Belo b82aff92aa refactor(test-utils): deprecate the isDockerDisabledForTests function
Signed-off-by: Camila Belo <camilaibs@gmail.com>
2024-07-10 17:06:00 +02:00
Camila Belo 95a3a0b91c refactor(test-utils): rename setupRequestMockHandlers to setupMswHandler
Signed-off-by: Camila Belo <camilaibs@gmail.com>
2024-07-10 15:45:49 +02:00
Fredrik Adelöw 54c6116d9b Merge pull request #24982 from drodil/user_settings_signals
feat: use signals to update user settings over sessions
2024-06-08 09:26:12 +02:00
Heikki Hellgren e6ec17948d feat: use signals to update user settings over sessions
closes #24981

Signed-off-by: Heikki Hellgren <heikki.hellgren@op.fi>
2024-06-07 09:06:13 +03:00
Fredrik Adelöw 9cdc651a41 fix some particularly noisy test log warning sources
Signed-off-by: Fredrik Adelöw <freben@gmail.com>
2024-05-30 14:52:48 +02:00
Ben Lambert 1cbc081d9a Merge pull request #23527 from npiyush97/navfix
🐛 bug fix:fix issue in entitypage tabs with replacing nav link tabs
2024-04-02 14:31:58 +02:00
Tomasz Szuba e8f026a300 Use esm exports from react-use library
Signed-off-by: Tomasz Szuba <tszuba@box.com>
2024-03-19 19:53:04 +00:00
npiyush97 119c566d49 test fix
Signed-off-by: npiyush97 <npiyush35@gmail.com>
2024-03-19 11:10:20 +05:30
Aditya Kumar ee584af4b4 Add ESLint Rule to UserSettings Plugin
Signed-off-by: Aditya Kumar <aditya.kumar60@infosys.com>
2024-03-18 09:55:47 +05:30
AmbrishRamachandiran d5b14a0ad5 conditionally rendering the user name and email in user settings page
Signed-off-by: AmbrishRamachandiran <ambrish.r@infosys.com>
2024-02-06 12:19:15 +05:30
Patrik Oldsberg 912ca7b583 plugins: use convertLegacyRouteRefs
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
2024-01-19 11:28:14 +01:00
Patrik Oldsberg c7c259f75e Merge pull request #22035 from arctir/user-settings-nav-item
Add a user-settings core nav item
2024-01-09 10:16:24 +01:00
Craig Tracey eea0849d6b Add a user-settings core nav item
As user-settings should show up in the core nav, add a user-settings nav
item to the declarative integration plugin.

Signed-off-by: Craig Tracey <craig@arctir.com>
2023-12-27 15:17:00 -05:00
Stan Lewis 56b2fb0726 feat: Use a Select control for the language select
This change updates the language selector in the user settings component
to use a Select control instead of a list of buttons.  The select
control will try and display the native language name instead of the
language code.  Fixes #21626

Signed-off-by: Stan Lewis <gashcrumb@gmail.com>
2023-12-19 10:25:25 -05:00
Patrik Oldsberg 58141224d3 plugins: update all other plugins to fit new frontend system naming patterns
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
2023-12-13 19:31:28 +01:00
Patrik Oldsberg a1227cc993 plugins: wrap extension elements in compatWrapper
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
2023-11-29 10:44:48 +01:00
Patrik Oldsberg 8f5d6c1fbf frontend-plugin-api: wrap resolved extension inputs in an object
Co-authored-by: Camila Belo <camilaibs@gmail.com>
Co-authored-by: Vincenzo Scamporlino <vincenzos@spotify.com>
Co-authored-by: Fredrik Adelöw <freben@gmail.com>
Co-authored-by: Philipp Hugenroth <philipph@spotify.com>
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
2023-11-28 19:17:48 +01:00
Patrik Oldsberg 36c94b8462 plugins: refactor DI extension IDs
Co-authored-by: Camila Belo <camilaibs@gmail.com>
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
2023-11-28 16:24:49 +01:00
Patrik Oldsberg fb8f3bdbc2 plugins: update translation messages to use nested structure and camelCase
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
2023-11-24 13:50:33 +01:00
Fredrik Adelöw 1d7c989db2 remove even more BackstageTheme usages
Signed-off-by: Fredrik Adelöw <freben@gmail.com>
2023-11-20 15:52:05 +01:00
Vincenzo Scamporlino aea1e02e0f chore: import convertLegacyRouteRef from core-compat-api
Signed-off-by: Vincenzo Scamporlino <vincenzos@spotify.com>
2023-11-13 23:45:56 +01:00
Fredrik Adelöw daf7d1bddb Merge pull request #17474 from backstage/freben/hack-presentation
An `entityPresentationApiRef`, for rendering rich entity refs
2023-10-24 11:26:41 +02:00
Fredrik Adelöw 3988751087 stop returning the entity
Signed-off-by: Fredrik Adelöw <freben@gmail.com>
2023-10-23 16:55:59 +02:00
Patrik Oldsberg d84f5efa60 plugins: updates to convert legacy route refs to new system
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
2023-10-17 11:57:52 +02:00
Vincenzo Scamporlino 224907840c user-settings: minor fixes
Signed-off-by: Vincenzo Scamporlino <vincenzos@spotify.com>
2023-10-11 12:05:43 +02:00
Vincenzo Scamporlino 1e60a9c3a5 fronten-app-api: routing system matches subroutes
Signed-off-by: Vincenzo Scamporlino <vincenzos@spotify.com>
2023-10-10 23:27:17 +02:00
Vincenzo Scamporlino 00d9803ce9 user-settings: keep page extension internal
Signed-off-by: Vincenzo Scamporlino <vincenzos@spotify.com>
2023-10-10 23:27:17 +02:00
Vincenzo Scamporlino 2dd349cbef user-settings: remove extension data
Signed-off-by: Vincenzo Scamporlino <vincenzos@spotify.com>
2023-10-10 23:27:17 +02:00
Vincenzo Scamporlino fdb8cef4d8 user-settings: api reports
Signed-off-by: Vincenzo Scamporlino <vincenzos@spotify.com>
2023-10-10 23:27:17 +02:00
Vincenzo Scamporlino d10a39b4b8 user-settings: add providerSettings extension data
Signed-off-by: Vincenzo Scamporlino <vincenzos@spotify.com>
2023-10-10 23:27:17 +02:00
Vincenzo Scamporlino b69cf95dfd user-settings: match subroutes
Signed-off-by: Vincenzo Scamporlino <vincenzos@spotify.com>
2023-10-10 23:27:17 +02:00
Vincenzo Scamporlino 3a6e5fcbdd user-settings: add new backend system support
Signed-off-by: Vincenzo Scamporlino <vincenzos@spotify.com>
2023-10-10 23:26:03 +02:00
Fredrik Adelöw e5ce16aa44 address comments
Signed-off-by: Fredrik Adelöw <freben@gmail.com>
2023-09-26 10:58:29 +02:00
Fredrik Adelöw 1e5b7d993a Add an entityPresentationApiRef
Signed-off-by: Fredrik Adelöw <freben@gmail.com>
2023-09-26 10:58:28 +02:00
Patrik Oldsberg d1b637d005 user-settings: fix theme icon colors
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
2023-09-25 11:25:51 +02:00
Patrik Oldsberg a68326c95a core-plugin-api: remove the need to declare translation messages as const
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
2023-09-18 21:01:33 +02:00
Patrik Oldsberg c83721fee5 user-settings: avoid unknown translation keys
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
2023-09-17 11:35:12 +02:00
Patrik Oldsberg 41b10267d7 user-settings: update to use new translation APIs
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
2023-09-15 13:15:45 +02:00