# Show cloud and role badges in library and editor · dara/icarus

[View on GitCafe](https://git.cafe/dara/icarus/commit/6ac1ad4a8d2a5093db2c536f41090d0da97c35d0)

Repository: [dara/icarus](https://git.cafe/dara/icarus)

Visibility: public

Requested revision: 6ac1ad4a8d2a5093db2c536f41090d0da97c35d0

Requested commit: 6ac1ad4a8d2a5093db2c536f41090d0da97c35d0

Commit: 6ac1ad4a8d2a5093db2c536f41090d0da97c35d0

Tree: acd0f83feb2c72a222e022fc928d11c0c4bcf8eb

Author: Dara Adedeji

Committer: Dara Adedeji

## Message

```
Show cloud and role badges in library and editor

Part 5 of the cloud UX overhaul. Cloud strategies and shared items
were visually identical to local ones, and a user's share role was
never surfaced.

- Add a shared CloudRoleBadge (lib/widgets/role_badge.dart): a muted
  cloud glyph pill for owned cloud strategies, a violet-tinted EDIT
  badge for editor shares, and a muted VIEW badge for viewer shares.
- Render the badge on cloud strategy tiles next to the name/metadata
  so it stays clear of the map thumbnail. Local tiles are unchanged.
- Show a non-interactive "View only" chip in the editor top strip when
  the open strategy is a cloud viewer share, with a tooltip pointing
  the user to the owner for edit access.

All colors come from Settings.tacticalVioletTheme tokens.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>

```

## Parents

- [9388a0201e829cf9c52fc5a437bbd65d66728ec9](https://git.cafe/dara/icarus/commit/9388a0201e829cf9c52fc5a437bbd65d66728ec9?format=markdown)

[Source at this commit](https://git.cafe/dara/icarus/tree/6ac1ad4a8d2a5093db2c536f41090d0da97c35d0?format=markdown)
