Commit 87656fd
authored
Feat: Basic languages page (#128)
* installs shadcn select component
* adds list of available languages
* fixes linking user project fk in base migration
* adds language dropdown to project creation flow for selecting base language
* fixes typings in select shadcn ui components
* adds shadcn base table components
* moves language select folder
* adds label column to languages table
* refactor: Update import path for language-related modules
* feat: add base_language_label field to createProjectSchema
* feat: update base_language_label schema with enum and default value
* makes project creation work with fallback language
* adjusts main content and header component styles
* adds aider specific stuff to gitignore
* adds language path specific code for project
* make left join to allow empty fallback language
* feat: add console warning for existing languages in project load function
* feat: implement individual language updates in LanguageTable
* refactor: simplify getLanguagesForProject function and update return type
* feat: add updateLanguage function to language repository
* feat: implement updateLanguage method for updating language entries
* use json datatype for languages superform due to nested table
* adds unit tests for language-service
* adds integration tests for language repository
* adds add button to add a new language to the table
* reflects delete and upsert languages on the client and add unit and integration test cases
* fixes language service tests after merge
* disallows deletetion of base language from ui and base language cannot have a fallback
* makes create project e2e test use language select
* only allows for saving languages once form got tainted
* relaxes schema to have code as string and add deletion of language
* checks for locale already used
* improves deletion and upserting of languages
* fixes calls after refacoring service methods
* adds confirmation dialog to confirm deletion of language
* removes commented code
* fixes broken unit tests
* fixes integration tests
* adds pr improvements1 parent 06fb112 commit 87656fd
File tree
45 files changed
+1961
-38
lines changed- e2e/specs
- services/src
- kysely/migrations
- language
- project
- src
- components
- container
- auth
- language
- projects
- layout
- dialog
- main-content
- ui
- button
- select
- table
- lib/models
- routes/(authenticated)/projects
- [slug]
- languages
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
45 files changed
+1961
-38
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
41 | 41 | | |
42 | 42 | | |
43 | 43 | | |
44 | | - | |
| 44 | + | |
| 45 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
15 | | - | |
16 | | - | |
| 15 | + | |
| 16 | + | |
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
| 28 | + | |
28 | 29 | | |
29 | 30 | | |
30 | 31 | | |
| |||
51 | 52 | | |
52 | 53 | | |
53 | 54 | | |
54 | | - | |
| 55 | + | |
55 | 56 | | |
56 | 57 | | |
57 | 58 | | |
| |||
0 commit comments