Skip to content

Commit

Permalink
Make billing more accurate
Browse files Browse the repository at this point in the history
  • Loading branch information
katniny committed Oct 31, 2024
1 parent ad3ab76 commit 2ea4705
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 5 deletions.
11 changes: 7 additions & 4 deletions assets/js/ts_fas_acih.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@ const pathName = pageURL.pathname;
let isOnDesktopApp = null;

// TransSocial Version
let transsocialVersion = "v2024.10.28";
let transsocialUpdate = "v20241028-2";
let transsocialVersion = "v2024.10.30";
let transsocialUpdate = "v20241030-1";
let transsocialReleaseVersion = "pre-alpha";

const notices = document.getElementsByClassName("version-notice");
Expand Down Expand Up @@ -7809,8 +7809,11 @@ const checkSubscription = () => {
}

// show user since when they've been subscribed and when their subscription renews
document.getElementById("subMemberSince").textContent = `You've been subscribed since ${convertUnixTimestampToDate(data.current_period_start)}`;
document.getElementById("subRenewalDay").textContent = `Your subscription gets renewed on ${convertUnixTimestampToDate(data.current_period_end)} (unless you canceled your subscription)`;
document.getElementById("subMemberSince").textContent = `Current billing period: ${convertUnixTimestampToDate(data.current_period_start)} to ${convertUnixTimestampToDate(data.current_period_end)}`;
document.getElementById("subRenewalDay").textContent = `Subscription status: ${data.status}`;
if (data.status === "active") { // i wish stripe told me whether their subscription is cancelled or not
document.getElementById("subRenewalDay").innerHTML += `<br />(unless you cancelled your subscription)`;
}
}

document.getElementById("enchantedSidebar").style.display = "none";
Expand Down
2 changes: 1 addition & 1 deletion settings.html
Original file line number Diff line number Diff line change
Expand Up @@ -371,7 +371,7 @@ <h3>Thank you for subscribing!</h3>
<br />

<p id="subMemberSince">You've been subscribed since MM/DD/YY</p>
<p id="subRenewalDay">Your subscription gets renewed on MM/DD/YY</p>
<p id="subRenewalDay" style="font-size: smaller; color: var(--text-semi-transparent);">Your subscription gets renewed on MM/DD/YY</p>

<br />

Expand Down
9 changes: 9 additions & 0 deletions updates.html
Original file line number Diff line number Diff line change
Expand Up @@ -152,12 +152,21 @@ <h1 id="selectedFilter" style="text-decoration: underline; margin-bottom: 5px;">
<div id="prealphaVersions">
<p>Trying to find older updates? You may be interested in the InDev tab, since TransSocial is no longer in InDev!</p>

<div class="update">
<h2>v2024.10.30_pre-alpha</h2>
<h3 style="color: var(--text-semi-transparent);">Released: October 30, 2024</h3>
<li>Made subscription billing more accurate (from "You've been subscribed since ..." to "Current billing period: [START] to [FINISH]")</li>
</div>

<br />

<div class="update">
<h2>v2024.10.28_pre-alpha</h2>
<h3 style="color: var(--text-semi-transparent);">Released: October 28, 2024</h3>
<li>Fixed signed out users not being able to do anything due to TransSocial thinking they're trying to love/renote a note</li>
<li>Made "Join TransSocial" banner for signed out users more prominent</li>
<li>Added easter eggs</li>
<li>Fixed notes not loading</li>
</div>

<br />
Expand Down

0 comments on commit 2ea4705

Please sign in to comment.