test: fixtures and previews name groups &name (group-name-prefix, Phase 5)

Every test fixture, harness default and @Preview that seeded a group's name
under # now uses &, along with the comments that spelled a room #name. # is
left only where the old mark is the point: MarmotGroupNameTest's inputs, the
Welcome and migration tests, the legacy certificate in SubgroupManagerJvmTest
and the verbatim proposal summary in ProposedEventTest. Hashtags and #h
filters are untouched.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Kgothatso NgakoandClaude Opus 5.5 committed 2026-11-23 02:15:32 +02:00
1 parent 342127bc20
commit cfa5f75fe4
53 files changed
+87 -87

No files matched your search

@@ -212,7 +212,7 @@ object ChillDkgRitualManager {
// The room's own name, which names a group's own ceremony only when it is
// the room's first: a second group made by the same people lands in the
// same room, and naming it after the room would make two rooms called
// `#Ekklesia`. docs/nip17-multiple-ceremonies.md, D2.
// `&Ekklesia`. docs/nip17-multiple-ceremonies.md, D2.
val roomSubject = localChatRoom.chatRoom.subject?.takeIf { it.isNotBlank() }
val requestedSubject = subject?.takeIf { it.isNotBlank() }
@@ -297,7 +297,7 @@ object ChillDkgRitualManager {
// A group's own ceremony falls back to the room's name only when the room
// holds no other group: the room keeps its first group's name (D3), so a
// second group named by it would be the first one's namesake, and the room
// its key makes would be another `#Ekklesia`. The screens that open one
// its key makes would be another `&Ekklesia`. The screens that open one
// always name it; reaching this without a name is a bug in the caller.
val holdsAnotherGroup = parentChatRoomId == null && database.dkgSessionDao()
.getOwnSessionsForChatRoom(localChatRoom.chatRoom.id)
@@ -100,7 +100,7 @@ object MarmotGroupFactory {
signer = NostrSignerInternal(creator),
nostrGroupId = routingId,
relays = relays,
// Byte-capped by the component (256 and 4096); a name is a `#name`
// Byte-capped by the component (256 and 4096); a name is an `&name`
// and a description is a sentence, a path and a room id, so the
// caps only ever bind on input nobody meant, and cutting the
// front of the description beats refusing the room over it. The
@@ -570,7 +570,7 @@ private fun FrostSigningScreenPreview() {
chatRoom = ChatRoom(
id = "chatRoomId",
userPublicKey = "",
subject = "#Ekklesia",
subject = "&Ekklesia",
description = null,
initialGiftWrapPayloadId = "sdfaer",
mlsGroupState = null
@@ -264,7 +264,7 @@ private fun GroupInboxConversationScreenPreview() {
conversationId = "c1",
initialUIState = GroupInboxConversationUIState.Loaded(
localChatRoom = LocalChatRoom(
chatRoom = ChatRoom(id = chatRoomId, userPublicKey = "a".repeat(64), subject = "#Ekklesia", description = null, mlsGroupState = "state")
chatRoom = ChatRoom(id = chatRoomId, userPublicKey = "a".repeat(64), subject = "&Ekklesia", description = null, mlsGroupState = "state")
),
names = listOf("Zola"),
lines = listOf(
@@ -232,7 +232,7 @@ private fun GroupInboxScreenPreview() {
relayHint = null,
initialUIState = GroupInboxUIState.Loaded(
localChatRoom = LocalChatRoom(
chatRoom = ChatRoom(id = chatRoomId, userPublicKey = "a".repeat(64), subject = "#Ekklesia", description = null, mlsGroupState = "state")
chatRoom = ChatRoom(id = chatRoomId, userPublicKey = "a".repeat(64), subject = "&Ekklesia", description = null, mlsGroupState = "state")
),
conversations = listOf(
GroupInboxRepository.ConversationSummary(
@@ -292,7 +292,7 @@ private fun GroupInboxSettingsScreenPreview() {
relayHint = null,
initialUIState = GroupInboxSettingsUIState.Loaded(
localChatRoom = LocalChatRoom(
chatRoom = ChatRoom(id = chatRoomId, userPublicKey = "a".repeat(64), subject = "#Ekklesia", description = null, mlsGroupState = "state")
chatRoom = ChatRoom(id = chatRoomId, userPublicKey = "a".repeat(64), subject = "&Ekklesia", description = null, mlsGroupState = "state")
),
status = GroupInboxRepository.Status(
keys = emptyList(), ceremony = null, announcedKey = null, relays = emptyList(), setUpRefusal = null, waitingOn = emptyList(),
@@ -829,7 +829,7 @@ private fun ProposalListScreenPreview() {
chatRoom = ChatRoom(
id = "chatRoomId",
userPublicKey = "u".repeat(64),
subject = "#Ekklesia",
subject = "&Ekklesia",
description = null,
initialGiftWrapPayloadId = "sdfaer",
mlsGroupState = null
@@ -409,7 +409,7 @@ private fun SelectQuorumScreenPreview() {
) {
SelectQuorumScreen(
activeUserPublicKey = "",
name = "#group-discussions",
name = "&group-discussions",
description = "See something... say something.",
memberPublicKeys = listOf("hex", "otherHex", "thirdHex"),
initialSelectQuorumUIState = SelectQuorumUIState.Loaded(