Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
onboarding_steps: Remove hotspot as an onboarding_step.
Prakhar Pratyushbf2360bcf2a2
diff --git a/api_docs/changelog.md b/api_docs/changelog.mdindex 595425f51cd..7928d4e50dd 100644--- a/api_docs/changelog.md+++ b/api_docs/changelog.md@@ -20,6 +20,16 @@ format used by the Zulip server that they are interacting with.## Changes in Zulip 9.0+**Feature level 259**:++* [`POST /register`](/api/register-queue), [`GET /events`](/api/get-events):+ For the `onboarding_steps` event type, an array of onboarding steps+ to be displayed to clients is sent. Onboarding step now has one-time+ notices as the only valid type. Prior to this, both hotspots and+ one-time notices were valid types of onboarding steps. There is no compatibility+ support, as we expect that only official Zulip clients will interact with+ this data. Currently, no client other than the Zulip web app uses this.+**Feature level 258**:* [`GET /user_groups`](/api/get-user-groups), [`POSTdiff --git a/tools/test-js-with-node b/tools/test-js-with-nodeindex b2df22c002a..84f2d127e28 100755--- a/tools/test-js-with-node+++ b/tools/test-js-with-node@@ -117,7 +117,6 @@ EXEMPT_FILES = make_set("web/src/hashchange.js","web/src/hbs.d.ts","web/src/hotkey.js",- "web/src/hotspots.ts","web/src/inbox_ui.js","web/src/inbox_util.ts","web/src/info_overlay.ts",diff --git a/version.py b/version.pyindex e2c25610f78..e812d0a1216 100644--- a/version.py+++ b/version.py@@ -33,7 +33,7 @@ DESKTOP_WARNING_VERSION = "5.9.3"# Changes should be accompanied by documentation explaining what the# new level means in api_docs/changelog.md, as well as "**Changes**"# entries in the endpoint's documentation in `zulip.yaml`.-API_FEATURE_LEVEL = 258+API_FEATURE_LEVEL = 259# Bump the minor PROVISION_VERSION to indicate that folks should provision# only when going from an old version of the code to a newer version. Bumpdiff --git a/web/images/hotspots/fish.svg b/web/images/hotspots/fish.svgdeleted file mode 100644index 051aa24f57a..00000000000--- a/web/images/hotspots/fish.svg+++ /dev/null@@ -1,67 +0,0 @@-<?xml version="1.0" encoding="utf-8"?>-<!-- Generator: Adobe Illustrator 16.0.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->-<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">-<svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"- width="120px" height="100px" viewBox="0 0 120 100" enable-background="new 0 0 120 100" xml:space="preserve">-<g>- <path fill="#FFFFFF" d="M44.923,57.865c-0.419-18.562-17.487-19.336-29.532-12.714l0,0c0.535-2.983,0.723-6.072-1.356-8.063- c-3.374,3.455-6.386,11.966-6.727,16.807c1.881,0.129,3.666-0.668,5.354-2.395l1.082-1.015- c4.361,10.787,20.103,18.345,29.716,9.628L44.923,57.865z"/>- <g>- <path fill="#45AE91" d="M45.973,57.865c-0.346-7.348-3.119-13.711-10.27-16.521c-6.705-2.635-14.79-0.295-20.842,2.9- c0.514,0.395,1.028,0.79,1.542,1.186c0.531-3.457,0.613-6.268-1.626-9.085c-0.341-0.43-1.138-0.396-1.485,0- c-4.134,4.7-6.396,11.396-7.034,17.549c-0.057,0.549,0.521,1.079,1.05,1.05c3.143-0.174,4.945-1.622,7.178-3.717- c-0.55-0.07-1.1-0.142-1.649-0.212c5.25,11.802,24.386,20.605,32.993,7.38c0.741-1.139-1.078-2.19-1.813-1.061- c-7.803,11.992-24.842,2.79-29.366-7.38c-0.286-0.643-1.2-0.634-1.649-0.212c-1.627,1.526-2.96,2.95-5.692,3.102- c0.35,0.35,0.7,0.7,1.05,1.05c0.58-5.59,2.672-11.804,6.419-16.064c-0.495,0-0.99,0-1.485,0c1.382,2.247,1.744,4.595,1.086,7.042- c-0.138,0.897,0.667,1.648,1.542,1.186c5.333-2.814,11.371-4.414,17.385-3.221c7.352,1.458,10.246,8.215,10.567,15.028- C43.937,59.213,46.037,59.22,45.973,57.865z"/>- </g>-</g>-<g>- <path fill="#FFFFFF" d="M40.118,88.271c-0.291-12.798-12.059-13.332-20.364-8.767l0,0c0.369-2.058,0.498-4.187-0.936-5.56- c-2.325,2.38-4.403,8.251-4.639,11.589c1.297,0.09,2.528-0.46,3.693-1.651l0.746-0.699c3.006,7.438,13.86,12.649,20.49,6.637- L40.118,88.271z"/>- <g>- <path fill="#45AE91" d="M41.167,88.271c-0.716-12.479-12.134-14.765-21.943-9.673c0.514,0.395,1.028,0.79,1.542,1.186- c0.336-2.462,0.412-4.271-1.042-6.369c-0.356-0.514-1.182-0.764-1.649-0.212c-2.898,3.42-4.434,7.92-4.946,12.331- c-0.062,0.532,0.525,1.101,1.05,1.05c2.257-0.219,3.519-1.1,5.182-2.658c-0.55-0.07-1.1-0.142-1.649-0.212- c3.837,8.29,17.192,14.482,23.312,5.088c0.741-1.139-1.078-2.19-1.813-1.061c-5.34,8.2-16.611,1.553-19.685-5.088- c-0.295-0.638-1.194-0.639-1.649-0.212c-1.077,1.01-1.878,1.866-3.697,2.043c0.35,0.35,0.7,0.7,1.05,1.05- c0.443-3.817,1.826-7.89,4.332-10.847c-0.55-0.07-1.1-0.142-1.649-0.212c0.277,1.583,0.553,3.167,0.83,4.75- c-0.123,0.898,0.655,1.646,1.542,1.186c8.193-4.251,18.158-3.053,18.784,7.86C39.145,89.616,41.246,89.624,41.167,88.271z"/>- </g>-</g>-<g>- <path fill="#FFFFFF" d="M86.227,87.393c-0.588-16.825-16.074-17.339-26.919-11.203l0,0c0.45-2.711,0.587-5.516-1.324-7.295- c-3.018,3.168-5.658,10.918-5.911,15.312c1.705,0.098,3.316-0.646,4.828-2.228l0.969-0.936c4.073,9.734,18.431,16.416,27.055,8.405- L86.227,87.393z"/>- <g>- <path fill="#45AE91" d="M87.276,87.393c-0.379-6.149-2.722-12.573-9.051-14.784c-6.531-2.28-13.542-0.524-19.448,2.675- c0.514,0.395,1.028,0.79,1.542,1.186c0.446-3.175,0.497-5.759-1.594-8.316c-0.343-0.419-1.14-0.405-1.485,0- c-3.713,4.359-5.692,10.415-6.218,16.054c-0.051,0.544,0.516,1.086,1.05,1.05c2.875-0.192,4.521-1.522,6.539-3.471- c-0.55-0.07-1.1-0.142-1.649-0.212c4.94,10.683,22.458,18.528,30.17,6.35c0.728-1.148-1.091-2.2-1.813-1.061- c-6.923,10.932-22.348,2.726-26.544-6.35c-0.292-0.631-1.199-0.646-1.649-0.212c-1.435,1.386-2.62,2.692-5.054,2.855- c0.35,0.35,0.7,0.7,1.05,1.05c0.471-5.054,2.282-10.67,5.604-14.569c-0.495,0-0.99,0-1.485,0c1.26,1.989,1.611,4.08,1.054,6.273- c-0.125,0.887,0.661,1.664,1.542,1.186c10.884-5.896,24.442-4.268,25.339,10.297C85.26,88.737,87.36,88.746,87.276,87.393z"/>- </g>-</g>-<g>- <path fill="#FFFFFF" d="M77.176,45.887c-6.533,6.236,4.454,13.365,8.909,7.128C91.431,44.995,81.63,41.432,77.176,45.887"/>- <g>- <path fill="#43AD91" d="M76.434,45.145c-2.824,2.836-3.145,6.847,0.072,9.529c2.989,2.492,7.49,2.395,10.077-0.596- c2.417-2.794,3.143-7.559-0.249-9.89C83.288,42.096,79.063,42.656,76.434,45.145c-0.985,0.933,0.502,2.415,1.484,1.484- c1.743-1.649,4.403-2.123,6.593-1.092c3.011,1.418,2.108,4.691,0.668,6.947c-1.519,2.378-4.735,2.229-6.867,0.922- c-2.752-1.688-2.472-4.689-0.394-6.777C78.874,45.669,77.39,44.184,76.434,45.145L76.434,45.145z"/>- </g>-</g>-<g>- <path fill="#FFFFFF" d="M27.529,9.695c-4.561,4.354,3.11,9.331,6.22,4.976C37.482,9.073,30.64,6.585,27.529,9.695"/>- <g>- <path fill="#43AD91" d="M26.787,8.953c-2.084,2.093-2.327,5.118,0.051,7.101c2.211,1.844,5.558,1.81,7.483-0.416- c1.83-2.115,2.31-5.651-0.238-7.401C31.84,6.694,28.72,7.124,26.787,8.953c-0.985,0.933,0.502,2.415,1.485,1.484- c1.107-1.047,2.822-1.37,4.219-0.713c1.936,0.912,1.268,2.982,0.352,4.416c-0.966,1.513-3.025,1.35-4.36,0.531- c-1.749-1.072-1.515-2.924-0.21-4.234C29.228,9.478,27.743,7.992,26.787,8.953L26.787,8.953z"/>- </g>-</g>-</svg>diff --git a/web/images/hotspots/kelp.svg b/web/images/hotspots/kelp.svgdeleted file mode 100644index aeee86a6978..00000000000--- a/web/images/hotspots/kelp.svg+++ /dev/null@@ -1,99 +0,0 @@-<?xml version="1.0" encoding="utf-8"?>-<!-- Generator: Adobe Illustrator 16.0.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->-<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">-<svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"- width="95px" height="100px" viewBox="0 0 95 100" enable-background="new 0 0 95 100" xml:space="preserve">-<g>- <path fill="#FFFFFF" d="M65.92,10.495c-6.996,6.679,4.771,14.313,9.541,7.633C81.186,9.541,70.69,5.725,65.92,10.495"/>- <g>- <path fill="#43AD91" d="M65.178,9.753c-2.998,3.011-3.336,7.253,0.078,10.1c3.172,2.645,7.943,2.531,10.686-0.638- c2.555-2.953,3.339-8.006-0.252-10.474C72.456,6.519,67.971,7.109,65.178,9.753c-0.985,0.933,0.502,2.415,1.484,1.484- c1.894-1.791,4.774-2.299,7.15-1.181c3.263,1.537,2.306,5.093,0.742,7.541c-1.648,2.581-5.136,2.437-7.456,1.015- c-2.987-1.832-2.696-5.104-0.437-7.375C67.618,10.277,66.134,8.792,65.178,9.753L65.178,9.753z"/>- </g>-</g>-<g>- <path fill="#FFFFFF" d="M7.258,31.294c-4.112,3.924,2.803,8.41,5.608,4.486C16.231,30.731,10.061,28.488,7.258,31.294"/>- <g>- <path fill="#43AD91" d="M6.515,30.552c-1.916,1.923-2.141,4.724,0.046,6.547c2.034,1.695,5.117,1.677,6.894-0.374- c1.698-1.96,2.118-5.219-0.236-6.837C11.157,28.472,8.289,28.871,6.515,30.552C5.53,31.484,7.018,32.967,8,32.036- c0.961-0.911,2.462-1.2,3.678-0.627c1.69,0.796,1.078,2.594,0.281,3.841c-0.839,1.315-2.639,1.146-3.791,0.439- C6.649,34.758,6.873,33.169,8,32.036C8.957,31.076,7.472,29.591,6.515,30.552L6.515,30.552z"/>- </g>-</g>-<g>- <g>- <path fill="#45A98C" d="M24.167,88.317c3.542-5.666,9.206-4.25,9.916,2.124c-2.834,0-7.083,0.708-9.916-0.708V88.317z"/>- <g>- <path fill="#45A98C" d="M25.074,88.848c1.108-1.677,2.812-3.426,5.01-2.927c2.065,0.47,2.741,3.018,2.986,4.8- c0.338-0.443,0.675-0.887,1.013-1.329c-3.067,0.04-6.484,0.725-9.386-0.564c0.173,0.302,0.347,0.604,0.52,0.906- c0-0.472,0-0.944,0-1.416c0-1.354-2.1-1.354-2.1,0c0,0.472,0,0.944,0,1.416c0,0.338,0.193,0.762,0.52,0.906- c3.338,1.483,6.909,0.898,10.446,0.852c0.75-0.01,1.105-0.658,1.013-1.329c-0.39-2.824-1.813-5.666-4.808-6.347- c-2.994-0.68-5.521,1.693-7.028,3.972C22.511,88.921,24.331,89.972,25.074,88.848z"/>- </g>- </g>- <g>- <polygon fill="#FFFFFF" points="44.746,90.892 42.55,69.991 24.634,66.036 14.028,73.338 9.914,68.166 24.634,57.82- 38.986,61.776 31.032,48.085 23.627,48.085 23.078,41.39 29.753,41.39 27.329,28.611 41.18,24.048 44.746,31.046 34.324,33.176- 37.34,48.085 55.441,44.129 55.441,35.001 61.475,35.001 61.475,48.998 43.374,54.474 48.036,65.123 64.128,59.646 72.994,45.042- 77.93,46.868 76.012,52.039 82.594,54.474 80.672,59.037 74.732,57.471 69.154,63.906 50.505,70.6 50.23,90.579 "/>- <g>- <path fill="#43AD91" d="M45.795,90.892c-0.732-6.967-1.464-13.934-2.196-20.9c-0.047-0.452-0.283-0.905-0.771-1.013- c-3.306-0.729-6.611-1.459-9.917-2.188c-2.124-0.47-6.371-2.368-8.558-1.767c-2.871,0.79-6.128,4.152-8.566,5.831- c-0.549,0.377-1.098,0.755-1.646,1.133c-1.152,0.794,0.824,0.854,0.2,0.07c-1.229-1.545-2.458-3.09-3.686-4.634- c-0.071,0.55-0.142,1.1-0.213,1.648c4.739-3.33,9.477-6.66,14.216-9.99c0.701-0.493-0.766-0.376,0.847,0.068- c1.543,0.425,3.086,0.851,4.629,1.275c2.857,0.788,5.714,1.575,8.572,2.363c0.891,0.245,1.649-0.746,1.186-1.543- c-2.455-4.226-4.91-8.451-7.365-12.677c-1.633-2.813-6.009-1.534-8.901-1.534c0.35,0.35,0.7,0.7,1.05,1.05- c-0.183-2.231-0.366-4.464-0.549-6.695c-0.35,0.35-0.7,0.7-1.05,1.05c2.225,0,4.45,0,6.675,0c0.725,0,1.138-0.666,1.013-1.329- c-0.808-4.26-1.616-8.519-2.424-12.778c-0.245,0.431-0.489,0.861-0.733,1.292c3.774-1.243,7.548-2.487,11.322-3.73- c0.735-0.242,1.471-0.484,2.206-0.727c-0.089,0.029-1.122-1.097-0.306,0.504c1.003,1.969,2.006,3.937,3.009,5.905- c0.209-0.515,0.418-1.028,0.627-1.543c-3.474,0.71-6.948,1.42-10.422,2.13c-0.588,0.12-0.84,0.762-0.733,1.292- c1.006,4.97,2.011,9.939,3.017,14.909c0.118,0.582,0.764,0.849,1.292,0.733c6.033-1.319,12.067-2.638,18.101-3.956- c0.453-0.1,0.771-0.564,0.771-1.013c0-3.043,0-6.085,0-9.128c-0.35,0.35-0.7,0.7-1.05,1.05c2.011,0,4.022,0,6.034,0- c-0.35-0.35-0.7-0.7-1.05-1.05c0,2.829,0,5.658,0,8.488c0,1.578,0,3.155,0,4.733c0,1.267,1.482-0.452-0.167,0.047- C54.537,50,48.816,51.73,43.095,53.461c-0.704,0.213-0.9,0.919-0.627,1.543c1.554,3.55,3.108,7.1,4.662,10.649- c0.178,0.406,0.782,0.62,1.186,0.482c3.296-1.122,6.592-2.244,9.888-3.365c1.745-0.594,5.922-1.097,6.98-2.84- c2.089-3.44,4.177-6.88,6.266-10.32c0.805-1.325,1.608-2.65,2.413-3.976c-1.13,0.303-1.256,0.538-0.376,0.705- c0.565,0.209,1.131,0.419,1.696,0.628c0.823,0.304,1.646,0.608,2.468,0.913c-0.244-0.431-0.488-0.861-0.733-1.292- c-0.639,1.724-1.278,3.447-1.918,5.171c-0.211,0.57,0.234,1.107,0.733,1.292c2.194,0.812,4.389,1.623,6.582,2.435- c-0.244-0.431-0.488-0.861-0.733-1.292c-0.641,1.521-1.281,3.043-1.922,4.563c0.431-0.244,0.861-0.488,1.292-0.733- c-1.98-0.521-3.96-1.044-5.939-1.566c-0.344-0.09-0.779-0.009-1.021,0.271c-1.608,1.854-3.217,3.71-4.824,5.565- c-0.791,0.912-2.281,1.314-4.319,2.046c-4.874,1.749-9.747,3.498-14.621,5.247c-0.449,0.161-0.764,0.518-0.771,1.013- c-0.092,6.66-0.184,13.319-0.275,19.979c0.35-0.35,0.7-0.7,1.05-1.05c-1.828,0.104-3.656,0.208-5.484,0.313- c-1.346,0.076-1.354,2.177,0,2.1c1.828-0.104,3.656-0.208,5.484-0.313c0.578-0.032,1.042-0.453,1.05-1.05- c0.068-4.934,0.136-9.866,0.204-14.8c0.017-1.233,0.034-2.467,0.051-3.7c0.025-1.859,0.373-0.87-0.69-0.489- c2.168-0.777,4.336-1.556,6.504-2.334c2.938-1.055,5.876-2.108,8.813-3.163c1.032-0.37,3.057-0.662,3.828-1.553- c1.71-1.972,3.42-3.944,5.129-5.917c0.476-0.435,0.309-0.466-0.5-0.096c0.642,0.169,1.283,0.338,1.925,0.507- c1.283,0.339,2.565,0.677,3.849,1.016c0.608,0.16,1.068-0.202,1.292-0.733c0.641-1.521,1.281-3.042,1.922-4.563- c0.235-0.56-0.253-1.114-0.733-1.292c-2.194-0.812-4.389-1.623-6.582-2.435c0.244,0.431,0.488,0.861,0.733,1.292- c0.639-1.724,1.278-3.447,1.918-5.171c0.211-0.57-0.234-1.107-0.733-1.292c-1.646-0.608-3.291-1.217-4.936-1.826- c-0.442-0.163-0.957,0.105-1.186,0.482c-2.139,3.522-4.276,7.044-6.415,10.566c-0.805,1.325-1.608,2.65-2.413,3.976- c0.429-0.707,0.482-0.384-0.437-0.07c-1.142,0.388-2.283,0.776-3.424,1.165c-2.397,0.815-4.795,1.632-7.193,2.448- c-0.964,0.328-1.929,0.656-2.893,0.984c-2.019,0.687-0.83-0.037-0.412,0.917c-1.54-3.519-3.08-7.036-4.62-10.555- c-0.209,0.515-0.418,1.028-0.627,1.543c6.033-1.825,12.067-3.65,18.101-5.476c0.448-0.136,0.771-0.537,0.771-1.013- c0-4.666,0-9.331,0-13.997c0-0.572-0.478-1.05-1.05-1.05c-2.011,0-4.022,0-6.034,0c-0.572,0-1.05,0.478-1.05,1.05- c0,2.439,0,4.879,0,7.318c0,0.435,0,0.869,0,1.304c0,1.09,1.135-0.586,0.507-0.449c-0.855,0.188-1.709,0.374-2.564,0.561- c-5.091,1.113-10.182,2.226-15.272,3.338c0.431,0.245,0.861,0.489,1.292,0.733c-1.006-4.97-2.011-9.939-3.017-14.909- c-0.245,0.431-0.489,0.861-0.733,1.292c3.474-0.71,6.948-1.42,10.422-2.13c0.699-0.144,0.917-0.976,0.627-1.543- c-1.189-2.332-2.377-4.665-3.566-6.998c-0.205-0.4-0.761-0.622-1.186-0.482c-4.617,1.521-9.233,3.043-13.851,4.563- c-0.577,0.19-0.844,0.707-0.733,1.292c0.808,4.259,1.616,8.519,2.424,12.778c0.338-0.443,0.675-0.887,1.013-1.329- c-2.225,0-4.45,0-6.675,0c-0.537,0-1.097,0.479-1.05,1.05c0.183,2.231,0.366,4.464,0.549,6.695c0.046,0.57,0.442,1.05,1.05,1.05- c1.829,0,3.657,0,5.485,0c1.561,0,1.589,0.471,1.054-0.45c0.401,0.689,0.801,1.38,1.202,2.069- c2.237,3.851,4.474,7.702,6.711,11.553c0.396-0.515,0.791-1.028,1.186-1.543c-2.857-0.787-5.715-1.575-8.572-2.362- c-1.163-0.321-5.39-2.331-6.589-1.487c-4.907,3.448-9.813,6.896-14.72,10.346c-0.597,0.419-0.656,1.092-0.213,1.648- c1.372,1.725,2.743,3.448,4.114,5.172c0.275,0.346,0.919,0.408,1.272,0.164c3.51-2.416,7.02-4.832,10.529-7.248- c-0.687,0.473-0.398,0.126,0.778,0.386c1.238,0.273,2.476,0.547,3.713,0.82c3.047,0.672,6.094,1.345,9.141,2.018- c0.853,0.188,1.707,0.377,2.56,0.564c1.555,0.344,0.291-0.133,0.246-0.559c0.224,2.126,0.447,4.253,0.67,6.379- c0.5,4.762,1.001,9.524,1.501,14.287C43.835,92.225,45.937,92.238,45.795,90.892z"/>- </g>- </g>- <g>- <path fill="#45A98C" d="M45.877,91.027c4.958-9.915,18.414-7.081,20.539,2.126c-6.375,0.707-17.705,2.831-20.539-1.418V91.027z"/>- <g>- <path fill="#45A98C" d="M46.784,91.558c4.399-8.004,16.098-7.261,18.62,1.875c0.338-0.443,0.675-0.887,1.013-1.329- c-2.514,0.292-19.489,3.275-19.489-1.076c0-1.354-2.1-1.354-2.1,0c0,7.373,17.793,3.616,21.589,3.176- c0.665-0.077,1.21-0.612,1.013-1.329c-2.991-10.839-17.181-11.979-22.458-2.377C44.318,91.685,46.131,92.744,46.784,91.558z"/>- </g>- </g>-</g>-</svg>diff --git a/web/images/hotspots/speech-bubble.svg b/web/images/hotspots/speech-bubble.svgdeleted file mode 100644index 3eadb0b39a9..00000000000--- a/web/images/hotspots/speech-bubble.svg+++ /dev/null@@ -1,27 +0,0 @@-<?xml version="1.0" encoding="utf-8"?>-<!-- Generator: Adobe Illustrator 16.0.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->-<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">-<svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"- width="134.75px" height="54.167px" viewBox="0 0 134.75 54.167" enable-background="new 0 0 134.75 54.167" xml:space="preserve">-<g>- <path fill="#FFFFFF" d="M119.171,41.5c-0.088,0-0.176,0-0.265,0c-4.81,0-9.62,0-14.431,0c-7.726,0-15.451,0-23.177,0- c-3.02,0-6.039,0-9.059,0c-1.274,0-2.929-0.259-4.089,0.315c-0.856,0.423-1.246,1.292-1.701,2.078- c-0.755,1.303-1.761,2.355-2.932,3.297c-0.957,0.77-1.958,1.767-3.059,2.362c-1.361,0.737-1.649,1.214-3.21,1.114- c1.462-0.65,1.106-3.035,1.747-4.438c0.499-1.091,0.995-4.292-0.564-4.806c-0.499-0.165-1.72,0.076-2.301,0.076- c-2.146,0-4.292,0-6.438,0c-7.123,0-14.246,0-21.369,0c-4.051,0-8.103,0-12.153,0c-6.489,0-11.75-5.261-11.75-11.75v-14- C4.421,9.261,9.682,4,16.171,4h103c6.489,0,11.75,5.261,11.75,11.75v14C130.921,36.239,125.66,41.5,119.171,41.5z"/>- <g>- <path fill="#43AD91" d="M119.171,40.45c-11.98,0-23.96,0-35.94,0c-4.884,0-10.616-0.883-15.358,0.352- c-1.111,0.29-1.805,1.682-2.328,2.561c-1.5,2.517-5.226,6.051-8.294,6.254c0.247,0.597,0.495,1.195,0.742,1.792- c2.032-1.719,2.72-6.192,2.44-8.754c-0.415-3.815-6.765-2.206-9.13-2.206c-7.659,0-15.319,0-22.979,0- c-7.765,0-17.336,1.896-21.803-6.063c-1.699-3.029-1.051-7.782-1.051-11.138c0-3.969-0.528-8.402,1.051-12.137- C9.05,5.134,15.08,5.05,20.435,5.05c28.216,0,56.433,0,84.648,0c4.696,0,9.392,0,14.088,0c10.214,0,10.7,9.693,10.7,17.201- C129.871,30.292,129.886,39.832,119.171,40.45c-1.346,0.078-1.354,2.178,0,2.1c8.46-0.488,12.8-6.822,12.8-14.803- c0-6.103,1.585-15.099-2.889-20.088c-6.153-6.864-17.888-4.708-26.192-4.708c-27.884,0-55.769,0-83.652,0- c-4.574,0-8.473,0.481-12.117,3.749C1.544,11.698,3.371,21.807,3.371,28.42c0,10.062,7.051,14.13,16.272,14.13- c8.073,0,16.147,0,24.222,0c4.089,0,8.178,0,12.267,0c3.263,0,2.369,5.689,0.376,7.375c-0.69,0.584-0.143,1.851,0.742,1.792- c3.316-0.218,5.735-2.656,8.124-4.768c2.246-1.986,3.163-4.523,6.866-4.399c3.012,0.101,6.045,0,9.059,0- c12.624,0,25.248,0,37.872,0C120.525,42.55,120.525,40.45,119.171,40.45z"/>- </g>-</g>-</svg>diff --git a/web/images/hotspots/whale-bubble.svg b/web/images/hotspots/whale-bubble.svgdeleted file mode 100644index 0faccc0ffe8..00000000000--- a/web/images/hotspots/whale-bubble.svg+++ /dev/null@@ -1,110 +0,0 @@-<?xml version="1.0" encoding="utf-8"?>-<!-- Generator: Adobe Illustrator 16.0.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->-<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">-<svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"- width="130px" height="120px" viewBox="0 0 130 120" enable-background="new 0 0 130 120" xml:space="preserve">-<g>- <g>- <g>- <path fill="#CADEE3" d="M45.124,110.572c-0.229,2.579-0.568,5.222,1.845,6.374c4.781,2.534,6.127,0.094,9.206-2.446"/>- <g>- <path fill="#43AD91" d="M44.074,110.572c-0.146,1.628-0.4,3.448,0.262,5.001c0.719,1.685,2.138,2.353,3.755,3.026- c3.715,1.548,6.223-1.156,8.826-3.357c1.035-0.875-0.458-2.354-1.485-1.484c-1.582,1.337-3.066,3.239-5.308,3.194- c-1.639-0.032-3.557-1.078-4.006-2.68c-0.319-1.142-0.047-2.544,0.056-3.7C46.295,109.223,44.194,109.234,44.074,110.572- L44.074,110.572z"/>- </g>- </g>- <g>- <path fill="#FFFFFF" d="M42.594,35.848c-6.229-1.128-17.7,0.369-21.492,6.83c0.665-8.935-7.372-15.871-15.719-17.146- c-6.243,10.785,1.04,19.252,10.523,24.783l-0.084,0.461c-2.674,14.766,0.479,26.3,8.541,39.675- c11.208,14.423,24.112,18.822,39.977,22.017c15.234,3.067,38.304-1.64,38.669-22.067c-7.644-15.682-27.698-20.745-42.755-19.185- C53,71.809,45.199,72.779,37.983,70.519c-7.217-2.26-21.93-5.225-16.156-19.132c9.062,2.595,21.887-4.613,21.229-15.456"/>- <g>- <path fill="#43AD91" d="M42.874,34.835c-7.829-1.202-17.949,0.256-22.678,7.313c0.652,0.176,1.305,0.353,1.957,0.53- c0.235-9.642-7.473-16.458-16.49-18.158c-0.452-0.085-0.955,0.044-1.186,0.483c-5.043,9.556-0.891,17.673,7.172,23.794- c0.158,0.12,3.022,2.465,3.204,1.47c-0.217,1.194-0.389,2.382-0.556,3.583c-0.381,2.737-0.471,5.489-0.434,8.25- c0.084,6.254,1.731,12.367,4.063,18.129c8.583,21.211,29.5,31.981,51.507,33.995c8.392,0.768,17.365-0.816,24.552-5.325- c3.123-1.959,5.61-4.731,7.44-7.906c1.37-2.379,3.873-8.448,2.492-11.122c-4.641-8.986-12.83-14.541-22.285-17.601- c-11.142-3.605-22-1.481-33.394-1.381c-6.38,0.057-13.122-1.879-18.988-4.406c-6.627-2.855-8.996-7.971-6.409-14.816- c-0.431,0.244-0.861,0.489-1.292,0.733c10.584,2.555,22.716-5.047,22.558-16.468c-0.019-1.353-2.119-1.355-2.1,0- c0.138,10.04-10.626,16.682-19.9,14.443c-0.596-0.144-1.084,0.185-1.292,0.733C14.382,68.13,37.713,73.082,49.972,72.974- c10.825-0.097,20.443-1.816,31.101,1.32c5.191,1.528,10.016,4.143,14.135,7.64c2.233,1.897,4.054,4.209,5.625,6.667- c1.729,2.707,0.868,5.743-0.021,8.592c-2.793,8.951-12.269,13.111-20.762,14.565c-9.753,1.671-19.826-0.79-29.072-3.784- c-24.307-7.871-38.628-32.27-34.058-57.379c0.086-0.475-0.052-0.926-0.483-1.186C9.47,45.2,2.581,39.039,4.567,30.092- c1.223-5.503,5.725-2.261,8.966-0.123c4.314,2.847,6.643,7.626,6.52,12.708c-0.027,1.1,1.401,1.358,1.957,0.53- c4.132-6.167,13.489-7.394,20.306-6.347C43.64,37.063,44.208,35.04,42.874,34.835L42.874,34.835z"/>- </g>- </g>- </g>- <g>- <path fill="#CADEE3" d="M102.585,90.756c0.172,20.762-24.459,24.522-40.034,21.702c-8.306-1.506-15.89-5.024-23.064-8.826- c-7.804-4.273-12.829-11.068-17.3-16.971c7.399,8.489,22.191,15.622,32.574,17.503c9.69,1.755,19.055,3.423,28.805,0.899- C89.886,103.706,99.6,97.362,102.585,90.756z"/>- <g>- <path fill="#43AD91" d="M101.535,90.756c-0.26,16.104-15.962,21.38-29.695,21.476c-8.974,0.063-17.484-2.636-25.566-6.357- c-9.986-4.599-16.625-11.086-23.181-19.743c-0.55,0.425-1.1,0.849-1.649,1.272c10.835,11.905,26.586,17.037,42.048,19.268- c14.553,2.1,32.613-0.856,39.999-15.385c0.612-1.204-1.199-2.268-1.813-1.061c-7.735,15.215-26.521,16.207-41.218,13.877- c-13.82-2.191-27.911-7.613-37.531-18.184c-0.793-0.871-2.374,0.315-1.649,1.272c6.837,9.027,13.642,15.556,23.935,20.496- c8.75,4.2,17.995,6.704,27.716,6.637c14.712-0.103,30.436-6.948,30.704-23.568C103.657,89.401,101.557,89.403,101.535,90.756z"/>- </g>- </g>- <g>- <path fill="#CADEE3" d="M70.613,75.85c-3.178-0.219-4.088,2.834-0.564,3.114S73.827,75.538,70.613,75.85"/>- <g>- <path fill="#43AD91" d="M70.613,74.8c-1.485-0.077-3.552,0.543-3.83,2.263c-0.339,2.095,1.896,2.92,3.597,2.967- c1.687,0.046,3.377-0.93,3.535-2.717C74.073,75.519,72.094,74.684,70.613,74.8c-1.341,0.104-1.352,2.206,0,2.1- c0.238-0.019,0.472-0.021,0.71-0.001c0.069,0.006,0.296,0.102,0.326,0.118c0.092,0.05,0.103,0.064,0.137,0.118- c0.04,0.063,0.028,0.041,0.03,0.096c0.011,0.266,0.056-0.215-0.002,0.05c-0.011,0.051-0.12,0.283-0.018,0.073- c-0.014,0.028-0.18,0.26-0.043,0.092c-0.063,0.077-0.137,0.143-0.21,0.208c-0.115,0.103-0.607,0.256-1.007,0.274- c-0.517,0.023-1.085-0.057-1.519-0.299c-0.268-0.15,0.077,0.094-0.127-0.095c-0.21-0.193,0.075,0.146-0.062-0.081- c0.111,0.186,0.007,0.009-0.011-0.064c0.068,0.289,0.049-0.14,0.002,0.15c0.009-0.054,0.11-0.282,0.009-0.069- c0.016-0.032,0.181-0.252,0.045-0.09c0.141-0.168,0.117-0.142,0.369-0.282c0.337-0.188,0.903-0.222,1.369-0.198- C71.968,76.97,71.961,74.869,70.613,74.8L70.613,74.8z"/>- </g>- </g>- <g>- <path fill="#CADEE3" d="M71.211,59.802c-1.022-1.593-4.023-11.991-0.755-12.278c2.43-0.264,0.966,9.149,0.909,11.426"/>- <g>- <path fill="#43AD91" d="M72.117,59.273c-0.765-1.311-1.113-2.924-1.474-4.381c-0.429-1.734-1.162-4.393-0.343-6.115- c0.273-0.573,0.453,1.333,0.469,1.531c0.08,1.005,0.028,2.025-0.02,3.03c-0.088,1.875-0.358,3.737-0.435,5.612- c-0.055,1.354,2.045,1.349,2.1,0c0.078-1.927,2.174-14.344-2.752-12.287c-2.184,0.912-1.81,4.159-1.565,6.012- c0.33,2.516,0.908,5.434,2.207,7.657C70.986,61.501,72.802,60.445,72.117,59.273L72.117,59.273z"/>- </g>- </g>- <g>- <path fill="#CADEE3" d="M74.587,57.598c0.71-1.278,1.728-6.902,3.235-4.692c1.59,2.4-1.726,4.262-2.804,4.947"/>- <g>- <path fill="#43AD91" d="M75.493,58.128c0.748-1.434,0.828-3.532,1.883-4.728c0.19-0.215-0.211,0.143-0.475,0- c0.02,0.01,0.196,0.349,0.232,0.444c0.169,0.451-0.036,0.914-0.316,1.272c-0.613,0.787-1.498,1.306-2.329,1.828- c-1.143,0.72-0.089,2.538,1.061,1.813c1.244-0.784,2.491-1.603,3.276-2.884c0.828-1.354,0.521-3.538-0.958-4.339- c-2.674-1.45-3.495,4.206-4.187,5.533C73.055,58.267,74.867,59.33,75.493,58.128L75.493,58.128z"/>- </g>- </g>- <g>- <g>- <path fill="#43AD91" d="M83.922,95.575c0.059,0.079,0.115,0.158,0.168,0.241c0.159,0.247,0.019-0.022,0.063,0.103- c0.098,0.273,0.008-0.133,0.009,0.013c0.034-0.194,0.039-0.238,0.015-0.133c0.083-0.177,0.1-0.219,0.05-0.126- c0.125-0.148,0.151-0.185,0.08-0.108c-0.078,0.069-0.043,0.042,0.104-0.08c-0.211,0.142,0.193-0.061,0.028-0.01- c-0.259,0.08,0.205-0.01,0.022,0.005c-0.072,0.006-0.146,0.002-0.218-0.004c0.455,0.033-0.342-0.16,0.059,0.019- c-0.079-0.035-0.277-0.186-0.005,0.027c-0.082-0.064-0.178-0.241,0.003,0.03c-0.051-0.094-0.035-0.054,0.045,0.12- c-0.027-0.105-0.024-0.061,0.009,0.134c-0.03-0.265-0.051,0.18-0.003,0.002c0.037-0.135-0.107,0.184,0.049-0.065- c0.065-0.092,0.063-0.091-0.005,0.004c0.044-0.05,0.09-0.099,0.137-0.146c-0.154,0.09-0.309,0.181-0.463,0.271- c-0.214,0.035-0.192,0.021-0.006,0.01c0.068-0.003,0.136-0.003,0.204,0c-0.021-0.003-0.043-0.007-0.064-0.01- c0.179,0.056,0.14,0.028-0.117-0.083c0.955,0.962,2.439-0.523,1.484-1.484c-0.452-0.455-1.11-0.58-1.729-0.503- c-0.639,0.079-1.083,0.505-1.362,1.077c-0.44,0.903-0.162,1.967,0.765,2.431c0.813,0.405,1.758,0.36,2.479-0.2- c0.843-0.653,0.56-1.861,0.013-2.593c-0.342-0.457-0.9-0.69-1.437-0.376C83.847,94.403,83.578,95.115,83.922,95.575z"/>- </g>- </g>-</g>-<g>- <g>- <path fill="#43AD91" d="M36.817,4.616c-0.067,8.346,2.915,17.812,12.951,18.399c8.418,0.493,16.947,0.206,25.381,0.273- c4.373,0.035,8.726,0.035,13.097-0.097c4.707-0.143,5.016,6.959,2.969,10.097c-0.599,0.916,0.553,1.923,1.437,1.437- c4.314-2.378,9.352-6.628,9.683-11.857c-0.35,0.35-0.7,0.7-1.05,1.05c8.521-0.024,17.044-0.049,25.565-0.074- c1.354-0.004,1.354-2.104,0-2.1c-8.521,0.024-17.044,0.049-25.565,0.074c-0.6,0.001-1.014,0.478-1.05,1.05- c-0.268,4.228-5.229,8.163-8.644,10.044c0.479,0.479,0.958,0.958,1.437,1.437c1.812-2.775,2.355-9.226,0.521-12.053- c-0.943-1.453-3.988-1.176-5.302-1.204c-4.351-0.09-8.738,0.132-13.097,0.097c-8.57-0.069-17.963,0.912-26.432-0.45- c-8.243-1.325-9.855-9.241-9.8-16.123C38.928,3.262,36.828,3.263,36.817,4.616L36.817,4.616z"/>- </g>-</g>-</svg>diff --git a/web/images/hotspots/whale.svg b/web/images/hotspots/whale.svgdeleted file mode 100644index ac5d05a62d4..00000000000--- a/web/images/hotspots/whale.svg+++ /dev/null@@ -1,99 +0,0 @@-<?xml version="1.0" encoding="utf-8"?>-<!-- Generator: Adobe Illustrator 16.0.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->-<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">-<svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"- width="120px" height="100px" viewBox="0 0 120 100" enable-background="new 0 0 120 100" xml:space="preserve">-<g>- <g>- <g>- <path fill="#CADEE3" d="M46.124,88.571c-0.229,2.579-0.568,5.222,1.845,6.374c4.781,2.534,6.127,0.094,9.206-2.446"/>- <g>- <path fill="#43AD91" d="M45.074,88.571c-0.146,1.628-0.4,3.448,0.262,5.001c0.719,1.685,2.138,2.353,3.755,3.026- c3.714,1.548,6.223-1.156,8.826-3.357c1.036-0.875-0.457-2.354-1.484-1.484c-1.582,1.337-3.066,3.239-5.309,3.194- c-1.639-0.032-3.557-1.078-4.006-2.68c-0.319-1.142-0.047-2.544,0.056-3.7C47.295,87.222,45.194,87.233,45.074,88.571- L45.074,88.571z"/>- </g>- </g>- <g>- <path fill="#FFFFFF" d="M43.595,13.847c-6.229-1.128-17.7,0.369-21.492,6.83c0.665-8.935-7.372-15.871-15.719-17.146- c-6.243,10.785,1.04,19.252,10.523,24.783l-0.084,0.461c-2.674,14.765,0.479,26.299,8.541,39.674- c11.208,14.423,24.112,18.822,39.977,22.017c15.234,3.067,38.305-1.64,38.67-22.067c-7.644-15.682-27.698-20.745-42.756-19.185- C54,49.808,46.2,50.778,38.983,48.518c-7.217-2.259-21.93-5.225-16.156-19.131c9.062,2.595,21.887-4.613,21.229-15.456"/>- <g>- <path fill="#43AD91" d="M43.874,12.834c-7.829-1.202-17.949,0.256-22.678,7.313c0.652,0.176,1.305,0.353,1.957,0.53- c0.235-9.642-7.473-16.458-16.49-18.158C6.211,2.434,5.708,2.563,5.477,3.002c-5.043,9.556-0.891,17.673,7.172,23.794- c0.158,0.12,3.022,2.465,3.204,1.47c-0.217,1.193-0.389,2.382-0.556,3.583c-0.381,2.737-0.471,5.49-0.434,8.249- c0.084,6.254,1.731,12.369,4.063,18.129c8.583,21.211,29.5,31.981,51.506,33.995c8.393,0.768,17.366-0.816,24.552-5.325- c3.124-1.959,5.611-4.731,7.441-7.906c1.37-2.379,3.873-8.448,2.492-11.122c-4.641-8.986-12.83-14.541-22.285-17.601- c-11.142-3.605-22-1.482-33.395-1.381c-6.379,0.057-13.122-1.878-18.988-4.406c-6.627-2.855-8.996-7.972-6.409-14.816- c-0.431,0.244-0.861,0.489-1.292,0.733c10.584,2.555,22.716-5.047,22.558-16.468c-0.019-1.353-2.119-1.355-2.1,0- c0.138,10.04-10.626,16.682-19.9,14.443c-0.596-0.144-1.084,0.185-1.292,0.733c-6.432,17.022,16.899,21.974,29.157,21.866- c10.826-0.097,20.444-1.816,31.102,1.32c5.191,1.528,10.016,4.143,14.135,7.64c2.233,1.897,4.054,4.209,5.625,6.667- c1.729,2.707,0.868,5.743-0.021,8.592c-2.793,8.951-12.269,13.111-20.762,14.565c-9.753,1.671-19.826-0.79-29.072-3.784- C27.671,78.102,13.35,53.703,17.92,28.594c0.086-0.475-0.052-0.926-0.483-1.186C10.471,23.2,3.581,17.039,5.568,8.092- c1.223-5.503,5.725-2.261,8.966-0.123c4.314,2.847,6.643,7.626,6.52,12.708c-0.027,1.1,1.401,1.358,1.957,0.53- c4.132-6.167,13.489-7.394,20.306-6.347C44.64,15.063,45.209,13.04,43.874,12.834L43.874,12.834z"/>- </g>- </g>- </g>- <g>- <path fill="#CADEE3" d="M103.586,68.755c0.172,20.762-24.459,24.522-40.034,21.702c-8.306-1.506-15.89-5.024-23.064-8.826- c-7.804-4.273-12.829-11.068-17.3-16.971c7.399,8.489,22.191,15.622,32.574,17.503c9.69,1.755,19.056,3.423,28.806,0.899- C90.887,81.705,100.601,75.361,103.586,68.755z"/>- <g>- <path fill="#43AD91" d="M102.536,68.755c-0.26,16.104-15.962,21.38-29.695,21.476c-8.975,0.063-17.484-2.636-25.566-6.357- C37.288,79.274,30.65,72.787,24.094,64.13c-0.55,0.425-1.1,0.849-1.649,1.272C33.28,77.308,49.031,82.439,64.493,84.67- c14.553,2.1,32.613-0.855,39.999-15.385c0.612-1.204-1.199-2.268-1.813-1.061c-7.735,15.215-26.521,16.207-41.219,13.877- C47.641,79.91,33.55,74.488,23.93,63.918c-0.793-0.871-2.374,0.315-1.649,1.272c6.837,9.027,13.642,15.556,23.935,20.496- c8.751,4.2,17.995,6.704,27.717,6.637c14.712-0.103,30.436-6.948,30.704-23.568C104.658,67.4,102.558,67.402,102.536,68.755z"/>- </g>- </g>- <g>- <path fill="#CADEE3" d="M71.614,53.849c-3.179-0.219-4.089,2.834-0.564,3.114C74.573,57.243,74.828,53.537,71.614,53.849"/>- <g>- <path fill="#43AD91" d="M71.614,52.799c-1.485-0.077-3.553,0.543-3.83,2.263c-0.339,2.096,1.896,2.92,3.597,2.967- c1.687,0.046,3.377-0.93,3.535-2.717C75.074,53.518,73.095,52.683,71.614,52.799c-1.341,0.104-1.352,2.206,0,2.1- c0.238-0.019,0.472-0.021,0.71-0.001c0.069,0.006,0.296,0.102,0.326,0.118c0.092,0.05,0.103,0.064,0.137,0.118- c0.04,0.063,0.028,0.041,0.03,0.096c0.011,0.266,0.056-0.215-0.002,0.05c-0.011,0.051-0.12,0.283-0.018,0.073- c-0.014,0.028-0.18,0.26-0.043,0.092c-0.063,0.077-0.137,0.143-0.21,0.208c-0.115,0.103-0.607,0.256-1.007,0.274- c-0.518,0.023-1.085-0.057-1.519-0.299c-0.269-0.15,0.076,0.094-0.128-0.095c-0.21-0.193,0.075,0.146-0.062-0.081- c0.112,0.186,0.007,0.009-0.011-0.064c0.068,0.289,0.05-0.14,0.003,0.15c0.009-0.054,0.109-0.282,0.008-0.069- c0.016-0.032,0.182-0.252,0.045-0.09c0.142-0.168,0.117-0.142,0.37-0.282c0.337-0.188,0.903-0.222,1.369-0.198- C72.969,54.969,72.962,52.868,71.614,52.799L71.614,52.799z"/>- </g>- </g>- <g>- <path fill="#CADEE3" d="M72.212,37.802c-1.022-1.593-4.024-11.991-0.755-12.278c2.43-0.264,0.966,9.149,0.909,11.426"/>- <g>- <path fill="#43AD91" d="M73.118,37.272c-0.765-1.31-1.113-2.924-1.474-4.381c-0.429-1.734-1.162-4.393-0.343-6.115- c0.272-0.573,0.453,1.334,0.469,1.531c0.08,1.005,0.028,2.025-0.02,3.03c-0.088,1.875-0.358,3.737-0.435,5.612- c-0.055,1.354,2.045,1.349,2.1,0c0.078-1.927,2.174-14.343-2.752-12.287c-2.184,0.912-1.81,4.159-1.566,6.012- c0.331,2.516,0.909,5.434,2.208,7.657C71.987,39.5,73.803,38.444,73.118,37.272L73.118,37.272z"/>- </g>- </g>- <g>- <path fill="#CADEE3" d="M75.588,35.598c0.71-1.279,1.728-6.902,3.235-4.692c1.59,2.4-1.726,4.262-2.804,4.947"/>- <g>- <path fill="#43AD91" d="M76.494,36.127c0.748-1.433,0.828-3.532,1.883-4.727c0.19-0.215-0.211,0.142-0.475,0- c0.02,0.01,0.196,0.349,0.232,0.445c0.169,0.451-0.036,0.914-0.316,1.272c-0.613,0.787-1.498,1.305-2.329,1.828- c-1.143,0.72-0.089,2.538,1.061,1.813c1.244-0.784,2.491-1.603,3.276-2.884c0.828-1.353,0.521-3.538-0.958-4.339- c-2.674-1.45-3.495,4.206-4.187,5.532C74.056,36.267,75.868,37.329,76.494,36.127L76.494,36.127z"/>- </g>- </g>- <g>- <g>- <path fill="#43AD91" d="M84.923,73.574c0.059,0.079,0.115,0.158,0.168,0.241c0.159,0.247,0.019-0.022,0.063,0.103- c0.098,0.273,0.008-0.133,0.009,0.013c0.034-0.194,0.039-0.238,0.015-0.133c0.083-0.177,0.1-0.219,0.05-0.126- c0.125-0.148,0.151-0.185,0.08-0.108c-0.078,0.069-0.043,0.042,0.104-0.08c-0.211,0.142,0.193-0.061,0.028-0.01- c-0.259,0.08,0.205-0.01,0.022,0.005c-0.072,0.006-0.146,0.002-0.218-0.004c0.455,0.033-0.342-0.16,0.059,0.019- c-0.079-0.035-0.277-0.186-0.005,0.027c-0.082-0.064-0.178-0.241,0.003,0.03c-0.051-0.094-0.035-0.054,0.045,0.12- c-0.027-0.105-0.024-0.061,0.009,0.134c-0.03-0.265-0.051,0.18-0.003,0.002c0.037-0.135-0.107,0.184,0.049-0.065- c0.065-0.092,0.063-0.091-0.005,0.004c0.044-0.05,0.09-0.099,0.137-0.146c-0.154,0.09-0.309,0.181-0.463,0.271- c-0.214,0.035-0.192,0.021-0.006,0.01c0.068-0.003,0.136-0.003,0.204,0c-0.021-0.003-0.043-0.007-0.064-0.01- c0.179,0.056,0.14,0.028-0.117-0.083c0.955,0.962,2.439-0.523,1.484-1.484c-0.452-0.455-1.11-0.58-1.729-0.503- c-0.639,0.079-1.083,0.505-1.362,1.077c-0.44,0.903-0.162,1.967,0.765,2.431c0.813,0.405,1.758,0.36,2.479-0.2- c0.843-0.653,0.56-1.861,0.013-2.593c-0.342-0.457-0.9-0.69-1.437-0.376C84.848,72.402,84.579,73.114,84.923,73.574z"/>- </g>- </g>-</g>-</svg>diff --git a/web/src/bundles/app.ts b/web/src/bundles/app.tsindex adac9dd353e..5b75af4dd70 100644--- a/web/src/bundles/app.ts+++ b/web/src/bundles/app.ts@@ -53,7 +53,6 @@ import "../../styles/lightbox.css";import "../../styles/popovers.css";import "../../styles/recent_view.css";import "../../styles/typing_notifications.css";-import "../../styles/hotspots.css";import "../../styles/dark_theme.css";import "../../styles/user_status.css";import "../../styles/widgets.css";diff --git a/web/src/hotkey.js b/web/src/hotkey.jsindex 2a493cda11a..9d25f0690ba 100644--- a/web/src/hotkey.js+++ b/web/src/hotkey.js@@ -24,7 +24,6 @@ import * as gear_menu from "./gear_menu";import * as giphy from "./giphy";import * as hash_util from "./hash_util";import * as hashchange from "./hashchange";-import * as hotspots from "./hotspots";import * as inbox_ui from "./inbox_ui";import * as lightbox from "./lightbox";import * as list_util from "./list_util";@@ -454,11 +453,6 @@ export function process_enter_key(e) {return true;}- if (hotspots.is_open()) {- $(e.target).find(".hotspot.overlay.show .hotspot-confirm").trigger("click");- return false;- }-if (emoji_picker.is_open()) {return emoji_picker.navigate("enter", e);}@@ -786,10 +780,6 @@ export function process_hotkey(e, hotkey) {return false;}- if (hotspots.is_open()) {- return false;- }-if (overlays.info_overlay_open()) {if (event_name === "show_shortcuts") {overlays.close_active();diff --git a/web/src/hotspots.ts b/web/src/hotspots.tsdeleted file mode 100644index 72144fe7611..00000000000--- a/web/src/hotspots.ts+++ /dev/null@@ -1,403 +0,0 @@-import $ from "jquery";-import _ from "lodash";-import assert from "minimalistic-assert";--import whale_image from "../images/hotspots/whale.svg";-import render_hotspot_icon from "../templates/hotspot_icon.hbs";-import render_hotspot_overlay from "../templates/hotspot_overlay.hbs";--import * as blueslip from "./blueslip";-import * as message_viewport from "./message_viewport";-import * as onboarding_steps from "./onboarding_steps";-import * as overlays from "./overlays";-import {current_user} from "./state_data";-import type {Hotspot, HotspotLocation, Placement, RawHotspot} from "./state_data";--// popover orientations-const TOP = "top";-const LEFT = "left";-const RIGHT = "right";-const BOTTOM = "bottom";-const LEFT_BOTTOM = "left_bottom";-const VIEWPORT_CENTER = "viewport_center";--// popover orientation can optionally be fixed here to override the-// defaults calculated by compute_placement.-const HOTSPOT_LOCATIONS = new Map<string, HotspotLocation>([- [- "intro_streams",- {- element: "#streams_header .left-sidebar-title .streams-tooltip-target",- offset_x: 1.3,- offset_y: 0.44,- },- ],- [- "intro_topics",- {- element: ".topic-name",- offset_x: 1,- offset_y: 0.4,- },- ],- [- "intro_gear",- {- element: "#personal-menu",- offset_x: 0.45,- offset_y: 1.15,- popover: LEFT_BOTTOM,- },- ],- [- "intro_compose",- {- element: "#new_conversation_button",- offset_x: 0.5,- offset_y: -0.7,- },- ],-]);--const meta: {- opened_hotspot_name: null | string;-} = {- opened_hotspot_name: null,-};--function compute_placement(- $elt: JQuery,- popover_height: number,- popover_width: number,- prefer_vertical_positioning: boolean,-): Placement {- const client_rect = $elt.get(0)!.getBoundingClientRect();- const distance_from_top = client_rect.top;- const distance_from_bottom = message_viewport.height() - client_rect.bottom;- const distance_from_left = client_rect.left;- const distance_from_right = message_viewport.width() - client_rect.right;-- const element_width = $elt.width()!;- const element_height = $elt.height()!;-- const elt_will_fit_horizontally =- distance_from_left + element_width / 2 > popover_width / 2 &&- distance_from_right + element_width / 2 > popover_width / 2;-- const elt_will_fit_vertically =- distance_from_bottom + element_height / 2 > popover_height / 2 &&- distance_from_top + element_height / 2 > popover_height / 2;-- // default to placing the popover in the center of the screen- let placement: Placement = "viewport_center";-- // prioritize left/right over top/bottom- if (distance_from_top > popover_height && elt_will_fit_horizontally) {- placement = "top";- }- if (distance_from_bottom > popover_height && elt_will_fit_horizontally) {- placement = "bottom";- }-- if (prefer_vertical_positioning && placement !== "viewport_center") {- // If vertical positioning is preferred and the popover fits in- // either top or bottom position then return.- return placement;- }-- if (distance_from_left > popover_width && elt_will_fit_vertically) {- placement = "left";- }- if (distance_from_right > popover_width && elt_will_fit_vertically) {- placement = "right";- }-- return placement;-}--export function post_hotspot_as_read(hotspot_name: string): void {- onboarding_steps.post_onboarding_step_as_read(hotspot_name);-}--function place_icon(hotspot: Hotspot): boolean {- const $element = $(hotspot.location.element);- const $icon = $(`#hotspot_${CSS.escape(hotspot.name)}_icon`);-- if (- $element.length === 0 ||- $element.css("display") === "none" ||- !$element.is(":visible") ||- $element.is(":hidden")- ) {- $icon.css("display", "none");- return false;- }-- const offset = {- top: $element.outerHeight()! * hotspot.location.offset_y,- left: $element.outerWidth()! * hotspot.location.offset_x,- };- const client_rect = $element.get(0)!.getBoundingClientRect();- const placement = {- top: client_rect.top + offset.top,- left: client_rect.left + offset.left,- };- $icon.css("display", "block");- $icon.css(placement);- return true;-}--function place_popover(hotspot: Hotspot): void {- const popover_width = $(- `#hotspot_${CSS.escape(hotspot.name)}_overlay .hotspot-popover`,- ).outerWidth()!;- const popover_height = $(- `#hotspot_${CSS.escape(hotspot.name)}_overlay .hotspot-popover`,- ).outerHeight()!;- const el_width = $(hotspot.location.element).outerWidth()!;- const el_height = $(hotspot.location.element).outerHeight()!;-- const arrow_offset = 20;-- let popover_offset;- let arrow_placement;- const orientation =- hotspot.location.popover ??- compute_placement($(hotspot.location.element), popover_height, popover_width, false);-- switch (orientation) {- case TOP:- popover_offset = {- top: -(popover_height + arrow_offset),- left: el_width / 2 - popover_width / 2,- };- arrow_placement = "bottom";- break;-- case LEFT:- popover_offset = {- top: el_height / 2 - popover_height / 2,- left: -(popover_width + arrow_offset),- };- arrow_placement = "right";- break;-- case BOTTOM:- popover_offset = {- top: el_height + arrow_offset,- left: el_width / 2 - popover_width / 2,- };- arrow_placement = "top";- break;-- case RIGHT:- popover_offset = {- top: el_height / 2 - popover_height / 2,- left: el_width + arrow_offset,- };- arrow_placement = "left";- break;-- case LEFT_BOTTOM:- popover_offset = {- top: 0,- left: -(popover_width + arrow_offset / 2),- };- arrow_placement = "";- break;-- case VIEWPORT_CENTER:- popover_offset = {- top: el_height / 2,- left: el_width / 2,- };- arrow_placement = "";- break;-- default:- blueslip.error("Invalid popover placement value for hotspot", {name: hotspot.name});- return;- }-- // position arrow- arrow_placement = "arrow-" + arrow_placement;- $(`#hotspot_${CSS.escape(hotspot.name)}_overlay .hotspot-popover`)- .removeClass("arrow-top arrow-left arrow-bottom arrow-right")- .addClass(arrow_placement);-- // position popover- let popover_placement;- if (orientation === VIEWPORT_CENTER) {- popover_placement = {- top: "45%",- left: "50%",- transform: "translate(-50%, -50%)",- };- } else {- const client_rect = $(hotspot.location.element).get(0)!.getBoundingClientRect();- popover_placement = {- top: client_rect.top + popover_offset.top,- left: client_rect.left + popover_offset.left,- transform: "",- };- }-- $(`#hotspot_${CSS.escape(hotspot.name)}_overlay .hotspot-popover`).css(popover_placement);-}--function insert_hotspot_into_DOM(hotspot: Hotspot): void {- const hotspot_overlay_HTML = render_hotspot_overlay({- name: hotspot.name,- title: hotspot.title,- description: hotspot.description,- img: whale_image,- });-- const hotspot_icon_HTML = render_hotspot_icon({- name: hotspot.name,- });-- setTimeout(() => {- if (!hotspot.has_trigger) {- $("body").prepend($(hotspot_icon_HTML));- }- $("body").prepend($(hotspot_overlay_HTML));- if (hotspot.has_trigger || place_icon(hotspot)) {- place_popover(hotspot);- }-- // reposition on any event that might update the UI- for (const event_name of ["resize", "scroll", "onkeydown", "click"]) {- window.addEventListener(- event_name,- _.debounce(() => {- if (hotspot.has_trigger || place_icon(hotspot)) {- place_popover(hotspot);- }- }, 10),- true,- );- }- }, hotspot.delay * 1000);-}--export function is_open(): boolean {- return meta.opened_hotspot_name !== null;-}--function is_hotspot_displayed(hotspot_name: string): number {- return $(`#hotspot_${hotspot_name}_overlay`).length;-}--export function close_hotspot_icon($elem: JQuery): void {- $elem.animate(- {opacity: 0},- {- duration: 300,- done() {- $elem.css({display: "none"});- },- },- );-}--function close_read_hotspots(new_hotspots: RawHotspot[]): void {- const unwanted_hotspots = _.difference(- [...HOTSPOT_LOCATIONS.keys()],- new_hotspots.map((hotspot) => hotspot.name),- );-- for (const hotspot_name of unwanted_hotspots) {- close_hotspot_icon($(`#hotspot_${CSS.escape(hotspot_name)}_icon`));- $(`#hotspot_${CSS.escape(hotspot_name)}_overlay`).remove();- }-}--export function open_popover_if_hotspot_exist(- hotspot_name: string,- bind_element: HTMLElement,-): void {- const overlay_name = "hotspot_" + hotspot_name + "_overlay";-- if (is_hotspot_displayed(hotspot_name)) {- overlays.open_overlay({- name: overlay_name,- $overlay: $(`#${CSS.escape(overlay_name)}`),- on_close: function (this: HTMLElement) {- // close popover- $(this).css({display: "block"});- $(this).animate(- {opacity: 1},- {- duration: 300,- },- );- }.bind(bind_element),- });- }-}--export function load_new(new_hotspots: RawHotspot[]): void {- close_read_hotspots(new_hotspots);-- let hotspot_with_location: Hotspot;- for (const hotspot of new_hotspots) {- hotspot_with_location = {- ...hotspot,- location: HOTSPOT_LOCATIONS.get(hotspot.name)!,- };- if (!is_hotspot_displayed(hotspot.name)) {- insert_hotspot_into_DOM(hotspot_with_location);- }- }-}--export function initialize(): void {- load_new(onboarding_steps.filter_new_hotspots(current_user.onboarding_steps));-- // open- $("body").on("click", ".hotspot-icon", function (this: HTMLElement, e) {- // hide icon- close_hotspot_icon($(this));-- // show popover- const match_array = /^hotspot_(.*)_icon$/.exec(- $(e.target).closest(".hotspot-icon").attr("id")!,- );-- assert(match_array !== null);- const [, hotspot_name] = match_array;- open_popover_if_hotspot_exist(hotspot_name, this);-- meta.opened_hotspot_name = hotspot_name;- e.preventDefault();- e.stopPropagation();- });-- // confirm- $("body").on("click", ".hotspot.overlay .hotspot-confirm", function (e) {- e.preventDefault();- e.stopPropagation();-- const overlay_name = $(this).closest(".hotspot.overlay").attr("id")!;-- const match_array = /^hotspot_(.*)_overlay$/.exec(overlay_name);- assert(match_array !== null);- const [, hotspot_name] = match_array;-- // Comment below to disable marking hotspots as read in production- post_hotspot_as_read(hotspot_name);-- overlays.close_overlay(overlay_name);- $(`#hotspot_${CSS.escape(hotspot_name)}_icon`).remove();-- // We are removing the hotspot overlay after it's read as it will help us avoid- // multiple copies of the hotspots when ALWAYS_SEND_ALL_HOTSPOTS is set to true.- $(`#${overlay_name}`).remove();- });-- // stop propagation- $("body").on("click", ".hotspot.overlay .hotspot-popover", (e) => {- e.stopPropagation();- });-}diff --git a/web/src/onboarding_steps.ts b/web/src/onboarding_steps.tsindex d1b094f4413..933dfe5cdcc 100644--- a/web/src/onboarding_steps.ts+++ b/web/src/onboarding_steps.ts@@ -1,7 +1,7 @@import * as blueslip from "./blueslip";import * as channel from "./channel";import {current_user} from "./state_data";-import type {OnboardingStep, RawHotspot} from "./state_data";+import type {OnboardingStep} from "./state_data";export const ONE_TIME_NOTICES_TO_DISPLAY = new Set<string>();@@ -21,12 +21,6 @@ export function post_onboarding_step_as_read(onboarding_step_name: string): void});}-export function filter_new_hotspots(onboarding_steps: OnboardingStep[]): RawHotspot[] {- return onboarding_steps.flatMap((onboarding_step) =>- onboarding_step.type === "hotspot" ? [onboarding_step] : [],- );-}-export function update_notice_to_display(onboarding_steps: OnboardingStep[]): void {ONE_TIME_NOTICES_TO_DISPLAY.clear();diff --git a/web/src/server_events_dispatch.js b/web/src/server_events_dispatch.jsindex b1be13bb478..666f45f6974 100644--- a/web/src/server_events_dispatch.js+++ b/web/src/server_events_dispatch.js@@ -20,7 +20,6 @@ import * as emoji from "./emoji";import * as emoji_picker from "./emoji_picker";import * as gear_menu from "./gear_menu";import * as giphy from "./giphy";-import * as hotspots from "./hotspots";import * as information_density from "./information_density";import * as left_sidebar_navigation_area from "./left_sidebar_navigation_area";import * as linkifiers from "./linkifiers";@@ -147,7 +146,6 @@ export function dispatch_normal_event(event) {break;case "onboarding_steps":- hotspots.load_new(onboarding_steps.filter_new_hotspots(event.onboarding_steps));onboarding_steps.update_notice_to_display(event.onboarding_steps);current_user.onboarding_steps = current_user.onboarding_steps? [...current_user.onboarding_steps, ...event.onboarding_steps]diff --git a/web/src/state_data.ts b/web/src/state_data.tsindex d0d6bd6b1f1..53cc6cc2fd4 100644--- a/web/src/state_data.ts+++ b/web/src/state_data.ts@@ -21,49 +21,17 @@ export const narrow_term_schema = z.object({export type NarrowTerm = z.output<typeof narrow_term_schema>;// Sync this with zerver.lib.events.do_events_register.-const placement_schema = z.enum([- "top",- "left",- "right",- "bottom",- "left_bottom",- "viewport_center",-]);--export type Placement = z.infer<typeof placement_schema>;--const hotspot_location_schema = z.object({- element: z.string(),- offset_x: z.number(),- offset_y: z.number(),- popover: z.optional(placement_schema),-});--export type HotspotLocation = z.output<typeof hotspot_location_schema>;--const raw_hotspot_schema = z.object({- delay: z.number(),- description: z.string(),- has_trigger: z.boolean(),- name: z.string(),- title: z.string(),- type: z.literal("hotspot"),-});--export type RawHotspot = z.output<typeof raw_hotspot_schema>;--const hotspot_schema = raw_hotspot_schema.extend({- location: hotspot_location_schema,-});--export type Hotspot = z.output<typeof hotspot_schema>;-const one_time_notice_schema = z.object({name: z.string(),type: z.literal("one_time_notice"),});-const onboarding_step_schema = z.union([one_time_notice_schema, raw_hotspot_schema]);+/* We may introduce onboarding step of types other than 'one time notice'+in future. Earlier, we had 'hotspot' and 'one time notice' as the two+types. We can simply do:+const onboarding_step_schema = z.union([one_time_notice_schema, other_type_schema]);+to avoid major refactoring when new type is introduced in the future. */+const onboarding_step_schema = one_time_notice_schema;export type OnboardingStep = z.output<typeof onboarding_step_schema>;diff --git a/web/src/ui_init.js b/web/src/ui_init.jsindex 391cfa9347a..d6e415efbfb 100644--- a/web/src/ui_init.js+++ b/web/src/ui_init.js@@ -48,7 +48,6 @@ import * as gear_menu from "./gear_menu";import * as giphy from "./giphy";import * as hashchange from "./hashchange";import * as hotkey from "./hotkey";-import * as hotspots from "./hotspots";import * as i18n from "./i18n";import * as inbox_ui from "./inbox_ui";import * as information_density from "./information_density";@@ -877,7 +876,6 @@ export function initialize_everything(state_data) {drafts.initialize_ui();drafts_overlay_ui.initialize();onboarding_steps.initialize();- hotspots.initialize();typing.initialize();starred_messages_ui.initialize();user_status_ui.initialize();diff --git a/web/styles/dark_theme.css b/web/styles/dark_theme.cssindex 56f5e4f1f9d..ba55ff750e3 100644--- a/web/styles/dark_theme.css+++ b/web/styles/dark_theme.css@@ -923,14 +923,6 @@}}- /* Popover: */- .hotspot.overlay .hotspot-popover {- border-color: hsl(0deg 0% 0% / 20%) !important;- /* Based on the `.hotspot-popover` shadow in `hotspots.css`, but with a new- color. */- box-shadow: 0 5px 10px hsl(0deg 0% 0% / 40%);- }-#user-profile-modal {#default-section {.default-field {@@ -962,47 +954,6 @@}}- /* Arrows: */- .hotspot.overlay {- .hotspot-popover.arrow-right::before {- border-left-color: hsl(0deg 0% 0% / 20%);- }-- .hotspot-popover.arrow-right::after {- border-left-color: hsl(212deg 28% 18%);- }-- .hotspot-popover.arrow-bottom::before {- border-top-color: hsl(0deg 0% 0% / 20%);- }-- .hotspot-popover.arrow-bottom::after {- border-top-color: hsl(212deg 28% 18%);- }-- .hotspot-popover.arrow-left::before {- border-right-color: hsl(0deg 0% 0% / 20%);- }-- .hotspot-popover.arrow-left::after {- border-right-color: hsl(212deg 28% 18%);- }-- .hotspot-popover.arrow-top::before {- border-bottom-color: hsl(0deg 0% 0% / 20%);- }-- .hotspot-popover.arrow-top::after {- border-bottom-color: hsl(212deg 28% 18%);- }- }-- /* Content: */- .hotspot.overlay .hotspot-popover .hotspot-popover-content,- .hotspot.overlay .hotspot-popover .hotspot-popover-bottom {- background-color: var(--color-background);- }-.top-messages-logo {opacity: 0.7;}diff --git a/web/styles/hotspots.css b/web/styles/hotspots.cssdeleted file mode 100644index e38b074f65e..00000000000--- a/web/styles/hotspots.css+++ /dev/null@@ -1,245 +0,0 @@-/* icon */-.hotspot-icon {- position: fixed;- cursor: pointer;- z-index: 100;-- .dot {- width: 25px;- height: 25px;- margin: -12.5px 0 0 -12.5px;- border-radius: 50%;- position: absolute;- background-color: hsl(196deg 100% 82% / 30%);- border: 2px solid var(--color-outline-focus);- top: 50%;- left: 50%;- }-- .pulse {- width: 25px;- height: 25px;- margin: -11.5px 0 0 -11.5px;- position: absolute;- top: 50%;- left: 50%;- background-color: hsl(0deg 0% 100%);- border-radius: 50%;- border: 1px solid hsl(205deg 100% 70%);- transform: scale(2.2);- opacity: 0;- animation: pulsate 5s ease-out 0.375s 5;- }-- .bounce {- animation: bounce 5s 5;-- .bounce-icon {- position: absolute;- left: -5px;- bottom: 3px;- transform: rotate(7deg);- color: var(--color-outline-focus);- font-size: 2.75em;- font-weight: 600;- }- }-}--@keyframes pulsate {- 0% {- transform: scale(1);- opacity: 0.8;- }-- 30%,- 100% {- transform: scale(2.2);- opacity: 0;- }-}--@keyframes bounce {- 0%,- 15%,- 100% {- transform: translateY(0);- }-- 7.5% {- transform: translateY(4px);- }-}--/* popover */-.hotspot.overlay {- z-index: 104;- background-color: hsl(191deg 7% 20% / 15%);-- .hotspot-popover {- position: fixed;- width: 250px;- text-align: left;- box-shadow: 0 5px 10px hsl(223deg 4% 54% / 20%);- border: 1px solid hsl(0deg 0% 80%);- border-radius: 4px;-- /* arrows */- &::after,- &::before {- border: solid transparent;- content: "";- height: 0;- width: 0;- position: absolute;- pointer-events: none;- }-- &::after {- border-width: 12px;- }-- &::before {- border-width: 13px;- }-- &.arrow-top {- &::before,- &::after {- bottom: 100%;- right: 50%;- }-- &::after {- border-bottom-color: hsl(164deg 44% 47%);- margin-right: -12px;- }-- &::before {- border-bottom-color: hsl(0deg 0% 80%);- margin-right: -13px;- }- }-- &.arrow-left {- &::before,- &::after {- right: 100%;- top: 50%;- }-- &::after {- border-right-color: hsl(0deg 0% 100%);- margin-top: -12px;- }-- &::before {- border-right-color: hsl(0deg 0% 80%);- margin-top: -13px;- }- }-- &.arrow-bottom {- &::before,- &::after {- top: 100%;- right: 50%;- }-- &::after {- border-top-color: hsl(0deg 0% 100%);- margin-right: -12px;- }-- &::before {- border-top-color: hsl(0deg 0% 80%);- margin-right: -13px;- }- }-- &.arrow-right {- &::before,- &::after {- left: 100%;- top: 50%;- }-- &::after {- border-left-color: hsl(0deg 0% 100%);- margin-top: -12px;- }-- &::before {- border-left-color: hsl(0deg 0% 80%);- margin-top: -13px;- }- }- }-- .hotspot-popover-top {- padding: 0 15px;- border-top-left-radius: 4px;- border-top-right-radius: 4px;- background-color: hsl(164deg 44% 47%);- }-- .hotspot-title {- margin: 0;- font-size: 1.15em;- font-weight: 600;- color: hsl(0deg 0% 100%);- }-- .hotspot-popover-content {- background-color: hsl(0deg 0% 100%);- padding: 15px;- }-- .hotspot-popover-bottom {- background-color: hsl(0deg 0% 100%);- height: 90px;- border-bottom-left-radius: 4px;- border-bottom-right-radius: 4px;- }-- .hotspot-img {- position: absolute;- bottom: 10px;- left: 4px;- }-- .hotspot-confirm {- position: absolute;- bottom: 15px;- right: 15px;- }-}--.hotspot-img {- height: 83px;-}--.hotspot-confirm {- max-width: 125px;- max-height: 70px;- border: none;- font-size: 1.15em;- font-weight: 600;- color: hsl(0deg 0% 100%);- background-color: hsl(164deg 44% 47%);- border-radius: 4px;- white-space: normal;- padding: 7px 20px;- outline: none;-- &:hover {- background-color: hsl(164deg 44% 56%);- }-}--/* individual icon z-indexing */-#hotspot_intro_streams_icon,-#hotspot_intro_topics_icon,-#hotspot_intro_gear_icon {- z-index: 103;-}diff --git a/web/templates/hotspot_icon.hbs b/web/templates/hotspot_icon.hbsdeleted file mode 100644index 87deca5e52a..00000000000--- a/web/templates/hotspot_icon.hbs+++ /dev/null@@ -1,5 +0,0 @@-<div class="hotspot-icon" id="hotspot_{{name}}_icon">- <span class="dot"></span>- <span class="pulse"></span>- <div class="bounce"><span class="bounce-icon">?</span></div>-</div>diff --git a/web/templates/hotspot_overlay.hbs b/web/templates/hotspot_overlay.hbsdeleted file mode 100644index f8a2d1fe89d..00000000000--- a/web/templates/hotspot_overlay.hbs+++ /dev/null@@ -1,14 +0,0 @@-<div id="hotspot_{{name}}_overlay" class="hotspot overlay" data-overlay="hotspot_{{name}}_overlay">- <div class="hotspot-popover">- <div class="hotspot-popover-top">- <h1 class="hotspot-title">{{title}}</h1>- </div>- <div class="hotspot-popover-content">- <p class="hotspot-description">{{description}}</p>- </div>- <div class="hotspot-popover-bottom">- <img class="hotspot-img" src="{{img}}" />- <button class="hotspot-confirm">{{t 'Got it!' }}</button>- </div>- </div>-</div>diff --git a/web/tests/dispatch.test.js b/web/tests/dispatch.test.jsindex ef04b161fb6..706436e0ba0 100644--- a/web/tests/dispatch.test.js+++ b/web/tests/dispatch.test.js@@ -32,7 +32,6 @@ const compose_pm_pill = mock_esm("../src/compose_pm_pill");const dark_theme = mock_esm("../src/dark_theme");const emoji_picker = mock_esm("../src/emoji_picker");const gear_menu = mock_esm("../src/gear_menu");-const hotspots = mock_esm("../src/hotspots");const information_density = mock_esm("../src/information_density");const linkifiers = mock_esm("../src/linkifiers");const message_events = mock_esm("../src/message_events");@@ -320,10 +319,9 @@ run_test("default_streams", ({override}) => {assert_same(args.realm_default_streams, event.default_streams);});-run_test("onboarding_steps", ({override}) => {+run_test("onboarding_steps", () => {current_user.onboarding_steps = [];const event = event_fixtures.onboarding_steps;- override(hotspots, "load_new", noop);dispatch(event);assert_same(current_user.onboarding_steps, event.onboarding_steps);});diff --git a/web/tests/hotkey.test.js b/web/tests/hotkey.test.jsindex b83b8b508ec..440fd3958d0 100644--- a/web/tests/hotkey.test.js+++ b/web/tests/hotkey.test.js@@ -88,10 +88,6 @@ const settings_data = mock_esm("../src/settings_data");const stream_list = mock_esm("../src/stream_list");const stream_settings_ui = mock_esm("../src/stream_settings_ui");-mock_esm("../src/hotspots", {- is_open: () => false,-});-mock_esm("../src/recent_view_ui", {is_in_focus: () => false,});diff --git a/web/tests/lib/events.js b/web/tests/lib/events.jsindex 57793476250..a1feb5e726d 100644--- a/web/tests/lib/events.js+++ b/web/tests/lib/events.js@@ -195,20 +195,12 @@ exports.fixtures = {type: "onboarding_steps",onboarding_steps: [{- type: "hotspot",- name: "topics",- title: "About topics",- description: "Topics are good.",- delay: 1.5,- has_trigger: false,+ type: "one_time_notice",+ name: "intro_inbox_view_modal",},{- type: "hotspot",- name: "compose",- title: "Compose box",- description: "This is where you compose messages.",- delay: 3.14159,- has_trigger: false,+ type: "one_time_notice",+ name: "intro_recent_view_modal",},],},diff --git a/zerver/lib/event_schema.py b/zerver/lib/event_schema.pyindex 7ce886d658e..b3e49b7c604 100644--- a/zerver/lib/event_schema.py+++ b/zerver/lib/event_schema.py@@ -338,13 +338,7 @@ _onboarding_steps = DictType(required_keys=[("type", str),("name", str),- ],- optional_keys=[- ("title", str),- ("description", str),- ("delay", NumberType()),- ("has_trigger", bool),- ],+ ])onboarding_steps_event = event_dict_type(diff --git a/zerver/lib/hotspots.py b/zerver/lib/hotspots.pyindex 4fcbe8a4cfe..df749a209b5 100644--- a/zerver/lib/hotspots.py+++ b/zerver/lib/hotspots.py@@ -1,73 +1,13 @@# See https://zulip.readthedocs.io/en/latest/subsystems/hotspots.html# for documentation on this subsystem.from dataclasses import dataclass-from typing import Any, Dict, List, Optional, Union+from typing import Any, Dict, Listfrom django.conf import settings-from django.utils.translation import gettext_lazy-from django_stubs_ext import StrPromisefrom zerver.models import OnboardingStep, UserProfile-@dataclass-class Hotspot:- name: str- title: Optional[StrPromise]- description: Optional[StrPromise]- has_trigger: bool = False-- def to_dict(self, delay: float = 0) -> Dict[str, Union[str, float, bool]]:- return {- "type": "hotspot",- "name": self.name,- "title": str(self.title),- "description": str(self.description),- "delay": delay,- "has_trigger": self.has_trigger,- }---INTRO_HOTSPOTS: List[Hotspot] = [- Hotspot(- name="intro_streams",- title=gettext_lazy("Catch up on a channel"),- description=gettext_lazy(- "Messages sent to a channel are seen by everyone subscribed "- "to that channel. Try clicking on one of the channel links below."- ),- ),- Hotspot(- name="intro_topics",- title=gettext_lazy("Topics"),- description=gettext_lazy(- "Every message has a topic. Topics keep conversations "- "easy to follow, and make it easy to reply to conversations that start "- "while you are offline."- ),- ),- Hotspot(- # In theory, this should be renamed to intro_personal, since- # it's no longer attached to the gear menu, but renaming these- # requires a migration that is not worth doing at this time.- name="intro_gear",- title=gettext_lazy("Settings"),- description=gettext_lazy("Go to Settings to configure your notifications and preferences."),- ),- Hotspot(- name="intro_compose",- title=gettext_lazy("Compose"),- description=gettext_lazy(- "Click here to start a new conversation. Pick a topic "- "(2-3 words is best), and give it a go!"- ),- ),-]---NON_INTRO_HOTSPOTS: List[Hotspot] = []--@dataclassclass OneTimeNotice:name: str@@ -94,24 +34,17 @@ ONE_TIME_NOTICES: List[OneTimeNotice] = [),]-# We would most likely implement new hotspots in the future that aren't-# a part of the initial tutorial. To that end, classifying them into-# categories which are aggregated in ALL_HOTSPOTS, seems like a good start.-ALL_HOTSPOTS = [*INTRO_HOTSPOTS, *NON_INTRO_HOTSPOTS]-ALL_ONBOARDING_STEPS: List[Union[Hotspot, OneTimeNotice]] = [*ALL_HOTSPOTS, *ONE_TIME_NOTICES]+# We may introduce onboarding step of types other than 'one time notice'+# in future. Earlier, we had 'hotspot' and 'one time notice' as the two+# types. We can simply do:+# ALL_ONBOARDING_STEPS: List[Union[OneTimeNotice, OtherType]]+# to avoid API changes when new type is introduced in the future.+ALL_ONBOARDING_STEPS: List[OneTimeNotice] = ONE_TIME_NOTICESdef get_next_onboarding_steps(user: UserProfile) -> List[Dict[str, Any]]:- # For manual testing, it can be convenient to set- # ALWAYS_SEND_ALL_HOTSPOTS=True in `zproject/dev_settings.py` to- # make it easy to click on all of the hotspots.- #- # Since this is just for development purposes, it's convenient for us to send- # all the hotspots rather than any specific category.- if settings.ALWAYS_SEND_ALL_HOTSPOTS:- return [hotspot.to_dict() for hotspot in ALL_HOTSPOTS]-- # If a Zulip server has disabled the tutorial, never send hotspots.+ # If a Zulip server has disabled the tutorial, never send any+ # onboarding steps.if not settings.TUTORIAL_ENABLED:return []@@ -119,25 +52,12 @@ def get_next_onboarding_steps(user: UserProfile) -> List[Dict[str, Any]]:OnboardingStep.objects.filter(user=user).values_list("onboarding_step", flat=True))- onboarding_steps: List[Dict[str, Any]] = [hotspot.to_dict() for hotspot in NON_INTRO_HOTSPOTS]-+ onboarding_steps: List[Dict[str, Any]] = []for one_time_notice in ONE_TIME_NOTICES:if one_time_notice.name in seen_onboarding_steps:continueonboarding_steps.append(one_time_notice.to_dict())- if user.tutorial_status == UserProfile.TUTORIAL_FINISHED:- return onboarding_steps-- for hotspot in INTRO_HOTSPOTS:- if hotspot.name in seen_onboarding_steps:- continue-- onboarding_steps.append(hotspot.to_dict(delay=0.5))- return onboarding_steps-- user.tutorial_status = UserProfile.TUTORIAL_FINISHED- user.save(update_fields=["tutorial_status"])return onboarding_stepsdiff --git a/zerver/openapi/zulip.yaml b/zerver/openapi/zulip.yamlindex ef65e3c9ddf..1f91bf0c73d 100644--- a/zerver/openapi/zulip.yaml+++ b/zerver/openapi/zulip.yaml@@ -2325,14 +2325,6 @@ paths:"type": "onboarding_steps","onboarding_steps":[- {- "type": "hotspot",- "name": "intro_compose",- "title": "Compose",- "description": "Click here to start a new conversation. Pick a topic (2-3 words is best), and give it a go!",- "delay": 0.5,- "has_trigger": false,- },{"type": "one_time_notice","name": "visibility_policy_banner",@@ -19854,43 +19846,15 @@ components:type:type: stringdescription: |- The type of the onboarding step. Valid values are either- `"hotspot"` or `"one_time_notice"`.+ The type of the onboarding step. Valid value is `"one_time_notice"`.++ **Changes**: Removed type `"hotspot"` in Zulip 9.0 (feature level 259).- **Changes**: New in Zulip 8.0 (feature level 233).+ New in Zulip 8.0 (feature level 233).name:type: stringdescription: |The name of the onboarding step.- title:- type: string- description: |- The title of the onboarding step, as displayed to the user.-- Only present for onboarding steps with type `"hotspot"`.- description:- type: string- description: |- The description of the onboarding step, as displayed to the- user.-- Only present for onboarding steps with type `"hotspot"`.- delay:- type: number- description: |- The delay, in seconds, after which the user should be shown- the onboarding step.-- Only present for onboarding steps with type `"hotspot"`.- has_trigger:- type: boolean- description: |- Identifies if the onboarding step will activate only when some- specific event occurs.-- Only present for onboarding steps with type `"hotspot"`.-- **Changes**: New in Zulip 8.0 (feature level 230).RealmAuthenticationMethod:type: objectproperties:diff --git a/zerver/tests/test_events.py b/zerver/tests/test_events.pyindex ce20c4ec456..250cf7e2f5c 100644--- a/zerver/tests/test_events.py+++ b/zerver/tests/test_events.py@@ -2930,11 +2930,8 @@ class NormalActionsTest(BaseAction):check_realm_deactivated("events[0]", events[0])def test_do_mark_onboarding_step_as_read(self) -> None:- self.user_profile.tutorial_status = UserProfile.TUTORIAL_WAITING- self.user_profile.save(update_fields=["tutorial_status"])-with self.verify_action() as events:- do_mark_onboarding_step_as_read(self.user_profile, "intro_streams")+ do_mark_onboarding_step_as_read(self.user_profile, "intro_inbox_view_modal")check_onboarding_steps("events[0]", events[0])def test_rename_stream(self) -> None:diff --git a/zerver/tests/test_hotspots.py b/zerver/tests/test_hotspots.pyindex 0da8ec6e37a..2ad8c1ba3c0 100644--- a/zerver/tests/test_hotspots.py+++ b/zerver/tests/test_hotspots.py@@ -2,15 +2,9 @@ from typing_extensions import overridefrom zerver.actions.create_user import do_create_userfrom zerver.actions.hotspots import do_mark_onboarding_step_as_read-from zerver.lib.hotspots import (- ALL_HOTSPOTS,- INTRO_HOTSPOTS,- NON_INTRO_HOTSPOTS,- ONE_TIME_NOTICES,- get_next_onboarding_steps,-)+from zerver.lib.hotspots import ONE_TIME_NOTICES, get_next_onboarding_stepsfrom zerver.lib.test_classes import ZulipTestCase-from zerver.models import OnboardingStep, UserProfile+from zerver.models import OnboardingStepfrom zerver.models.realms import get_realm@@ -24,77 +18,50 @@ class TestGetNextOnboardingSteps(ZulipTestCase):"[email protected]", "password", get_realm("zulip"), "user", acting_user=None)- def test_first_hotspot(self) -> None:- for hotspot in NON_INTRO_HOTSPOTS: # nocoverage- do_mark_onboarding_step_as_read(self.user, hotspot.name)-- for one_time_notice in ONE_TIME_NOTICES: # nocoverage- do_mark_onboarding_step_as_read(self.user, one_time_notice.name)-- hotspots = get_next_onboarding_steps(self.user)- self.assert_length(hotspots, 1)- self.assertEqual(hotspots[0]["name"], "intro_streams")-def test_some_done_some_not(self) -> None:- do_mark_onboarding_step_as_read(self.user, "intro_streams")- do_mark_onboarding_step_as_read(self.user, "intro_compose")+ do_mark_onboarding_step_as_read(self.user, "visibility_policy_banner")+ do_mark_onboarding_step_as_read(self.user, "intro_inbox_view_modal")onboarding_steps = get_next_onboarding_steps(self.user)- self.assert_length(onboarding_steps, 5)- self.assertEqual(onboarding_steps[0]["name"], "visibility_policy_banner")- self.assertEqual(onboarding_steps[1]["name"], "intro_inbox_view_modal")- self.assertEqual(onboarding_steps[2]["name"], "intro_recent_view_modal")- self.assertEqual(onboarding_steps[3]["name"], "first_stream_created_banner")- self.assertEqual(onboarding_steps[4]["name"], "intro_topics")-- def test_all_onboarding_steps_done(self) -> None:- with self.settings(TUTORIAL_ENABLED=True):- self.assertNotEqual(self.user.tutorial_status, UserProfile.TUTORIAL_FINISHED)- for hotspot in NON_INTRO_HOTSPOTS: # nocoverage- do_mark_onboarding_step_as_read(self.user, hotspot.name)+ self.assert_length(onboarding_steps, 2)+ self.assertEqual(onboarding_steps[0]["name"], "intro_recent_view_modal")+ self.assertEqual(onboarding_steps[1]["name"], "first_stream_created_banner")- self.assertNotEqual(self.user.tutorial_status, UserProfile.TUTORIAL_FINISHED)- for one_time_notice in ONE_TIME_NOTICES: # nocoverage- do_mark_onboarding_step_as_read(self.user, one_time_notice.name)-- self.assertNotEqual(self.user.tutorial_status, UserProfile.TUTORIAL_FINISHED)- for hotspot in INTRO_HOTSPOTS:- do_mark_onboarding_step_as_read(self.user, hotspot.name)+ with self.settings(TUTORIAL_ENABLED=False):+ onboarding_steps = get_next_onboarding_steps(self.user)+ self.assert_length(onboarding_steps, 0)- self.assertEqual(self.user.tutorial_status, UserProfile.TUTORIAL_FINISHED)- self.assertEqual(get_next_onboarding_steps(self.user), [])+ def test_all_onboarding_steps_done(self) -> None:+ self.assertNotEqual(get_next_onboarding_steps(self.user), [])- def test_send_all_hotspots(self) -> None:- with self.settings(DEVELOPMENT=True, ALWAYS_SEND_ALL_HOTSPOTS=True):- self.assert_length(ALL_HOTSPOTS, len(get_next_onboarding_steps(self.user)))+ for one_time_notice in ONE_TIME_NOTICES: # nocoverage+ do_mark_onboarding_step_as_read(self.user, one_time_notice.name)- def test_tutorial_disabled(self) -> None:- with self.settings(TUTORIAL_ENABLED=False):- self.assertEqual(get_next_onboarding_steps(self.user), [])+ self.assertEqual(get_next_onboarding_steps(self.user), [])class TestOnboardingSteps(ZulipTestCase):def test_do_mark_onboarding_step_as_read(self) -> None:user = self.example_user("hamlet")- do_mark_onboarding_step_as_read(user, "intro_compose")+ do_mark_onboarding_step_as_read(user, "intro_inbox_view_modal")self.assertEqual(list(OnboardingStep.objects.filter(user=user).values_list("onboarding_step", flat=True)),- ["intro_compose"],+ ["intro_inbox_view_modal"],)def test_onboarding_steps_url_endpoint(self) -> None:user = self.example_user("hamlet")self.login_user(user)result = self.client_post(- "/json/users/me/onboarding_steps", {"onboarding_step": "intro_streams"}+ "/json/users/me/onboarding_steps", {"onboarding_step": "intro_recent_view_modal"})self.assert_json_success(result)self.assertEqual(list(OnboardingStep.objects.filter(user=user).values_list("onboarding_step", flat=True)),- ["intro_streams"],+ ["intro_recent_view_modal"],)result = self.client_post("/json/users/me/onboarding_steps", {"onboarding_step": "invalid"})@@ -103,5 +70,5 @@ class TestOnboardingSteps(ZulipTestCase):list(OnboardingStep.objects.filter(user=user).values_list("onboarding_step", flat=True)),- ["intro_streams"],+ ["intro_recent_view_modal"],)diff --git a/zerver/tests/test_import_export.py b/zerver/tests/test_import_export.pyindex b94b6077bbc..9e685272f5e 100644--- a/zerver/tests/test_import_export.py+++ b/zerver/tests/test_import_export.py@@ -836,10 +836,10 @@ class RealmImportExportTest(ExportFile):# Verify strange invariant for Reaction/RealmEmoji.self.assertEqual(reaction.emoji_code, str(realm_emoji.id))- # data to test import of hotspots+ # data to test import of onboaring stepOnboardingStep.objects.create(user=sample_user,- onboarding_step="intro_streams",+ onboarding_step="intro_inbox_view_modal",)# data to test import of muted topic@@ -1232,13 +1232,16 @@ class RealmImportExportTest(ExportFile):self.assertEqual(tups, {("hawaii", cordelia.full_name)})return tups- # test userhotspot+ # test onboarding step@getter- def get_user_hotspots(r: Realm) -> Set[str]:+ def get_onboarding_steps(r: Realm) -> Set[str]:user_id = get_user_id(r, "King Hamlet")- hotspots = OnboardingStep.objects.filter(user_id=user_id)- user_hotspots = {hotspot.onboarding_step for hotspot in hotspots}- return user_hotspots+ onboarding_steps = set(+ OnboardingStep.objects.filter(user_id=user_id).values_list(+ "onboarding_step", flat=True+ )+ )+ return onboarding_steps# test muted topics@getterdiff --git a/zerver/tests/test_users.py b/zerver/tests/test_users.pyindex 3485ec8b6e4..a0d79e3beb8 100644--- a/zerver/tests/test_users.py+++ b/zerver/tests/test_users.py@@ -1313,9 +1313,9 @@ class UserProfileTest(ZulipTestCase):OnboardingStep.objects.filter(user=cordelia).delete()OnboardingStep.objects.filter(user=iago).delete()- hotspots_completed = {"intro_streams", "intro_topics"}- for hotspot in hotspots_completed:- OnboardingStep.objects.create(user=cordelia, onboarding_step=hotspot)+ onboarding_steps_completed = {"intro_inbox_view_modal", "intro_recent_view_modal"}+ for onboarding_step in onboarding_steps_completed:+ OnboardingStep.objects.create(user=cordelia, onboarding_step=onboarding_step)# Check that we didn't send an realm_user update events to# users; this work is happening before the user account is@@ -1357,10 +1357,10 @@ class UserProfileTest(ZulipTestCase):self.assertEqual(cordelia.enter_sends, False)self.assertEqual(hamlet.enter_sends, True)- hotspots = set(+ onboarding_steps = set(OnboardingStep.objects.filter(user=iago).values_list("onboarding_step", flat=True))- self.assertEqual(hotspots, hotspots_completed)+ self.assertEqual(onboarding_steps, onboarding_steps_completed)def test_copy_default_settings_from_realm_user_default(self) -> None:cordelia = self.example_user("cordelia")diff --git a/zproject/default_settings.py b/zproject/default_settings.pyindex 84f5a987bbb..f69f7f5fc2e 100644--- a/zproject/default_settings.py+++ b/zproject/default_settings.py@@ -310,12 +310,9 @@ RATE_LIMITING_RULES: Dict[str, List[Tuple[int, int]]] = {}# Two factor authentication is not yet implementation-completeTWO_FACTOR_AUTHENTICATION_ENABLED = False-# This is used to send all hotspots for convenient manual testing-# in development mode.-ALWAYS_SEND_ALL_HOTSPOTS = False--# The new user tutorial is enabled by default, but can be disabled for-# self-hosters who want to disable the tutorial entirely on their system.+# The new user tutorial can be disabled for self-hosters who want to+# disable the tutorial entirely on their system. Primarily useful for+# products embedding Zulip as their chat feature.TUTORIAL_ENABLED = True# We log emails in development environment for accessingdiff --git a/zproject/dev_settings.py b/zproject/dev_settings.pyindex 57c0268541a..5c132426cac 100644--- a/zproject/dev_settings.py+++ b/zproject/dev_settings.py@@ -121,9 +121,6 @@ PASSWORD_MIN_GUESSES = 0TWO_FACTOR_CALL_GATEWAY = "two_factor.gateways.fake.Fake"TWO_FACTOR_SMS_GATEWAY = "two_factor.gateways.fake.Fake"-# Set this True to send all hotspots in development-ALWAYS_SEND_ALL_HOTSPOTS = False-# FAKE_LDAP_MODE supports using a fake LDAP database in the# development environment, without needing an LDAP server!#diff --git a/zproject/prod_settings_template.py b/zproject/prod_settings_template.pyindex adc18a92cdd..289630c8edd 100644--- a/zproject/prod_settings_template.py+++ b/zproject/prod_settings_template.py@@ -824,7 +824,9 @@ ENABLE_GRAVATAR = True## to "" will disable the Camo integration.CAMO_URI = "/external_content/"-## Controls the tutorial popups for new users.+## Controls various features explaining Zulip to new users. Disabling+## this is only recommended for installations that are using a limited+## subset of the Zulip UI, such as embedding it in a larger app.# TUTORIAL_ENABLED = True## Controls whether Zulip will rate-limit user requests.