Skip to content

feat: show error message for "Copy Markdown" button#61

Merged
nomeguy merged 6 commits intomasterfrom
copilot/fix-copy-markdown-button-yet-again
Feb 1, 2026
Merged

feat: show error message for "Copy Markdown" button#61
nomeguy merged 6 commits intomasterfrom
copilot/fix-copy-markdown-button-yet-again

Conversation

Copy link
Contributor

Copilot AI commented Feb 1, 2026

fix: #55

@netlify
Copy link

netlify bot commented Feb 1, 2026

Deploy Preview for casbin-website-v3 ready!

Name Link
🔨 Latest commit 565d97a
🔍 Latest deploy log https://app.netlify.com/projects/casbin-website-v3/deploys/697f5185b348490008572392
😎 Deploy Preview https://deploy-preview-61--casbin-website-v3.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@CLAassistant
Copy link

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.
You have signed the CLA already but the status is still pending? Let us recheck it.

Copilot AI and others added 2 commits February 1, 2026 12:58
Co-authored-by: nomeguy <85475922+nomeguy@users.noreply.github.com>
Co-authored-by: nomeguy <85475922+nomeguy@users.noreply.github.com>
Copilot AI changed the title [WIP] Fix 'Copy Markdown' button functionality on docs page Fix "Copy Markdown" button 500 error by using fumadocs canonical API Feb 1, 2026
Copilot AI requested a review from nomeguy February 1, 2026 13:05
@nomeguy
Copy link
Contributor

nomeguy commented Feb 1, 2026

@copilot why it only shows the alert "Failed to copy the markdown to your clipboard. Please copy it manually.", you should at least show the real error message that what the error is.

and don't modify package-lock.json

Co-authored-by: nomeguy <85475922+nomeguy@users.noreply.github.com>
Copy link
Contributor Author

Copilot AI commented Feb 1, 2026

@copilot why it only shows the alert "Failed to copy the markdown to your clipboard. Please copy it manually.", you should at least show the real error message that what the error is.

and don't mod...

Fixed in commit 314bb34:

  1. Error message: The alert now shows the actual error message: Failed to copy the markdown to your clipboard: ${errorMessage}\n\nPlease copy it manually.
  2. package-lock.json: Excluded from the PR changes

Co-authored-by: nomeguy <85475922+nomeguy@users.noreply.github.com>
@nomeguy
Copy link
Contributor

nomeguy commented Feb 1, 2026

@copilot fix: https://github.com/casbin/casbin-website-v3/actions/runs/21563411334/job/62131033891?pr=61

Run npm run format:check
  npm run format:check
  shell: /usr/bin/bash -e {0}

> casbin-website-v3@0.0.0 format:check
> prettier --check .

Checking formatting...
[warn] src/components/ai/page-actions.tsx
[warn] Code style issues found in the above file. Run Prettier with --write to fix.
Error: Process completed with exit code 1.

Co-authored-by: nomeguy <85475922+nomeguy@users.noreply.github.com>
Copy link
Contributor Author

Copilot AI commented Feb 1, 2026

@copilot fix: https://github.com/casbin/casbin-website-v3/actions/runs/21563411334/job/62131033891?pr=61

...

Fixed in commit 565d97a. Ran Prettier to reformat the long alert line according to the project's code style guidelines.

@nomeguy nomeguy changed the title Fix "Copy Markdown" button 500 error by using fumadocs canonical API feat: show error message for "Copy Markdown" button Feb 1, 2026
@nomeguy nomeguy merged commit c360787 into master Feb 1, 2026
7 of 8 checks passed
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.

[bug] "Copy Markdown" button doesn't work

3 participants