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

Feature one click publish / Run Button Redesgin #2332

Merged
merged 8 commits into from
Sep 24, 2024

Conversation

DevIos01
Copy link
Member

Hey 👋,

This PR addresses the following:

  1. Feature Implementation (Ref: "New PR" button in Editor view for games #1743)
    Introduced a new feature to publish games directly from the Sprig editor. After authorizing GitHub once, the process runs seamlessly in the background while you continue editing in the Sprig editor.

  2. UI Fix for Run Menu (Ref: Combine 'Run' and 'Run on device' button #1971)
    Redesigned the "Run" menu to align with the planned UI updates. The new design better integrates with the overall editor interface. (Feedback is welcome!)


Backend Updates

This PR also introduces several new environment variables to support the feature:

  • GITHUB_CLIENT_SECRET
  • PUBLIC_GITHUB_CLIENT_ID
  • PUBLIC_GITHUB_REDIRECT_URI
  • PUBLIC_GALLERY_API

(These are added to help future developers understand why these variables are needed 🕺)


Screenshots of the Implementation:

1. Publish Game from Editor:

Publish Game 1 Publish Game 2 Publish Game 3

2. Re-designed Run Button:

Run Button 1 Run Button 2

@DevIos01 DevIos01 self-assigned this Sep 11, 2024
Copy link

vercel bot commented Sep 11, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
sprig ✅ Ready (Inspect) Visit Preview 💬 Add feedback Sep 19, 2024 6:41pm

Copy link
Contributor

@JosiasAurel JosiasAurel left a comment

Choose a reason for hiding this comment

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

a few questions and nitpicks. pls see comments

src/lib/game-saving/github.ts Show resolved Hide resolved
src/lib/game-saving/github.ts Show resolved Hide resolved
src/lib/game-saving/github.ts Outdated Show resolved Hide resolved
src/lib/game-saving/github.ts Outdated Show resolved Hide resolved
src/lib/game-saving/github.ts Outdated Show resolved Hide resolved
src/lib/game-saving/github.ts Outdated Show resolved Hide resolved
src/lib/game-saving/github.ts Outdated Show resolved Hide resolved
src/lib/game-saving/github.ts Outdated Show resolved Hide resolved
src/pages/api/auth/github/callback.ts Show resolved Hide resolved
src/pages/api/auth/github/callback.ts Show resolved Hide resolved
Copy link
Contributor

@JosiasAurel JosiasAurel left a comment

Choose a reason for hiding this comment

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

lgtm

@DevIos01 DevIos01 added this pull request to the merge queue Sep 24, 2024
Merged via the queue into main with commit 0e52d9b Sep 24, 2024
3 checks passed
@DevIos01 DevIos01 deleted the Feature-One-Click-Publish branch September 24, 2024 14:43
@DevIos01 DevIos01 mentioned this pull request Sep 25, 2024
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.

Combine 'Run' and 'Run on device' button "New PR" button in Editor view for games
2 participants