Commit b3960b9
authored
fix(agora): show full spoken language list (#1117)
* fix(agora): show full spoken language list
Use the shared supported spoken-language enum as the source of truth for selectable spoken languages instead of hiding enum values missing metadata.
Also keeps the language settings control visible during conversation imports and localizes the language settings menu copy more completely.
Deploy: agora
* docs: update contribution branding
Replace stale ZKorum contribution-facing wording with Agora Citizen Network terminology while preserving legal trustee references.
Deploy: none
* feat(api): add display-aware translations
Backend display content is now responsible for choosing original vs translated content for conversations, survey questions, and opinions based on viewer display and spoken languages. Source-equals-display hides translation controls, source-in-spoken defaults to original while keeping translation available, and unknown/unreadable sources can default to translated content when available.
Changes:
- Add backend display-content mapping shared across conversation, survey, and opinion responses
- Add concrete conversation content fetch support and display content on conversation/survey/opinion endpoints
- Split original and translated schemas so translated text is not constrained by original input limits
- Use stable content ids for translated variant caching
- Reuse conversation display-content logic in normal post content and survey hero
- Schedule eager translation work after conversation edits
- Harden content translation worker writes with savepoints and generated text columns
- Regenerate OpenAPI clients and synced shared/generated models
Deploy: agora, api, import-worker, scoring-worker, content-translation-worker
* fix(api): prevent overlapping entitlements
Reject active premium entitlements that overlap an existing entitlement for the same organization and feature. The same guard now applies when updating an entitlement into a new active period.
Update the administrator entitlement form to use the shared select component, start with no feature preselected, disable creation for invalid date ranges, and prevent submitting periods that overlap an already loaded entitlement.
Add focused DTO coverage for entitlement period validation.
Deploy: agora, api
* fix(workers): add Chinese translation siblings
Update the simulated description translation provider to mirror production Chinese behavior by generating the Simplified Chinese sibling when translating through the canonical Traditional Chinese provider target.
Also include opinionPlainText in load-testing opinion creation requests so generated load-test payloads match the current API contract.
Deploy: none
* fix(api): widen translated title column
Add the generated Drizzle and Flyway migration for changing conversation_content_translation.translated_title to text so translated titles are not constrained by varchar length.
Deploy: api1 parent 89646ec commit b3960b9
199 files changed
Lines changed: 24699 additions & 2920 deletions
File tree
- services
- agora/src
- api
- .openapi-generator
- docs
- components
- newConversation
- dialog
- onboarding/backgrounds
- post
- comments
- group
- item
- display
- composables
- conversation
- opinion
- pages
- conversation
- [postSlugId].onboarding
- new/create
- dev
- utils
- api
- comment
- contentTranslation
- post
- survey
- language
- translation
- api
- database/flyway
- drizzle
- meta
- src
- service
- tests
- fixtures/db
- content-translation-worker/src/content_translation_worker
- import-worker/src/import_worker
- load-testing/src
- api
- .openapi-generator
- docs
- utils
- scoring-worker/src/scoring_worker
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
13 | | - | |
| 13 | + | |
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
| |||
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
34 | | - | |
| 34 | + | |
35 | 35 | | |
36 | 36 | | |
37 | 37 | | |
| |||
73 | 73 | | |
74 | 74 | | |
75 | 75 | | |
76 | | - | |
| 76 | + | |
77 | 77 | | |
78 | 78 | | |
79 | 79 | | |
| |||
106 | 106 | | |
107 | 107 | | |
108 | 108 | | |
109 | | - | |
| 109 | + | |
110 | 110 | | |
111 | 111 | | |
112 | 112 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
21 | | - | |
| 21 | + | |
22 | 22 | | |
23 | | - | |
| 23 | + | |
24 | 24 | | |
25 | 25 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
59 | 59 | | |
60 | 60 | | |
61 | 61 | | |
62 | | - | |
63 | 62 | | |
64 | 63 | | |
65 | 64 | | |
| |||
68 | 67 | | |
69 | 68 | | |
70 | 69 | | |
71 | | - | |
72 | | - | |
73 | 70 | | |
74 | 71 | | |
75 | 72 | | |
| |||
93 | 90 | | |
94 | 91 | | |
95 | 92 | | |
| 93 | + | |
96 | 94 | | |
97 | 95 | | |
98 | 96 | | |
| |||
154 | 152 | | |
155 | 153 | | |
156 | 154 | | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
157 | 159 | | |
158 | 160 | | |
159 | 161 | | |
| |||
247 | 249 | | |
248 | 250 | | |
249 | 251 | | |
| 252 | + | |
| 253 | + | |
| 254 | + | |
| 255 | + | |
| 256 | + | |
| 257 | + | |
| 258 | + | |
| 259 | + | |
250 | 260 | | |
251 | 261 | | |
252 | 262 | | |
| |||
266 | 276 | | |
267 | 277 | | |
268 | 278 | | |
269 | | - | |
270 | | - | |
271 | | - | |
272 | | - | |
273 | | - | |
274 | | - | |
| 279 | + | |
| 280 | + | |
| 281 | + | |
| 282 | + | |
| 283 | + | |
| 284 | + | |
| 285 | + | |
| 286 | + | |
| 287 | + | |
| 288 | + | |
| 289 | + | |
| 290 | + | |
| 291 | + | |
| 292 | + | |
| 293 | + | |
275 | 294 | | |
276 | 295 | | |
277 | 296 | | |
| |||
0 commit comments