Commit graph

8450 commits

Author SHA1 Message Date
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
ggurdin
bd2225cc6a
chore: better link color for saved activities tooltip (#5647) 2026-02-10 15:20:51 -05:00
ggurdin
ebc7dd2c2e
fix: account for nontokens in ordered list rendering (#5645)
* fix: account for nontokens in ordered list rendering

* remove pangea comments
2026-02-10 14:43:25 -05:00
ggurdin
9abb6ed6fc
fix: include selected target language on navigate to new course page (#5644) 2026-02-10 14:31:33 -05:00
ggurdin
964307fd6b
chore: set about me character limit (#5639) 2026-02-10 14:01:01 -05:00
ggurdin
432bdcb53b
chore: update error message for unvalidated 3pid session (#5638) 2026-02-10 13:55:31 -05:00
ggurdin
9ebe4b2bb1
chore: don't go to details page on click chat header in saved activities (#5634) 2026-02-10 12:50:43 -05:00
ggurdin
b4ae6ca770
fix: in empty content token practice button in emoji mode, always show user set emoji (#5633) 2026-02-10 12:43:55 -05:00
ggurdin
34d38ca0e3
chore: if no public courses available for language, link to create course page (#5632) 2026-02-10 12:33:31 -05:00
ggurdin
2f7dfe972b
chore: show close button in choreo error snackbar (#5631) 2026-02-10 12:28:36 -05:00
ggurdin
d3d040d5b6
chore: show construct unlock popup on reach second lemma level (#5630) 2026-02-10 12:26:32 -05:00
ggurdin
21900f115a
chore: add ttl to morph cache and new parts of speech to default morph mapping (#5629) 2026-02-10 12:16:40 -05:00
ggurdin
765d8a944f
chore: add course description tooltip to find a course page (#5628) 2026-02-10 12:02:07 -05:00