Skip to content

Commit 656bf08

Browse files
committed
docs
1 parent ce49b76 commit 656bf08

File tree

1 file changed

+58
-11
lines changed

1 file changed

+58
-11
lines changed

src/pages/apps/bsky-follow-suggestions.tsx

Lines changed: 58 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -146,17 +146,41 @@ const Bsky = () => {
146146
const followingComponent = (
147147
<div>
148148
<div>
149-
<h3>
150-
Accounts suggested: {new Set(Object.keys(suggestionCounts)).size}
151-
</h3>
152-
<h3>
153-
Suggestions checked: {suggestionDetailRequests} (max:{" "}
154-
{maxSuggestionDetailRequests})
155-
</h3>
156-
<h3>
157-
Suggestions detailed: {Object.keys(suggestionDetails).length} (max:{" "}
158-
{maxSuggestions})
159-
</h3>
149+
<p>
150+
Suggestions should finish loading after either of these bars is full:
151+
</p>
152+
<div className="progress" style={{ height: "20px" }}>
153+
<div
154+
className="progress-bar progress-bar-striped bg-success"
155+
role="progressbar"
156+
style={{
157+
width:
158+
(
159+
(100 * suggestionDetailRequests) /
160+
maxSuggestionDetailRequests
161+
).toString() + "%",
162+
}}
163+
aria-valuenow={suggestionDetailRequests}
164+
aria-valuemin={0}
165+
aria-valuemax={maxSuggestionDetailRequests}
166+
></div>
167+
</div>
168+
<div className="progress" style={{ height: "20px" }}>
169+
<div
170+
className="progress-bar progress-bar-striped"
171+
role="progressbar"
172+
style={{
173+
width:
174+
(
175+
(100 * Object.keys(suggestionDetails).length) /
176+
maxSuggestions
177+
).toString() + "%",
178+
}}
179+
aria-valuenow={Object.keys(suggestionDetails).length}
180+
aria-valuemin={0}
181+
aria-valuemax={maxSuggestions}
182+
></div>
183+
</div>
160184
<hr />
161185
<div className="form-check">
162186
<input
@@ -236,6 +260,29 @@ const Bsky = () => {
236260
Suggest!
237261
</button>
238262
</div>
263+
<p>
264+
Hello and welcome to my first bluesky app! This is a tool to help
265+
you find new people to follow. It will suggest accounts based on the
266+
number of your followers that follow them. It can sort based on a
267+
total number (favoring large accounts) or a percent (favoring niche
268+
accounts).
269+
</p>
270+
<p>
271+
The number of followers checked is subject to several limits, and is
272+
slightly random. This is primarily to avoid overloading the server
273+
and or your web browser. At the same time, there's a cache on the
274+
server that will store the results for a short period of time. I say
275+
that to say: you are encouraged to try this tool multiple times! You
276+
may get different results, and subsequent runs should cost less
277+
server resources than the first run.
278+
</p>
279+
<p>
280+
This idea was based off of{" "}
281+
<a href="https://bsky-follow-finder.theo.io/" target="_blank">
282+
bsky-follow-finder
283+
</a>
284+
, go check that out as well!
285+
</p>
239286
</div>
240287
<div className="post-content">
241288
{error ? error : null}

0 commit comments

Comments
 (0)