Skip to content

Suggestion: Split HeartbeatSection.kt into separate section files #110

Description

@adrielGGmotion

Suggestion: Split HeartbeatSection.kt into separate section files

Category: Large functions/files
File: composeApp/src/commonMain/kotlin/com/oak/app/ui/settings/HeartbeatSection.kt:1

HeartbeatSection.kt is 889 lines and contains four distinct composable sections: HeartbeatSection, EmailSection, SmsSection, and NotificationsSection, along with several private helper functions. Each section manages a different domain (heartbeat polling, email polling, SMS polling, and app notifications) with its own state and UI logic.

Suggested action: Split the file into separate files such as HeartbeatSection.kt, EmailSection.kt, SmsSection.kt, and NotificationsSection.kt, each containing only its respective composable and helpers.

Metadata

Metadata

Assignees

No one assigned

    Labels

    suggestionAI-generated code improvement suggestion

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions