Remove obsolete features

Removes d.tech institution-specific customizations, CBL grade
calculation, changelogs, remote configuration, grade calculation,
external/prerelease branches, and more.

Change-Id: I199b489f7395d36f97965e281b91895dae263006
Reviewed-on: https://src.jottocraft.com/c/dtps/+/137
Reviewed-by: spike <[email protected]>
diff --git a/scripts/assignments.js b/scripts/assignments.js
index 7df3e6f..e4169cd 100644
--- a/scripts/assignments.js
+++ b/scripts/assignments.js
@@ -78,25 +78,7 @@
 dtps.renderAssignmentScore = function (assignment) {

     var scoreHTML = "";

 

-    const useRubricGrades = dtpsLMS.useRubricGrades instanceof Array ? dtpsLMS.useRubricGrades.includes(dtps.classes[assignment.class].id) : dtpsLMS.useRubricGrades;

-

-    //Use rubric score over points score if possible

-    if (useRubricGrades && assignment.rubric) {

-        var rubricHTML = [];

-

-        assignment.rubric.forEach(rubricItem => {

-            if (rubricItem.score !== undefined) {

-                rubricHTML.push(/*html*/`

-                    <div title="${rubricItem.title}" style="color: ${rubricItem.color || "var(--text)"};">

-                        ${rubricItem.score}

-                    </div>

-                `);

-            }

-        });

-

-        if (rubricHTML.length) scoreHTML = `<div class="dtpsRubricScore">${rubricHTML.join("")}</div>`;

-

-    } else if (!useRubricGrades && (assignment.grade || (assignment.grade == 0))) {

+    if (assignment.grade || (assignment.grade == 0)) {

         scoreHTML = /*html*/`

             <div class="assignmentGrade">

                 <div class="grade">${Number(assignment.grade.toFixed(2))}</div>

@@ -185,7 +167,6 @@
         jQuery(".classContent").html(/*html*/`

             <div style="letter-spacing: 0px;">

                 <div style="float: left; width: 45%; display: inline-block;" class="dash">

-                    <div id="remoteUpdateImportant"></div>

                     ${dtps.leftDashboard.map(dashboardItem => {

             return dashboardContainerHTML(dashboardItem);

         }).join("")}

@@ -359,18 +340,6 @@
     //Get updates HTML

     var updatesHTML = "";

 

-    if (dtps.remoteConfig.remoteUpdate.active && (dtps.remoteConfig.remoteUpdate.host ? dtps.remoteConfig.remoteUpdate.host == window.location.host : true)) {

-        $("#remoteUpdateImportant").html(/*html*/`

-            <div style="cursor: auto; padding: 20px; --classColor: var(--secText);" class="announcement card open">

-                <div class="className">

-                    <img src="${dtps.baseURL + "/icon.svg"}" style="vertical-align: middle;width: 22px;margin-right: 5px;" />

-                    <span style="font-weight: bold; vertical-align: middle; color: var(--text); font-size: 18px;">${dtps.remoteConfig.remoteUpdate.title}</span>

-                </div>

-                ${dtps.remoteConfig.remoteUpdate.html}

-            </div>

-        `);

-    }

-

     if (dateSelected && (dtps.selectedClass == "dash")) {

         return jQuery(".classContent .dash .updatesStream").html(/*html*/`

             <div style="cursor: auto; padding: 20px; --classColor: var(--secText);" class="announcement card open">

@@ -1072,7 +1041,7 @@
     })

 

     //Grade calculation summary

-    var gradeCalcSummary = /*html*/`

+    var gradesSummary = /*html*/`

         <div style="--classColor: ${dtps.classes[classNum].color}" class="card">

             <h3 class="gradeTitle">

                 Grade Summary

@@ -1092,13 +1061,6 @@
             <div style="${dtps.gradebookExpanded ? "" : "display: none;"}" id="genericClassGradeMore">

                 <br />

 

-                ${dtps.classes[classNum].previousLetter ? /*html*/`

-                    <h5 class="smallStat">

-                        Previous Grade

-                        <div class="numFont">${dtps.classes[classNum].previousLetter}</div>

-                    </h5>

-                ` : ``}

-

                 <h5 class="smallStat">

                     Points

                     <div class="numFont fraction">

@@ -1124,7 +1086,7 @@
 

     //Render HTML

     if ((dtps.selectedClass == classNum) && (dtps.selectedContent == "grades")) {

-        $(".classContent").html(gradeCalcSummary + assignmentHTML);

+        $(".classContent").html(gradesSummary + assignmentHTML);

     }

 }

 

@@ -1142,14 +1104,7 @@
 }

 

 fluid.externalScreens.gradebook = (courseID) => {

-    const courseLMSGradebookAllowed = dtpsLMS.lmsGradebookAllowlist ? dtpsLMS.lmsGradebookAllowlist.includes(courseID) : true;

-    if (dtpsLMS.gradebook && courseLMSGradebookAllowed && !((dtps.env == "dev") && (fluid.get("pref-debuggingGenericGradebook") == "true"))) {

-        //Handle LMS gradebook

-        dtps.showLMSGradebook(courseID);

-    } else if (dtpsLMS.genericGradebook || ((dtps.env == "dev") && (fluid.get("pref-debuggingGenericGradebook") == "true"))) {

-        //Generic gradebook script

-        dtps.gradebook(courseID);

-    }

+    dtps.gradebook(courseID);

 }

 

 //Type definitions

@@ -1221,7 +1176,6 @@
 * @property {string} title Title of the rubric item

 * @property {string} id Rubric item ID (only needs to be unique to this assignment)

 * @property {number} value Total amount of points possible

-* @property {string} [outcome] The ID of the outcome this rubric item is assessing. This is only used for grade calculation.

 * @property {string} [description] Rubric item description

 * @property {number} [score] Rubric assessment score in points

 * @property {string} [scoreName] Rubric assessment score name

diff --git a/scripts/core.js b/scripts/core.js
index 3df265d..38bc218 100644
--- a/scripts/core.js
+++ b/scripts/core.js
@@ -8,7 +8,7 @@
  */

 

 //Make sure DTPS isn't already loading

-if (typeof dtps !== "undefined") throw "Error: DTPS is already loading";

+if (typeof dtps !== "undefined") throw new Error("Error: DTPS is already loading");

 

 /**

  * Global DTPS object

@@ -24,7 +24,7 @@
  * @property {boolean} unstable This is true if loading an unstable version of DTPS

  * @property {boolean} gradebookExpanded True if gradebook details (Show more...) is open. Used in the generic gradebook and may be used in custom gradebook implementations.

  * @property {boolean} reloadPending True if the user has made changes that require a reload

- * @property {string|undefined} popup Popup to show when loaded. Either undefined (no popup), "firstrun", or "changelog". 

+ * @property {string|undefined} popup Popup to show when loaded. Either undefined (no popup) or "firstrun". 

  * @property {User} user Current user, fetched with dtps.init

  * @property {number|string} selectedClass The selected class number, or "dash" if the dashboard is selected. Set when the first screen is loaded in dtps.init.

  * @property {string} selectedContent The selected class content/tab. Set when the first class content is loaded. Defaults to "stream".

@@ -33,21 +33,18 @@
  * @property {DashboardItem[]} dashboardItems Array of items that can be shown on the dashboard

  * @property {DashboardItem[]} leftDashboard Items on the left side of the dashboard based on dtps.dashboardItems and user prefrences. Set in dtps.loadDashboardPrefs.

  * @property {DashboardItem[]} rightDashboard Items on the right side of the dashboard based on dtps.dashboardItems and user prefrences. Set in dtps.loadDashboardPrefs.

- * @property {object} remoteConfig Configuration variables that can be remotely changed

  * @property {boolean} searchScrollListener True if the search scroll listener has been added

- * @property {string} cblSpec A URL to the CBL specification document used by dangerous Power+ CBL features

  */

 var dtps = {

     ver: 3_09_2,

     readableVer: "v3.9.2",

-    env: new URL(window.dtpsBaseURL || "https://powerplus.app").hostname == "localhost" ? "dev" : window.jottocraftSatEnv || "prod",

+    env: new URL(window.dtpsBaseURL || "https://powerplus.app").hostname == "localhost" ? "dev" : "prod",

     classes: [],

     baseURL: window.dtpsBaseURL || "https://powerplus.app",

     unstable: window.dtpsBaseURL !== "https://powerplus.app",

     gradebookExpanded: false,

     reloadPending: false,

     updates: [],

-    cblSpec: "https://docs.google.com/document/d/1AO5OcQozr1HAt_gT-mfmv8A2ibUP2l3PHPYWoL3xivo/edit",

     dashboardItems: [

         {

             name: "Calendar",

@@ -74,20 +71,7 @@
             size: 250,

             defaultSide: "right"

         }

-    ],

-    remoteConfig: {

-        allowWhatIfGrades: true,

-        canvasRequestSpacing: 25,

-        debugClassID: "1455",

-        gradeCalculationEnabled: true,

-        loadingAlert: false,

-        remoteUpdate: {

-            title: null,

-            html: null,

-            host: null,

-            active: false

-        }

-    }

+    ]

 };

 

 //Load jQuery ASAP

@@ -151,75 +135,6 @@
 }

 

 /**

- * Fetches and displays the DTPS changelog modal

- * 

- * @param {number} fromVersion The previous version of DTPS installed. Will show popup changelogs since that version, if there aren't any, it will silently skip.

- * @param {boolean} draft True to show draft changelogs

- */

-dtps.changelog = function (fromVersion, draft = false) {

-    let changelogFetchURL;

-    if (fromVersion) {

-        //Check for popup w/ all previous important updates query

-        changelogFetchURL = `https://dev.jottocraft.com/api/issues?query=${encodeURIComponent(`project: RRS product: dtps rollout: released version code: ${fromVersion + 1} .. ${dtps.ver} popup: popup sort by: {version code} desc`)}&fields=summary,description,idReadable,customFields(projectCustomField(field(name)),value(name))`;

-    } else {

-        //Latest query

-        changelogFetchURL = `https://dev.jottocraft.com/api/issues?query=${encodeURIComponent(`project: RRS product: dtps rollout: ${draft ? "draft" : "released"} version code: * .. ${dtps.ver} sort by: {version code} desc`)}&fields=summary,description,idReadable,customFields(projectCustomField(field(name)),value(name))&$top=1`;

-    }

-

-    jQuery.getScript("https://cdnjs.cloudflare.com/ajax/libs/showdown/1.8.6/showdown.min.js", function () {

-        markdown = new showdown.Converter();

-        //Fetch changelog for the current release

-        jQuery.getJSON(changelogFetchURL, function (data) {

-            window.localStorage.setItem('dtps', dtps.ver);

-

-            let releasesHTML = [];

-

-            data.forEach(release => {

-                const releaseDate = release.customFields?.find(f => f.projectCustomField?.field?.name === "Release date")?.value;

-                const releaseDateFormatted = new Date(releaseDate).toLocaleDateString();

-

-                //Convert changelog to HTML and render in the changelog card

-                var changelogHTML = markdown.makeHtml(release.description);

-                releasesHTML.push(`

-                    <div style="display: flex; flex-direction: row; align-items: center;">

-                        <i style="margin-right: 6px;" class="fluid-icon">browser_updated</i>

-                        <h4 style="margin: 6px 0px;">${release.summary}</h4>

-                    </div>

-                    <div style="display: flex; flex-direction: row; align-items: center; color: var(--lightText);">

-                        <i style="margin-right: 4px; font-size: 18px;" class="fluid-icon">event</i>

-                        <p style="margin: 6px 0px;">${releaseDateFormatted}</p>

-                    </div>

-                    <br />

-                    <div id="changelogStyles">

-                        ${changelogHTML}

-                    </div>

-                `);

-            });

-

-            if (!releasesHTML.length) {

-                if (fromVersion) {

-                    //No data for popups, silently skip

-                    return;

-                }

-

-                releasesHTML.push(`<p>Couldn't find any changelog data</p>`);

-            }

-

-            jQuery(".card.changelog").html(`

-                <i onclick="fluid.cards.close('.card.changelog')" class="fluid-icon close">close</i>

-                ${releasesHTML.join(`<div style="margin: 40px 0px !important;" class="divider"></div>`)}

-                <br />

-                <button onclick="window.open('https://dev.jottocraft.com/issues?q=project:%20RRS%20product:%20dtps%20rollout:%20released%20sort%20by:%20%7Bversion%20code%7D%20desc')" class="btn small outline"><i class="fluid-icon">update</i> View previous changelogs</button>

-            `);

-

-            //Show changelog

-            fluid.cards.close(".card.focus");

-            fluid.cards(".card.changelog");

-        });

-    });

-};

-

-/**

  * Logs debugging messages

  * 

  * @param {...*} msg The debugging messages to log

@@ -261,9 +176,9 @@
 

         <div class="welcomeSection">

             <i class="fluid-icon">dashboard</i>

-            <h5>${dtpsLMS.gradebook ? "Manage your coursework and grades" : "Manage your coursework"}</h5>

+            <h5>Manage your coursework</h5>

             <p>Power+ organizes all of your coursework so you can easily see what you need to do next. The dashboard shows upcoming assignments, recent grades, and announcements.

-            ${dtpsLMS.dtech ? `<p style="color: var(--text);"><b>As of June 2022, d.tech CBL features are no longer actively updated. If you'd like to use these potentially obsolete features, you must opt-in at Settings (top-right) -> CBL.</b></p>` : ``}

+            ${dtpsLMS.dtech ? `<p style="color: var(--text);"><b>As of October 2026, all d.tech-specific features, including CBL grade calculation, have been removed from Power+.</b></p>` : ``}

         </div>

 

         ${dtpsLMS.isDemoLMS ? /*html*/`

@@ -417,13 +332,7 @@
 

     //Check for LMS config

     if (!window.dtpsLMS) {

-        throw "Error: No DTPS LMS configuration found";

-    }

-

-    //Determine if changelog should be shown

-    if (Number(window.localStorage.dtps) < dtps.ver) {

-        dtps.log("New release");

-        dtps.popup = "changelog";

+        throw new Error("No DTPS LMS configuration found");

     }

 

     //Determine if this is the first time loading DTPS

@@ -458,41 +367,11 @@
     //Begin loading static DTPS HTML

     dtps.render();

 

-    //Fetch remote config and JavaScript modules

-    Promise.all([

-        new Promise((r) => {

-            jQuery.getJSON('https://jottocraft-dtps-default-rtdb.firebaseio.com/config.json', (remoteConfig) => {

-                if (remoteConfig) {

-                    Object.keys(remoteConfig).forEach(k => {

-                        var val = remoteConfig[k];

-

-                        dtps.remoteConfig[k] = val;

-                    });

-                }

-                r();

-            }).fail(() => r());

-        }),

-        dtps.JS()

-    ]).then(() => {

-        //dev env remote config overrides

-        if (dtps.env == "dev") {

-            Object.keys(dtps.remoteConfig).forEach(k => {

-                if (window.localStorage.getItem("dtpsRemoteConfig-" + k)) {

-                    val = window.localStorage.getItem("dtpsRemoteConfig-" + k);

-

-                    if (val == "true") val = true;

-                    if (val == "false") val = false;

-

-                    dtps.remoteConfig[k] = val;

-                }

-            });

-        }

-

+    //Fetch JavaScript modules

+    dtps.JS().then(() => {

         //Fetch user and class data

         return dtpsLMS.fetchUser();

     }).then(data => {

-        if (dtps.remoteConfig.loadingAlert) window.alert(dtps.remoteConfig.loadingAlert);

-

         //Prevent resetting the user if the user is already set (for parent accounts)

         dtps.user = data;

 

@@ -527,20 +406,6 @@
         } else {

             return dtpsLMS.fetchClasses(dtps.user.id);

         }

-    }).then((rawClasses) => {

-        return new Promise((resolve, reject) => {

-            if (dtpsLMS.institutionSpecific && dtpsLMS.updateClasses) {

-                //Using an institution-specific script, make any nessasary changes and return updated classes

-                dtpsLMS.updateClasses(rawClasses).then((updatedClasses) => {

-                    resolve(updatedClasses);

-                }).catch((e) => {

-                    reject(e);

-                });

-            } else {

-                //No institution-specific script, return classes as-is

-                resolve(rawClasses);

-            }

-        });

     }).then(classData => {

         //Store classData to dtps.classes

         dtps.classes = classData;

@@ -581,18 +446,9 @@
             lightBrown: "#928871"

         });

 

-        //Loop over each class to update the color and check for grade calculation

+        //Loop over each class to update the color

         dtps.classes.forEach(course => {

             course.color = course.color ? nearestCourseColor(course.color).value : "gray";

-

-            const classGradeCalcAllowed = dtpsLMS.gradeCalculationAllowlist ? dtpsLMS.gradeCalculationAllowlist.includes(course.id) : true;

-            if (dtpsLMS.calculateGrade && classGradeCalcAllowed && dtps.remoteConfig.gradeCalculationEnabled) {

-                //This LMS/Institution supports grade calculation, show loading indicator for grade

-                //Grade will be calculated once assignments are fetched

-

-                course.letter = "..."; //Setting this to ... shows the loading indicator

-                course.grade = undefined;

-            }

         });

 

         //Fluid UI screens

@@ -609,19 +465,7 @@
         //Begin fetching class assignments

         var fetchedAnnouncements = [];

         dtps.classes.forEach((course, courseIndex) => {

-            dtpsLMS.fetchAssignments(course.userID, course.lmsID).then((rawAssignments) => {

-                return new Promise((resolve, reject) => {

-                    if (dtpsLMS.institutionSpecific && dtpsLMS.updateAssignments) {

-                        //Using an institution-specific script, make any nessasary changes and return updated assignments

-                        dtpsLMS.updateAssignments(rawAssignments, course).then(updatedAssignments => {

-                            resolve(updatedAssignments);

-                        }).catch(reject);

-                    } else {

-                        //No institution-specific script, return assignments as-is

-                        resolve(rawAssignments);

-                    }

-                });

-            }).then(assignments => {

+            dtpsLMS.fetchAssignments(course.userID, course.lmsID).then(assignments => {

                 //Map due date array

                 const dueDates = assignments.map(a => dtps.dayTimeMinutes(a.dueAt)).filter(d => d !== null).sort((a, b) => a - b);

 

@@ -661,40 +505,11 @@
                 //Keep only the 15 most recent updates

                 if (dtps.updates.length > 15) dtps.updates.length = 15;

 

-                //Calculate class grade if supported

-                const classGradeCalcAllowed = dtpsLMS.gradeCalculationAllowlist ? dtpsLMS.gradeCalculationAllowlist.includes(course.id) : true;

-                if (dtpsLMS.calculateGrade && classGradeCalcAllowed && dtps.remoteConfig.gradeCalculationEnabled) {

-                    let gradeCalcResults = dtpsLMS.calculateGrade(course, assignments);

-

-                    if (gradeCalcResults) {

-                        //This class has a grade

-

-                        //Set course letter and grade to grade calc results

-                        course.letter = gradeCalcResults.letter;

-                        course.grade = gradeCalcResults.grade;

-

-                        //Save raw results object to the course so it can be accessed by the gradebook

-                        course.gradeCalculation = gradeCalcResults;

-                    } else {

-                        //No grade for this class

-                        course.letter = null;

-                        course.grade = null;

-                    }

-

-                    //Force re-render sidebar to show grades only if the user isn't on pages or discussions

-                    if ((dtps.selectedContent !== "pages") && (dtps.selectedContent !== "discuss")) {

-                        dtps.showClasses(true);

-                    }

-                }

-

                 //Grade history and gradebook

                 if ((course.letter || course.grade) && (course.letter !== "...")) {

                     //Enable gradebook for this class

                     course.hasGradebook = true;

 

-                    //Save grade history

-                    dtps.logGrades(courseIndex);

-

                     //If the class is selected, call dtps.presentClass again to show the grades tab

                     if (courseIndex == dtps.selectedClass) {

                         dtps.presentClass(courseIndex);

@@ -711,9 +526,6 @@
                     }

                 }

 

-                //Render grades tab in settings

-                dtps.renderGradesInSettings();

-

                 //Re-render screen if the dashboard or stream is selected

                 if ((dtps.selectedClass == "dash") || ((dtps.selectedContent == "stream") && (dtps.selectedClass == course.num))) {

                     fluid.screen();

@@ -760,9 +572,6 @@
         //Load popup if needed

         if (dtps.popup == "firstrun") {

             dtps.firstrun();

-        } else if (dtps.popup == "changelog") {

-            //Changelog will only show if the release notes are on dev.jottocraft.com

-            dtps.changelog(Number(window.localStorage.dtps));

         }

 

         //Render inbox

@@ -988,7 +797,7 @@
     //Update title to show class name

     //If the dashboard is selected, this is just "Dashboard". Otherwise, this is Class.subject

     $("#headText span").text(classNum == "dash" ? "Dashboard" : classNum == "search" ? "Search Results" : dtps.classes[classNum] && dtps.classes[classNum].subject);

-    var icon = classNum == "dash" ? "dashboard" : classNum == "search" ? "search" : dtps.classes[classNum] && dtps.classes[classNum].icon

+    var icon = classNum == "dash" ? "dashboard" : classNum == "search" ? "search" : dtps.classes[classNum] && dtps.classes[classNum].icon;

     if (icon) {

         $("#headText i").text(icon);

         $("#headText i").show();

@@ -1040,8 +849,7 @@
         }

 

         //Show gradebook if the LMS and the class supports it, otherwise, hide it

-        const courseLMSGradebookAllowed = dtpsLMS.lmsGradebookAllowlist ? dtpsLMS.lmsGradebookAllowlist.includes(dtps.classes[classNum].id) : true;

-        if ((dtpsLMS.genericGradebook || (dtpsLMS.gradebook && courseLMSGradebookAllowed)) && dtps.classes[classNum].hasGradebook) {

+        if (dtps.classes[classNum].hasGradebook) {

             $(".btns .btn.grades").show();

         } else {

             $(".btns .btn.grades").hide();

@@ -1154,59 +962,6 @@
 }

 

 /**

- * Shows the gradebook using HTML from dtpsLMS.gradebook

- * 

- * @param {string} classID Class ID

- */

-dtps.showLMSGradebook = function (classID) {

-    //Get class index and set as selected class

-    var classNum = dtps.classes.map(course => course.id).indexOf(classID);

-    dtps.selectedClass = classNum;

-

-    //Set stream as the selected content

-    dtps.selectedContent = "grades";

-    $("#dtpsTabBar .btn").removeClass("active");

-    $("#dtpsTabBar .btn.grades").addClass("active");

-

-    //Load class color, name, etc.

-    dtps.presentClass(classNum);

-

-    //Ensure classes are shown in the sidebar

-    dtps.showClasses();

-

-    if (classNum == -1) {

-        //Class does not exist

-        dtps.error("The selected class doesn't exist", "classNum check failed @ dtps.showLMSGradebook");

-    }

-

-    //Show loading indicator

-    if ((dtps.selectedContent == "grades") && (dtps.selectedClass == classNum)) {

-        jQuery(".classContent").html(`<div class="spinner"></div>`);

-    }

-

-    //Function to load gradebook HTML

-    function renderGradebook() {

-        dtpsLMS.gradebook(dtps.classes[classNum]).then(html => {

-            if (html && (dtps.selectedClass == classNum) && (dtps.selectedContent == "grades")) {

-                $(".classContent").html(html);

-                if (dtpsLMS.gradebookDidRender) dtpsLMS.gradebookDidRender(dtps.classes[classNum]);

-            }

-        }).catch(function (err) {

-            dtps.error("Could not load the gradebook", "Caught promise rejection @ dtps.showLMSGradebook", err);

-        });

-    }

-

-    if (!fluid.externalScreens.stream) {

-        //Load assignment functions first

-        jQuery.getScript(dtps.baseURL + "/scripts/assignments.js", () => {

-            renderGradebook();

-        })

-    } else {

-        renderGradebook();

-    }

-}

-

-/**

  * Shows a URL in the iFrame card

  * 

  * @param {string} url The URL to load

@@ -1266,38 +1021,6 @@
 }

 

 /**

- * Stores grade data locally for the previous grade feature

- * 

- * @param classNum Class number to log grade

- */

-dtps.logGrades = function (classNum) {

-    /*

-        Grade change vars:

-        gradeHistory-ID: current|previous (e.g. "A|B+" represents a change of B+ -> A)

-        if there is only one grade, it is the current one

-    */

-    if (!dtps.classes[classNum].letter || (dtps.classes[classNum].letter == "...") || (dtps.classes[classNum].letter == "ERROR")) return;

-    if (window.localStorage.getItem("gradeHistory-" + dtps.classes[classNum].id)) {

-        var savedCurrent = window.localStorage.getItem("gradeHistory-" + dtps.classes[classNum].id).split("|")[0];

-        var savedPrevious = window.localStorage.getItem("gradeHistory-" + dtps.classes[classNum].id).split("|")[1];

-

-        if (savedCurrent !== dtps.classes[classNum].letter) {

-            //Grade change

-            window.localStorage.setItem("gradeHistory-" + dtps.classes[classNum].id, dtps.classes[classNum].letter + "|" + savedCurrent);

-            dtps.classes[classNum].previousLetter = savedCurrent;

-        }

-

-        if ((savedCurrent == dtps.classes[classNum].letter) && savedPrevious) {

-            //Previous grade is already saved

-            dtps.classes[classNum].previousLetter = savedPrevious;

-        }

-    } else {

-        //No history yet, store current grade

-        window.localStorage.setItem("gradeHistory-" + dtps.classes[classNum].id, dtps.classes[classNum].letter);

-    }

-}

-

-/**

  * Opens the settings page

  * 

  * @param {boolean} [forceRerenderDashboard] If this is true, the dashboard settings will be re-rendered

@@ -1335,9 +1058,6 @@
         $("#leftDashboardColumn").attr("loaded", "true");

     }

 

-    //Render grades tab in settings

-    dtps.renderGradesInSettings();

-

     fluid.cards('.settingsCard');

 }

 

@@ -1349,119 +1069,6 @@
 }

 

 /**

- * Prompts for dangerous CBL enablement

- * 

- * @param {boolean} [accepted] True if the disclaimer has been accepted

- */

-dtps.dangerousCBLPrompt = function (accepted) {

-    const dangerousCBLEnabled = fluid.get("pref-dangerousCBL") == "true";

-    if (dangerousCBLEnabled) {

-        fluid.set("pref-dangerousCBL", "false");

-        dtps.settingsReloadWarning();

-    } else if (accepted) {

-        fluid.set("pref-dangerousCBL", "true");

-        dtps.settingsReloadWarning();

-    } else {

-        //Prompt for acceptance

-        fluid.alert("Allow CBL Features", [

-            `<style>.card.alert .body {max-height: none !important;}</style>`,

-            `<p>You must read and accept the following disclaimers to allow the usage of d.tech CBL features:</p>`,

-            `<ol style="line-height: 1.5;">`,

-            `<li>Starting June 2022, CBL features in Power+ are no longer actively updated. CBL features continue to be provided as-is for use at your own discretion.</li>`,

-            `<li>Power+ does not guarantee that CBL features will be up-to-date with the d.tech CBL spec. By proceeding, you accept all risks resulting from the usage of a potentially obsolete system.</li>`,

-            `<li>You are responsible for checking that the <a href="${dtps.cblSpec}">CBL spec Power+ is using</a> is correct for your use case.</li>`,

-            `<li><b>In short, these features may become (or are already) obsolete. <span style="background: red; color: white;">Proceed at your own risk.<span></b></li>`,

-            `</ol>`

-        ].join(""), "report", [

-            { name: "Accept", icon: "warning", action: () => dtps.dangerousCBLPrompt(true) },

-            { name: "Cancel", icon: "close", action: () => fluid.exitAlert() }

-        ], "red");

-    }

-}

-

-/**

- * Renders the grades tab in settings

- */

-dtps.renderGradesInSettings = function () {

-    //Render d.tech dangerous CBL settings

-    if (dtpsLMS.dtech) {

-        $("#classCBLChex").html(dtps.classes.map(course => {

-            return (

-                `<div>

-                    <div onclick="fluid.set('pref-enabledCBLFor${course.id}'); dtps.settingsReloadWarning();" class="checkbox pref-enabledCBLFor${course.id}"><i class="fluid-icon">check</i></div>

-                    <div class="label">${course.name}</div>

-                </div><br />`

-            );

-        }));

-    }

-

-    //Add CBL area toggle listener

-    if (fluid.get("pref-dangerousCBL") == "true") { jQuery('#cblSwitchesArea').show(); }

-    document.addEventListener("pref-dangerousCBL", function (e) {

-        if ((e.detail == "true") || (e.detail == true)) {

-            //dangerous CBL has been enabled, show class toggle area

-            jQuery('#cblSwitchesArea').show();

-        } else {

-            //dangerous has been disabled, hide class toggle area

-            jQuery('#cblSwitchesArea').hide();

-        }

-    });

-

-    //Render class grade bars

-    $("#classGradeBars").html(dtps.classes.map(course => {

-        //Percentages below are for visualization purposes only

-        var percentage = 0;

-        if (course.letter == "A") percentage = 100;

-        if (course.letter == "A-") percentage = 91;

-        if (course.letter == "B+") percentage = 88;

-        if (course.letter == "B") percentage = 85;

-        if (course.letter == "B-") percentage = 81;

-        if (course.letter == "C+") percentage = 78;

-        if (course.letter == "C") percentage = 75;

-

-        return (

-            course.letter ? `<div style="cursor: auto; background-color: var(--elements);" class="progressBar big">

-        <div style="color: white;" class="progressLabel">${course.subject} (${course.letter})</div>

-        <div class="progress" style="background-color: ${course.color}; width: calc(${percentage}% - 300px);"></div></div>` : ""

-        )

-    }));

-

-    //Calculate GPA

-    var sum = 0;

-    var values = 0;

-

-    dtps.classes.forEach(course => {

-        if (course.letter == "...") {

-            sum = null;

-        } else if (course.letter && (sum !== null)) {

-            var points = 0;

-            if (course.letter == "A") points = 4;

-            if (course.letter == "A-") points = 3.7;

-            if (course.letter == "B+") points = 3.3;

-            if (course.letter == "B") points = 3;

-            if (course.letter == "B-") points = 2.7;

-            if (course.letter == "C+") points = 2.3;

-            if (course.letter == "C") points = 2.0;

-            if (course.letter == "I") points = 0;

-

-            sum += points;

-            values++;

-        }

-    })

-

-    if (sum == null) {

-        $("#dtpsGpaText").text("...");

-    } else if (values === 0) {

-        $("#dtpsGpaText").text("Not available");

-    } else {

-        $("#dtpsGpaText").text((sum / values).toFixed(1));

-    }

-

-    //Initialize Fluid UI again

-    fluid.init();

-}

-

-/**

  * Saves dashboard prefrences

  */

 dtps.saveDashboardPrefs = function () {

@@ -1501,24 +1108,6 @@
 }

 

 /**

- * Redirects to DTPS classic edition

- */

-dtps.classicEntry = function () {

-    var classicName = ["P", "r", "o", "j", "e", "c", "t", " ", "D", "T", "P", "S"];

-    var overwrittenHTML = ["P", "o", "w", "e", "r", "+"];

-    if (dtps.classicStep == undefined) dtps.classicStep = -10;

-    dtps.classicStep++;

-

-    if (dtps.classicStep == 12) window.location.href = "/power+?classicEdition=true";

-

-    for (var i = 0; i < dtps.classicStep; i++) {

-        overwrittenHTML[i] = classicName[i];

-    }

-

-    $("#dtpsAboutName").html(overwrittenHTML.join(""));

-}

-

-/**

  * Loads dashboard prefrences

  */

 dtps.loadDashboardPrefs = function () {

@@ -1596,13 +1185,13 @@
         <div class="navbar">

           <div class="logo">

             <img src="${dtps.baseURL + "/icon.svg"}" />

-            <h4>${dtps.baseURL == "https://dev.dtps.jottocraft.com" ? "Power+ (dev)" : "Power+"}</h4>

+            <h4>Power+</h4>

           </div>

         

           ${dtps.unstable && !dtpsLMS.isDemoLMS ? `

             <div id="dtpsUnstable" class="navitem">

               <i style="font-size: 16px;" class="fluid-icon">warning</i>

-              <span style="font-weight: bold; font-size: 10px;">THIS IS AN UNSTABLE VERSION OF POWER+. USE AT YOUR OWN RISK.</span>

+              <span style="font-weight: bold; font-size: 10px;">THIS IS AN UNOFFICIAL VERSION OF POWER+. USE AT YOUR OWN RISK.</span>

             </div>

           ` : ""}

           

@@ -1699,7 +1288,7 @@
         <!-- Settings card (its inner HTML is added later) -->

         <div style="height: 100%; overflow: auto !important;" class="card withnav focus close container settingsCard"></div>

 

-        <!-- Changelog card -->

+        <!-- Changelog card (The changelog is removed, but this is also used for the firstrun dialog) -->

         <div style="border-radius: 30px;" class="card focus changelog close container">

             <i onclick="fluid.cards.close('.card.changelog')" class="fluid-icon close">close</i>

             <h3>What's new in Power+</h3>

@@ -1918,14 +1507,6 @@
             <div onclick="$('.abtpage').hide();$('.abtpage.theme').show();" class="item">

                 <i class="fluid-icon">format_paint</i> Theme

             </div>

-            ${dtpsLMS.dtech ? /*html*/`

-                <div onclick="$('.abtpage').hide();$('.abtpage.cblCalc').show();" class="item">

-                    <i class="fluid-icon">calculate</i> CBL

-                </div>

-            ` : ``}

-            <div onclick="$('.abtpage').hide();$('.abtpage.grades').show();" class="item">

-                <i class="fluid-icon">assessment</i> GPA

-            </div>

             <div onclick="$('.abtpage').hide();$('.abtpage.dashboard').show();" class="item">

                 <i class="fluid-icon">dashboard</i> Dashboard

             </div>

@@ -1933,9 +1514,6 @@
                 <div onclick="$('.abtpage').hide();$('.abtpage.debugging').show();" class="item">

                     <i class="fluid-icon">bug_report</i> Debugging

                 </div>

-                <div onclick="$('.abtpage').hide();$('.abtpage.experiments').show();" class="item">

-                    <i class="fluid-icon">science</i> Experiments

-                </div>

             ` : ``}

             <div onclick="$('.abtpage').hide();$('.abtpage.about').show();" class="item abt">

                 <i class="fluid-icon">info</i> About

@@ -1945,6 +1523,8 @@
         <div style="min-height: 100%" class="content">

             <div class="abtpage settings">

                 <h5><b>Settings</b></h5>

+

+                ${dtpsLMS.dtech ? `<p style="color: var(--text);"><b>As of October 2026, all d.tech-specific features, including CBL grade calculation, have been removed from Power+.</b></p>` : ``}

                 

                 <br />

                 <p>Sidebar</p>

@@ -1974,36 +1554,17 @@
                 <div onclick="fluid.set('pref-unusualDueDates'); fluid.screen();" class="switch pref-unusualDueDates active"><span class="head"></span></div>

                 <div class="label"><i class="fluid-icon">highlight</i> Highlight outlying due dates</div>

 

-                <div id="dtpsPrereleaseTesting" style="${window.localStorage.prereleaseEnabled || (dtps.env == "dev") || window.localStorage.githubRepo || window.localStorage.externalReleaseURL ? "" : "display: none;"}">

+                <div id="dtpsPrereleaseTesting" style="${window.localStorage.prereleaseEnabled || (dtps.env == "dev") ? "" : "display: none;"}">

                     <br /><br />

-                    <p>Prerelease testing</p>

+                    <p>Release mode</p>

 

                     <div>

                         <div class="btns row small">

                             <button 

                                 onclick="window.localStorage.setItem('dtpsLoaderPref', 'prod')" 

-                                class="btn ${!["dev", "github", "external", "local"].includes(window.localStorage.dtpsLoaderPref) ? "active" : ""}">

+                                class="btn ${window.localStorage.dtpsLoaderPref !== "local" ? "active" : ""}">

                                 <i class="fluid-icon">label</i> Production

                             </button>

-                            <!-- check dtps.init before uncommenting <button 

-                                onclick="window.localStorage.setItem('dtpsLoaderPref', 'dev')" 

-                                class="btn ${window.localStorage.dtpsLoaderPref == "dev" ? "active" : ""}">

-                                <i class="fluid-icon">feedback</i> Dev

-                            </button>-->

-                            ${window.localStorage.githubRepo ? /*html*/`

-                                <button 

-                                    onclick="window.localStorage.setItem('dtpsLoaderPref', 'github')" 

-                                    class="btn ${window.localStorage.dtpsLoaderPref == "github" ? "active" : ""}">

-                                    <i class="fluid-icon">account_tree</i> Branch

-                                </button>

-                            ` : ``}

-                            ${window.localStorage.externalReleaseURL ? /*html*/`

-                                <button 

-                                    onclick="window.localStorage.setItem('dtpsLoaderPref', 'external')" 

-                                    class="btn ${window.localStorage.dtpsLoaderPref == "external" ? "active" : ""}">

-                                    <i class="fluid-icon">public</i> External

-                                </button>

-                            ` : ``}

                             <button

                                 onclick="window.localStorage.setItem('dtpsLoaderPref', 'local')" 

                                 class="btn ${window.localStorage.dtpsLoaderPref == "local" ? "active" : ""}">

@@ -2021,51 +1582,6 @@
                 <div class="themeSelectionUI flat"></div>

             </div>

 

-            <div style="display: none;" class="abtpage cblCalc">

-                <h5><b>d.tech CBL</b></h5>

-                

-                <div>

-                    <p><span style="width: 32px; display: inline-block; text-align: center;">⚠️</span> CBL features are no longer actively updated and may become (or are already) obsolete. Use at your own risk.</p>

-                    <p><span style="width: 32px; display: inline-block; text-align: center;">ℹ️</span> CBL features follow the <a href="${dtps.cblSpec}">August 2021</a> specification.</p>

-                </div>

-                

-                <br />

-                

-                <div onclick="dtps.dangerousCBLPrompt();" class="switch pref-dangerousCBL"><span class="head"></span></div>

-                <div class="label"><i class="fluid-icon">functions</i> Allow CBL features</div>

-

-                <br /><br /><br />

-                

-                <div id="cblSwitchesArea" style="display: none;">

-                

-                    <div class="divider"></div>

-

-                    <br />

-

-                    <p>Check the boxes below to opt-in to CBL features for each class you'd like to use them with:</p>

-

-                    <br />

-

-                    <div id="classCBLChex"></div>

-

-                </div>

-            </div>

-

-            <div style="display: none;" class="abtpage grades">

-                <h5><b>GPA</b></h5>

-                

-                <br />

-

-                <div>

-                <h6>Unweighted GPA: <b id="dtpsGpaText">...</b></h6>

-                <p style="color: var(--secText);"><i>This GPA calculation is based on the letter grades shown below and is not official.</i></p>

-                </div>

-                

-                <br />

-

-                <div id="classGradeBars"></div>

-            </div>

-

             <div style="display: none;" class="abtpage dashboard">

                 <h5><b>Dashboard</b></h5>

                 <p>You can rearrange the items shown on the dashboard by dragging them below. You might have to reload Power+ for changes to take effect.</p>

@@ -2088,53 +1604,17 @@
                     <button onclick="dtps.firstrun()" class="btn small"><i class="fluid-icon">web_asset</i> Show firstrun screen</button>

                    </div>

 

-                   <div>

-                    <button onclick="dtps.changelog(undefined, true);" class="btn small"><i class="fluid-icon">description</i> Show draft changelog</button>

-                   </div>

-

                    <br /><br />

 

                    <h5>Release configuration</h5>

 

-                   <button onclick="['dtpsLoaderPref', 'prereleaseEnabled', 'githubRepo', 'externalReleaseURL', 'dtpsLMSOverride'].forEach(k => window.localStorage.removeItem(k)); window.location.reload();" class="btn small"><i class="fluid-icon">cancel</i> Clear release configurations</button>

+                   <button onclick="['dtpsLoaderPref', 'prereleaseEnabled', 'dtpsLMSOverride'].forEach(k => window.localStorage.removeItem(k)); window.location.reload();" class="btn small"><i class="fluid-icon">cancel</i> Clear release configurations</button>

                    <br /><br />

 

                    <div>

-                       <input id="dtpsGithubRepo" value="${window.localStorage.githubRepo || ""}" placeholder="Branch GitHub repo" />

-                       <button class="btn small" onclick="window.localStorage.setItem('githubRepo', $('#dtpsGithubRepo').val())"><i class="fluid-icon">save</i> Save</button>

-                   </div>

-

-                   <div>

-                       <input id="dtpsExternalReleaseURL" value="${window.localStorage.externalReleaseURL || ""}" placeholder="External release URL" />

-                       <button class="btn small" onclick="window.localStorage.setItem('externalReleaseURL', $('#dtpsExternalReleaseURL').val())"><i class="fluid-icon">save</i> Save</button>

-                   </div>

-

-                   <div>

                        <input id="dtpsLMSOverride" value="${window.localStorage.dtpsLMSOverride || ""}" placeholder="LMS override" />

                        <button class="btn small" onclick="window.localStorage.setItem('dtpsLMSOverride', $('#dtpsLMSOverride').val())"><i class="fluid-icon">save</i> Save</button>

                    </div>

-

-                   <br />

-

-                   <h5>Behavior Overrides</h5>

-

-                   <br />

-                   <div onclick="fluid.set('pref-debuggingGenericGradebook')" class="switch pref-debuggingGenericGradebook"><span class="head"></span></div>

-                   <div class="label">Always use the generic gradebook</div>

-                </div>

-                <div style="display: none;" class="abtpage experiments">

-                    <h5><b>Experiments</b></h5>

-                    <p>These settings control how Power+ behaves. Changing these settings may enable unsupported and/or unfinished features that can break Power+. Use at your own risk.</p>

-

-                    <button onclick="Object.keys(dtps.remoteConfig).forEach(k => window.localStorage.removeItem('dtpsRemoteConfig-' + k));" class="btn small"><i class="fluid-icon">cancel</i> Clear Overrides</button>

-                    <br /><br />

-                   ${Object.keys(dtps.remoteConfig).map(k => (`

-                        <div>

-                            <p>${k} ${window.localStorage.getItem("dtpsRemoteConfig-" + k) ? " <b>(overridden)</b>" : ""}</p>

-                            <input value="${dtps.remoteConfig[k]}" placeholder="Value" />

-                            <button class="btn small" onclick="window.localStorage.setItem('dtpsRemoteConfig-${k}', $(this).siblings('input').val())"><i class="fluid-icon">save</i> Save</button>

-                        </div>

-                    `)).join("")}

                 </div>

             ` : ``}

 

@@ -2145,15 +1625,15 @@
                     <img src="${dtps.baseURL + "/icon.svg"}" style="height: 50px; margin-right: 10px; vertical-align: middle; margin-top: 20px;" />

                     

                     <div style="display: inline-block; vertical-align: middle;">

-                        <h4 id="dtpsAboutName" onclick="dtps.classicEntry()" style="font-weight: bold; font-size: 32px; margin-bottom: 0px; user-select: none;">${dtps.baseURL == "https://dev.dtps.jottocraft.com" ? "Power+ (dev)" : "Power+"}</h4>

+                        <h4 id="dtpsAboutName" style="font-weight: bold; font-size: 32px; margin-bottom: 0px; user-select: none;">Power+</h4>

                         <div style="font-size: 16px; margin-top: 5px;">

                             ${dtps.readableVer}

                             <div style="display: inline-block;margin: 0px 5px;font-size: 12px;">${baseHost !== "powerplus.app" ? `(from ${baseHost})` : ""}</div>

                         </div>

                     </div>

 

-                    <div style="margin-top: 15px; margin-bottom: 7px;"><a onclick="dtps.changelog();" style="color: var(--lightText); margin: 0px 5px;" href="#"><i class="fluid-icon" style="vertical-align: middle">update</i> Changelog</a>

-                        <a style="color: var(--lightText); margin: 0px 5px;" href="mailto:[email protected]"><i class="fluid-icon" style="vertical-align: middle">email</i> Contact me: [email protected]</a>

+                    <div style="margin-top: 15px; margin-bottom: 7px;">

+                        <a style="color: var(--lightText); margin: 0px 5px;" href="https://jottocraft.com/contact"><i class="fluid-icon" style="vertical-align: middle">email</i> Contact me</a>

                     </div>

                 </div>

 

@@ -2198,7 +1678,7 @@
 

                     <div style="margin-top: 15px; margin-bottom: 7px;">

                         <a style="color: var(--lightText); margin: 0px 5px; cursor: pointer;" onclick="dtps.clearData();"><i class="fluid-icon" style="vertical-align: middle">refresh</i> Reset Power+</a>

-                        <a style="color: var(--lightText); margin: 0px 5px; cursor: pointer;" onclick="if (confirm('Prerelease versions of Power+ are often untested and can break or display incorrect information. Are you sure you want to continue?')) {window.localStorage.prereleaseEnabled = 'true'; $('#dtpsPrereleaseTesting').show(); alert('Prerelease versions can be enabled by going to Settings -> Prerelease testing');}"><i class="fluid-icon" style="vertical-align: middle">feedback</i> Test prerelease versions</a>

+                        <a style="color: var(--lightText); margin: 0px 5px; cursor: pointer;" onclick="if (confirm('Only enable Local Development Mode if you are modifying the Power+ source code on your device. Proceeding could allow unauthorized scripts to load, which can cause security issues. Are you sure you want to continue?')) {window.localStorage.prereleaseEnabled = 'true'; $('#dtpsPrereleaseTesting').show(); alert('Local Development Mode can be enabled by going to Settings -> Release mode');}"><i class="fluid-icon" style="vertical-align: middle">code</i> Allow Local Development Mode</a>

                     </div>

                 </div>

 

@@ -2210,7 +1690,7 @@
                         <img style="height: 38px; margin-right: 10px; vertical-align: middle;" src="https://cdn.jottocraft.com/images/footerImage.png" />

                         <h5 style="display: inline-block; vertical-align: middle; color: var(--text);">jottocraft</h5>

                     </a>

-                    <p>Copyright (c) jottocraft 2018-2026. This project is <a href="https://jottocraft.com/oss">open source</a>.

+                    <p>Copyright (c) jottocraft 2018-2026. Power+ is <a href="https://jottocraft.com/oss">open source</a>.

                 </div>

             </div>

         </div>

@@ -2250,11 +1730,6 @@
  * @property {string} source URL to the LMS integration's source code

  * @property {string} [inboxURL] URL to the LMS inbox. Required only if dtpsLMS.fetchUnreadMessageCount count is implemented

  * @property {boolean} [dtech] True if this LMS is d.tech

- * @property {boolean} [institutionSpecific] True if the LMS is designed for a specific institution instead of a broader LMS

- * @property {boolean|string[]} [useRubricGrades] True if DTPS should use rubric grades for assignments. If an array is provided, only assignments whose class ID is in the array will use rubric grades.

- * @property {boolean} [genericGradebook] True if DTPS should show the generic gradebook. Ignored if dtpsLMS.gradebook defined.

- * @property {string[]} [gradeCalculationAllowlist] An array of class IDs that will use dtpsLMS.calculateGrade, if provided. All other classes will bypass dtpsLMS.calculateGrade and instead use the default LMS grade.

- * @property {string[]} [lmsGradebookAllowlist] An array of class IDs that will use dtpsLMS.gradebook, if provided. All other classes will bypass dtpsLMS.gradebook and instead use the generic gradebook if enabled.

  */

 

 /**

@@ -2383,30 +1858,6 @@
 */

 

 /**

-* @name dtpsLMS.gradebook

-* @description [OPTIONAL] Renders custom gradebook HTML for unique grading systems or for a more tailored experience. The gradebook only shows for classes with a grade and with at least 1 assignment.

-* @kind function

-* @param {Class} course Class to render the gradebook for. If custom grade calculation is enabled (dtpsLMS.calculateGrade), those results can be accessed at course.gradeCalculation.

-* @return {Promise<string>} A promise which resolves to HTML to render for the class gradebook

-*/

-

-/**

-* @name dtpsLMS.gradebookDidRender

-* @description [OPTIONAL] Called after the HTML returned by dtpsLMS.gradebook has rendered. Runs any initialization needed for the gradebook, such as enabling interactive elements or what-if grades.

-* @kind function

-* @param {Class} course Class the gradebook was rendered for

-*/

-

-/**

-* @name dtpsLMS.calculateGrade

-* @description [OPTIONAL] Calculates class grades with a custom grade calculation formula. Used for unique grading systems.

-* @kind function

-* @param {Class} course Class to calculate grades for [DO NOT USE COURSE.ASSIGNMENTS to access assignments for grade calculation. Use the assignments parameter instead.]

-* @param {Assignment[]} assignments Assignments used for grade calculation. Use this instead of course.assignments for hypothetical/what-if grade calculation.

-* @return {undefined|object} The letter grade should be returned in the "letter" property as a string and the percentage in the "grade" property as a number. Other custom properties can be set if they need to be accessed by dtpsLMS.gradebook. Return undefined if there is no grade for the class.

-*/

-

-/**

 * @name dtpsLMS.isUsualDueDate

 * @description [OPTIONAL, INSTITUTION ONLY] This function returns true if the due date provided is usual/expected and false if the due date is unusual/expected. If the due date is unusual, it is shown in bold in the UI. For institutions where there is a pattern/standard for due dates between classes.

 * @kind function

@@ -2477,10 +1928,8 @@
 * @property {string} [color] Class color

 * @property {number} [grade] Current percentage grade in the class (a number from 0 to 100)

 * @property {string} [letter] Current letter grade in the class

-* @property {string} [previousLetter] Automatically managed by DTPS. The previous letter grade in this class, based on local grade history.

 * @property {string} [image] URL to the class background image

 * @property {User} [teacher] Class teacher. If the class has multiple teachers, this is the primary teacher.

 * @property {boolean} [hasGradebook] Automatically managed by DTPS. True if the class should show the gradebook tab.

-* @property {object} [gradeCalculation] Automatically managed by DTPS. If custom grade calculation is implemented, this will be the results from custom grade calculation returned by dtpsLMS.calculateGrade.

 * @property {string} [videoMeetingURL] The URL used to join this class' online meeting. If dtpsLMS.fetchMeetingURL is implemented, DTPS will use it to get the meeting URL if this property is undefined. If this property is null, DTPS will not call dtpsLMS.fetchMeeting URL for the class.

 */

diff --git a/scripts/lms/canvas.js b/scripts/lms/canvas.js
index 45e9304..a2170b6 100644
--- a/scripts/lms/canvas.js
+++ b/scripts/lms/canvas.js
@@ -17,8 +17,7 @@
     url: "https://www.instructure.com/canvas/",

     inboxURL: "/conversations",

     logo: "https://i.imgur.com/rGjNVoc.png",

-    source: "https://src.jottocraft.com/browser/dtps/+/refs/heads/main/scripts/lms/canvas.js",

-    genericGradebook: true

+    source: "https://src.jottocraft.com/browser/dtps/+/refs/heads/main/scripts/lms/canvas.js"

 };

 

 

@@ -50,7 +49,7 @@
             if (dtpsLMS.fetchQueue[0]) {

                 dtpsLMS.fetchQueue[0]();

             }

-        }, dtps.remoteConfig.canvasRequestSpacing);

+        }, 25);

     }

 

     return new Promise((resolve, reject) => {

diff --git a/scripts/lms/demo.js b/scripts/lms/demo.js
index 5d3178d..a10808e 100644
--- a/scripts/lms/demo.js
+++ b/scripts/lms/demo.js
@@ -17,8 +17,6 @@
     url: "https://powerplus.app",

     logo: "https://powerplus.app/logo.png",

     source: "https://src.jottocraft.com/browser/dtps/+/refs/heads/main/scripts/lms/demo.js",

-    genericGradebook: false,

-    useRubricGrades: true,

     isDemoLMS: true

 };

 

@@ -120,7 +118,6 @@
                 subject: "History",

                 color: "orange",

                 letter: "A",

-                previousLetter: "B+",

                 group: "Semester 2"

             }

         ]);

@@ -318,116 +315,5 @@
     })

 }

 

-dtpsLMS.gradebook = function (course) {

-    return new Promise((resolve, reject) => {

-        //RENDERER: RENDER GRADE CALCULATION SUMMARY ------------------------------------

-        var gradeCalcSummary = /*html*/`

-                <div id="gradeSummary" style="--size: 250px; margin: 0px 20px; --classColor: ${course.color};" class="grid flex">

-                  <div style="background-color: var(--classColor); color: white;" class="block status letterGrade card">

-                    <h2 class="main">${course.letter}</h2>

-                    ${course.previousLetter ? `<h5 class="previousGrade">Previous grade: ${course.previousLetter}</h5>` : ""}

-                    <h5 class="bottom"><i class="fluid-icon">grade</i> Grade</h5>

-                  </div>

-                  <div class="block status number75">

-                    <h2 class="main numFont">3.7</h2>

-                    <h5 class="bottom"><i class="fluid-icon">functions</i> 75% of outcomes (5) ≥</h5>

-                  </div>

-                  <div class="block status lowestScore">

-                    <h2 class="main numFont">3.5</h2>

-                    <h5 class="bottom"><i class="fluid-icon">leaderboard</i> Lowest outcome</h5>

-                  </div>

-                </div>

-

-                <div class="gradeSummaryShowHide">

-                    ${dtps.gradebookExpanded ? `<i class="fluid-icon">keyboard_arrow_up</i> <span>Show less</span>` : `<i class="fluid-icon">keyboard_arrow_down</i> <span>Show more</span>`}

-                </div>

-            `;

-

-        var rubricColor = function (score) {

-            if (score > 4.0) return "#20D684";

-            if (score == 4.0) return "#41BA35";

-            if (score >= 3.9) return "#50BC39";

-            if (score >= 3.8) return "#5FBD3D";

-            if (score >= 3.7) return "#6EBF40";

-            if (score >= 3.6) return "#7DC044";

-            if (score >= 3.5) return "#8CC248";

-            if (score >= 3.4) return "#9AC44C";

-            if (score >= 3.3) return "#A9C550";

-            if (score >= 3.2) return "#B8C753";

-            if (score >= 3.1) return "#C7C857";

-            if (score >= 3.0) return "#D6CA5B";

-            if (score >= 2.9) return "#D8C35A";

-            if (score >= 2.8) return "#DABB59";

-            if (score >= 2.7) return "#DCB458";

-            if (score >= 2.6) return "#DEAC57";

-            if (score >= 2.5) return "#E1A556";

-            if (score >= 2.4) return "#E39E55";

-            if (score >= 2.3) return "#E59654";

-            if (score >= 2.2) return "#E78F53";

-            if (score >= 2.1) return "#E98752";

-            if (score >= 2.0) return "#EB8051";

-            if (score >= 1.9) return "#E97A50";

-            if (score >= 1.8) return "#E7744F";

-            if (score >= 1.7) return "#E56F4E";

-            if (score >= 1.6) return "#E3694D";

-            if (score >= 1.5) return "#E1634C";

-            if (score >= 1.4) return "#DE5D4A";

-            if (score >= 1.3) return "#DC5749";

-            if (score >= 1.2) return "#DA5248";

-            if (score >= 1.1) return "#D84C47";

-            if (score >= 1.0) return "#D64646";

-            if (score >= 0.0) return "#D72727";

-            if (score < 0.0) return "#BF0000";

-        }

-

-        //RENDERER: RENDER EACH OUTCOME ------------------------------------

-        var outcomeHTML = []; //array of outcome html to be rendered

-        [1, 2, 3, 4, 5, 6, 7, 8, 9, 10].forEach(() => {

-            var avg = 3 + Math.random();

-            outcomeHTML.push(/*html*/`

-                <div style="border-radius: 20px;padding: 22px; padding-bottom: 20px;" class="card outcomeResults">

-                    <h5 style="max-width: calc(100% - 50px); font-size: 24px; margin: 0px; margin-bottom: 20px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; cursor: pointer;">${["Learning Skills", "Critical Thinking", "Reading Skills", "Research Skills", "Writing Skills", "Collaborative Skills"].random()}</h5>

-

-                    <div class="numFont" style="position: absolute; top: 20px; right: 20px; font-size: 26px; font-weight: bold; display: inline-block; color: ${rubricColor(avg)}">${avg.toFixed(2)}</div>

-                    

-                    <div class="assessments">

-                        ${[1, 2, 3, 4, 5, 6, 7, 8, 9, 10].map(() => {

-                var score = [3, 3.5, 4, 4, 4, 4].random();

-                return /*html*/`

-                                    <div class="assessmentWrapper" style="white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin: 6px 0px;">

-                                        <div style="color: ${rubricColor(score)};" class="editableScore">${score}</div>

-                                        <span class="assessmentTitle" style="cursor: pointer;">${generateAssignmentName()}</span>

-                                    </div>

-                                `;

-            }).join("")}

-                    </div>

-                </div>

-            `);

-        })

-

-        //RESOLVE WITH HTML

-        resolve(gradeCalcSummary + `<br />` + outcomeHTML.join(""));

-    });

-}

-

-//scroll listener

-var scrollListenerAdded = false;

-dtpsLMS.gradebookDidRender = function (course) {

-    //Keep the grade summary on top

-    if (!scrollListenerAdded) {

-        scrollListenerAdded = true;

-        var gradeSummary = document.getElementById("gradeSummary");

-        var sticky = gradeSummary.offsetTop - parseFloat($("body").css("padding-top")) - 10;

-        window.onscroll = function () {

-            if ((window.pageYOffset >= sticky) && ((dtps.classes[dtps.selectedClass]) && (dtps.selectedContent == "grades"))) {

-                $(".classContent").addClass("fixedGradeSummary");

-            } else {

-                $(".classContent").removeClass("fixedGradeSummary");

-            }

-        };

-    }

-}

-

-

 //Load Power+

 jQuery.getScript(window.dtpsBaseURL + "/scripts/core.js");

diff --git a/scripts/lms/dtech.js b/scripts/lms/dtech.js
index 3a3c20e..13564db 100644
--- a/scripts/lms/dtech.js
+++ b/scripts/lms/dtech.js
@@ -1,5 +1,5 @@
 /**

- * @file d.tech-specific features, CBL & grade calculation

+ * @file Obsolete LMS customizations; now redirects to generic Canvas

  * @author jottocraft

  * 

  * @copyright Copyright (c) jottocraft 2020

@@ -9,772 +9,7 @@
  */

 

 //Load Canvas integration

-jQuery.getScript(window.dtpsBaseURL + "/scripts/lms/canvas.js?upstream=true", function () {

-    //Get global dangerous CBL preference

-    const dangerousCBLEnabled = window.localStorage.getItem("pref-dangerousCBL") == "true";

-

-    //This array should be used for checking if CBL should be used

-    //dangerousCBL doesn't need to be checked since it is already checked before classes are added here

-    const consentedCBLCourses = [];

-

-    //Add d.tech-specific items to dtpsLMS

-    dtpsLMS.name = "d.tech";

-    dtpsLMS.legalName = "Canvas LMS, Design Tech High School, or Instructure Inc";

-    dtpsLMS.description = "Includes CBL features for Power+. No longer actively maintained.";

-    dtpsLMS.logo = "https://i.imgur.com/efGrLq3.png";

-    dtpsLMS.source = "https://src.jottocraft.com/browser/dtps/+/refs/heads/main/scripts/lms/dtech.js";

-    dtpsLMS.useRubricGrades = consentedCBLCourses;

-    dtpsLMS.gradeCalculationAllowlist = consentedCBLCourses;

-    dtpsLMS.lmsGradebookAllowlist = consentedCBLCourses;

-    dtpsLMS.institutionSpecific = true;

-    dtpsLMS.genericGradebook = true;

+jQuery.getScript(window.dtpsBaseURL + "/scripts/lms/canvas.js", function () {

+    dtpsLMS.description = "As of October 2026, all d.tech-specific features, including CBL grade calculation, have been removed from Power+.";

     dtpsLMS.dtech = true;

-

-    //Update assignments

-    //This is for customizing rubric names and colors to match d.tech CBL

-    dtpsLMS.updateAssignments = function (rawAssignments, course) {

-        return new Promise((resolve, reject) => {

-            var updatedAssignments = rawAssignments.map(assignment => {

-                //Skip if CBL is not enabled for this course

-                if (!consentedCBLCourses.includes(course.id)) return assignment;

-

-                //Check if assignment has rubric

-                if (assignment.rubric) {

-                    //Update assignment rubric

-                    assignment.rubric.forEach(rubricItem => {

-                        if (rubricItem.score !== undefined) {

-                            rubricItem.color = dtechRubricColor(rubricItem.score);

-                        }

-                    });

-                }

-

-                //Return updated assignment to the Array.map function

-                return assignment;

-            });

-

-            resolve(updatedAssignments);

-        })

-    }

-

-    //Update classes

-    dtpsLMS.updateClasses = function (classes) {

-        return new Promise((resolve, reject) => {

-            var tmpNewArray = [];

-            classes.forEach((course, i) => {

-                //Add course to list

-                tmpNewArray.push(course);

-

-                //Add course to CBL-enabled list

-                if (dangerousCBLEnabled && (fluid.get("pref-enabledCBLFor" + course.id) == "true")) {

-                    consentedCBLCourses.push(course.id);

-                }

-            });

-            classes = tmpNewArray;

-

-            resolve(classes);

-        });

-    }

-

-    //Run d.tech grade calculation algorithm (defined below)

-    dtpsLMS.calculateGrade = function (course, assignments) {

-        //If the user has not consented to dangerous CBL for this course, don't calculate

-        if (!consentedCBLCourses.includes(course.id)) return;

-

-        //The unique identifier for the CBL formula

-        const formula = "2020-DASH-LT";

-

-        //Run d.tech grade calculation

-        var dtechResults = dtechGradeCalc.run(assignments, formula);

-

-        if (dtechResults) {

-            //Class has a grade

-            return {

-                letter: assignments.find(a => a.error) ? "ERROR" : dtechResults.results.letter,

-                dtech: dtechResults //Return dtech results for gradebook

-            };

-        } else {

-            //No grade for this class

-            return;

-        }

-    }

-

-    //Local functions & variables, not part of the dtpsLMS specification ----------------------------------------------

-

-    //Get score color from rubric percentage

-    var dtechRubricColor = function (score) {

-        if (score > 4.0) return "#20D684";

-        if (score == 4.0) return "#41BA35";

-        if (score >= 3.9) return "#50BC39";

-        if (score >= 3.8) return "#5FBD3D";

-        if (score >= 3.7) return "#6EBF40";

-        if (score >= 3.6) return "#7DC044";

-        if (score >= 3.5) return "#8CC248";

-        if (score >= 3.4) return "#9AC44C";

-        if (score >= 3.3) return "#A9C550";

-        if (score >= 3.2) return "#B8C753";

-        if (score >= 3.1) return "#C7C857";

-        if (score >= 3.0) return "#D6CA5B";

-        if (score >= 2.9) return "#D8C35A";

-        if (score >= 2.8) return "#DABB59";

-        if (score >= 2.7) return "#DCB458";

-        if (score >= 2.6) return "#DEAC57";

-        if (score >= 2.5) return "#E1A556";

-        if (score >= 2.4) return "#E39E55";

-        if (score >= 2.3) return "#E59654";

-        if (score >= 2.2) return "#E78F53";

-        if (score >= 2.1) return "#E98752";

-        if (score >= 2.0) return "#EB8051";

-        if (score >= 1.9) return "#E97A50";

-        if (score >= 1.8) return "#E7744F";

-        if (score >= 1.7) return "#E56F4E";

-        if (score >= 1.6) return "#E3694D";

-        if (score >= 1.5) return "#E1634C";

-        if (score >= 1.4) return "#DE5D4A";

-        if (score >= 1.3) return "#DC5749";

-        if (score >= 1.2) return "#DA5248";

-        if (score >= 1.1) return "#D84C47";

-        if (score >= 1.0) return "#D64646";

-        if (score >= 0.0) return "#D72727";

-        if (score < 0.0) return "#BF0000";

-    }

-

-    /**

-     * d.tech CBL grade calculation algorithm

-     * 

-     * @property {string[]} letters An array of letters that can be returned from highest -> lowest

-     * @property {object} params Parameters for each type of grade calculation, such as requirements for each criteria

-     */

-    var dtechGradeCalc = {

-        letters: ["A", "A-", "B+", "B", "B-", "C", "I"],

-        params: {

-            /**

-             * @description 2020-DASH-LT (from Long-Term CBL Grade Dashboard) grade calculation parameters

-             * @property {{string, number}} percentage Percentage criteria parameters. The key of each item in the object is the letter and the value is the percentage needed to meet the criteria

-             * @property {{string, number}} lowest Lowest average criteria perameters. The key of each item in the object is the letter and the value is the lowest average needed to meet the criteria

-             */

-            "2020-DASH-LT": {

-                percentage: {

-                    "A": 3.3,

-                    "A-": 3.3,

-                    "B+": 2.6,

-                    "B": 2.6,

-                    "B-": 2.6,

-                    "C": 2.2,

-                    "I": 0

-                },

-                lowest: {

-                    "A": 3,

-                    "A-": 2.5,

-                    "B+": 2.2,

-                    "B": 1.8,

-                    "B-": 1.5,

-                    "C": 1.5,

-                    "I": 0

-                }

-            }

-        },

-        /**

-         * A simple average function

-         * 

-         * @param {number[]} array Array of numbers to average

-         * @return {number} Average of the numbers in the array

-         */

-        average: function (array) {

-            var sum = 0;

-            array.forEach(item => sum += item);

-            return sum / array.length;

-        },

-        /**

-         * Runs grade calculation. Takes assignments, gets outcome averages, then calls getLetter to get the final letter.

-         * This function returns undefined if there is no grade.

-         * 

-         * @param {Assignment[]} assignments Array of assignments to use for grade calculation

-         * @param {string} formula Formula to use for grade calculation. Can be one of the following: 2020-DASH-LT

-         * @param {object} outcomesOverride An outcome object to use instead of using assignments. Used for what-if grades.

-         * @return {object} Grade calculation results

-         */

-        run: function (assignments, formula, outcomesOverride) {

-            //Array of grade variations

-            var gradeVariations = [];

-

-            //Outcomes object

-            //This doesn't have to be used by the grade calculation formula. Can be overridden for What-If grades.

-            var outcomes = outcomesOverride || {};

-

-            if (formula == "2020-DASH-LT") {

-                //2020-DASH-LT SEMESTER 1 OUTCOME AVERAGE FORMULA (2020-DASH-LT)

-

-                // ------- [2020-DASH-LT] Step 1: Get rubric assessments by outcome -------

-

-                if (!outcomesOverride) {

-                    assignments.forEach(assignment => {

-                        if (assignment.rubric) {

-                            //Assignment has a rubric

-

-                            assignment.rubric.forEach(rubricItem => {

-                                if (rubricItem.outcome) {

-                                    //Rubric item is assessed and is linked with an outcome

-

-                                    if (!outcomes[rubricItem.outcome]) {

-                                        //Outcome object doesn't exist yet

-                                        outcomes[rubricItem.outcome] = {

-                                            scores: []

-                                        };

-                                    }

-

-                                    //Add RubricItem to outcome array

-                                    outcomes[rubricItem.outcome].scores.push(rubricItem);

-

-                                    //Save outcome name as rubric title

-                                    if (rubricItem.title) outcomes[rubricItem.outcome].title = rubricItem.title;

-                                }

-                            });

-                        }

-                    });

-                }

-

-                // ------- [2020-DASH-LT] Step 2: Calculate outcome averages -------

-

-                //If there are no outcomes, this class doesn't have a grade

-                if (Object.keys(outcomes).length == 0) return;

-

-                //Loop over the values of each item in the outcomes object

-                Object.values(outcomes).forEach(outcome => {

-                    //Get array of scores for the outcome, remove null scores

-                    var outcomeNumberScores = outcome.scores.map(RubricItem => RubricItem.score).filter(score => (score !== null) && (score !== undefined));

-

-                    if (outcomeNumberScores.length === 0) {

-                        outcome.scoreType = "ungraded";

-                        outcome.average = null;

-                        return;

-                    };

-

-                    //Calculate outcome average with all outcome scores

-                    var average = this.average(outcomeNumberScores);

-

-                    //Get the lowest score

-                    var lowestScore = Math.min(...outcomeNumberScores);

-

-                    //Drop the lowest score to see what happens

-                    var droppedArray = outcomeNumberScores.slice(); //copy of outcomeScores array

-                    droppedArray.splice(droppedArray.indexOf(lowestScore), 1); //remove lowest score from array

-

-                    var droppedAverage = this.average(droppedArray); //calculate average from droppedArray

-

-                    //Choose the higher score

-                    if (droppedAverage > average) {

-                        //The dropped score was higher

-                        outcome.scoreType = "dropped";

-                        outcome.droppedScore = outcome.scores.map(RubricItem => RubricItem.score).indexOf(lowestScore);

-                        outcome.average = droppedAverage;

-                    } else {

-                        //Calculating with all outcome scores was the same or higher

-                        outcome.scoreType = "all";

-                        outcome.average = average;

-                        delete outcome.droppedScore;

-                    }

-                });

-

-

-                // ------- [2020-DASH-LT] Step 3: Calculate letter grade variations -------

-

-                //All outcomes variation

-                var outcomeAvgs = Object.values(outcomes).map(outcome => outcome.average).filter(avg => avg !== null);

-                gradeVariations.push(this.getLetter(outcomeAvgs, formula, "all"));

-

-            }

-

-            //Get the highest grade variation from the results

-            var bestVariation = null;

-            gradeVariations.forEach(variation => {

-                if (!bestVariation || (this.letters.indexOf(variation.letter) < this.letters.indexOf(bestVariation.letter))) {

-                    //variation.letter is a higher letter than bestVariation.letter, or there is no best variation yet

-                    bestVariation = variation;

-                }

-            });

-

-            //Return grade calculation results

-            return {

-                results: bestVariation, //Results for the best variation

-                formula: formula, //Formula used to calculate this grade

-                outcomes: outcomes //Calculated outcome scores

-            };

-        },

-        /**

-         * Calculates a letter grade from an array of outcome averages. Called by gradeCalc.run.

-         * Gets the best possible letter from each criteria, then the lowest letter from that array.

-         * 

-         * @param {number[]} outcomeAvgs Array of outcome averages to use for letter grade calculation

-         * @param {string} formula Formula to use for grade calculation. See gradeCalc.run.

-         * @param {string} [variation] Name of the letter grade variation (e.g. withSS, withoutSS, etc.). Only used for formulas with multiple variations.

-         * @return {object} Letter grade calculation results

-         */

-        getLetter: function (outcomeAvgs, formula, variation) {

-            //Grade calculation results object

-            //This includes any properties that need to be passed to the gradebook. The properties set depend on the formula.

-            var parameters = {};

-

-            //Sort outcome averages highest -> lowest

-            outcomeAvgs.sort((a, b) => b - a);

-

-            if (formula == "2020-DASH-LT") {

-                //2020-DASH-LT SEMESTER 1 LETTER GRADE FORMULA (2020-DASH-LT)

-

-                //Array of letters from each criteria

-                var letters = [];

-

-                // ------- [2020-DASH-LT] Step 1: Get highest letter for Criteria 1 (percentage of outcomes criteria) -------

-                var percentage = .75;

-                var numOutcomesRequired = Math.floor(outcomeAvgs.length * percentage); //Minimum number of outcomes required

-

-                //Calculate the value 75% of outcomes >= to (number75) and the number of outcomes needed to meet criteria 1

-                if (outcomeAvgs.length == 1) {

-                    parameters.number75 = outcomeAvgs[0]; //if there is only 1 outcome, that outcome is number75

-                } else {

-                    parameters.number75 = outcomeAvgs[numOutcomesRequired - 1]; //number75 = the outcome 75% through the array (since its sorted)

-                }

-                parameters.number75thresh = numOutcomesRequired; //number75thresh = number of outcomes needed to meet the criteria

-

-                //Get the best letter

-                var bestLetter = null;

-

-                //Test each letter and add the highest to the letters array

-                for (var i = 0; i < this.letters.length; i++) {

-                    let letter = this.letters[i];

-

-                    if (parameters.number75 >= this.params[formula].percentage[letter]) {

-                        //Able to get this letter

-                        bestLetter = letter;

-

-                        //Stop checking for matches since all letters after this are lower

-                        break;

-                    }

-                }

-

-                //Add highest criteria 1 letter to the letters array

-                letters.push(bestLetter);

-

-                // ------- [2020-DASH-LT] Step 2: Get highest letter for Criteria 2 (lowest outcome criteria) -------

-

-                //Reset best letter

-                var bestLetter = null;

-

-                //Since the array is highest -> lowest, the lowest score is the last item in the array

-                parameters.lowestScore = outcomeAvgs[outcomeAvgs.length - 1];

-

-                //Test each letter and add the highest to the letters array

-                for (var i = 0; i < this.letters.length; i++) {

-                    let letter = this.letters[i];

-

-                    if (parameters.lowestScore >= this.params[formula].lowest[letter]) {

-                        //Able to get this letter

-                        bestLetter = letter;

-

-                        //Stop checking for matches since all letters after this are lower

-                        break;

-                    }

-                }

-

-                //Add highest criteria 2 letter to the letters array

-                letters.push(bestLetter);

-            }

-

-            //Get the final letter, the lowest letter from the array

-            var letterIndexes = letters.map(letter => this.letters.indexOf(letter)); //Array of letter indexes in this.letters

-            var lowestLetterIndex = Math.max(...letterIndexes); //Lowest letter = highest index in this.letters

-            var letter = this.letters[lowestLetterIndex]; //Get final letter

-

-            return {

-                letter: letter,

-                parameters: parameters,

-                variation: variation

-            };

-        }

-    };

-

-    function cssClassForLetterGrade(letter) {

-        return "letter-" + letter.replace("-", "-minus").replace("+", "-plus");

-    }

-

-    dtpsLMS.gradebook = function (course) {

-        //Add hide ungraded body class if enabled and preference listener

-        if (!dtpsLMS.ungradedListenerAdded) {

-            dtpsLMS.ungradedListenerAdded = true;

-            if (!fluid.get("pref-cblUngradedVisibility")) fluid.set("pref-cblUngradedVisibility", "hide");

-            const ramp = ["hide", "submitted", "upcoming", "all"];

-            function updateUngradedClasses(s) {

-                const p = ramp.indexOf(s);

-                jQuery('body').removeClass('ugShow');

-                jQuery('body').removeClass('ugFilterSubmitted');

-                jQuery('body').removeClass('ugFilterUpcoming');

-

-                if (s == "hide") return;

-                if (p >= 1) jQuery('body').addClass('ugShow');

-                if (p == 3) return;

-

-                if (p >= 1) jQuery('body').addClass('ugFilterSubmitted');

-                if (p == 2) jQuery('body').addClass('ugFilterUpcoming');

-            }

-            document.addEventListener("pref-cblUngradedVisibility", function (e) {

-                updateUngradedClasses(e.detail);

-            });

-            updateUngradedClasses(fluid.get("pref-cblUngradedVisibility"));

-        }

-

-        return new Promise((resolve, reject) => {

-            if (course.gradeCalculation && course.gradeCalculation.dtech) {

-                //RENDERER: RENDER GRADE CALCULATION SUMMARY ------------------------------------

-                if (course.gradeCalculation.dtech.formula == "2020-DASH-LT") {

-                    var erroredAssignments = course.assignments.filter(a => a.error);

-                    var gradeCalcSummary = /*html*/`

-                        <div id="gradeSummary" style="--size: 250px; margin: 0px 20px; --classColor: ${course.color};" class="grid flex">

-                          ${erroredAssignments.length ? /*html*/`

-                            <div style="color: #f2392c;" class="block status letterGrade card">

-                              <h2 class="main">${course.gradeCalculation.dtech.results.letter}</h2>

-                              <h5 class="bottom"><i class="fluid-icon">error</i> Data incomplete</h5>

-                            </div>

-                          ` : /*html*/`

-                            <div style="background-color: var(--classColor); color: white;" class="block status letterGrade card">

-                              <h2 class="main">${course.letter}</h2>

-                              ${course.previousLetter ? `<h5 class="previousGrade">Previous grade: ${course.previousLetter}</h5>` : ""}

-                              <h5 class="bottom"><i class="fluid-icon">grade</i> Grade</h5>

-                            </div>

-                          `}

-                          <div class="block status number75">

-                            <h2 class="main numFont">${course.gradeCalculation.dtech.results.parameters.number75.toFixed(2)}</h2>

-                            <h5 class="bottom"><i class="fluid-icon">functions</i> 75% of outcomes (rounded down, ${course.gradeCalculation.dtech.results.parameters.number75thresh}) ≥</h5>

-                          </div>

-                          <div class="block status lowestScore">

-                            <h2 class="main numFont">${course.gradeCalculation.dtech.results.parameters.lowestScore.toFixed(2)}</h2>

-                            <h5 class="bottom"><i class="fluid-icon">leaderboard</i> Lowest outcome</h5>

-                          </div>

-                        </div>

-

-                        <div style="--classColor: ${course.color};${dtps.gradebookExpanded ? "" : "display: none;"}" id="classGradeMore">

-                                <br />

-                                <table class="table">

-                                    <thead>

-                                        <tr>

-                                        <th>&nbsp;&nbsp;Final Letter</th>

-                                        <th>75% (rounded down) of outcomes are ≥</th>

-                                        <th>No outcomes below</th>

-                                        </tr>

-                                    </thead>

-

-                                    <tbody>

-                                        ${dtechGradeCalc.letters.map(letter => {

-                        return /*html*/`

-                                                <tr class="${cssClassForLetterGrade(letter)} ${course.letter == letter ? `active` : ``}">

-                                                    <td>&nbsp;&nbsp;${letter}</td>

-                                                    <td>${dtechGradeCalc.params[course.gradeCalculation.dtech.formula].percentage[letter]}</td>

-                                                    <td>${dtechGradeCalc.params[course.gradeCalculation.dtech.formula].lowest[letter]}</td>

-                                                </tr>

-                                            `

-                    }).join("")}

-                                    </tbody>

-                                </table>

-                            </div>

-

-                        <div onclick="$('#classGradeMore').toggle(); if ($('#classGradeMore').is(':visible')) {$(this).children('i').text('keyboard_arrow_up'); $(this).children('span').text('Show less'); dtps.gradebookExpanded = true;} else {$(this).children('i').text('keyboard_arrow_down'); $(this).children('span').text('Show more'); dtps.gradebookExpanded = false;}" class="gradeSummaryShowHide">

-                            ${dtps.gradebookExpanded ? `<i class="fluid-icon">keyboard_arrow_up</i> <span>Show less</span>` : `<i class="fluid-icon">keyboard_arrow_down</i> <span>Show more</span>`}

-                        </div>

-

-                        <br /><br /><br />

-

-                        <div style="margin: 0px 20px; display: flex; flex-direction: row; align-items: center;">

-                            <p style="margin-right: 10px;"><i style="font-size: 26px;" class="fluid-icon">filter_alt</i></p>

-                            <div>

-                                <div style="margin: 0px;" class="btns row small pref-cblUngradedVisibility">

-                                    <button onclick="fluid.set('pref-cblUngradedVisibility', 'hide')" class="btn hide">Graded only</button>

-                                    <button onclick="fluid.set('pref-cblUngradedVisibility', 'submitted')" class="btn submitted">Graded & submitted</button>

-                                    <button onclick="fluid.set('pref-cblUngradedVisibility', 'upcoming')" class="btn upcoming">Graded, submitted & upcoming</button>

-                                    <button onclick="fluid.set('pref-cblUngradedVisibility', 'all')" class="btn all">All</button>

-                                </div>

-                            </div>

-                        </div>

-

-                        ${erroredAssignments.length ? /*html*/`

-                            <div style="margin: 20px;">

-                                <h5>Incomplete Data</h5>

-                                <p>

-                                    Power+ encountered an error when fetching data for the following ${erroredAssignments.length} assignment(s): ${erroredAssignments.map(a => `<a style="cursor: pointer;" onclick="${`dtps.assignment('` + a.id + `', ` + a.class + `)`}">${a.title}</a>`).join(", ")}.

-                                    Since this appears to be an issue with Canvas that is also affecting the d.tech CBL grade dashboard, Power+ is still calculating your grade for this class with the errored data omitted.

-                                    If you have any questions or information regarding this issue, please email me at <a href="mailto:[email protected]">[email protected]</a>.

-                                </p>

-                            </div>

-                        ` : ``}

-                    `;

-                } else {

-                    var gradeCalcSummary = ""; //no grade calculation for this class

-                }

-

-                //RENDERER: RENDER EACH OUTCOME ------------------------------------

-                var outcomeHTML = []; //array of outcome html to be rendered

-                var dividerAdded = false; //used for determining if the unassessed outcome divided has been added

-                Object.keys(course.gradeCalculation.dtech.outcomes).sort(function (a, b) {

-                    var keyA = course.gradeCalculation.dtech.outcomes[a].average,//sort by score lowest -> highest

-                        keyB = course.gradeCalculation.dtech.outcomes[b].average;

-                    if (keyA == undefined) { keyA = 999999 - course.gradeCalculation.dtech.outcomes[a].scores.length; } //put outcomes with no assessments at the bottom

-                    if (keyB == undefined) { keyB = 999999 - course.gradeCalculation.dtech.outcomes[b].scores.length; }

-                    // Compare the 2 scores

-                    if (keyA > keyB) return 1;

-                    if (keyA < keyB) return -1;

-                    return 0;

-                }).forEach((outcomeID) => {

-                    var outcome = course.gradeCalculation.dtech.outcomes[outcomeID];

-

-                    var divider = !dividerAdded && !outcome.scores.length; //render divider

-                    if (divider) dividerAdded = true; //remember that divider is already rendered

-

-                    outcomeHTML.push(/*html*/`

-                    ${divider ? `<h5 style="font-weight: bold;margin: 75px 75px 10px 75px;">Unassesed outcomes</h5>` : ""}

-

-                    <div style="border-radius: 20px;padding: 22px; padding-bottom: 20px;" class="card outcomeResults outcome-${outcomeID}">

-                        <h5 style="max-width: calc(100% - 50px); font-size: 24px; margin: 0px; margin-bottom: 20px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;">${outcome.title}</h5>

-

-                        <div id="outcomeScore${outcomeID}" class="numFont" style="position: absolute; top: 20px; right: 20px; font-size: 26px; font-weight: bold; display: inline-block; color: ${dtechRubricColor(outcome.average)}">${outcome.average === null ? "" : outcome.average.toFixed(2)}</div>

-                        

-                        <div class="assessments">

-                            ${outcome.scores.length == 0 ? `

-                                    <p style="white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin: 6px 0px; color: var(--secText);">This outcome has not been assessed yet</p>

-                            ` :

-                            outcome.scores.map((assessment, aIndex) => {

-                                return /*html*/`

-                                        <div class="assessmentWrapper ${assessment.score === null || assessment.score === undefined ? "ungraded" : ""} ${new Date(assessment.assignmentDue) > new Date() ? "ugUpcoming" : ""} ${assessment.assignmentSubmitted ? "ugSubmitted" : ""} ${aIndex == outcome.droppedScore ? "dropped" : ""}" id="outcome${assessment.outcome}assessment${aIndex}" style="white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin: 6px 0px;">

-                                            <div style="color: ${assessment.color};" aIndex="${aIndex}" outcomeID="${outcomeID}" class="editableScore" ${dtps.remoteConfig.allowWhatIfGrades ? `contenteditable` : ""}>${assessment.score ?? ""}</div>

-                                            <span class="assessmentTitle" style="cursor: pointer;" onclick="dtps.assignment('${assessment.assignmentID}', ${course.num});">${assessment.assignmentTitle}</span>

-                                        </div>

-                                    `;

-                            }).join("")

-                        }

-                        </div>

-

-                        ${dtps.remoteConfig.allowWhatIfGrades ? /*html*/`

-                            <p class="addWhatIf" outcomeID="${outcomeID}" style="font-size: 14px; color: var(--secText); margin: 0px; margin-top: 16px; cursor: pointer;">

-                                <i style="cursor: pointer; vertical-align: middle; font-size: 16px;" class="fluid-icon down">add_box</i>

-                                Add a What-If grade

-                            </p>

-                        ` : ""}

-                    </div>

-                `);

-                })

-

-                //RESOLVE WITH HTML

-                resolve(gradeCalcSummary + `<br />` + outcomeHTML.join(""));

-            } else {

-                resolve();

-            }

-        });

-    }

-

-    //Enable What-If grades

-    var scrollListenerAdded = false;

-    dtpsLMS.gradebookDidRender = function (course) {

-        fluid.init();

-

-        //Add event listeners for every editable score in the gradebook

-        $(".card.outcomeResults .assessments .editableScore").toArray().forEach(ele => {

-            listenForWhatIf(ele, course);

-        });

-

-        //Add event listeners for the "Add a What-If grade" buttons

-        $("p.addWhatIf").click(function () {

-            addWhatIf(course, $(this).attr("outcomeID"));

-        });

-

-        //Keep the grade summary on top

-        if (!scrollListenerAdded) {

-            scrollListenerAdded = true;

-            var gradeSummary = document.getElementById("gradeSummary");

-            var sticky = gradeSummary.offsetTop - parseFloat($("body").css("padding-top")) - 10;

-            window.onscroll = function () {

-                if ((window.pageYOffset >= sticky) && ((dtps.classes[dtps.selectedClass]) && (dtps.selectedContent == "grades"))) {

-                    $(".classContent").addClass("fixedGradeSummary");

-                } else {

-                    $(".classContent").removeClass("fixedGradeSummary");

-                }

-            };

-        }

-    }

-

-    //Adds a What-If grade listener to the provided element

-    var listenForWhatIf = function (ele, course) {

-        ele.addEventListener("input", function () {

-            //Prepare what-if grades if it's not already prepared

-            initWhatIf(course);

-

-            //Get new outcome score

-            var typedScore = Number($(ele).text());

-

-            //Check if score is valid

-            if ($(ele).text() && ($(ele).text().length < 4) && !isNaN(typedScore) && (typedScore >= 0) && (typedScore <= 4)) {

-                //Valid outcome score, update color to match

-                $(ele).css("color", dtechRubricColor(typedScore));

-

-                //Check if score is modified

-                var isWhatIf = course.gradeCalculation.dtech.whatIfOutcomes[Number($(ele).attr("outcomeID"))].scores[Number($(ele).attr("aIndex"))].whatIfGrade;

-                if (isWhatIf || (typedScore !== course.gradeCalculation.dtech.outcomes[Number($(ele).attr("outcomeID"))].scores[Number($(ele).attr("aIndex"))].score)) {

-                    $(ele).addClass("modified");

-                } else {

-                    $(ele).removeClass("modified");

-                }

-

-                //Update score in the what-if outcomes

-                course.gradeCalculation.dtech.whatIfOutcomes[Number($(ele).attr("outcomeID"))].scores[Number($(ele).attr("aIndex"))].score = typedScore;

-

-                //Calculate what-if grade

-                calcWhatIf(course);

-            } else {

-                //Invalid outcome score, gray out and calculate without this score

-                $(ele).css("color", "var(--secText)");

-                $(ele).addClass("modified");

-

-                //Update score in the what-if outcomes

-                course.gradeCalculation.dtech.whatIfOutcomes[Number($(ele).attr("outcomeID"))].scores[Number($(ele).attr("aIndex"))].score = null;

-

-                //Calculate what-if grade

-                calcWhatIf(course);

-            }

-

-        }, false);

-

-        ele.addEventListener("focus", function () {

-            $(ele).addClass("focused");

-        }, false);

-

-        ele.addEventListener("blur", function () {

-            if ($(ele).hasClass("whatIf") && ($(ele).text() == "")) {

-                $(ele).parent().remove();

-                course.gradeCalculation.dtech.whatIfOutcomes[Number($(ele).attr("outcomeID"))].scores[Number($(ele).attr("aIndex"))].score = null;

-            } else {

-                $(ele).removeClass("focused");

-            }

-        }, false);

-

-        ele.addEventListener("keydown", function (e) {

-            function placeCaretAtEnd(el) {

-                el.focus();

-                if (typeof window.getSelection != "undefined"

-                    && typeof document.createRange != "undefined") {

-                    var range = document.createRange();

-                    range.selectNodeContents(el);

-                    range.collapse(false);

-                    var sel = window.getSelection();

-                    sel.removeAllRanges();

-                    sel.addRange(range);

-                } else if (typeof document.body.createTextRange != "undefined") {

-                    var textRange = document.body.createTextRange();

-                    textRange.moveToElementText(el);

-                    textRange.collapse(false);

-                    textRange.select();

-                }

-            }

-

-            if (e.key == "ArrowDown") {

-                e.preventDefault();

-                var scores = $(".editableScore").toArray();

-                if (scores[scores.indexOf(ele) + 1]) {

-                    placeCaretAtEnd(scores[scores.indexOf(ele) + 1]);

-                }

-            } else if (e.key == "ArrowUp") {

-                e.preventDefault();

-                var scores = $(".editableScore").toArray();

-                if (scores[scores.indexOf(ele) - 1]) {

-                    placeCaretAtEnd(scores[scores.indexOf(ele) - 1]);

-                }

-            }

-        }, false);

-    }

-

-    //Copies outcomes for modification, shows what-if UI

-    var initWhatIf = function (course) {

-        if (!$("#gradeSummary").hasClass("whatIf")) {

-            //Initialize what-if grades

-

-            //Copy outcomes for modification

-            course.gradeCalculation.dtech.whatIfOutcomes = JSON.parse(JSON.stringify(course.gradeCalculation.dtech.outcomes));

-

-            //Show what-if mode for grade summary

-            $("#gradeSummary .block.card").css("background-color", "");

-            $("#gradeSummary .block.card").css("color", "var(--classColor)");

-            $("#gradeSummary .block.card h5.bottom").html(`<i class="fluid-icon">analytics</i> What-If Grade`);

-            $("#gradeSummary .block.card .previousGrade").remove();

-            $("#gradeSummary .block.card h2.main").after(`<h5 onclick="fluid.screen();" class="showActualGrades">Show actual grades</h5>`);

-

-            $("#gradeSummary").addClass("whatIf");

-            $("#classGradeMore").addClass("whatIf");

-        }

-    }

-

-    //Calculates what-if grade and updates the UI based on the results

-    var calcWhatIf = function (course) {

-        if (course.gradeCalculation.dtech.whatIfOutcomes) {

-            //Class has what-if outcomes

-

-            //Run grade calculation with modified outcomes object

-            var results = dtechGradeCalc.run(course.assignments, course.gradeCalculation.dtech.formula, course.gradeCalculation.dtech.whatIfOutcomes);

-

-            //Update whatIfOutcomes object with new scores

-            course.gradeCalculation.dtech.whatIfOutcomes = results.outcomes;

-

-            //Update what-if results card with the grade calculation results

-            $("#gradeSummary .block.letterGrade h2.main").html(results.results.letter);

-            $("#gradeSummary .block.number75 h2.main").html(results.results.parameters.number75.toFixed(2));

-            $("#gradeSummary .block.lowestScore h2.main").html(results.results.parameters.lowestScore.toFixed(2));

-            $("#classGradeMore .table tr").removeClass("active");

-            $("#classGradeMore .table tr." + cssClassForLetterGrade(results.results.letter)).addClass("active");

-

-            //Remove dropped state

-            $(".card.outcomeResults .dropped").removeClass("dropped");

-

-            Object.keys(course.gradeCalculation.dtech.whatIfOutcomes).forEach(outcomeID => {

-                var outcome = course.gradeCalculation.dtech.whatIfOutcomes[outcomeID];

-

-                //Update outcome average

-                if (outcome.average !== undefined) {

-                    $("#outcomeScore" + outcomeID).html(outcome.average?.toFixed(2) ?? "");

-                    $("#outcomeScore" + outcomeID).css("color", dtechRubricColor(outcome.average));

-                }

-

-                //Add dropped state if the score is dropped

-                if (outcome.droppedScore !== undefined) {

-                    $("#outcome" + outcomeID + "assessment" + outcome.droppedScore).addClass("dropped");

-                }

-            })

-        }

-    }

-

-    //Adds a new score to an outcome

-    var addWhatIf = function (course, outcomeID) {

-        //Prepare what-if grades if it's not already prepared

-        initWhatIf(course);

-

-        //Get new assessment index

-        var aIndex = course.gradeCalculation.dtech.whatIfOutcomes[outcomeID].scores.length;

-

-        //Add new assessment to the outcome

-        course.gradeCalculation.dtech.whatIfOutcomes[outcomeID].scores.push({ //most of the stuff in this object is optional but I'm adding it anyways

-            id: "whatIf" + aIndex, //if changing this, update the id for the rendered what-if grade assessment as well

-            score: null,

-            value: 4,

-            whatIfGrade: true,

-            outcome: outcomeID,

-            color: "var(--secText)",

-            assignmentTitle: "What-If Grade",

-            description: "A What-If grade",

-            title: course.gradeCalculation.dtech.whatIfOutcomes[outcomeID].title,

-            assignmentID: null

-        });

-

-        //Add a new What-If assessment to the UI

-        $(".card.outcomeResults.outcome-" + outcomeID + " .assessments").append(/*html*/`

-            <div class="assessmentWrapper" id="outcome${outcomeID}assessment${aIndex}" style="white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin: 6px 0px;">

-                <div style="color: var(--secText);" aIndex="${aIndex}" outcomeID="${outcomeID}" class="editableScore modified whatIf" contenteditable></div>

-                <span class="assessmentTitle">What-If Grade</span>

-            </div>

-        `);

-

-        //Add an event listener for the new score

-        listenForWhatIf($(`#outcome${outcomeID}assessment${aIndex} .editableScore`)[0], course);

-    }

-});
\ No newline at end of file
+});

diff --git a/scripts/search.js b/scripts/search.js
index 5744548..3fd4d79 100644
--- a/scripts/search.js
+++ b/scripts/search.js
@@ -96,28 +96,7 @@
                 var res = [];

 

                 course.assignments.forEach(assignment => {

-                    if (dtpsLMS.useRubricGrades && assignment.rubric) {

-                        assignment.rubric.forEach(rubric => {

-                            if (rubric.score) {

-                                res.push({

-                                    title: assignment.title,

-                                    class: course.num,

-                                    onclick: "dtps.assignment('" + assignment.id + "', " + assignment.class + ")",

-                                    locatedIn: rubric.title,

-                                    icon: "assessment",

-                                    infoIcons: [

-                                        "bar_chart",

-                                        dtps.user.parent ? "person" : null

-                                    ].filter(i => i),

-                                    info: [

-                                        "Score: " + rubric.score + "/" + rubric.value + (rubric.scoreName ? " " + rubric.scoreName : ""),

-                                        dtps.user.parent ? dtps.user.children.find(c => c.id == course.userID).name : null

-                                    ].filter(i => i).join("$|$"),

-                                    icons: []

-                                });

-                            }

-                        });

-                    } else if (assignment.grade) {

+                    if (assignment.grade) {

                         res.push({

                             title: assignment.title,

                             class: course.num,