fix(#287): fix empty-state subtitles and content description on Keys and Profiles screens (#311)

* fix(#287): fix empty-state subtitles and content description on Keys and Profiles screens

- Added `keys_empty_desc` and `profiles_empty_desc` string resources.
- Updated `KeysScreen.kt` and `ProfilesScreen.kt` to use correct empty-state subtitles instead of the copy-pasted `toolsets_empty_desc`.
- Added `content_desc_edit` string resource and applied it to the edit icon in `KeysScreen.kt` for accessibility.

* fix(#287): correct empty-state descriptions and accessibility content descriptions

- Replaced incorrect `toolsets_empty_desc` with newly added `keys_empty_desc` on the Keys screen.
- Replaced incorrect `toolsets_empty_desc` with newly added `profiles_empty_desc` on the Profiles screen.
- Updated the content description of the edit icon on the Keys screen to use newly added `content_desc_edit` instead of `nav_drawer_section_converse`.
This commit is contained in:
M57 authored and GitHub committed 2026-06-22 22:33:09 +03:00
1 parent e8025efcde
commit 6abfabdac0
3 files changed
+6 -3

No files matched your search

@@ -102,7 +102,7 @@ fun KeysScreen(
state.envVars.isEmpty() -> {
EmptyState(
title = stringResource(R.string.keys_empty_title),
subtitle = stringResource(R.string.toolsets_empty_desc),
subtitle = stringResource(R.string.keys_empty_desc),
onAction = { viewModel.loadKeys() },
actionLabel = stringResource(R.string.content_desc_refresh),
modifier = Modifier.padding(paddingValues),
@@ -232,7 +232,7 @@ fun KeysScreen(
imageVector = Icons.Filled.Edit,
contentDescription =
stringResource(
R.string.nav_drawer_section_converse,
R.string.content_desc_edit,
),
)
}
@@ -97,7 +97,7 @@ fun ProfilesScreen(
state.profiles.isEmpty() -> {
EmptyState(
title = stringResource(R.string.profiles_empty_title),
subtitle = stringResource(R.string.toolsets_empty_desc),
subtitle = stringResource(R.string.profiles_empty_desc),
onAction = { viewModel.loadProfiles() },
actionLabel = stringResource(R.string.content_desc_refresh),
modifier = Modifier.padding(paddingValues),