Skip to content

desktop/4.0.0

Choose a tag to compare

@github-actions github-actions released this 28 Oct 06:47
· 9 commits to master since this release
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.