Skip to content

Incorrect Module Placement: AuthService Should Not Be Part of Styleguide #21

@ajaxspace

Description

@ajaxspace

Problem:
AuthService is currently located within the styleguide package/module. This violates separation of concerns and breaks modular boundaries.

📍 File in question:

export 'core/services/auth_service.dart';

📎 Why It’s a Problem

  • styleguide should only contain design system elements:
    ⮞ Colors, themes, typography, spacing, and reusable UI components.

  • Authentication logic is application-level domain logic, not visual or styling-related.

  • Keeping it inside styleguide creates tight coupling and breaks reuse.


✅ Recommendation

  • Move AuthService to a feature- or domain-specific module (e.g. core, auth, or services).
  • Remove any exports from the styleguide that expose business logic.

Impact:

  • Restores proper architectural boundaries
  • Makes styleguide reusable and independent
  • Reduces coupling between design system and application logic

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions