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: Convert lesson preview to Hotwire #4104

Merged
merged 1 commit into from
Sep 4, 2023

Conversation

KevinMulhern
Copy link
Member

@KevinMulhern KevinMulhern commented Sep 1, 2023

Because:

  • We can simplify the preview feature code with Hotwire
  • New and improved share preview UX
Screen.Recording.2023-09-01.at.09.49.47.mov

Closes: #4076

This commit:

  • Moves input and html preview tabs to rails views.
  • Adds reusable tabs and autosubmit and clipboard controllers.
  • Adds a share modal that is handled by a new preview share controller to keep persisting separate from displaying.
  • Amends our modal to display center of the screen on mobile.
  • Increases the share preview rate limit to 5 per minute - it may be clicked more now that its easier to find above the preview.

@KevinMulhern KevinMulhern force-pushed the feature/convert-lesson-preview-page-to-hotwire branch from cee8f56 to 2014998 Compare September 1, 2023 09:23
@KevinMulhern KevinMulhern added the Type: Enhancement Involves a new feature or enhancement request label Sep 1, 2023
@KevinMulhern KevinMulhern self-assigned this Sep 1, 2023
@KevinMulhern KevinMulhern added the create-review-app Create a Heroku review app for pull request label Sep 1, 2023
@KevinMulhern KevinMulhern temporarily deployed to odin-review-app-pr-4104 September 1, 2023 09:28 Inactive
@github-actions github-actions bot removed the create-review-app Create a Heroku review app for pull request label Sep 1, 2023
@KevinMulhern KevinMulhern force-pushed the feature/convert-lesson-preview-page-to-hotwire branch from 2014998 to 7c1cc00 Compare September 1, 2023 09:41
@KevinMulhern KevinMulhern temporarily deployed to odin-review-app-pr-4104 September 1, 2023 09:41 Inactive
Because:
* We can simplify the preview feature code with Hotwire
* New and improved share preview UX

This commit:
* Moves input and html preview tabs to rails views.
* Adds reusable tabs and autosubmit and clipboard controllers.
* Adds a share modal that is handled by a new preview share controller to keep persisting separate from displaying.
* Amends our modal to display center of the screen on mobile.
* Increases the share preview rate limit to 5 per minute - it may be clicked more now that its easier to find above the preview.
@KevinMulhern KevinMulhern force-pushed the feature/convert-lesson-preview-page-to-hotwire branch from 7c1cc00 to 6f838aa Compare September 1, 2023 09:44
@KevinMulhern KevinMulhern temporarily deployed to odin-review-app-pr-4104 September 1, 2023 09:44 Inactive
@KevinMulhern KevinMulhern merged commit 16182a6 into main Sep 4, 2023
@KevinMulhern KevinMulhern deleted the feature/convert-lesson-preview-page-to-hotwire branch September 4, 2023 07:22
ZachBaird pushed a commit to ZachBaird/theodinproject that referenced this pull request Sep 4, 2023
Because:
* We can simplify the preview feature code with Hotwire
* New and improved share preview UX


https://github.com/TheOdinProject/theodinproject/assets/7963776/5de1cdee-3301-4bc1-9b35-783b098aadfc




This commit:
* Moves input and html preview tabs to rails views.
* Adds reusable tabs and autosubmit and clipboard controllers.
* Adds a share modal that is handled by a new preview share controller
to keep persisting separate from displaying.
* Amends our modal to display center of the screen on mobile.
* Increases the share preview rate limit to 5 per minute - it may be
clicked more now that its easier to find above the preview.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Enhancement Involves a new feature or enhancement request
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

Moving lesson preview page to Hotwire
2 participants