Skip to content

chore(docs): TDF page cleanup — Setup rename, example placement, DEK link - #279

Merged
marythought merged 6 commits into
mainfrom
chore/274-b-tdf-cleanup
Apr 7, 2026
Merged

chore(docs): TDF page cleanup — Setup rename, example placement, DEK link#279
marythought merged 6 commits into
mainfrom
chore/274-b-tdf-cleanup

Conversation

@marythought

@marythought marythought commented Apr 7, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Rename Quick Start to Setup for consistency with other SDK pages
  • Move usage examples after Parameters (Signature → Parameters → Example → Returns → Errors) for CreateTDF, LoadTDF, IsValidTdf, BulkDecrypt
  • Link DEK reference to protocol spec on assertions page

Part of #274 (task 2)

preview: https://opentdf-docs-pr-279.surge.sh/sdks/tdf

Test plan

  • Verify TDF Setup section renders correctly
  • Verify examples appear after Parameters for all 4 methods
  • Verify DEK link works

🤖 Generated with Claude Code

Summary by CodeRabbit

  • Documentation
    • Corrected JavaScript code tab labels in documentation examples
    • Reordered documentation sidebar navigation sections
    • Restructured TDF guide content sections and updated descriptions for improved clarity

@marythought
marythought requested review from a team as code owners April 7, 2026 16:16
@coderabbitai

coderabbitai Bot commented Apr 7, 2026

Copy link
Copy Markdown

Warning

Rate limit exceeded

@marythought has exceeded the limit for the number of commits that can be reviewed per hour. Please wait 16 minutes and 51 seconds before requesting another review.

Your organization is not enrolled in usage-based pricing. Contact your admin to enable usage-based pricing to continue reviews beyond the rate limit, or try again in 16 minutes and 51 seconds.

⌛ How to resolve this issue?

After the wait time has elapsed, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

We recommend that you space out your commits to avoid hitting the rate limit.

🚦 How do rate limits work?

CodeRabbit enforces hourly rate limits for each developer per organization.

Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout.

Please see our FAQ for further information.

ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: 1e3ef143-4cd8-4e48-afc1-ea008e5061c7

📥 Commits

Reviewing files that changed from the base of the PR and between 76903eb and 9287c37.

📒 Files selected for processing (1)
  • docs/sdks/tdf.mdx
📝 Walkthrough

Walkthrough

Changes standardize JavaScript tab labels across code sample documentation files (changing "TypeScript" to "JavaScript"), reorganize SDK documentation sidebar ordering, and restructure the TDF documentation by relocating Returns/Errors sections and updating introductory content.

Changes

Cohort / File(s) Summary
Code Sample Tab Label Standardization
code_samples/authorization/get_decision.mdx, code_samples/authorization/get_entitlements.mdx, code_samples/policy_code/create_attribute.mdx, code_samples/policy_code/create_namespace.mdx, code_samples/policy_code/create_subject_condition_set.mdx, code_samples/policy_code/create_subject_mapping.mdx, code_samples/policy_code/list_attributes.mdx, code_samples/policy_code/list_namespaces.mdx, code_samples/policy_code/list_subject_mapping.mdx
Updated JavaScript tab labels from "TypeScript" to "JavaScript" for consistency across code samples.
SDK Documentation Sidebar Reordering
docs/sdks/authentication.mdx, docs/sdks/authorization.mdx, docs/sdks/discovery.mdx, docs/sdks/platform-client.mdx, docs/sdks/troubleshooting.mdx, docs/sdks/quickstart/_category_.json
Updated sidebar_position and position frontmatter values to reorganize SDK documentation navigation order.
TDF Documentation Restructuring
docs/sdks/tdf.mdx
Reorganized documentation structure by relocating Returns/Errors sections after examples, updated section headings (Quick Start → Setup), refined introductory content, and clarified TDF DEK reference linking.

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~5 minutes

Possibly related issues

Possibly related PRs

Suggested reviewers

  • eugenioenko
  • jp-ayyappan

Poem

🐰 Tab labels dancing in a row,
JavaScript shines with a brighter glow,
Sidebars shuffle to find their place,
Documentation's prettier with newfound grace!

