Commit df7a7b5
committed
fix(details): improve share functionality and localization
This commit enhances the repository sharing logic by adding error handling, localizing UI strings, and improving accessibility.
- **fix(details)**: Added error handling to the share action in `DetailsViewModel` with logging and user feedback on failure.
- **refactor(details)**: Localized "Link copied to clipboard" and share failure messages using string resources.
- **ui(details)**: Added a content description to the share icon in `DetailsRoot` for better accessibility.1 parent 8ffe343 commit df7a7b5
2 files changed
Lines changed: 11 additions & 3 deletions
File tree
- feature/details/presentation/src/commonMain/kotlin/zed/rainxch/details/presentation
feature/details/presentation/src/commonMain/kotlin/zed/rainxch/details/presentation/DetailsRoot.kt
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
370 | 370 | | |
371 | 371 | | |
372 | 372 | | |
373 | | - | |
| 373 | + | |
374 | 374 | | |
375 | 375 | | |
376 | 376 | | |
| |||
Lines changed: 10 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
452 | 452 | | |
453 | 453 | | |
454 | 454 | | |
455 | | - | |
| 455 | + | |
| 456 | + | |
| 457 | + | |
| 458 | + | |
| 459 | + | |
| 460 | + | |
| 461 | + | |
| 462 | + | |
| 463 | + | |
456 | 464 | | |
457 | 465 | | |
458 | | - | |
| 466 | + | |
459 | 467 | | |
460 | 468 | | |
461 | 469 | | |
| |||
0 commit comments