Skip to content

Commit

Permalink
Merge pull request #334 from lockdown-systems/333-fast-delete-issues
Browse files Browse the repository at this point in the history
Final fast delete issues
  • Loading branch information
micahflee authored Dec 9, 2024
2 parents 717d03e + 8cfb456 commit fa9187a
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 1 deletion.
4 changes: 4 additions & 0 deletions src/renderer/src/view_models/AccountXViewModel.ts
Original file line number Diff line number Diff line change
Expand Up @@ -315,6 +315,10 @@ export class AccountXViewModel extends BaseViewModel {
await this.sleep(seconds * 1000);
this.log("waitForRateLimit", "finished waiting for rate limit");

// Reset the rate limit checker
await window.electron.X.resetRateLimitInfo(this.account?.id);
this.rateLimitInfo = emptyXRateLimitInfo();

// Wait for the user to unpause.
// This is important because if the computer sleeps and autopauses during a rate limit, this will
// continue to wait until after the computer wakes up.
Expand Down
29 changes: 28 additions & 1 deletion src/renderer/src/views/x/XFinishedRunningJobsPage.vue
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ onMounted(async () => {
<template>
<div class="finished">
<div v-if="model.account.xAccount?.saveMyData" class="container mt-3">
<div class="finished-archive">
<div class="finished-save">
<h2>You just saved:</h2>
<ul>
<li v-if="(model.progress.newTweetsArchived ?? 0) > 0">
Expand Down Expand Up @@ -110,6 +110,31 @@ onMounted(async () => {
</p>
</div>
</div>
<div v-if="model.account.xAccount?.archiveMyData" class="container mt-3">
<div class="finished-archive">
<h2>You just archived:</h2>
<ul>
<li v-if="model.account.xAccount?.archiveTweetsHTML">
<i class="fa-solid fa-floppy-disk archive-bullet" />
<strong>{{ model.progress.newTweetsArchived.toLocaleString() }}</strong> tweets
saved as HTML archives
</li>
<li
v-if="model.account.xAccount?.archiveDMs || (model.progress.conversationsIndexed ?? 0) > 0 || (model.progress.messagesIndexed ?? 0) > 0">
<i class="fa-solid fa-floppy-disk archive-bullet" />
<strong>{{ model.progress.conversationsIndexed.toLocaleString() }}</strong>
conversations,
including <strong>{{ model.progress.messagesIndexed.toLocaleString() }}</strong>
messages
</li>
</ul>

<p>
Your X archive is stored locally on your computer at
<code>{{ archivePath }}</code>.
</p>
</div>
</div>
<div v-if="model.account.xAccount?.deleteMyData" class="container mt-3">
<div class="finished-delete">
<h2>You just deleted:</h2>
Expand Down Expand Up @@ -234,13 +259,15 @@ onMounted(async () => {
margin-right: 5px;
}
.finished-save ul,
.finished-archive ul,
.finished-delete ul {
list-style-type: none;
padding-left: 0;
margin-left: 1.5em;
}
.finished-save li,
.finished-archive li,
.finished-delete li {
margin-bottom: 0.2rem;
Expand Down

0 comments on commit fa9187a

Please sign in to comment.