Skip to content

Develop into master#4

Merged
steve1rm merged 57 commits intomasterfrom
develop
Jun 14, 2025
Merged

Develop into master#4
steve1rm merged 57 commits intomasterfrom
develop

Conversation

@steve1rm
Copy link
Owner

No description provided.

steve1rm and others added 30 commits June 1, 2025 15:31
This commit introduces the core presentation design system, including:
- Color definitions for light and dark themes
- Dimension constants for spacing
- A base `NoteMarkLayout` composable for consistent app structure
- Shape definitions for UI elements
- Typography styles using the Space Grotesk font
- The Space Grotesk font file

Additionally, a basic `SplashScreen` composable is added, utilizing the new `NoteMarkLayout`.
This commit replaces the default `MaterialTheme` with `NoteMarkTheme` in the main `App` composable. This ensures that the custom theming defined in `NoteMarkTheme` is applied throughout the application.
This commit introduces two new button composables:

- `SolidButton`: A filled button with a primary background color.
- `OutlineButton`: An outlined button with a primary border and transparent background.

Both buttons use the `NoteMarkTheme` and have a fixed height of `48.dp` and rounded corners of `12.dp`.

Additionally, the `Typography` definition in `NoteMarkTheme` has been updated to include a `titleSmall` text style, which is now used by the new button composables.
This commit moves several files related to the presentation layer from `androidMain` to `commonMain`. This change aims to improve code organization and enable sharing of these components across different platforms in the future.

The following files and directories were moved:
- `me.androidbox.designsystem` theming files (Colors, Dimensions, Icons, Shapes, Theme, Typography)
- `me.androidbox.designsystem.NoteMarkLayout`
- Platform-specific `Platform.kt` files for apple, iosArm64, iosSimulatorArm64, iosX64, and native
- `me.androidbox.authentication.register.presentation.PortraitRegisterScreen`
- Other authentication-related files within `me.androidbox.authentication` for register, core, and login modules.

Additionally, `bgGradient` has been added to `ColorScheme` in `commonMain/kotlin/me/androidbox/core/presentation/designsystem/theming/Colors.kt`.
The `PortraitRegisterScreen` has been updated to accept `onAction` lambda and `RegisterUiState` as parameters, and uses `NoteMarkTheme` and `org.jetbrains.compose.ui.tooling.preview.Preview`.
This commit moves several files related to the presentation layer from `androidMain` to `commonMain`. This change aims to improve code organization and enable sharing of these components across different platforms in the future.

The following files and directories were moved:
- `me.androidbox.designsystem` theming files (Colors, Dimensions, Icons, Shapes, Theme, Typography)
- `me.androidbox.designsystem.NoteMarkLayout`
- Platform-specific `Platform.kt` files for apple, iosArm64, iosSimulatorArm64, iosX64, and native
- `me.androidbox.authentication.register.presentation.PortraitRegisterScreen`
- Other authentication-related files within `me.androidbox.authentication` for register, core, and login modules.

Additionally, `bgGradient` has been added to `ColorScheme` in `commonMain/kotlin/me/androidbox/core/presentation/designsystem/theming/Colors.kt`.
The `PortraitRegisterScreen` has been updated to accept `onAction` lambda and `RegisterUiState` as parameters, and uses `NoteMarkTheme` and `org.jetbrains.compose.ui.tooling.preview.Preview`.
This commit introduces the `LandingContent` composable, which displays introductory text and buttons for "Get Started" and "Log in".

Key changes:
- Added `LandingContent.kt` with the new composable.
- Updated `lightOnSurface`, `lightOnSurfaceVariant`, and `lightSurfaceLowest` colors in `Colors.kt` for improved theming.
- Set default `enabled` state to `true` for `SolidButton` and `false` for `OutlineButton`.
- Minor import adjustments and package name correction for `SplashScreen`.
- Ensured `RegisterViewModel` is correctly initialized in `RegisterScreen`.
This commit introduces several changes to the typography and button styles:

- **Typography:**
    - Adds the Inter font family.
    - Updates `bodyLarge` text style to use the Inter font, with adjusted font size and line height.
    - Adds a new `titleLarge` text style using the Space Grotesk font.

- **OutlineButton:**
    - Changes the `containerColor` to `Color.Transparent` to ensure the outline style is correctly applied.

- **LandingContent:**
    - Minor code formatting adjustment for background modifier.

Additionally, the Inter font file (`inter.ttf`) has been added to the project resources.
This commit refactors the `LandscapeLoginScreen` to accept `state` and `onAction` as parameters, removing the direct dependency on `LoginViewModel`.

This change promotes a more unidirectional data flow and makes the composable more testable and reusable by decoupling it from a specific ViewModel implementation.
steve1rm and others added 27 commits June 5, 2025 23:38
# Conflicts:
#	composeApp/src/androidMain/AndroidManifest.xml
#	composeApp/src/androidMain/kotlin/me/androidbox/Platform.android.kt
#	composeApp/src/commonMain/kotlin/me/androidbox/authentication/login/data/Login.kt
#	composeApp/src/commonMain/kotlin/me/androidbox/authentication/login/domain/use_case/LoginUseCase.kt
#	composeApp/src/commonMain/kotlin/me/androidbox/authentication/login/presentation/LoginActions.kt
#	composeApp/src/commonMain/kotlin/me/androidbox/authentication/login/presentation/LoginViewModel.kt
#	composeApp/src/commonMain/kotlin/me/androidbox/authentication/login/presentation/PortraitLoginScreen.kt
#	composeApp/src/commonMain/kotlin/me/androidbox/authentication/register/data/Register.kt
#	composeApp/src/commonMain/kotlin/me/androidbox/core/data/imp/HttpNetworkClientImp.kt
#	composeApp/src/commonMain/kotlin/me/androidbox/di/NoteMarkModule.kt
…nack is being shown and navigating to blank screen
@steve1rm steve1rm merged commit c274306 into master Jun 14, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants