Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 0 additions & 27 deletions .claude/state/handoff.md

This file was deleted.

1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ fastlane/report.xml

.claude/worktrees/
.claude/plans/
.claude/state/
.claude/settings.local.json

# Bundler (Ruby gems installed during CI)
Expand Down
4 changes: 2 additions & 2 deletions apps/flipcash/core/src/main/res/values/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -1060,10 +1060,10 @@
<!-- Both edits are confirmed before the call: a rename or a new picture is visible to the whole
group, so Save opens the prompt and the prompt's action is what sends it. -->
<string name="prompt_title_changeGroupName">Change Group Name?</string>
<string name="prompt_description_changeGroupName">Everyone in this group will see it as \"%1$s\"</string>
<string name="prompt_description_changeGroupName">This will change the group name for everyone in it</string>
<string name="action_changeGroupName">Change Name</string>
<string name="prompt_title_changeGroupPicture">Change Group Picture?</string>
<string name="prompt_description_changeGroupPicture">Everyone in this group will see the new picture</string>
<string name="prompt_description_changeGroupPicture">This will change the group picture for everyone in it</string>
<string name="action_changeGroupPicture">Change Picture</string>
<!-- EditChat bounds the title at 1-64 characters, enforced before the call. -->
<string name="subtitle_groupNameLength">Up to 64 characters</string>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,14 +1,12 @@
package com.flipcash.app.messenger.internal.screens.profile.edit

import androidx.compose.material.icons.Icons
import androidx.compose.material.icons.outlined.Image
import androidx.compose.material.icons.outlined.TextFields
import androidx.compose.runtime.Composable
import androidx.compose.ui.graphics.painter.Painter
import androidx.compose.ui.graphics.vector.rememberVectorPainter
import androidx.compose.ui.res.painterResource
import androidx.compose.ui.res.stringResource
import com.flipcash.app.menu.FullMenuItem
import com.flipcash.app.menu.MenuItem
import com.flipcash.core.R as CoreR
import com.flipcash.features.messenger.R

/** What the edit list can open. One entry per editable field on `EditChatRequest`. */
Expand All @@ -22,10 +20,13 @@ internal sealed interface EditGroupAction {
*
* Labelled Picture rather than the design's "Icon": it writes `EditChatRequest.picture`, and
* picture is the word the rest of the app already uses for it.
*
* Wears the currency creator's icon glyph. That flow edits the same two fields on a token that this
* one edits on a group, so the pair reads as one idea rather than two.
*/
internal data object EditGroupPicture : FullMenuItem<EditGroupAction>() {
override val icon: Painter
@Composable get() = rememberVectorPainter(Icons.Outlined.Image)
@Composable get() = painterResource(CoreR.drawable.ic_currencycreator_icon)

override val name: String
@Composable get() = stringResource(R.string.title_editGroupPicture)
Expand All @@ -39,10 +40,12 @@ internal data object EditGroupPicture : FullMenuItem<EditGroupAction>() {
* Not in node 10187:110373 — the design's four rows are Icon, Membership Card, Description and
* Social Links — but `EditChatRequest.title` is one of exactly two fields the contract offers, so
* the row exists and takes the picture row's styling rather than inventing its own.
*
* Wears the currency creator's name glyph, for the same reason the picture row wears its icon one.
*/
internal data object EditGroupName : FullMenuItem<EditGroupAction>() {
override val icon: Painter
@Composable get() = rememberVectorPainter(Icons.Outlined.TextFields)
@Composable get() = painterResource(CoreR.drawable.ic_currencycreator_name)

override val name: String
@Composable get() = stringResource(R.string.title_editGroupName)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -107,10 +107,7 @@ class EditGroupNameViewModel @Inject constructor(

BottomBarManager.showAlert(
title = resources.getString(R.string.prompt_title_changeGroupName),
message = resources.getString(
R.string.prompt_description_changeGroupName,
ChatTitle.normalize(state.titleFieldState.text),
),
message = resources.getString(R.string.prompt_description_changeGroupName),
actions = listOf(
BottomBarAction(resources.getString(R.string.action_changeGroupName)) {
viewModelScope.launch {
Expand Down
Loading