# 0034 — Layout — Module Triage

**Milestone:** M3
**Owner:** TBD
**Status:** planning

## Goal

Consolidates 13 legacy issues from the
`MetaDrivenPlatform4AI` repo that share the same module / area label,
so they can be triaged together by the corresponding domain IC.

Module label scope: `module/layout`.

## Acceptance criteria

- [ ] All `ported` children below have a Story or Bug filed in pingcap-pack
- [ ] All filed Stories / Bugs have a linked test (existing or to-write task with scaffold)
- [ ] Engineering review confirms which children are still applicable under the new project's design

## Stories / Bugs (filed as GitHub issues)

13 children classified `ported`. Phase 3/4 will file each as
a Story (capability) or Bug (defect) in this repo and back-reference the
legacy issue. Initial child list:

- [ ] #TBD — legacy MetaDrivenPlatform4AI#96 — Layout describe-by-recordType response missing Salesforce fields (buttonLayoutSection; quickActionList; etc.)
- [ ] #TBD — legacy MetaDrivenPlatform4AI#114 — UI API Layout endpoint missing Salesforce top-level and section fields
- [ ] #TBD — legacy MetaDrivenPlatform4AI#118 — Missing describe/compactLayouts endpoint for sObjects
- [ ] #TBD — legacy MetaDrivenPlatform4AI#591 — fix(layout): editableForNew should derive from field createable status
- [ ] #TBD — legacy MetaDrivenPlatform4AI#592 — feat(layout): add SearchLayout support (search results + lookup dialog fields)
- [ ] #TBD — legacy MetaDrivenPlatform4AI#598 — feat(layout): support Salesforce-style Edit mode on page layouts
- [ ] #TBD — legacy MetaDrivenPlatform4AI#600 — feat(layout): support layout-level Required and Read-only field overrides
- [ ] #TBD — legacy MetaDrivenPlatform4AI#1244 — Update DescribeLayouts to return real record types
- [ ] #TBD — legacy MetaDrivenPlatform4AI#1247 — Map record types to distinct page layouts in DescribeLayouts
- [ ] #TBD — legacy MetaDrivenPlatform4AI#1277 — TestMetadataService_GetLayout_FallbackToGenerated includes system field CreatedDate
- [ ] #TBD — legacy MetaDrivenPlatform4AI#1302 — Fix rows field in layout sections: set to len(layoutRows) not total field count
- [ ] #TBD — legacy MetaDrivenPlatform4AI#1303 — Add warning log when GetAllLayouts fails in DescribeLayouts layout ID resolution
- [ ] #TBD — legacy MetaDrivenPlatform4AI#1363 — Layout Create/Edit Page Support — P0 Status Report (Implemented #580)

## Non-goals

- Re-port legacy fixes that are no longer relevant under the new project's
  pure-platform design — engineering identifies these case-by-case
- Layer-belonging classification (L0 / L1 / L2) — engineering's job

## History

- 2026-05-03 — created during Phase 2 from clustered orphan issues.

## Stories (filed in Phase 3)

_Pending Phase 3 synthesis._
