Commit a202aa9
committed
feat: Implement adaptive UI for tablets and large screens
This commit introduces a major feature enhancement by implementing an adaptive user interface that provides a two-pane layout for tablets and larger screens, significantly improving the user experience on these devices. The presentation layer has been refactored to use a unidirectional data flow with sealed `Action` interfaces, simplifying event handling and making the UI more predictable.
### Adaptive UI
- Implemented `AdaptiveScreen` using `ListDetailPaneScaffold` to display a list-detail layout.
- Integrated `ThreePaneScaffoldNavigator` for managing navigation between the list and detail panes.
- Introduced `AdaptiveInteractor` to coordinate the selected note state between `MainViewModel` and `NoteViewModel`.
- Updated `MainScreen` and `NoteDetail` to work within the adaptive layout, including selection highlighting in the note list.
- Added a placeholder for the detail pane when no note is selected.
### Refactor: Unidirectional Data Flow with Action Interfaces
- Refactored all ViewModels (`Main`, `Note`, `Settings`, `Security`, `Dialogs`) to use a single `onAction(Action)` method for handling UI events.
- Defined sealed `Action` interfaces for each screen to provide type-safe, explicit event handling.
- Removed multiple lambda callbacks from `Result` state classes, simplifying Composable function signatures and improving state management.
### Web (WASM)
- Fixed the WebAssembly compilation error by implementing a robust Webpack plugin (`SQLJsWasmFixPlugin`) to normalize `sql-wasm.wasm` paths.
- The plugin handles various incorrect path patterns and ensures all required `sql.js` files are correctly copied and referenced.
- The web app is now fully functional on GitHub Pages.
### Documentation & Housekeeping
- Added comprehensive `README.md` files for every module in the project, detailing their architecture, purpose, and usage.
- Created guides for architecture, testing, version management, and AI agent contributions in the `/docs` directory.
- Upgraded Gradle and multiple library dependencies to their latest versions.
- Cleaned up the CI workflow for the web build and removed redundant build attempts in the KMP workflow.1 parent 246a5d2 commit a202aa9
File tree
104 files changed
+9914
-489
lines changed- .github/workflows
- app
- android
- src/main/java/com/softartdev/notedelight
- desktop
- src/jvmMain/kotlin/com/softartdev/notedelight
- ios-kit
- iosApp
- Pods/Pods.xcodeproj
- iosApp.xcodeproj
- iosApp
- web
- src/wasmJsMain/resources
- webpack.config.d
- build-logic
- core
- data
- db-room
- db-sqldelight
- src
- androidMain/kotlin/com/softartdev/notedelight/repository
- androidUnitTest/kotlin/com/softartdev/notedelight
- commonMain/kotlin/com/softartdev/notedelight/db
- iosMain/kotlin/com/softartdev/notedelight/repository
- jvmMain/kotlin/com/softartdev/notedelight/repository
- wasmJsMain/kotlin/com/softartdev/notedelight/repository
- domain
- src/commonMain/kotlin/com/softartdev/notedelight
- db
- usecase/note
- presentation
- src
- androidUnitTest/kotlin/com/softartdev/notedelight/presentation
- adaptive
- main
- note
- settings
- security
- change
- confirm
- enter
- commonMain/kotlin/com/softartdev/notedelight
- presentation
- main
- note
- settings
- security
- change
- confirm
- enter
- title
- test
- docs
- screenshoots
- web
- dark
- light
- gradle
- wrapper
- thirdparty
- ui
- test-jvm
- src/main/kotlin/com/softartdev/notedelight
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
104 files changed
+9914
-489
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
31 | | - | |
32 | | - | |
33 | | - | |
34 | | - | |
35 | | - | |
36 | | - | |
37 | | - | |
38 | | - | |
39 | | - | |
40 | | - | |
41 | | - | |
| 31 | + | |
42 | 32 | | |
43 | 33 | | |
44 | 34 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
| 5 | + | |
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
21 | 27 | | |
22 | 28 | | |
23 | 29 | | |
| |||
70 | 76 | | |
71 | 77 | | |
72 | 78 | | |
73 | | - | |
74 | | - | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
4 | 11 | | |
5 | 12 | | |
6 | 13 | | |
| |||
37 | 44 | | |
38 | 45 | | |
39 | 46 | | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
0 commit comments