Commit graph

48 commits

Author SHA1 Message Date
Mouse Reeve 7104e775d8 Updates working of header tour 2023-11-05 06:36:43 -08:00
Mouse Reeve 22554f85ad Updates tour to reflect changes in #2201 2023-11-02 14:37:14 -07:00
Robert George 36605efd20 Added support for secure cookies and django-csp 2023-02-01 12:59:10 -08:00
Mouse Reeve 78d36ebc39 Fixes typo in tour 2022-09-24 19:41:37 -07:00
Mouse Reeve f52965b8f4 Fixes a couple typos 2022-07-29 12:08:36 -07:00
Mouse Reeve 29db9c68a1 Fixes typo and spacing 2022-07-29 11:31:35 -07:00
Mouse Reeve 868ab62863 Fixes template string quote escapes
It seems totally reasonable that using an escape slash would make
apostrophes in words work, but the translation system works in
mysterious ways that do not include supporting that. I've used backticks
as a third quote type to escape everything in a way that both
javascript and gettext understand.

While I was there I split up some strings that have more complicated
html in them, since that can be fragile when passed through translation,
and confusing for translators.
2022-07-29 11:22:31 -07:00
Hugh Rundle 2455aadbfd add scrollTo where needed
A couple of tour steps could benefit from a scrollTo for users on smallers screens.
2022-07-27 15:53:54 +10:00
Hugh Rundle a4714f097f fix anchors not working on homepage tour
Fixes bug on larger screens.

We need to use a function to set the anchor for tour steps when using menus and other elements that become visible or hidden responsively. Because the element is still in the DOM, we can't just rely on it disappearing completely, we have to assign a different (visible) element otherwise the step will simply disappear and the user cannot continue the tour. Previously this used a simple selector which didn't work due to the above.
2022-07-27 15:14:28 +10:00
Hugh Rundle c48ddf419d cleanup 2022-07-17 16:19:55 +10:00
Hugh Rundle bec2943aad remove console logs 2022-07-17 16:17:08 +10:00
Hugh Rundle 387f2a70c9 update tour text
- new classname for posting guide
- various improvements to wording
- use function to find responsive menu elements
- add scrollTo transitions where needed
2022-07-17 16:13:12 +10:00
Hugh Rundle 43c598d92c remove DMs from guided tour 2022-07-17 11:11:34 +10:00
Hugh Rundle 6b1fcc3cbb use class instead of id for spoilers tour 2022-07-10 13:16:28 +10:00
Hugh Rundle 126fd4e634 various wording updates to guided tour 2022-07-10 11:27:01 +10:00
Hugh Rundle a84deff119 add scrollTo for link step on home tour 2022-07-10 11:26:14 +10:00
Hugh Rundle 142c0e1a59 fix template error in search tour 2022-07-10 10:58:48 +10:00
Hugh Rundle 495bac2b50 transfer tour from group to DM 2022-07-09 19:38:44 +10:00
Hugh Rundle 2f2ab5c24a add DM tour
- rearrange script includes on feed pages
- add DM tour to close
2022-07-09 19:27:42 +10:00
Hugh Rundle 791847d75e add timeline info to home tour 2022-07-09 19:27:12 +10:00
Hugh Rundle c68c7216f3 minor wording updates for tour 2022-07-09 17:49:56 +10:00
Hugh Rundle 6df09eb5d7 update user groups tour
- use strong instead of code
- clean up templates
- use notification styling for actions
- update wording
2022-07-09 17:39:22 +10:00
Hugh Rundle 07a882692c update lists tour
- cleaner templates
- send user directly to their Groups page at end of section
2022-07-09 17:31:04 +10:00
Hugh Rundle d67c6dc92b user books tour update
- add element highlights
- fix template text
- replace code with strong
2022-07-09 16:56:07 +10:00
Hugh Rundle e85e4a5467 update book page tour
- styling for next action
- replace code with strong
- clean up wording
- make translation templates cleaner
2022-07-09 15:30:45 +10:00
Hugh Rundle bb85d3cdb2 update search tour
- action styling
- code to strong
2022-07-09 15:16:27 +10:00
Hugh Rundle bb4b1a14fd update user profile tour styles 2022-07-09 15:10:52 +10:00
Hugh Rundle 5472cdcad7 update homepage tour
- add highlights to some elements
- consolidate message text for easier translation
- emphasise action with notification style
2022-07-09 15:00:30 +10:00
Hugh Rundle b36968166e fix import message
import files don't import shelves, only books.
2022-07-09 14:47:31 +10:00
Hugh Rundle 56b91f4c6d fix incorrect tour step header 2022-07-09 10:37:08 +10:00
Hugh Rundle 389da79af4 fix missing hyphen 2022-07-09 10:31:40 +10:00
Hugh Rundle 04324c00b4 back button on all tour modals 2022-07-03 16:12:17 +10:00
Hugh Rundle 3f67bc3b61 standardise ids for tour anchors
To make it harder to accidentally mess up the tour when making changes to pages, this commit adds ids with 'tour' prefixes to (nearly) all elements used by the guided tour as anchor points. The exception is where an element already had an id that is being used by something else in Bookwyrm.

