Repository navigation
Posts: Show "View" link for published posts - #1004
Merged
epeicher merged 1 commit intoOct 16, 2026
Merged
Conversation
epeicher
self-requested a review
October 16, 2026 08:34
epeicher
approved these changes
Oct 16, 2026
epeicher
left a comment
Collaborator
There was a problem hiding this comment.
Thanks for adding those links @CookieDarb! I have tested the changes, and it works as expected, I can now see those two links. Changes also LGTM!
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What?
Closes #1003
Renders a "View" link next to the title of published posts in the native Posts table view and "View on site" link next to the Open editor button in the story details in writing desk view, matching the behaviour of Pages.
Why?
In the native Posts window table view, published posts did not display a "View" link. In contrast, the native Pages window displayed a quick "View" link, allowing users to view the published page on the front end in a new tab without having to open editor.
This occurred because:
apps/posts/parts/cells/basic.tsgated the link render behindisPages.apps/posts/parts/query.phpomittedlinkfrom_fieldsinopenstation_posts_window_default_query_args(), which also caused the Desk view's inspector "View on site ↗" link (apps/posts/parts/desk.ts) to be absent for posts.How?
apps/posts/parts/cells/basic.ts:isPagescondition inbuildTitleCell()so any published row with a valid public link renders the "View" action link.apps/posts/parts/query.php:linkto_fieldsinopenstation_posts_window_default_query_args().docs/hooks-reference.md:openstation_posts_window_query_argsdocumentation example to includelinkin the default_fields.apps/posts/posts.test.ts:postsmode renders the "View" link with the correct URL.tests/phpunit/tests/postsApp.php:linkto the default fields tested intest_default_query_args_include_embed_and_fields().Testing Instructions
Screenshots
Use of AI Tools
AI assistance: Yes
Tool(s): Antigravity
Model(s): Gemini
Used for: Reviewing the existing implementation, tracing the root cause, and updatings docs.