项目文件夹

文件
wehub-resource-sync 9b395f5cc3
E2E Headed Chrome / e2e-headed (macos-15) (push) Has been cancelled
E2E Headed Chrome / e2e-headed (ubuntu-latest) (push) Has been cancelled
E2E Headed Chrome / e2e-headed (windows-latest) (push) Has been cancelled
CI / build (macos-latest) (push) Has been cancelled
CI / build (ubuntu-latest) (push) Has been cancelled
CI / build (windows-latest) (push) Has been cancelled
CI / unit-test (push) Has been cancelled
CI / bun-test (push) Has been cancelled
CI / adapter-test (push) Has been cancelled
CI / smoke-test (macos-latest) (push) Has been cancelled
CI / smoke-test (ubuntu-latest) (push) Has been cancelled
Security Audit / audit (push) Has been cancelled
Build Chrome Extension / build (push) Has been cancelled
Trigger Website Rebuild (Docs Updated) / dispatch (push) Has been cancelled
chore: import upstream snapshot with attribution
2026-07-13 12:39:48 +08:00

53 行
2.1 KiB
Markdown

此文件含有模棱两可的 Unicode 字符
此文件含有可能会与其他字符混淆的 Unicode 字符。 如果您是想特意这样的,可以安全地忽略该警告。 使用 Escape 按钮显示他们。
---
schema_version: 1.1
page_id: status
url_patterns:
- https://x.com/<handle>/status/<numeric-id>
- https://x.com/i/status/<numeric-id>
purpose: single tweet detail with thread / replies
last_verified: 2026-06-02
source: global
---
## Visual anchors
- a11y: `role=main` + `role=region name``"Conversation"``<handle>'s post`
- testid: 主 tweet `[data-testid="tweet"]`listing page 用 `cellInnerDiv`,detail page 主 tweet 用 `tweet`);reply composer `[data-testid="tweetTextarea_0"]` + `[data-testid="tweetButtonInline"]`
- pattern: 主 tweet 下方按 reply 时间排子 tweet,结构同 `_tweet_card`
## Actions
```yaml
### action:open_reply_composer_inline
pre: on /<handle>/status/<id>, detail loaded
do: click [data-testid="tweetTextarea_0"] || click [data-testid="reply"] button
post: textarea focused, submit button [data-testid="tweetButtonInline"] enables on input
fail: textarea not focusing | login modal
recover: keyboard shortcut `r`; mark composer stale if persistent
evidence: opencli browser click
```
```yaml
### action:submit_reply
pre: reply composer has text, submit enabled
do: opencli twitter reply --status-url <url> --text "..." || click [data-testid="tweetButtonInline"]
post: textarea cleared + toast "Your post was sent"; new reply appended below detail
fail: button enabled but silent timeout (see pitfall:reply_silent_fails_on_rich_content) | login modal
recover: adapter_health_update: opencli twitter reply -> suspect; apply pitfall workaround (single-paragraph plain text, escape bullets); long reply -> workflows/post.md + quote
evidence: opencli twitter reply
```
## Tweet card actions
主 tweet + 子 reply 都是 tweet card 形态,互动按钮见 [`pages/_tweet_card.md`](./_tweet_card.md)。
## Linked APIs
- endpoint:UserByScreenName — `<handle>` → userId 解析(reply / 子 tweet author 用)
## Page pitfalls
- detail page 主 tweet testid (`tweet`) ≠ listing page (`cellInnerDiv`) — a11y `role=article` 通用更安全
- 长 thread / quote detail 部分 mount,scroll 触发加载
- 删除的 tweet URL 仍可访问,detail 显示 `"This post is unavailable"` 占位