Skip to content

Commit 8c540d4

Browse files
fix loading on new generation, messages
1 parent ad92e6c commit 8c540d4

File tree

2 files changed

+12
-6
lines changed

2 files changed

+12
-6
lines changed

Diff for: src/components/loading.tsx

+11-6
Original file line numberDiff line numberDiff line change
@@ -10,17 +10,22 @@ const LoadingAnimation = dynamic(() => import("./loading-animation"), {
1010
});
1111

1212
const messages = [
13-
"Generating diagram...",
1413
"Checking if its cached...",
14+
"Generating diagram...",
1515
"Analyzing repository...",
16-
"Abusing Claude...",
17-
"Losing my mind...",
18-
"How long is this gonna take 💀",
19-
"This is gonna use so many credits 😭",
20-
"Prompt engineers needed -> Check out the GitHub repo",
16+
"Prompting Claude...",
17+
"Inspecting file paths...",
18+
"Prompt engineers needed -> Check out the GitHub",
2119
"Shoutout to GitIngest for inspiration",
2220
"Looking for internships...",
2321
"No internships found 💀",
22+
"How long is this gonna take???",
23+
"This is gonna cost so much money 😭",
24+
"Finding the meaning of life...",
25+
"I'm tired...",
26+
"Bro please just give me the diagram...",
27+
"NOW!",
28+
"guess not...",
2429
];
2530

2631
interface LoadingProps {

Diff for: src/hooks/useDiagram.ts

+1
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ export function useDiagram(username: string, repo: string) {
2020
setLoading(true);
2121
setError("");
2222
setCost("");
23+
setIsRegenerating(true);
2324
try {
2425
const cached = await getCachedDiagram(username, repo);
2526

0 commit comments

Comments
 (0)