Repository navigation
Add Preview access to repository settings and document how previews are found - #452
Merged
Merged
Conversation
…re found A per-repository dialog holds the preview's address template and one sealed secret (header lines, query parameters or a password) for a protected preview; the secret is never shown again. The new Pull request previews page describes every place a preview is read from, how long it is waited on, how protection is handled and the template's placeholders.
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.
Summary
This is the dashboard side of CoderHelm/coderhelm-platform#772. It adds one Settings item, Preview access, for the two things only a team can give: the preview's address when nothing publishes it, and the secret a protected preview takes. It also adds a docs page describing how previews are found, how long they are waited on, and how protection is handled.
Changes
PreviewAccessDialog(Settings, Repositories, Preview access on each enabled repository, admins only):https://, use only known placeholders, and name the pull request, because a fixed address is refused.api.ts:getPreviewAccess,savePreviewAccessanddeletePreviewAccess;PreviewAccessandPreviewAccessInputtypes.concepts/previews.mdx, covering where the preview is read from, the order it is trusted in, monorepos, waiting, the protection kinds and how the secret is handled, the template placeholders, and the GitHub App permissions it needs;Verification
e2e/preview-access.spec.tscovers:e2e/staging-cms.spec.ts(same page) pass: 8 passed.tsc --noEmitpasses, andnpm run lintpasses (UI lint and the hosted-link check).