feat(desktop): drop parked review flow, add publish management
SaaS 侧人工审核后才创建 publish job,desktop 不再做二次审核:移除 manual/waiting_user/parked/from_parked 状态机与 LeaseFromParked 查询, desktop client 只执行发布并新增"发布管理"页(待发布队列 / 历史 / 再次 发送)。同时抽离 @geo/publisher-platforms 共享适配器包、新增 Redis-based desktop_presence 与 publish_record_support,刷新 admin-web 发布弹窗与 媒体库;plan A / spec 文档同步口径。
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
import type { MediaPlatform, PlatformAccount } from "@geo/shared-types";
|
||||
import type { DesktopAccountInfo, MediaPlatform, PlatformAccount } from "@geo/shared-types";
|
||||
|
||||
export interface PublishPlatformOption {
|
||||
id: string;
|
||||
@@ -53,10 +53,14 @@ export function normalizePublishPlatformIds(platformIds?: Array<string | null |
|
||||
|
||||
export function buildPublishPlatformOptions(
|
||||
platforms: MediaPlatform[],
|
||||
accounts?: PlatformAccount[] | null,
|
||||
accounts?: Array<PlatformAccount | DesktopAccountInfo> | null,
|
||||
): PublishPlatformOption[] {
|
||||
const boundPlatformIds = new Set(
|
||||
(accounts ?? []).map((account) => normalizePublishPlatformId(account.platform_id)).filter(Boolean),
|
||||
(accounts ?? [])
|
||||
.map((account) =>
|
||||
normalizePublishPlatformId("platform_id" in account ? account.platform_id : account.platform),
|
||||
)
|
||||
.filter(Boolean),
|
||||
);
|
||||
|
||||
return platforms.map((platform) => {
|
||||
|
||||
Reference in New Issue
Block a user