Skip to content

Commit 3305635

Browse files
committed
[FULLSTACK | OPTIMIZED RETRY MECHANISM] - created an advance retry mechanism
1 parent 32c8a17 commit 3305635

5 files changed

Lines changed: 12 additions & 12 deletions

File tree

apps/client/src/components/Profile/OctadockAccount.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ function OctadockAccount() {
1818
const [activeTab, setActiveTab] = useState("deployments");
1919

2020
const isAuthenticated = useSelector(
21-
(state: RootState) => state.auth.isAuthenticated
21+
(state: RootState) => state.auth.isAuthenticated,
2222
);
2323
let userId;
2424
if (!isAuthenticated) {

apps/client/src/components/Project/Editor.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ export default function Editor({
6565
height: "100%",
6666
width: "100%",
6767
hideExplorer: false,
68-
}
68+
},
6969
)
7070
.then((vm) => {
7171
if (!cancelled) {
@@ -76,7 +76,7 @@ export default function Editor({
7676
.catch((fallbackErr) => {
7777
console.error("Fallback embed error:", fallbackErr);
7878
setError(
79-
fallbackErr?.message || "Failed to load StackBlitz fallback"
79+
fallbackErr?.message || "Failed to load StackBlitz fallback",
8080
);
8181
});
8282

@@ -171,7 +171,7 @@ export default function Editor({
171171
{
172172
username,
173173
foldername: fileStructure,
174-
}
174+
},
175175
);
176176
};
177177
const handleDeployemnt = async () => {
@@ -181,7 +181,7 @@ export default function Editor({
181181
configuration.builder_server + "/deploy",
182182
{
183183
projectId: param.id,
184-
}
184+
},
185185
);
186186

187187
if (response.data) {

apps/client/src/components/Projects/AllProjects.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ function AllProjects() {
5050
return authors.sort();
5151
}, []);
5252
const isAuthenticated = useSelector(
53-
(state: RootState) => state.auth.isAuthenticated
53+
(state: RootState) => state.auth.isAuthenticated,
5454
);
5555
let userId;
5656
if (!isAuthenticated) {

apps/client/src/components/Projects/ProjectCard.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ const ProjectCard = ({
175175
{
176176
month: "short",
177177
day: "numeric",
178-
}
178+
},
179179
)
180180
: "Recently"}
181181
</div>

apps/server/controller/customAIFeatures.controllers.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,11 @@ class customModel {
2020
async generateFileBasedOnFeatures(
2121
srs: string,
2222
description: string,
23-
gitSummary: string
23+
gitSummary: string,
2424
) {
2525
const prompt = CodeGenerationForFeature.replace(
2626
"{srs_documentdetails}",
27-
srs
27+
srs,
2828
)
2929
.replace("{current_feature}", description)
3030
.replace("{git_summary}", gitSummary);
@@ -42,7 +42,7 @@ class customModel {
4242
codefile,
4343
gitSummary,
4444
currentStatus,
45-
sdd
45+
sdd,
4646
) {
4747
if (PRE_EXISTING.includes(codefile)) return codeMap[codefile];
4848

@@ -148,11 +148,11 @@ class customModel {
148148
async generateCorrectnessInFileOnBuggyFeature(
149149
srs: string,
150150
codefile: string,
151-
gitSummary: string
151+
gitSummary: string,
152152
) {
153153
const prompt = CodeGenerationForCorrection.replace(
154154
"{srs_documentdetails}",
155-
srs
155+
srs,
156156
)
157157
.replace("{current_code}", codefile)
158158
.replace("{git_summary}", gitSummary);

0 commit comments

Comments
 (0)