Some minor changes also made to clean up the wording of the tour.
2022-07-03 15:57:10 +10:00
Hugh Rundle a8940b8e12 Fix order of tour
The tour now shows users how to add a book first, then bookshelves, lists, and finally groups.
2022-07-03 14:48:23 +10:00
Hugh Rundle 06b4a55979 add lists to guided tour
Takes user through the main /list page, as well as the options for creating a list.
2022-07-03 09:10:43 +10:00
Hugh Rundle 827a63b4eb add shelves to guided tour 2022-07-02 18:46:16 +10:00
Hugh Rundle bc4a1c6c41 Guided tour of book page
This is intended to be one of the earlier pages in the tour. It should show users the concept of reading status, editions, and other useful points.
2022-06-19 14:06:36 +10:00
Hugh Rundle ff37b77be9 clean up search guided tour code 2022-06-19 11:13:04 +10:00
Hugh Rundle fef66a7cfe guided tour for book search
Adds a guided tour for book search page including logic for differing messages depending on what results are visible.
2022-06-19 11:08:01 +10:00
Hugh Rundle 044a173095 remove CSRF from tour scripts 2022-06-18 17:16:43 +10:00
Hugh Rundle 57965973dc make guided tour cancel button DRY
Move cancel button function into a separate JS file.
The selector JS for this function cannot be within bookwyrm.js because the guided tour elements load after bookwyrm.js.
2022-06-18 13:27:00 +10:00
Hugh Rundle 5bf835b965 fix typos 2022-06-18 10:49:42 +10:00
Hugh Rundle d36dd9ce96 guided tour for user groups
Includes adding creating a new group.
2022-06-18 10:48:14 +10:00
Hugh Rundle 00df3c94df add guided tour for user groups page
- add ID for add group button
- add tour steps for user groups page
- trigger tour steps if guided tour is turned on
2022-06-13 20:27:36 +10:00
Hugh Rundle 7fbc9914de change cancel buttons for guided tour
The first pop up in the guided tour on each page should provide a button to switch off the guided tour altogether, not simply cancel the current iteration.
If we don't do this, then the only way to turn off the guided tour is to go right to the end, which could be really irritating, especially for people who star the tour and then start exploring on their own.
2022-06-13 20:25:42 +10:00
Hugh Rundle aebeac9112 add guided tour to user profile
- adds ids to relevant elements to enable tour
- adds guided tour using Shepherd
2022-06-13 17:26:53 +10:00
Hugh Rundle 83e7302bc1 update home feed guided tour 2022-06-13 16:56:07 +10:00
Hugh Rundle 5f0e14934f add guided tour to main feed page
This uses an embedded script tag so that we can use django templates for logic - most importantly, we need to be able to use translations within the tour text.
2022-06-13 15:29:20 +10:00