user_profile: Remove 'tutorial_status' field.

The 'tutorial_status' field on 'UserProfile' model is
no longer used to show onboarding tutorial.

This commit removes the 'tutorial_status' field,
'POST users/me/tutorial_status' endpoint, and
'needs_tutorial' parameter in 'page_params'.

Fixes part of zulip#30043.
This commit is contained in:
Prakhar Pratyush
2024-07-25 12:37:44 +05:30
committed by Tim Abbott
parent ee806c49b9
commit 52a9846cdf
19 changed files with 26 additions and 124 deletions

View File

@@ -2,27 +2,18 @@ import $ from "jquery";
import * as blueslip from "./blueslip";
import * as loading from "./loading";
import {page_params} from "./page_params";
import * as util from "./util";
export let page_load_time: number | undefined;
// Miscellaneous early setup.
$(() => {
if (util.is_mobile()) {
// Disable the tutorial; it's ugly on mobile.
page_params.needs_tutorial = false;
}
page_load_time = Date.now();
// Display loading indicator. This disappears after the first
// get_events completes.
if (!page_params.needs_tutorial) {
loading.make_indicator($("#page_loading_indicator"), {
abs_positioned: true,
});
}
loading.make_indicator($("#page_loading_indicator"), {
abs_positioned: true,
});
$.fn.get_offset_to_window = function () {
return this[0]!.getBoundingClientRect();