Skip to content

[Refactor/Chore] Remove the app store and make app detail a single source of truth #42871

Closed

Description

@lyzno1

Self Checks

  • I have read the Contributing Guide and Language Policy.
  • This is only for refactors or chores; if you would like to ask a question, please head to Discussions.
  • I have searched for existing issues search for existing issues, including closed ones.
  • I confirm that I am using English to submit this report, otherwise it will be closed.
  • 【中文用户 & Non English User】请使用英语提交,否则会被关闭 :)
  • Please do not modify this template :) and fill in all the required fields.

Description

Remove web/app/components/app/store.ts and its consumers. First make the backend /apps/{app_id} response schema accurate and regenerate the API contracts and Markdown docs. Then use the app-detail Query as the sole owner of server data, move transient log/modal state to its UI owners, and remove imperative store reads and cleanup effects. Do not retain a compatibility store or mirrored app state.

Motivation

The layout, Zustand store, and Query cache currently hold competing copies of app detail. Mutations and collaboration updates synchronize them by hand, while the handwritten frontend App type promises fields that the backend schema does not guarantee.

Additional Context

Supersedes the stale, closed #31181. Follow-up PRs can reference this issue until the store and all its imports are gone.

Metadata

Metadata

Assignees

Labels

review: top

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions