bcquality/custom/knowledge/ui/keep-tooltips-on-sp-page-fields.md
Paulius Urbanas 5149da25ba Add StrongPoint custom knowledge layer
Eight organization rules in custom/knowledge, each overriding or
supplementing the Microsoft layer for StrongPoint repositories:

- style/spu-prefix-on-objects-and-extension-members
- style/cyclomatic-complexity-is-not-a-gate-in-sp-repos (LC0010 = Info)
- ui/keep-tooltips-on-sp-page-fields (AA0218 = Error, LC0064 off;
  overrides microsoft ui/bound-page-field-inherits-source-field-tooltip)
- data-modeling/sp-field-names-fit-30-chars-with-prefix (AL0468 = Error)
- events/change-ls-central-behaviour-through-its-events
- web-services/device-io-goes-through-sp-device-manager
- appsource/sp-id-ranges-are-not-checked-by-as0084 (AS0084 = None)
- upgrade/sp-released-ids-never-change

Sources: sp.ruleset.json across SP repositories, SPUFBUpgrade pattern in
SP-LSC-Fiscal-Printing, observed LS Central and Device Manager usage.
Verified: all eight are indexed by Build-KnowledgeIndex.ps1, and a review
of a probe app applied the ToolTip rule as major and suppressed the
Microsoft article by layer precedence.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-09-25 13:50:52 +03:00

1.6 KiB

bc-version domain keywords technologies countries application-area
all
ui
tooltip
page-field
aa0218
lc0064
inheritance
table-field-tooltip
al
w1
all

StrongPoint page fields declare their own ToolTip

Description

StrongPoint repositories configure CodeCop AA0218 as an error in sp.ruleset.json and disable LinterCop LC0064 (which suggests moving tooltips to the table field). The team observed tooltips defined only on the table field not showing in the client, so SP policy is a page-level ToolTip on every user-facing page field and action, regardless of runtime version. This overrides the general guidance to rely on table-field tooltip inheritance on runtime 13.0 and later.

Best Practice

Declare ToolTip on each page field and action in SP pages and page extensions, even when the source table field also has one. Treat a user-facing page field without a page-level ToolTip as a major finding — AA0218 fails the SP build. Keep the text useful: say what the value is for, not "Specifies the ".

Anti Pattern

Recommending to remove page-level tooltips because the table field already has one, or to move them to the table (the LC0064 suggestion). Also wrong: accepting a page field with no page-level ToolTip on the grounds that it inherits one from the table.

References

StrongPoint policy: sp.ruleset.json in SP repositories — AA0218 Error ("ToolTip property for page fields must be mandatory"), LC0064 None ("does not show in client if ToolTip missing in page"). Shared rule this overrides: microsoft/knowledge/ui/bound-page-field-inherits-source-field-tooltip.md.