## Problem
The docs contributor guide presents the JavaScript v2 YAML file as the
library-specific authoring example.
JavaScript v2 uses the TypeDoc reference pipeline, so that example sends
contributors to a file the active generator skips.
Fixes#51208.
## Solution
Explain the JavaScript v2 TypeDoc workflow and link to its
reference-pipeline README.
Identify SDK source comments, tracked `config.json` and partials,
downloaded TypeDoc JSON, and generated reference output as separate
parts of the workflow.
Keep the legacy YAML guidance and change its example to the Python SDK,
which still uses that pipeline.
## Review instructions
1. Read the Reference structure section in `apps/docs/CONTRIBUTING.md`.
2. Confirm that JavaScript v2 points to
`apps/docs/spec/reference/README.md` and its tracked authoring paths.
3. Confirm that the legacy section no longer points contributors to
`supabase_js_v2.yml`.
## Self-review
- This is a docs-tooling change limited to contributor instructions.
- The linked README, JavaScript v2 configuration file, and partials
directory exist in the repository.
- No generated files were edited.
- The change does not add runnable documentation snippets, so the
Docker-based docs sandbox is not applicable.
## Validation
- `pnpm exec prettier --config prettier.config.mjs --check
apps/docs/CONTRIBUTING.md` passed.
- `pnpm --filter docs lint:ratchet` passed.
- `git diff --check` passed.
## Checklist
- [x] Read the repository contribution instructions.
- [x] Read the docs authoring and review instructions.
- [x] Checked the docs terminology list.
- [x] Linked the related issue with `Fixes #51208`.
---------
Co-authored-by: Alexis Aguilar <98043211+alexisintech@users.noreply.github.com>
## Problem
Safari can expose `navigator.clipboard.write()` while rejecting it with
`NotAllowedError`.
Studio's shared clipboard helper treated that rejection as a terminal
failure, so Copy buttons showed "Unable to copy to clipboard" even
though `writeText()` worked.
Fixes#50769
## Solution
- Fall back to `navigator.clipboard.writeText()` when the rich clipboard
write fails.
- Preserve the existing success callback and error behavior.
- Add regression coverage for fallback success, total failure, and
callback exceptions.
## Verification
- `pnpm exec vitest run lib/helpers.test.ts --pool=threads`
- `pnpm test:prettier`
- `pnpm --filter ui run typecheck`
- `pnpm --filter studio run typecheck`
- `pnpm --filter studio run lint`
- `npm run build -- --filter=studio`
- Rendered browser verification with `clipboard.write()` forced to
reject; `writeText()` received the expected payload and the Copy button
showed success.
## Review instructions
1. Review the fallback logic in
`packages/ui/src/lib/utils/clipboard.ts`.
2. Review the regression tests in `apps/studio/lib/helpers.test.ts`.
3. Confirm no generated or vendored files are changed.
- [x] I have read CONTRIBUTING.md
- [x] This PR does not change documentation content.
<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit
* **Bug Fixes**
* Copying now falls back to standard clipboard copying when rich
clipboard access is unavailable or denied.
* An error message is shown only when both clipboard methods fail.
Successful rich clipboard writes do not trigger a fallback if a
follow-up action fails.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->