Skip to content
This repository was archived by the owner on Nov 4, 2026. It is now read-only.
This repository was archived by the owner on Nov 4, 2026. It is now read-only.

Studio 工作台增量三:发布状态单一真相 — B4 横幅/Studio 草稿徽标/聊天内联 Publish 同源 (cloud#1609) #5801

Description

@os-zhuang

cloud#1609 增量三。今天「有改动未发布」在三处各有一套呈现与数据口径:聊天的 B4 待发布横幅(cloud#1593 收官后已可靠)、Studio 的「未发布草稿」badge、建成卡/工具卡的内联 Publish(gates on packageId)。收敛为一个状态模型:同一 drafts 查询口径(listDrafts({packageId}),三层修复后 packageId 已可信)、同一「N 项改动未发布 · 发布」组件,在聊天与 Studio 顶栏复用;发布动作走同一 per-package publish。验收:在聊天里改→Studio 顶栏计数即亮;在 Studio 发布→聊天横幅即清;两处数字永远相等。依赖:无(数据层已就绪);建议排在增量一之后做以复用其 aiSlot 内嵌布局。

Activity

  1. os-zhuang commented on Aug 23, 2026

    @os-zhuang
    ContributorAuthor

    真机走查修正(staging 2026-08-24,维护者指示先看现状再动工):本卡改小。 Studio 顶栏已有「变更」(待发布变更审查弹窗,含新增/更新 diff 与发布)和「待发布草稿」计数按钮——不要新建统一状态组件。真正的工作是把这两个锚点与聊天 B4 横幅接到同一 listDrafts 口径 + 同一发布动作,并把各自范围写明。走查当场复现了目标缺陷:首页 B4 横幅报「1 项未发布」的同时 Studio 报「没有待发布的草稿」——前者 env 级、后者 package 级,两个都"对",用户看到的是打架。方案:Studio 按钮显示本应用 N 项(必要时附全环境 M 项入口);聊天横幅在有活跃包上下文时同 package 口径;发布动作两侧互通即时刷新。效果图(含现状盘点):https://claude.ai/code/artifact/7596592c-e821-4142-a207-2c535014735a

  2. added
    domain:uiobjectui ui stream: fix lands on the published library or apps — objectui execution seat
    on Aug 23, 2026
  3. added theissue type on Aug 23, 2026
  4. claude commented on Aug 23, 2026

    @claude
    Contributor

    Triage: pm:queue, domain:ui, Feature — cloud#1609 increment 3 (publish-state single source of truth). Serial family note on #5799 applies; its own body recommends landing after increment 1 to reuse the aiSlot inline layout.


    Generated by Claude Code

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    domain:uiobjectui ui stream: fix lands on the published library or apps — objectui execution seatpm:queue

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions