Patrik
810184269d
fix(ui): auth-fields container renders despite no visible auth/API key/verify content ( #13554 )
...
### What?
Prevents the Auth component from rendering an empty `.auth-fields`
wrapper.
### Why?
When `disableLocalStrategy` is true and `enableFields` is false, but
`useAPIKey` is true while
read access to API key fields is denied, the component still rendered
the parent wrapper with a
background—showing a blank box.
### How?
Introduce `hasVisibleContent`:
- `showAuthBlock = enableFields`
- `showAPIKeyBlock = useAPIKey && canReadApiKey`
- `showVerifyBlock = verify && isEditing`
If none are true, return `null`. (`disableLocalStrategy` is already
accounted for via `enableFields`.)
Fixes #12089
---
- To see the specific tasks where the Asana app for GitHub is being
used, see below:
- https://app.asana.com/0/0/1211117270523574
2025-08-22 20:03:36 +00:00
..
2025-08-11 16:59:03 -04:00
2025-07-30 05:52:01 -07:00
2025-08-21 13:23:51 -04:00
2025-05-19 12:36:40 -03:00
2025-07-09 10:39:02 -04:00
2024-11-16 15:30:05 -05:00
2025-06-05 09:19:19 -07:00
2025-08-22 20:03:36 +00:00
2025-04-08 17:25:29 -03:00
2025-05-19 12:36:40 -03:00
2025-08-19 19:44:59 +00:00
2025-06-05 09:19:19 -07:00
2025-06-19 09:18:29 +00:00
2025-06-05 09:19:19 -07:00
2025-05-19 12:36:40 -03:00
2025-06-05 09:19:19 -07:00
2025-08-22 08:41:07 -04:00
2025-06-05 09:19:19 -07:00
2025-05-19 12:36:40 -03:00
2025-05-19 12:36:40 -03:00
2025-05-19 12:36:40 -03:00
2025-06-05 09:19:19 -07:00
2025-08-19 19:44:59 +00:00
2025-05-19 12:36:40 -03:00
2025-08-20 20:18:14 +03:00
2025-08-19 19:44:59 +00:00
2025-08-05 13:39:59 -04:00
2025-06-05 09:19:19 -07:00
2025-08-22 15:41:51 -04:00
2025-06-05 09:19:19 -07:00
2025-06-05 09:19:19 -07:00
2025-05-19 12:36:40 -03:00
2025-08-12 09:49:47 -07:00
2025-08-22 12:47:13 -04:00
2025-06-11 06:23:22 -07:00
2025-07-30 05:52:01 -07:00
2024-10-30 17:56:50 +00:00
2025-08-01 18:05:54 +03:00
2025-08-22 09:44:55 +01:00
2025-05-19 12:36:40 -03:00
2025-08-20 08:08:55 -04:00
2025-08-19 19:44:59 +00:00
2025-05-19 12:36:40 -03:00
2025-07-24 14:00:52 -04:00
2025-06-05 09:19:19 -07:00
2025-05-19 12:36:40 -03:00
2025-05-19 12:36:40 -03:00
2025-06-05 09:19:19 -07:00
2025-06-05 09:19:19 -07:00
2025-06-05 09:19:19 -07:00
2025-08-15 11:56:58 -07:00
2025-08-22 12:47:13 -04:00
2025-06-05 09:19:19 -07:00
2025-06-05 09:19:19 -07:00
2025-06-05 09:19:19 -07:00
2025-06-05 09:19:19 -07:00
2025-06-05 09:19:19 -07:00
2025-06-05 09:19:19 -07:00
2025-06-05 09:19:19 -07:00
2025-08-12 18:59:06 +00:00
2025-08-12 11:55:17 -04:00
2025-07-25 09:10:21 -04:00
2025-07-23 16:48:25 -07:00
2025-06-27 09:13:52 -04:00
2025-07-29 03:25:09 +00:00
2025-07-10 08:00:26 -07:00
2025-07-10 08:00:26 -07:00
2025-07-10 08:00:26 -07:00
2025-07-10 08:00:26 -07:00
2025-07-10 08:00:26 -07:00
2025-07-30 14:11:11 -07:00
2025-06-29 14:20:54 -04:00
2025-08-19 15:39:31 -04:00
2025-08-22 09:39:21 +01:00
2025-06-04 17:34:37 -03:00
2025-06-05 22:01:55 -03:00
2024-12-31 09:14:56 -05:00
2025-07-30 05:52:01 -07:00
2025-08-20 16:31:19 +00:00
2025-07-16 15:17:43 -04:00
2025-03-05 19:14:35 +00:00
2025-08-21 13:15:24 -04:00
2025-07-18 06:48:27 -04:00
2024-11-11 13:59:05 -05:00
2024-10-11 18:54:39 +00:00
2025-02-17 19:50:32 +00:00
2024-10-11 18:54:39 +00:00
2024-12-17 14:49:29 -05:00
2025-07-11 16:34:55 -04:00
2025-07-28 16:23:43 +00:00
2025-02-07 03:24:49 +00:00
2025-06-05 22:01:55 -03:00
2025-07-18 06:48:27 -04:00
2024-10-14 20:02:26 +00:00
2025-03-05 19:14:35 +00:00
2025-05-12 09:41:18 -04:00
2025-02-14 00:08:20 +00:00
2025-01-14 20:00:00 -03:00
2025-03-05 19:14:35 +00:00