Skip to content

Commit 1d3e75f

Browse files
authored
CMM-843 create the ask the he entry UI (#22298)
* Adding basic UI * Renaming * Some styling * Renaming and dummy data * Using proper "new conversation icon" * Conversation details screen * Creating the reply bottomsheet * Linking to the support screen * bottomsheet fix * Mov navigation form activity to viewmodel * Adding create ticket screen * More screen adjustments * Extracting common code * Margin fix * detekt * Style * New ticket check * Creating tests
1 parent 3d01d3f commit 1d3e75f

File tree

17 files changed

+1873
-9
lines changed

17 files changed

+1873
-9
lines changed

WordPress/src/main/AndroidManifest.xml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -444,6 +444,10 @@
444444
android:theme="@style/WordPress.NoActionBar"
445445
android:label="@string/support_screen_title"/>
446446

447+
<activity android:name="org.wordpress.android.support.he.ui.HESupportActivity"
448+
android:theme="@style/WordPress.NoActionBar"
449+
android:label="@string/support_screen_title"/>
450+
447451
<!-- Deep Linking Activity -->
448452
<activity
449453
android:name="org.wordpress.android.ui.deeplinks.DeepLinkingIntentReceiverActivity"

WordPress/src/main/java/org/wordpress/android/support/aibot/ui/ConversationsListScreen.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import androidx.compose.foundation.lazy.LazyColumn
1212
import androidx.compose.foundation.lazy.items
1313
import androidx.compose.material.icons.Icons
1414
import androidx.compose.material.icons.automirrored.filled.ArrowBack
15-
import androidx.compose.material.icons.filled.Add
15+
import androidx.compose.material.icons.filled.Edit
1616
import androidx.compose.material3.Card
1717
import androidx.compose.material3.CardDefaults
1818
import androidx.compose.material3.ExperimentalMaterial3Api
@@ -66,7 +66,7 @@ fun ConversationsListScreen(
6666
actions = {
6767
IconButton(onClick = { onCreateNewConversationClick() }) {
6868
Icon(
69-
imageVector = Icons.Default.Add,
69+
imageVector = Icons.Default.Edit,
7070
contentDescription = stringResource(R.string.ai_bot_new_conversation_content_description)
7171
)
7272
}
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
package org.wordpress.android.support.he.model
2+
3+
import java.util.Date
4+
5+
data class SupportConversation(
6+
val id: Long,
7+
val title: String,
8+
val description: String,
9+
val lastMessageSentAt: Date,
10+
val messages: List<SupportMessage>
11+
)
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
package org.wordpress.android.support.he.model
2+
3+
import java.util.Date
4+
5+
data class SupportMessage(
6+
val id: Long,
7+
val text: String,
8+
val createdAt: Date,
9+
val authorName: String,
10+
val authorIsUser: Boolean
11+
)

0 commit comments

Comments
 (0)