Commit graph

8462 commits

Author SHA1 Message Date
ggurdin
2dae236706
chore: update copy of state event expand button when expanded (#5744) 2026-02-18 13:05:20 -05:00
wcjord
f6a048ca3e
feat: embed STT transcription in audio event content (#5731)
* feat: embed STT transcription in audio event content

Before sending the audio event, the client now fetches the STT
transcript first, then embeds it under 'user_stt' in the event
content. This mirrors the 'original_sent' pattern for text messages
and lets the bot read the transcript immediately without downloading
audio or calling choreo.

- Add ModelKey.userStt constant
- Rewrite onVoiceMessageSend to get transcript before sending audio
- Update getSpeechToTextLocal() to check userStt before botTranscription

* chore: replace inaccurate comment with TODO referencing #5730

* formatting

* fix pangea comments

* feat: make stt translations relate to pangea message events instead of stt representation events

* clean up pangea event types

---------

Co-authored-by: ggurdin <ggurdin@gmail.com>
2026-02-18 12:39:38 -05:00
ggurdin
edcc1e9b43
fix: clear last result on start new file search (#5739) 2026-02-18 10:43:06 -05:00
avashilling
03745fff89
5702 audio practice tweaks (#5724)
* feat: add transcription and translation to audio practice

* fix: make sure answer form matches word in audio

and optimize distractor/answer selection with one pass through the list

* feat: audio practice progress bar

* fix: simplify audio logic
2026-02-18 09:52:15 -05:00
ggurdin
af9b9b4e1f
chore: brighten igc underlines (#5736) 2026-02-18 09:45:34 -05:00
ggurdin
ba054a2557
chore: remove duplicate send image button (#5735) 2026-02-18 09:38:37 -05:00
ggurdin
abc4a9630c
chore: fix text overflow in ping participants button on small screen with large text in Spanish (#5734) 2026-02-18 09:33:54 -05:00
ggurdin
9ce7c7b4cb
chore: autofocus email field in login with email page (#5733) 2026-02-18 09:28:37 -05:00
ggurdin
43afb4bc61
chore: show localized exception in settings 3pid (#5732) 2026-02-18 09:23:47 -05:00
ggurdin
3100b2e4e5
fix: add guard to not update space hierarchy info if space ID changes while fetching (#5723) 2026-02-17 14:34:59 -05:00
ggurdin
33774da076
chore: log badge error to google analytic instead of sentry (#5718) 2026-02-17 09:50:21 -05:00
ggurdin
58513051f7
fix: always pass pos and morph when available on request TTS (#5716) 2026-02-16 16:00:28 -05:00
ggurdin
dea49e3086
chore: on token feedback response, replace all tokens when available (#5715) 2026-02-16 15:37:35 -05:00
ggurdin
55de949924
chore: set max lines for feedback text field (#5714) 2026-02-16 15:12:42 -05:00
ggurdin
a83cef7807
chore: better logging when getting event by construct use (#5708) 2026-02-16 12:25:31 -05:00
wcjord
8a3979c61b
feat: unified use-type-aware practice scoring (#5703)
* feat: unified use-type-aware practice scoring on ConstructUses

- Add practiceScore() and practiceTier to ConstructUses for shared
  scoring across message practice and standalone practice
- Add isChatUse, isAssistedChatUse, isIncorrectPractice getters to
  ConstructUseTypeEnum with exhaustive switches
- Add PracticeTier enum (suppressed/active/maintenance)
- Wire into PracticeSelectionRepo and AnalyticsPracticeSessionRepo
- 28 unit tests covering tier classification, scoring, and ordering

Closes #5700

* formatting, fix linting issue

* move some stuff around

---------

Co-authored-by: ggurdin <ggurdin@gmail.com>
2026-02-16 12:13:46 -05:00
ggurdin
c2472bd2a4
fix: add missing dependency (#5707) 2026-02-16 11:56:39 -05:00
wcjord
b6f368fa1f docs: add instruction docs for analytics, practice, activities, toolbar; adjust content-word scoring ratio (10:7)
- Add analytics-system.instructions.md
- Add practice-exercises.instructions.md (with three-tier design direction)
- Add conversation-activities.instructions.md
- Add toolbar-reading-assistance.instructions.md
- Update copilot-instructions.md header
- Change content-word multiplier from 9 to 7 in practice_selection_repo.dart
2026-02-15 15:49:26 -05:00
wcjord
75a237b90c
fix: prioritize bot DM in updateBotOptions, handle DM outside _targetBotChats (#5698)
Closes #5697

- Extract buildUpdatedBotOptions (pure) and applyBotOptionUpdatesInOrder
  (async orchestration) as top-level @visibleForTesting functions
- Handle bot DM independently of _targetBotChats filter — the DM may
  lack a botOptions state event or have a stale activityPlan, but it's
  the most important room to keep current
- Update remaining rooms sequentially (not Future.wait) to avoid rate-limiting
- DM errors propagate; other room errors are logged and isolated
- Add 17 unit tests covering both extracted functions
- Add profile.instructions.md design doc for profile settings architecture
2026-02-14 14:47:05 -05:00
ggurdin
3537cd5fd4
feat: add language indicators to analytics database entries (#5692)
* feat: add language indicators to analytics database entries

* better handling for database reinit

* don't clear database is last update not set
2026-02-13 15:06:21 -05:00
avashilling
1de440156c
feat: unsubscribed page in vocab practice (#5694)
* feat: unsubscribed page in vocab practice

* fix uncaught unsubscribed error

---------

Co-authored-by: ggurdin <ggurdin@gmail.com>
2026-02-13 14:36:40 -05:00
ggurdin
c34e6812fd
chore: catch error if fetching scroll controller position fails (#5693) 2026-02-13 13:29:41 -05:00
ggurdin
5cd6007346
fix: attach metadata for emoji constructs on specific message event (#5689) 2026-02-13 10:18:29 -05:00
ggurdin
f00115f712
chore: send audio event and request for transcription concurrently (#5687) 2026-02-13 09:49:47 -05:00
ggurdin
229370abc7
fix: prevent subscription management launch from being blocked, show snackbar with button to try launch again (#5685) 2026-02-12 15:58:07 -05:00
wcjord
33719b3ee7
Add score field to LLMFeedbackModel for human audit integration (#5684)
- Add score: Optional[int] to LLMFeedbackModel with conditional serialization
- Add ModelKey.score constant
- Update choreographer.instructions.md with feedback architecture docs

Closes krille-chan/fluffychat#2560
2026-02-12 14:52:22 -05:00
avashilling
b8af6234d5
5595 make this nicer looking (#5683)
* feat: nicer unsubscribed word card

with a small shimmer animation placeholder, and audio on word click

* create new widget instead of returning widget from function

* translations

---------

Co-authored-by: ggurdin <ggurdin@gmail.com>
2026-02-12 14:23:26 -05:00
ggurdin
499829f2c9
chore: make cancel button less prominent in email verification registration dialog (#5682) 2026-02-12 13:56:23 -05:00
ggurdin
45a9eb5e71
chore: update styling in subscription paywall (#5681) 2026-02-12 13:06:40 -05:00
ggurdin
1db5dbb09f
chore: show close button for send file snackbars (#5680) 2026-02-12 12:58:41 -05:00
ggurdin
aa023160fc
chore: Onboarding L1 not adjust on L1 change (#5678) 2026-02-12 12:46:31 -05:00
ggurdin
c91cb1ca77
feat: Enable bulk analytics vocab deletion (#5677) 2026-02-12 12:22:55 -05:00
ggurdin
53ba7f9899
chore: if vocab analyics search, sort to put matches that start with search term at the top 2026-02-12 11:00:07 -05:00
ggurdin
835bd4e009
fix: make audio player thumb color consistent 2026-02-12 10:50:04 -05:00
ggurdin
77c54dc41a
chore: prevent users from setting their l1 to their l2 2026-02-12 10:14:47 -05:00
ggurdin
f52f9c3744
Merge pull request #5666 from pangeachat/5658-audio-practice-issues
5658 audio practice issues
2026-02-12 09:17:31 -05:00
ggurdin
94b7bf9121
fix: don't show duplicate close button in lemma emoji snackbar 2026-02-12 09:14:57 -05:00
Ava Shilling
a05796e6de fix: give XP to clicked choice in audio practice
Or, upon wrong click give XP to chosen activity token
2026-02-11 16:46:38 -05:00
ggurdin
4a9e312cce
some fixes 2026-02-11 16:30:46 -05:00
ggurdin
dfbc1ab0b9
update UI on all analytics update types 2026-02-11 16:04:13 -05:00
Ava Shilling
526681255e chore: shuffle tokens before choosing answers 2026-02-11 15:50:50 -05:00
Ava Shilling
1deb3c9ad7 chore: give autoplay in audioplayer a function 2026-02-11 15:31:09 -05:00
Ava Shilling
c1b18ab29c chore: dispose audio player between questions
by adding a valuekey, so that the audio stops playing during next question
2026-02-11 15:13:47 -05:00
Ava Shilling
ce83b928cb chore: remove unused audio choice card 2026-02-11 15:06:58 -05:00
Ava Shilling
044ae521d2 chore: dont allow reclicking choices 2026-02-11 15:06:42 -05:00
ggurdin
811ba58c73
reload derived analytics on server analyics update 2026-02-11 14:03:35 -05:00
ggurdin
62c91d9dcc
chore: update language / settings streams on account data sync update 2026-02-11 11:08:58 -05:00
ggurdin
b6c3db0b44
resolve merge conflicts 2026-02-10 16:38:06 -05:00
wcjord
0e681c4d68
feat: phonetic transcription v2 migration (#5640)
* docs: add PT v2 and token-info-feedback design docs

- Add phonetic-transcription-v2-design.instructions.md (client PT v2 migration)
- Add token-info-feedback-v2.instructions.md (client token feedback v2 migration)

* fix: update applyTo path for token info feedback v2 migration

* feat: Refactor phonetic transcription to v2 models and repository (in progress)

* feat: PT v2 migration - tts_phoneme rename, v1 cleanup, disambiguation, TTS integration

* feat: Update phonetic transcription v2 design document for endpoint changes and response structure

* docs: fix stale _storageKeys claim in pt-v2 design doc

* style: reformat PT v2 files with Dart 3.10 formatter (Flutter 3.38)

* feat: add speakingRate to TTS request model (default 0.85)

Passes speaking_rate to the choreo TTS endpoint. Default preserves
current behavior; can be overridden for single-word playback later.

* feat: use normal speed (1.0) for single-word TTS playback

The 0.85x slowdown is helpful for full sentences but makes single
words sound unnaturally slow. tts_controller._speakFromChoreo now
sends speakingRate=1.0. Full-sentence TTS via pangea_message_event
still defaults to 0.85.

* style: clean up formatting and reduce line breaks in TtsController

* fix: env goofiness

* formatting, fix linter issues

* don't return widgets from functions

---------

Co-authored-by: ggurdin <ggurdin@gmail.com>
Co-authored-by: ggurdin <46800240+ggurdin@users.noreply.github.com>
2026-02-10 16:29:26 -05:00
ggurdin
59ff104a30
chore: remove max lines from about me display (#5649) 2026-02-10 15:56:02 -05:00