Skip to content

docs(tree): improve withDefault API docs and cross-link with user-facing docs - #27651

Merged
Jenn (jenn-le) merged 1 commit into
mainfrom
jenn-le-improve-withdefault-docs
Jul 8, 2026
Merged

docs(tree): improve withDefault API docs and cross-link with user-facing docs#27651
Jenn (jenn-le) merged 1 commit into
mainfrom
jenn-le-improve-withdefault-docs

Conversation

@jenn-le

Copy link
Copy Markdown
Contributor

Description

The withDefault API docs (TSDoc) and the user-facing documentation page existed independently without linking to each other, making it harder for users to discover the full picture from either entry point.

This PR improves the withDefault documentation in two ways:

  • API docs (TSDoc): Expanded the withDefault remarks with structured guidance on required vs optional field defaults, value vs generator defaults, and a self-contained example showing a realistic schema. Added {@link} references to the fluidframework.com default field values guide from both withDefault and withDefaultRecursive. Added a cross-reference from NodeProvider back to withDefault.

  • User-facing docs (website): Linked withDefault, withDefaultRecursive, and NodeProvider inline where they are first referenced, so users can jump to the API reference for type signatures and parameter details. Expanded the See Also section with direct links to individual API members.

Reviewer Guidance

The review process is outlined on this wiki page.

Documentation-only change -- no API surface or behavioral changes. No changeset needed.

- Expanded TSDoc for SchemaStaticsAlpha.withDefault with structured
  remarks covering required vs optional fields, value vs generator
  defaults, and a self-contained example
- Added link from API docs to fluidframework.com default field values
  guide
- Added link from withDefaultRecursive to recursive types section of
  user-facing docs
- Added cross-reference from NodeProvider to withDefault
- Added API reference tip callout near top of user-facing docs page
  linking to withDefault, withDefaultRecursive, and NodeProvider
- Expanded See Also section with direct links to individual API members

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
@jenn-le
Jenn (jenn-le) requested a review from a team as a code owner July 7, 2026 22:33
Copilot AI review requested due to automatic review settings July 7, 2026 22:34

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

@github-actions

github-actions Bot commented Jul 7, 2026

Copy link
Copy Markdown
Contributor

Hi! Thank you for opening this PR. Want me to review it?

Based on the diff (85 lines, 2 files), I've queued these reviewers:

  • Correctness — logic errors, race conditions, lifecycle issues
  • Security — vulnerabilities, secret exposure, injection
  • API Compatibility — breaking changes, release tags, type design
  • Performance — algorithmic regressions, memory leaks
  • Testing — coverage gaps, hollow tests

How this works

  • Adjust the reviewer set by ticking/unticking boxes above. Reviewer toggles alone don't trigger anything.

  • Tick Start review below to dispatch the review fleet.

  • After review finishes, tick Start review again to request another run — it auto-resets after each dispatch.

  • This comment updates as new commits land; your reviewer selections are preserved.

  • Start review

@github-actions

github-actions Bot commented Jul 7, 2026

Copy link
Copy Markdown
Contributor

🔗 No broken links found! ✅

Your attention to detail is admirable.

linkcheck output

1: starting server using command "npm run serve -- --no-open"
and when url "[ 'http://127.0.0.1:3000' ]" is responding with HTTP status code 200
running tests using command "npm run check-links"


> fluid-framework-website@0.0.0 serve
> docusaurus serve --no-open

[SUCCESS] Serving "build" directory at: http://localhost:3000/

> fluid-framework-website@0.0.0 check-links
> linkcheck http://localhost:3000 --skip-file skipped-urls.txt

Crawling...

Stats:
  294296 links
    1937 destination URLs
    2187 URLs ignored
       0 warnings
       0 errors


@github-actions

github-actions Bot commented Jul 7, 2026

Copy link
Copy Markdown
Contributor

Bundle size comparison

Base commit: db34092e6747504e6d7c7b8fc1f65dbb4240a89a
Head commit: cb7e9a6e526d897741d294a125458dc9c66c575f

Notable changes

No bundles changed by ≥ 500 bytes parsed.

Per-bundle deltas

@fluid-example/bundle-size-tests

  • azureClient.js: parsed 619098 → 619154 (+56), gzip 164826 → 164873 (+47)
  • odspClient.js: parsed 591824 → 591880 (+56), gzip 158916 → 158959 (+43)
  • aqueduct.js: parsed 525587 → 525622 (+35), gzip 140710 → 140739 (+29)
  • fluidFramework.js: parsed 392745 → 392766 (+21), gzip 111523 → 111539 (+16)
  • sharedTree.js: parsed 382132 → 382146 (+14), gzip 108908 → 108920 (+12)
  • containerRuntime.js: parsed 303937 → 303951 (+14), gzip 83213 → 83222 (+9)
  • sharedString.js: parsed 175984 → 175991 (+7), gzip 49445 → 49453 (+8)
  • experimentalSharedTree.js: parsed 160798 → 160798 (0), gzip 45804 → 45804 (0)
  • matrix.js: parsed 159845 → 159852 (+7), gzip 45411 → 45419 (+8)
  • loader.js: parsed 145256 → 145270 (+14), gzip 39063 → 39076 (+13)
  • odspDriver.js: parsed 104329 → 104350 (+21), gzip 32649 → 32658 (+9)
  • directory.js: parsed 66616 → 66623 (+7), gzip 18532 → 18540 (+8)
  • 748.js: parsed 58793 → 58793 (0), gzip 17827 → 17827 (0)
  • map.js: parsed 46709 → 46716 (+7), gzip 14310 → 14318 (+8)
  • odspPrefetchSnapshot.js: parsed 45642 → 45656 (+14), gzip 15277 → 15285 (+8)
  • 594.js: parsed 44493 → 44493 (0), gzip 13744 → 13744 (0)
  • summarizerDelayLoadedModule.js: parsed 30749 → 30749 (0), gzip 7753 → 7753 (0)
  • socketModule.js: parsed 26477 → 26484 (+7), gzip 7886 → 7894 (+8)
  • createNewModule.js: parsed 12480 → 12480 (0), gzip 4786 → 4786 (0)
  • summaryModule.js: parsed 3797 → 3797 (0), gzip 1860 → 1860 (0)
  • connectionState.js: parsed 724 → 724 (0), gzip 429 → 429 (0)
  • sharedTreeAttributes.js: parsed 666 → 673 (+7), gzip 432 → 442 (+10)
  • debugAssert.js: parsed 429 → 429 (0), gzip 299 → 299 (0)
  • FluidFramework-HashFallback.js: parsed 422 → 422 (0), gzip 316 → 316 (0)

@jenn-le
Jenn (jenn-le) merged commit cbb8704 into main Jul 8, 2026
39 checks passed
@jenn-le
Jenn (jenn-le) deleted the jenn-le-improve-withdefault-docs branch July 8, 2026 16:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants