Skip to content

Commit 6dc566b

Browse files
committed
feat: Add GitHub Discussion templates and redesign Gesture Typing settings
- Added templates for Ideas, Q&A, Offline AI, Online AI - Refactored GestureTypingScreen to use Card Layout
1 parent 17db281 commit 6dc566b

6 files changed

Lines changed: 128 additions & 2 deletions

File tree

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
title: "[Idea] "
2+
labels: ["enhancement"]
3+
body:
4+
- type: markdown
5+
attributes:
6+
value: |
7+
Thanks for suggesting an idea! Please verify that your idea is not already defined in the [Roadmap](https://github.com/LeanBitLab/HeliboardL/projects) or existing discussions.
8+
- type: textarea
9+
id: problem
10+
attributes:
11+
label: Problem Statement
12+
description: Is your feature request related to a problem? Please describe.
13+
placeholder: I am frustrated when...
14+
validations:
15+
required: true
16+
- type: textarea
17+
id: solution
18+
attributes:
19+
label: Proposed Solution
20+
description: Describe the solution you'd like.
21+
placeholder: I would like to be able to...
22+
validations:
23+
required: true
24+
- type: textarea
25+
id: alternatives
26+
attributes:
27+
label: Alternatives
28+
description: Describe alternatives you've considered.
29+
validations:
30+
required: false
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
title: "[Offline AI] "
2+
labels: ["offline-ai"]
3+
body:
4+
- type: markdown
5+
attributes:
6+
value: |
7+
Discuss features, models, and performance of the On-Device Offline AI.
8+
- type: input
9+
id: model
10+
attributes:
11+
label: Model Name
12+
description: Which model are you using? (e.g., Xenova/flan-t5-small)
13+
placeholder: Xenova/flan-t5-small
14+
validations:
15+
required: true
16+
- type: input
17+
id: device_specs
18+
attributes:
19+
label: Device Specs (RAM/CPU)
20+
description: Important for performance debugging.
21+
placeholder: 8GB RAM, Snapdragon 8 Gen 2
22+
validations:
23+
required: true
24+
- type: textarea
25+
id: feedback
26+
attributes:
27+
label: Feedback / Issue
28+
description: Describe your experience or request.
29+
placeholder: The grammar correction is slow...
30+
validations:
31+
required: true
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
title: "[Online AI] "
2+
labels: ["online-ai"]
3+
body:
4+
- type: markdown
5+
attributes:
6+
value: |
7+
Discuss cloud-based AI features (Gemini, Groq, OpenAI).
8+
**WARNING: NEVER share your API Keys!**
9+
- type: dropdown
10+
id: provider
11+
attributes:
12+
label: AI Provider
13+
options:
14+
- Google Gemini
15+
- Groq (Mixtral/Llama)
16+
- HuggingFace / OpenAI Compatible
17+
- Other
18+
validations:
19+
required: true
20+
- type: textarea
21+
id: feedback
22+
attributes:
23+
label: Feedback / Question
24+
description: Describe your issue or suggestion.
25+
placeholder: I am getting a 401 Unauthorized error...
26+
validations:
27+
required: true
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
title: "[Q&A] "
2+
labels: ["question"]
3+
body:
4+
- type: markdown
5+
attributes:
6+
value: |
7+
Please search existing discussions and issues before asking.
8+
- type: textarea
9+
id: question
10+
attributes:
11+
label: Question
12+
description: What would you like to know?
13+
placeholder: How do I...
14+
validations:
15+
required: true
16+
- type: input
17+
id: version
18+
attributes:
19+
label: Version
20+
description: Which version of LeanType are you using?
21+
placeholder: v3.7.2
22+
validations:
23+
required: true

app/src/main/java/helium314/keyboard/settings/screens/GestureTypingScreen.kt

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,22 +43,29 @@ fun GestureTypingScreen(
4343

4444
// Always show library loader first when no library
4545
val items = buildList {
46+
add(R.string.settings_category_configuration)
4647
// Library loader is always first if allowed
4748
if (helium314.keyboard.latin.BuildConfig.BUILD_TYPE != "nouserlib") {
4849
add(SettingsWithoutKey.LOAD_GESTURE_LIB)
4950
}
5051
// Show all gesture settings (they will be disabled if no library)
5152
add(Settings.PREF_GESTURE_INPUT)
53+
5254
if (hasGestureLib && gestureEnabled) {
55+
add(R.string.settings_category_visuals)
5356
add(Settings.PREF_GESTURE_PREVIEW_TRAIL)
5457
add(Settings.PREF_GESTURE_FLOATING_PREVIEW_TEXT)
5558
if (gestureFloatingPreviewEnabled)
5659
add(Settings.PREF_GESTURE_FLOATING_PREVIEW_DYNAMIC)
57-
add(Settings.PREF_GESTURE_SPACE_AWARE)
58-
add(Settings.PREF_GESTURE_FAST_TYPING_COOLDOWN)
5960
if (prefs.getBoolean(Settings.PREF_GESTURE_PREVIEW_TRAIL, Defaults.PREF_GESTURE_PREVIEW_TRAIL) || gestureFloatingPreviewEnabled)
6061
add(Settings.PREF_GESTURE_TRAIL_FADEOUT_DURATION)
62+
63+
add(R.string.settings_category_behavior)
64+
add(Settings.PREF_GESTURE_SPACE_AWARE)
65+
add(Settings.PREF_GESTURE_FAST_TYPING_COOLDOWN)
6166
}
67+
68+
add(R.string.settings_category_gestures_advanced)
6269
add(Settings.PREF_SPACE_HORIZONTAL_SWIPE)
6370
add(Settings.PREF_SPACE_VERTICAL_SWIPE)
6471
add(Settings.PREF_TOUCHPAD_SENSITIVITY)

app/src/main/res/values/strings.xml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,14 @@
5858
<string name="settings_category_experimental">Experimental</string>
5959
<!-- Settings category title for Appearance & Layout/Misc -->
6060
<string name="settings_category_miscellaneous">Miscellaneous</string>
61+
<!-- Settings category title for Gesture Typing/Configuration -->
62+
<string name="settings_category_configuration">Configuration</string>
63+
<!-- Settings category title for Gesture Typing/Visuals -->
64+
<string name="settings_category_visuals">Visuals &amp; Preview</string>
65+
<!-- Settings category title for Gesture Typing/Behavior -->
66+
<string name="settings_category_behavior">Behavior</string>
67+
<!-- Settings category title for Gesture Typing/Advanced -->
68+
<string name="settings_category_gestures_advanced">Advanced Gestures</string>
6169
<!-- Option for enabling or disabling the split keyboard layout in portrait mode.-->
6270
<string name="enable_split_keyboard">Enable split keyboard</string>
6371
<!-- Option for enabling or disabling the split keyboard layout in landscape mode.-->

0 commit comments

Comments
 (0)