docbrown/app/views
Julianna Tetreault fd9fdebc0b
[deploy] Migrate from Schema.org to JSON-LD (#6956)
* Add JSON-LD in place of schema.org in _video_player.html.erb

* Remove unnecessary tags around JSON-LD to clean up templates

* Fix indenatation and remove extra elements from show.html.erb and _profile_header.html.erb

* Remove empty line from articles/show.html.erb

* Clean up JSON-LD commas across erb templates

* Revert articleBody changes, adjust nesting, and remove extra quote

* Add application/ld+json to allowed_types in .erb-lint.yml

This addition makes it so that the no verify flag is no longer required

* Add additional data for Articles, Users, and Orgs to better SEO

* Add additional data to JSON-LD structures
*Add sameAs data to articles/show.html.erb
*Add sameAs data to users/show.html.erb
*Make adjustments to VideoObject data in _video_player
*Make adjustments to Org in _profile_header
*Add removed erb back to all erb templates

* Refactor code to fix syntax Google syntax errors
* Add missing double quotes to values
* Remove unnecessary meta tags from _video_player.html.erb
* Add additional key-value pairs to data structures
* General code clean up

* Clean up existing data structures
  *Remove useless meta tag and replace with a tag
  *Small refactor to users/show.html.erb data

* Extract user json-ld out of users/show.html.erb
  *Move json-ld logic to stories_controller
  *Use user_json_ld variable in place of entire data structure
  *Set user_json_ld as a before_action in the controller

* Add specs around JSON-LD data in templates
  *Add request spec for users/show.html.erb
  *Add request spec for articles/show.html.erb
  *Add request spec for _video_player.html.erb
  *Add request spec for _profile_header.html.erb
  *WIP: Fix pending specs for all templates

* Remove useless meta tags from users/show and _profile_header.html.erb

* Add additional test coverage to users/show.html.erb
  *Add additional tests to user_show_spec
  *Ensure that all tests pass
  *Small refactor to users/show.html.erb JSON data structure

* Add additional test coverage around JSON-LD data
  *Add more robust tests to template specs
  *Remove unnecessary comments from specs
  *Uncomment pending specs

* Adjust modified date to be more readable in article specs

* Refactor spec to be more readable and update GitHub username test

* Remove meta erb from articles/show.html.erb

* Remove meta data from _video_player.html.erb

* Clean up useless codeand whitespace for final review

* Extract users/show data structure from template into StoriesController
  * Remove JSON-LD object from users/show.html.erb
  * Place JSON-LD for users/show.html.erb in StoriesController
  * Store user_json_ld in set_json_ld method in StoriesController
  * Call user_json_ld variable in script tag in users/show
  * Clean up trailing commas and refactor articles/show.html.erb
  * Remove redundant user/profile_header_spec.rb

* Remove unnecessary code from _profile_header and articles/show
  * Remove Organization from articles/show.html.erb
  * Remove unnecessary comments from _profile_header.html.erb

* Extract user_json_ld into separate methods to fix Code Climate failures

* Rename user_profile_details and user_same_as methods to be more explicit

* Refactored user_json_ld methods to use symbols instead of strings
  * Use symbols to fetch keys from a hash instead of strings
  * Changed user_url in data structure

* Removal of erb tags and general clean up

* Revert schema changes

* Remove unnecessary quotation marks
2020-04-15 15:03:05 -04:00
..
additional_content_boxes Refactor ProfileImage (#5803) 2020-02-07 08:56:16 -05:00
admin/application Last general linting sweep (#1947) 2019-03-02 07:47:14 -08:00
api/v0 Move user following suggestions to internal API (#6601) [deploy] 2020-03-13 13:37:24 +01:00
articles [deploy] Migrate from Schema.org to JSON-LD (#6956) 2020-04-15 15:03:05 -04:00
badges Added title attribute for Badges (#5201) 2019-12-27 10:40:29 -05:00
blocks Add SRI to script tags where applicable (#2153) 2019-03-22 14:14:59 -04:00
chat_channel_memberships [deploy] Cleanup some more dev.to generalisation (#7263) 2020-04-14 21:30:13 -04:00
chat_channels [deploy] Small design and functionality touches to /connect (#7234) 2020-04-11 10:56:52 -04:00
classified_listings [deploy] Cleanup some more dev.to generalisation (#7263) 2020-04-14 21:30:13 -04:00
comments Remove unused file and fix social media icon css on information page (#7295) 2020-04-15 13:22:28 +02:00
credits Replace DEV with the community name... almost everywhere (#7211) 2020-04-10 17:03:16 +02:00
dashboards Replace DEV with the community name... almost everywhere (#7211) 2020-04-10 17:03:16 +02:00
devise [deploy] Cleanup some more dev.to generalisation (#7263) 2020-04-14 21:30:13 -04:00
doorkeeper Add rel noopener to links opening in a separate tab (#7235) 2020-04-12 17:04:07 +02:00
email_subscriptions Fix linting issues in app/views/email_subscriptions (#1859) [ci skip] 2019-02-25 12:50:41 -05:00
events Replace DEV with the community name... almost everywhere (#7211) 2020-04-10 17:03:16 +02:00
feedback_messages Consistently use cache_key_heroku_slug (#6495) 2020-03-06 16:35:35 -05:00
fields Ignore unused users columns (#6954) [deploy] 2020-04-01 10:11:40 +02:00
followings Move followings to internal API (#6494) 2020-03-06 19:33:26 +01:00
github_repos [deploy] Remove github_repos from public API (#6304) 2020-02-26 11:23:39 -05:00
homepage Stories views reorganization (#1317) 2018-12-13 14:54:02 -05:00
html_variants Campaign settings (#6141) [deploy] 2020-02-18 11:02:09 -06:00
internal Nullify audit logs on users delete (#7275) 2020-04-15 18:26:16 +02:00
kaminari/internal Refactor internal mods page (#7002) 2020-04-03 10:41:09 -04:00
layouts New sidebar navigation (#7212) 2020-04-15 18:16:33 +02:00
liquid_embeds Fix style issues on liquid tag embed page (#6445) [deploy] 2020-03-04 10:40:34 -05:00
liquids Allow KaTeX to render inline (#6670) [deploy] 2020-03-17 10:42:41 +01:00
mailers [deploy] Cleanup some more dev.to generalisation (#7263) 2020-04-14 21:30:13 -04:00
moderations Replace DEV with the community name... almost everywhere (#7211) 2020-04-10 17:03:16 +02:00
notifications [deploy] Split out social media options (Important: post deployment task to be run) (#7173) 2020-04-09 19:51:11 +02:00
onboardings Combine profile onboarding slide (#7163) [deploy] 2020-04-09 13:47:42 -04:00
organizations [deploy] Revert "Serve Feed Content From Elasticsearch (#6847)" (#6983) 2020-03-31 16:25:48 -05:00
pages Add Snackbar component (#7302) 2020-04-15 18:24:17 +02:00
partnerships Replace DEV with the community name... almost everywhere (#7211) 2020-04-10 17:03:16 +02:00
podcast_episodes [deploy] Split out social media options (Important: post deployment task to be run) (#7173) 2020-04-09 19:51:11 +02:00
podcasts Validate file uploads client-side (#6737) 2020-03-24 09:21:49 +01:00
pro_memberships Replace DEV with the community name... almost everywhere (#7211) 2020-04-10 17:03:16 +02:00
reading_list_items [deploy] Split out social media options (Important: post deployment task to be run) (#7173) 2020-04-09 19:51:11 +02:00
response_templates [deploy] Add response templates to user settings (#6823) 2020-03-26 14:48:00 -04:00
service_worker [deploy] Bypass serviceworkers for /checkin (#7299) 2020-04-15 12:44:36 -04:00
shared Add SRI Support (#4658) [deploy] 2019-12-06 08:35:37 -05:00
shell [deploy] Move fragment cache to more efficient location (#7079) 2020-04-04 19:47:50 -04:00
sitemaps [deploy] Fix erb output on sitemaps (#7009) 2020-04-01 14:24:12 -04:00
social_previews [deploy] Update style for tag social preview (#7017) 2020-04-02 08:23:14 -04:00
stories [deploy] Cleanup some more dev.to generalisation (#7263) 2020-04-14 21:30:13 -04:00
tags [deploy] Cleanup some more dev.to generalisation (#7263) 2020-04-14 21:30:13 -04:00
twitch_live_streams Embed Twitch Live Streaming (#2591) 2019-04-29 18:11:53 -04:00
users [deploy] Migrate from Schema.org to JSON-LD (#6956) 2020-04-15 15:03:05 -04:00
video_chats [deploy] Fix chat rerender issues (#7253) 2020-04-13 10:35:18 -04:00
videos Replace DEV with the community name... almost everywhere (#7211) 2020-04-10 17:03:16 +02:00