Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

disabled editing for spec viewer #335

Merged
merged 3 commits into from
Sep 3, 2020
Merged

disabled editing for spec viewer #335

merged 3 commits into from
Sep 3, 2020

Conversation

trulyronak
Copy link
Contributor

**Please merge this before #333 **

This is required for the release of GitBot.

This prohibits users from editing the public spec viewer site on apidocs.useoptic.com. Technically, they already couldn't (since we're not saving anything they do), but it feels like you can (until you refresh). Rather than confuse users, this PR ensures that no edits can happen.

This PR also does a quick refactor of the buildSpec process, moving common env vars into a specReqs file

@trulyronak trulyronak requested a review from devdoshi as a code owner September 2, 2020 23:40
@devdoshi
Copy link
Contributor

devdoshi commented Sep 2, 2020

I wonder if there's not a quick thing we can do to make that urge to edit sticky. Like have a call to action to visit the repo it came from or something

@trulyronak
Copy link
Contributor Author

Like an "edit on github" button?

Copy link

@ghost ghost left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This pull request has been automatically deployed to FeaturePeek. 👏
Your deployment will be kept up-to-date with this pull request's latest changes.

https://peek.run/3kqhye0e


Please read our docs for more configuration details.

@acunniffe
Copy link
Member

I wonder if there's not a quick thing we can do to make that urge to edit sticky. Like have a call to action to visit the repo it came from or something

I like this idea, maybe if you click a field to edit it, you get a modal with instructions to clone and open it -- not perfect, but might be right for this stage.

@acunniffe acunniffe merged commit 2213a4e into develop Sep 3, 2020
@acunniffe acunniffe deleted the specViewer/noEditing branch September 3, 2020 11:55
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.

3 participants