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

Set request variant for redesign requests #714

Merged
merged 1 commit into from Oct 25, 2022

Conversation

joemasilotti
Copy link
Owner

When the :redesign feature flag is enabled, views with +redesign will be rendered. For example, for the home page:

  • Rendered when enabled: app/views/home/show.html+redesign.erb
  • *Otherwise: app/views/home/show.html.erb

If no +redesign variant is present then the non-variant (default) version will be rendered.

When the feature flag is enabled, views with `+redesign` will be
rendered. For example, for the home page:

Rendered when enabled: `app/views/home/show.html+redesign.erb`
Otherwise: `app/views/home/show.html.erb`

If no `+redesign` is present then it will fallback to the non-variant
(default) version.
@joemasilotti joemasilotti mentioned this pull request Oct 25, 2022
3 tasks
@joemasilotti joemasilotti merged commit 5a29fac into main Oct 25, 2022
5 checks passed
@joemasilotti joemasilotti deleted the redesign/request-variant branch October 26, 2022 13:18
benmercerdev added a commit to benmercerdev/railsdevs.com that referenced this pull request Oct 28, 2022
* main: (31 commits)
  Github Actions changes (joemasilotti#717)
  represent json string with multine string syntax (joemasilotti#716)
  build: minify CSS via cssnano (joemasilotti#713)
  Set request variant for redesign requests (joemasilotti#714)
  Paywall location and timezone filters (joemasilotti#674)
  Fix tailwind postcss setup (joemasilotti#710)
  New fonts for the redesign (joemasilotti#708)
  Don't track `/developers/:id/:code` to Fathom (joemasilotti#706)
  Refactor `Users::PaywalledComponent` to remove business logic (joemasilotti#705)
  Tell Heroku to build the redesign CSS, too (joemasilotti#704)
  Multiple Tailwind CSS configs (for the redesign) (joemasilotti#701)
  Update to Tailwind CSS v3.2 (joemasilotti#700)
  Publicly shareable developer profile URLs (joemasilotti#665)
  Bump nokogiri from 1.13.8 to 1.13.9 (joemasilotti#697)
  Bump Turbo Package to 7.2.2 & Gem version to 1.3.1 (joemasilotti#696)
  Compress HTML output via gzip (joemasilotti#688)
  Bring back 1x and 2x avatars and remove lazy loading (joemasilotti#680)
  Fix test settings for Rubymine (joemasilotti#679)
  RailsDevs French Version (joemasilotti#687)
  Revert manual payments (joemasilotti#681)
  ...
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.

None yet

1 participant