-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Chat Bubble and "Conversation" (#950)
In this PR, I added a Chat bubble that will print back the user input. I also set up a function "call api" that will call the DevXP API in the future, but currently sends back the user input as well. The conversation field is also scrollable (with no scroll bar at the moment). I am also worried about how there is not much padding once the text input becomes multiple lines (like in example 2 of the video), and was wondering if I could get advice on how to add it, because adding padding modifiers seems to only change the box and not the inner text, and the height parameter is what creates the initial space in the text field. https://github.com/user-attachments/assets/50c6bf01-a77a-4b4d-950e-a849ad70ef16 EDIT: here is an update based on feedback. Now, the user's messages are on the right and response is on the left. https://github.com/user-attachments/assets/62170207-3697-41e5-ac0e-3ff24b4cb1fd <!-- ⬆ Put your description above this! ⬆ Please be descriptive and detailed. Please read our [Contributing Guidelines](https://github.com/tinyspeck/slack-gradle-plugin/blob/main/.github/CONTRIBUTING.md) and [Code of Conduct](https://slackhq.github.io/code-of-conduct). Don't worry about deleting this, it's not visible in the PR! -->
- Loading branch information
Showing
2 changed files
with
114 additions
and
11 deletions.
There are no files selected for viewing
35 changes: 35 additions & 0 deletions
35
skate-plugin/project-gen/src/jvmMain/kotlin/slack/tooling/aibot/ChatColors.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
/* | ||
* Copyright (C) 2024 Slack Technologies, LLC | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* https://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
package slack.tooling.aibot | ||
|
||
import androidx.compose.runtime.Composable | ||
import androidx.compose.runtime.ReadOnlyComposable | ||
import androidx.compose.ui.graphics.Color | ||
import org.jetbrains.jewel.foundation.theme.JewelTheme | ||
|
||
object ChatColors { | ||
val promptBackground = Color(0xFF45494A) | ||
|
||
// Color(0xFF2d2f30) responseBackground | ||
val responseBackground: Color | ||
@Composable @ReadOnlyComposable get() = JewelTheme.globalColors.infoContent | ||
|
||
// Color(0xFFEAEEF7) userTextColor | ||
val userTextColor: Color | ||
@Composable @ReadOnlyComposable get() = JewelTheme.globalColors.infoContent | ||
|
||
val responseTextColor = Color(0xFFE0EEF7) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters