Repository navigation
fix(app-shell, plugin-gantt): launcher tile draws app branding; gantt name column names its object - #28017
Merged
Conversation
… name column names its object The home launcher tile reads branding.logo, then a hex branding.primaryColor, before the name-keyed gradient, sharing AppMark's tile colours. A gantt bound to an object heads its name column with the object's label; inline data, an unlabelled object and a mixed-object tree keep "Task Name". Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Utp6CYw9w9VeYi5rKNEsNK
This was referenced Oct 30, 2026
…r react-hooks lint Same disable AppMark carries: getIcon returns a stable component from a static registry. Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Utp6CYw9w9VeYi5rKNEsNK
Contributor
Author
|
domain:ui#3 · os-bill · session_01Utp6CaJoinvGQSbHeDaWBe 席位核对ACCEPT · head
Generated by Claude Code |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
domain:ui#3 · os-bill · session_01Utp6CaJoinvGQSbHeDaWBe
Requested by Bill · project thread
Fixes #27386
Clause-②: no
Metadata-protocol: none
维护者速读
app:launcher区块)改为读应用自己的品牌:有branding.logo画 logo,否则有十六进制branding.primaryColor就用该色的图标块,两者都没有才回到按名字哈希的渐变色;甘特图左侧名称列的表头,绑定对象时改为该对象的标签(如 “Campaign”),不再固定为 “Task Name”。objectField)的甘特表头仍是 “Task Name”。回滚即 revert 本 PR。ui/packages/app-shell/src/console/home/HomeAppsStrip.tsx的LauncherAppIcon;ui/packages/plugin-gantt/src/ObjectGantt.tsx的taskColumnLabel传参;ui/packages/app-shell/src/layout/appTileColors.ts(从AppMark移来的共享类名与样式)。pnpm --dir ui exec vitest run packages/app-shell/src/console/home/__tests__/HomeAppsStrip.branding-27386.test.tsx packages/plugin-gantt/src/ObjectGantt.taskColumnLabel-27386.test.tsx,预期 7 个测试全绿。What changes
Rows 2 and 4 of #27386. Rows 1, 3 and 5 each need a new spec key and are carded by the seat in
domain:spec: row 1 as #28018 (kanban lanes) and #28020 (view filter OR group), row 3 as #28021 (calendar initial date), row 5 as #28022 (per-audience landing). With every row owned, this PR closes the card.@object-ui/app-shell). The home "Your apps" strip, which theapp:launcherblock also mounts, drew every app's 56 px icon square on a gradient picked by hashingapp.name. It now follows the same ladderAppMarkdraws in the top-bar pill and the app switcher: thebranding.logoimage when declared; else the app'siconon itsbranding.primaryColorwhen that is a hex; else theiconon the name-keyed gradient, unchanged. A logo that fails to load falls back to the tile. The favourite badge rides on every face. The branded tile reusesappTileColors(light and dark colours), and the tile class string plus its CSS custom properties move fromAppMark.tsxintoappTileColors.ts(BRANDED_TILE_CLASSES,appTileStyle) so both surfaces draw one tile. The colour reaches the DOM only as CSS custom properties that static utilities read (the ui/AGENTS.md section 2 author-declared colour carve-out), asAppMarkalready did.@object-ui/plugin-gantt).GanttViewtakes an optionaltaskColumnLabelprop and falls back to thegantt.column.taskNamestring.ObjectGanttpasses the bound object's label, resolved throughuseObjectLabel().objectLabel(the translated object label every other surface uses). It passes nothing, so the heading stays "Task Name", for an inline data set, an object that declares no label, and a mixed-object tree (gantt.objectField), whose rows are not all the bound object. No new key: a configurable title is a spec change and stays out (the card's suggestion of a title key on gantt config is not built).Tests
ui/packages/app-shell/src/console/home/__tests__/HomeAppsStrip.branding-27386.test.tsx(3 cases): hex colour replaces the gradient and publishes the four custom propertiesappTileColorsderives; no colour and a non-hex colour keep the name-keyed gradient; a logo draws, keeps the favourite badge, and falls back to the coloured tile onerror.ui/packages/plugin-gantt/src/ObjectGantt.taskColumnLabel-27386.test.tsx(4 cases): bound object label heads the column; generic heading for an unlabelled object, a mixed-object tree and an inline data set. The generic cases read the heading after the object schema read has settled.Acceptance notes
Per-row triage, re-measured on
main4694365:KanbanConfigSchemadeclaresgroupByField,summarizeField,titleField,columnsonly: no lane list and no hide-empty key. A list view'sfilteris an array of flatViewFilterRuleSchemarules (field,operator,value), AND-only; the$orgrouping exists only inFilterConditionSchema, which a stored view'sfilterdoes not take. Both need spec keys.CalendarConfigSchemadeclares five field bindings and no initial-date key;ObjectCalendarseeds its current date withnew Date(). #27895 added Studio settings for calendar and gantt but no such key exists in the spec.branding.logo/ hexbranding.primaryColor.homePageIdis retired;navigationContributionsappend only. A per-audience landing is a new app or manifest key.tile-gridpage block still tints its generic tiles withlauncherIconGradient(href || label): those tiles are authored links, not apps, and carry no branding. Not changed.AppCard.tsx(the older marketing card) is not mounted by Home or the launcher block; not changed.Verification
Ablation (red-first), on 98f7880
Through
scripts/ablation-replace.mjs, each leg restored with blob equal to HEAD andgit diff HEADempty:HomeAppsStrip.tsx:appTileColors(...)replaced byundefined→ branding test2 failed | 1 passed (3)(the gradient control stays green).GanttView.tsx:taskColumnLabel ||removed → heading test1 failed | 3 passed (4)(the three generic controls stay green).Local gates on 98f7880: dispatch-gates derived 35, all run, all exit 0
node scripts/pm/dispatch-gates.mjs --ran→35 derived famil(ies) accounted for — 35 run, 0 NOT-MEASURED. Outside the derivation:pnpm check:changeset-fixed(its roster lives under.changeset/), andtype-checkfor both touched packages.pnpm --dir ui check:new-line-citations→0 new citation(s).Tests: the two new files
7 passed (7); with neighbours (everyconsole/home/__tests__/file,AppSwitcher.appIdentity-12201,ObjectGantt.exportFileName.i18n,GanttView.layout)Test Files 37 passed (37),Tests 242 passed (242). CI families: this PR's check-runs.🤖 Generated with Claude Code
https://claude.ai/code/session_01Utp6CYw9w9VeYi5rKNEsNK