Skip to content

Refactor web/service hooks to use service wrappers #30467

@lyzno1

Description

@lyzno1

Goal

Standardize web/service to follow the convention:

  • use-* files expose TanStack Query hooks only.
  • non-use-* files expose pure request wrappers only.

Scope

Refactor existing web/service/use-* hooks to call the service-layer wrappers instead of calling @/service/base directly, and add missing wrappers where needed.

Tasks

  • Ensure each use-* hook delegates to a non-hook service function.
  • Add/extend service modules under web/service/* for missing endpoints.
  • Align types and request signatures (datasets/pipeline/plugins/tools/workflow/common).
  • Keep mocks/tests in sync with the import changes.

Done Criteria

All web/service/use-* hooks depend on web/service/* wrappers, with no direct @/service/base calls in those hooks.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions