cheogram-aapl

created pr with cheogram-aapl/remove-role.1 on 2026-11-02T21:31:35Z · by d7025af3
commented on 2026-11-09T15:05:39Z · by 3c31bc8c
lgtm
cmds
checkout latest patchset:
ssh pr.pico.sh pull cheogram-aapl:remove-role | git am -3
checkout specific patchset revision:
ssh pr.pico.sh pull cheogram-aapl:remove-role [rev] | git am -3
add changes to patch request:
git format-patch main --stdout | ssh pr.pico.sh cheogram-aapl:remove-role
add comment to patch request:
ssh pr.pico.sh comment cheogram-aapl:remove-role "lgtm!"

Patchset cheogram-aapl/remove-role.1 on 2026-11-02T21:31:35Z · commit 5e44972

Add X to role pill to remove a role
Stephen Paul Weber 2026-11-02T21:30:40Z
Semantic diff summary
0 added, 0 modified, 0 signature changed, 0 removed across 0 analyzed files (2 files skipped: unsupported file type)
+19 -1 App/ChatDetailView.swift #
......@@ -354,7 +354,25 @@ struct ChatDetailView: View {
354354 }
355355 HStack(spacing: 8) {
356356 ForEach(member.roles, id: \.id) { role in
357- Text(role.title).lineLimit(1).padding(.horizontal, 12).padding(.vertical, 6).background(Color(hex: role.color())).clipShape(Capsule())
357+ HStack(spacing: 4) {
358+ Text(role.title)
359+ .lineLimit(1)
360+
361+ Button {
362+ viewModel.chat!.removeRole(member: member, role: role)
363+ } label: {
364+ Image(systemName: "xmark")
365+ .font(.system(size: 9, weight: .bold))
366+ .padding(4)
367+ .contentShape(Rectangle())
368+ }
369+ .buttonStyle(.plain)
370+ }
371+ .padding(.leading, 12)
372+ .padding(.trailing, 6)
373+ .padding(.vertical, 6)
374+ .background(Color(hex: role.color()))
375+ .clipShape(Capsule())
358376 }
359377 let availableRoles = viewModel.chat!.availableRoles(member: member)
360378 if !availableRoles.isEmpty {
+0 -0 App/DebugLog.swift #
Back to top