docbrown/app/assets/javascripts/utilities
Suzanne Aitchison 80096f63a7
Add author profile preview cards to feed (#14340)
* Add the preview card to logged out feed initial content

* initialise the initial dropdowns added on the logged out feed

* minor tweak to selector

* flip the follow button and the summary

* add minimal preview card to build article HTML

* WIP: data fetched an inserted into card on logged out feed

* WIP: cards added to logged in feed

* create separate profile preview card component

* small style tweak, import pack on each page that shows feed cards

* rename

* tweak some styling issues

* make sure follow buttons init in cards

* populate all matching metadata placeholders after fetch

* don't render full preview card upfront on logged out feed

* refactors from PR comments

* fix issue in person search results

* remove check for article author link that will be superseded by cypress test for preview card

* Revert "remove check for article author link that will be superseded by cypress test for preview card"

This reverts commit 9b42804ffd0f051891c87293d0b791ed2bb0367f.

* Revert "fix issue in person search results"

This reverts commit 04941e3520c0895212141193b60f2933faed5ca1.

* only show the preview cards on story cards for Posts (not users etc in search results)

* correct display on collections view

* remove link check that will be replaced by cypress test

* tweaks to small issues, add a test for the logged out feed

* add tests for logged in home feed, logged out tag index

* add search test and tag index logged in test

* fixes to preview profile spec

* tweak to followauthor spec

* add cypress test for preview on series page

* use a unique test user for series test

* correct the jsdoc comments

* tweaks following PR review

* allow feed preview cards to reposition

* move to separate file from pack
2021-08-13 10:55:43 +07:00
..
browserStoreCache.js Fixes some lint issues (#3786) 2019-08-22 15:59:13 -04:00
buildArticleHTML.js Add author profile preview cards to feed (#14340) 2021-08-13 10:55:43 +07:00
buildCommentFormHTML.js.erb Fixing overflow of comment button (#11562) 2020-11-23 12:17:30 +01:00
buildCommentHTML.js.erb Add horizontal padding on preview card trigger button (#14472) 2021-08-11 12:31:48 +01:00
checkUserLoggedIn.js Replace querySelector and getElementsByTagName when selecting for head and body (#8315) 2020-06-08 20:08:40 -04:00
dynamicallyLoadScript.js Ran prettier on *.js, *.jsx and *.md files. (#11586) 2020-11-23 20:45:50 -05:00
getCsrfToken.js [deploy] Remove ERB pre-processing from pure JS files and cleanup (#8030) 2020-05-27 08:25:39 -05:00
getCurrentPage.js Fixes some lint issues (#3786) 2019-08-22 15:59:13 -04:00
getImageForLink.js Fixes some lint issues (#3786) 2019-08-22 15:59:13 -04:00
insertAfter.js Fixes some lint issues (#3786) 2019-08-22 15:59:13 -04:00
localDateTime.js Using global util function for displaying date in listing dashboard (#10244) 2020-09-09 09:35:05 +02:00
localStorageTest.js Fixes some lint issues (#3786) 2019-08-22 15:59:13 -04:00
preventDefaultAction.js Fixes some lint issues (#3786) 2019-08-22 15:59:13 -04:00
sendFetch.js Ran prettier on *.js, *.jsx and *.md files. (#11586) 2020-11-23 20:45:50 -05:00
sendHapticMessage.js Fixed some lint issues (#3782) 2019-08-21 10:44:23 -04:00
showLoginModal.js Improve keyboard accessibility of comment rate limit and error modals (#13536) 2021-05-03 07:14:23 +01:00
showUserAlertModal.js Improve keyboard accessibility of comment rate limit and error modals (#13536) 2021-05-03 07:14:23 +01:00
slideSidebar.js add skip link to tag page (#13485) 2021-04-23 16:10:28 +01:00
timeAgo.js Ran prettier on *.js, *.jsx and *.md files. (#11586) 2020-11-23 20:45:50 -05:00
userData.js Refactored userData while working on hompage makeover. (#5916) [deploy] 2020-02-06 11:18:52 -08:00