Repository navigation
Commit 0afe509
fix(app-shell): rename the deployment notice state module so it no longer differs from the component only in case (#34762)
<!-- claude-projects-attribution: {"github_login":"os-steve"} -->
_Requested by **Steve** · [project
thread](https://claude.ai/code/project/chan_01FdL1XeUyvVNxLreh3F4Qi9?thread=cmsg_01FdL1XeUyvVNxLreh3F4Qi9R6fQuMSzSrRW2oowG4K2kQ)_
Part of #34705
Clause-②: no
Metadata-protocol: none
Skills-docs: none — an internal module rename; no skill page names
either file.
> The first of two PRs for #34705. This one is the fix (the rename), so
macOS builds work as soon as it lands. The second adds the
repository-wide gate (`check:module-name-case`, one step in `lint.yml`,
which is Tier H under the workflows split); it is held until this one
merges, because the gate is red on `main` until then. The second PR
closes the card.
## 维护者速读
-
**改了什么**:`ui/packages/app-shell/src/console/deployment-notice/deploymentNotice.ts`
改名为 `deploymentNoticeState.ts`,它的两个导入方(`DeploymentNotice.tsx`
和它的测试)跟着改。一处注释里的文件名同步。
- **为什么改**:同一目录里 `DeploymentNotice.tsx`(组件)和
`deploymentNotice.ts`(状态模块)只差大小写。在 macOS
默认的大小写不敏感文件系统上,`'../deployment-notice/DeploymentNotice.js'`
解析到了状态模块,`tsc` 构建 app-shell 失败(`TS2724`、`TS1261`)。
- **风险与回滚**:纯改名,包的导出不变,行为不变。回滚即撤回本 PR。
- **先看**:`DeploymentNotice.tsx:49` 的导入。
- **两分钟验证**:`cd ui && pnpm exec vitest run
packages/app-shell/src/console/deployment-notice`,预期全绿;`git ls-files
ui/packages/app-shell/src/console/deployment-notice` 里不再有两个只差大小写的名字。
- **需要你做的**:无;本 PR 走普通队列。
## What changes
- `deploymentNotice.ts` → `deploymentNoticeState.ts` (git rename,
content unchanged).
- `DeploymentNotice.tsx:49` and `__tests__/DeploymentNotice.test.tsx:31`
import the new name; the docblock at `DeploymentNotice.tsx:27` names it.
- `.changeset/34705-deployment-notice-state-module-name.md`:
`@object-ui/app-shell` patch.
The component's importers (`console/home/HomePage.tsx:39`,
`views/DashboardView.tsx:40`, the HomePage tests'
`vi.mock('../../deployment-notice/DeploymentNotice')`) already spell the
component and are untouched: on a case-insensitive file system they now
reach the only file of that name.
## Premise
On `origin/main` f6f5b50 the folder holds `DeploymentNotice.tsx` and
`deploymentNotice.ts`. The pair differs in extension too, so a
lower-cased `git ls-files` dedupe finds nothing; compared by the name an
import spells (extension removed), they collide. A scan of every tracked
path on `main` by that rule finds exactly this pair, and none on this
branch (25,990 paths). Reproduced from the tree, not on a macOS file
system (the container's is case-sensitive).
## Verification
See the final-head comment for the head this covers.
## Human Minimum
- [x] 1. Schemas start as Zod; `packages/spec` holds no runtime logic.
(No spec change.)
- [x] 2. Every name I added uses the casing for its kind.
- [x] 3. No formatter ran; `pnpm lint` passes.
- [x] 4. One issue, one branch off an up-to-date `main`, one pull
request. (The card's gate follows as a second PR, as stated above.)
- [x] 5. A change that publishes carries a changeset, and both
declaration lines are filled in here and in the changeset.
- [x] 6. `packages/spec` touched: not touched.
- [x] 7. No hand edits to `content/docs/references/`,
`packages/*/CHANGELOG.md` or `content/docs/releases/`.
- [x] 8. Title, body and comments are in English. (The 维护者速读 section is
the maintainer's requested summary.)
- [x] The *Before Submitting* list in CONTRIBUTING.md is done.
---
🤖 Generated with [Claude Code](https://claude.com/claude-code)
https://claude.ai/code/session_01ADHkmSYe73LCZ6WxGFvcko
<!-- signed: repo:objectstack#2 · os-steve ·
session_01ADHkmSYe73LCZ6WxGFvcko -->
Co-authored-by: Claude <noreply@anthropic.com>1 parent ba27c3b commit 0afe509
4 files changed
Lines changed: 14 additions & 3 deletions
File tree
- .changeset
- ui/packages/app-shell/src/console/deployment-notice
- __tests__
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
27 | | - | |
| 27 | + | |
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
| |||
46 | 46 | | |
47 | 47 | | |
48 | 48 | | |
49 | | - | |
| 49 | + | |
50 | 50 | | |
51 | 51 | | |
52 | 52 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
31 | | - | |
| 31 | + | |
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
| |||
0 commit comments