🚥 Pre-merge checks | ✅ 3
✅ Passed checks (3 passed)
Check name Status Explanation
Title check ✅ Passed The PR title accurately summarizes the main changes: TDF documentation page reorganization including section rename, example reordering, and DEK link addition.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch chore/274-b-tdf-cleanup

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@gemini-code-assist gemini-code-assist Bot 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.

Code Review

This pull request focuses on documentation consistency and structural improvements. Key changes include renaming "TypeScript" tab labels to "JavaScript" across various code samples, reordering sidebar positions for SDK documentation, and restructuring the TDF documentation to move return and error specifications after the code examples. Feedback identifies a terminology error in the Go error documentation and suggests populating an empty JavaScript code block for entitlements to improve documentation completeness.

Comment thread docs/sdks/tdf.mdx Outdated
Comment thread code_samples/authorization/get_entitlements.mdx
@marythought
marythought changed the base branch from main to chore/274-a-sidebar-tab-naming April 7, 2026 16:20

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Actionable comments posted: 1

🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.

Inline comments:
In `@docs/sdks/tdf.mdx`:
- Line 1217: The link target "/spec/protocol" in the sentence "Every assertion
is bound to the TDF's [data encryption key (DEK)](/spec/protocol) by default..."
is broken; locate that exact link text and either replace the href with the
external Trusted Data Format spec URL (https://github.com/opentdf/spec) or
remove the markdown link markup so "data encryption key (DEK)" remains plain
text; ensure the surrounding sentence remains unchanged and that the updated
link points to a valid resource.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: a459e92b-61aa-4ab5-8bac-0746609a9d96

📥 Commits

Reviewing files that changed from the base of the PR and between ea5d89a and 76903eb.

📒 Files selected for processing (16)
  • code_samples/authorization/get_decision.mdx
  • code_samples/authorization/get_entitlements.mdx
  • code_samples/policy_code/create_attribute.mdx
  • code_samples/policy_code/create_namespace.mdx
  • code_samples/policy_code/create_subject_condition_set.mdx
  • code_samples/policy_code/create_subject_mapping.mdx
  • code_samples/policy_code/list_attributes.mdx
  • code_samples/policy_code/list_namespaces.mdx
  • code_samples/policy_code/list_subject_mapping.mdx
  • docs/sdks/authentication.mdx
  • docs/sdks/authorization.mdx
  • docs/sdks/discovery.mdx
  • docs/sdks/platform-client.mdx
  • docs/sdks/quickstart/_category_.json
  • docs/sdks/tdf.mdx
  • docs/sdks/troubleshooting.mdx

Comment thread docs/sdks/tdf.mdx
@github-actions

github-actions Bot commented Apr 7, 2026

Copy link
Copy Markdown
Contributor

📄 Preview deployed to https://opentdf-docs-pr-279.surge.sh

@marythought
marythought force-pushed the chore/274-b-tdf-cleanup branch from 76903eb to d20adb8 Compare April 7, 2026 16:21
@marythought
marythought changed the base branch from chore/274-a-sidebar-tab-naming to main April 7, 2026 16:21
…link (#274)

- Rename Quick Start to Setup for consistency with other SDK pages
- Move usage examples after Parameters (before Returns/Errors) for
  CreateTDF, LoadTDF, IsValidTdf, and BulkDecrypt
- Link DEK reference to protocol spec on assertions page

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@marythought
marythought force-pushed the chore/274-b-tdf-cleanup branch from d20adb8 to fe46687 Compare April 7, 2026 16:22
Gemini review caught that the Go error table referenced Java's `out`
parameter instead of Go's `writer`.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Comment thread docs/sdks/tdf.mdx Outdated
marythought and others added 3 commits April 7, 2026 09:47
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
TDF operations use the core SDK client, not the PlatformClient.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@marythought
marythought enabled auto-merge (squash) April 7, 2026 16:59

@jp-ayyappan jp-ayyappan 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.

LGTM

@marythought
marythought merged commit 930f7d2 into main Apr 7, 2026
9 checks passed
@marythought
marythought deleted the chore/274-b-tdf-cleanup branch April 7, 2026 20:43
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