Skip to content

android: device pins/favorites and match iOS long push menu - #856

Open
hiimtmac wants to merge 1 commit into
mainfrom
tm/support-local-pins
Open

android: device pins/favorites and match iOS long push menu#856
hiimtmac wants to merge 1 commit into
mainfrom
tm/support-local-pins

Conversation

@hiimtmac

@hiimtmac hiimtmac commented Sep 4, 2026

Copy link
Copy Markdown

Adds support for device pinning - from device list and from peer detail
Match iOS long push menu - ipv4/ipv6/magic DNS, update icon and reorder

Fixes https://github.com/tailscale/corp/issues/47581
Fixes https://github.com/tailscale/corp/issues/47582

Screen_Recording_20260904_110411.mp4

@hiimtmac
hiimtmac requested review from barnstar and kari-ts September 4, 2026 16:09
@hiimtmac
hiimtmac force-pushed the tm/support-local-pins branch from c59f7b6 to fd845fe Compare September 9, 2026 20:36
private val _writing = MutableStateFlow(false)
val writing: StateFlow<Boolean> = _writing

private val userFlow = netmapFlow.mapNotNull { it?.User() }

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

pins are scoped per profile login, and iiuc since the active store is being tracked by ipn.ProfileID https://github.com/tailscale/tailscale/blob/023255e8a27ec9f6a21d24e3eda21c052ff72af3/feature/favorites/favorites.go#L68` we should use LoginProfile.ID here?

val user = currentUser
revert = null
_writing.value = true
client.setFavorites(request) { result ->

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

could multiple setFavorites be in flight at the same time? is it possible that an older request might complete after a newer one and overwrite the newer state?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants