Skip to content

feat: send reader's Edit button straight to GitHub for synced spaces#706

Open
NagariaHussain wants to merge 3 commits into
developfrom
feat/synced-space-public-edit-link
Open

feat: send reader's Edit button straight to GitHub for synced spaces#706
NagariaHussain wants to merge 3 commits into
developfrom
feat/synced-space-public-edit-link

Conversation

@NagariaHussain

Copy link
Copy Markdown
Member

Problem

On the public reader page of a git-synced space, the Edit button links to the wiki editor — which is read-only for synced spaces, so it's a dead end.

Solution

For git-synced spaces, the reader's Edit button now says "Edit on GitHub" and opens the page's source file in GitHub's web editor (new tab) — same URL the editor-side three-dots action uses. Folder-only groups have no editable source file, so they keep Copy as the primary action. Non-synced spaces are unchanged.

Unit tests included (temp-revert verified).

🤖 Generated with Claude Code

https://claude.ai/code/session_012PXJnZXUyt5vyE7DiuLnD3

NagariaHussain and others added 2 commits July 10, 2026 14:07
The public page's Edit button pointed at the wiki editor, which is
read-only for git-synced spaces. It now opens the page's source file
in GitHub's web editor (new tab), matching the editor-side
"Edit on GitHub" action. Folder-only groups have no editable source,
so they keep the Copy button as the primary action.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_012PXJnZXUyt5vyE7DiuLnD3
@greptile-apps

greptile-apps Bot commented Jul 10, 2026

Copy link
Copy Markdown

Confidence Score: 5/5

Safe to merge — the change is well-scoped and non-synced spaces are completely unaffected.

All changed paths are guarded by the git_synced flag, fallback behaviour for normal spaces is unchanged, and the unit tests verify both the happy path and the folder-group edge case.

No files require special attention.

Reviews (2): Last reviewed commit: "refactor: build GitHub edit URL from the..." | Re-trigger Greptile

Comment thread wiki/frappe_wiki/doctype/wiki_document/wiki_document.py Outdated
Review feedback (greptile): _can_show_edit re-resolved the space via
get_edit_link even though get_web_context passes wiki_space_doc in.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_012PXJnZXUyt5vyE7DiuLnD3
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.

1 participant