Skip to content

Commit 85ccaaa

Browse files
authored
Merge branch 'main' into lsp/threaded-optimizer-cleanup
2 parents 0afb67c + b77f50e commit 85ccaaa

File tree

5 files changed

+72
-20
lines changed

5 files changed

+72
-20
lines changed

docs/docs.json

Lines changed: 11 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
"favicon": "/favicon.ico",
1111
"integrations": {
1212
"intercom": {
13-
"appId": "ljxo1nzr"
13+
"appId": "ljxo1nzr"
1414
}
1515
},
1616
"navigation": {
@@ -20,16 +20,14 @@
2020
"groups": [
2121
{
2222
"group": "🏠 Overview",
23-
"pages": [
24-
"index"
25-
]
23+
"pages": ["index"]
2624
},
2725
{
26+
2827
"group": "🚀 Quickstart",
2928
"pages": [
3029
"getting-started/local-installation"
31-
]
32-
},
30+
] },
3331
{
3432
"group": "⚡ Optimizing with Codeflash",
3533
"pages": [
@@ -42,22 +40,17 @@
4240
"group": "✨ Continuous Optimization",
4341
"pages": [
4442
"optimizing-with-codeflash/codeflash-github-actions",
45-
"optimizing-with-codeflash/benchmarking"
43+
"optimizing-with-codeflash/benchmarking",
44+
"optimizing-with-codeflash/review-optimizations"
4645
]
4746
},
4847
{
4948
"group": "🧠 Core Concepts",
50-
"pages": [
51-
"codeflash-concepts/how-codeflash-works",
52-
"codeflash-concepts/benchmarking"
53-
]
49+
"pages": ["codeflash-concepts/how-codeflash-works", "codeflash-concepts/benchmarking"]
5450
},
5551
{
5652
"group": "⚙️ Configuration & Best Practices",
57-
"pages": [
58-
"configuration",
59-
"getting-the-best-out-of-codeflash"
60-
]
53+
"pages": ["configuration", "getting-the-best-out-of-codeflash"]
6154
}
6255
]
6356
}
@@ -91,9 +84,7 @@
9184
}
9285
},
9386
"contextual": {
94-
"options": [
95-
"copy"
96-
]
87+
"options": ["copy"]
9788
},
9889
"redirects": [
9990
{
@@ -116,11 +107,11 @@
116107
"href": "https://www.codeflash.ai/privacy-policy"
117108
},
118109
{
119-
"label": "Terms of Service",
110+
"label": "Terms of Service",
120111
"href": "https://www.codeflash.ai/terms-of-service"
121112
}
122113
]
123114
}
124115
]
125116
}
126-
}
117+
}

docs/images/edited-code.png

321 KB
Loading

docs/images/editor.png

370 KB
Loading

docs/images/review-optimizations.png

297 KB
Loading
Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
---
2+
title: "Staging Review for Optimizations"
3+
description: "Review and manage optimizations before creating pull requests with staging mode"
4+
icon: "layer-group"
5+
sidebarTitle: "Review Optimizations"
6+
keywords:
7+
[
8+
"staging review",
9+
"optimization preview",
10+
"pro feature",
11+
"batch review",
12+
"pull request management",
13+
]
14+
---
15+
16+
# Staging Review for Optimizations
17+
18+
<Note>
19+
This is a Pro feature available exclusively to Codeflash Pro users. [Upgrade to
20+
Pro](https://app.codeflash.ai/billing) to access it.
21+
</Note>
22+
Staging Review allows you to preview and evaluate all optimizations before creating pull requests. This
23+
feature provides a centralized review interface where you can examine proposed changes and selectively
24+
create pull requests for approved optimizations.
25+
26+
## Benefits of Staging Review
27+
28+
- **Preview without PRs:** Review all optimization suggestions without cluttering your repository with multiple pull requests
29+
- **Batch review:** Examine all optimizations in one centralized location
30+
- **Selective PR creation:** Choose which optimizations to convert into pull requests
31+
- **Reduced noise:** Keep your repository's PR list clean while evaluating changes
32+
33+
## Using Staging Review
34+
35+
To optimize your codebase with staging review enabled, run:
36+
37+
```bash
38+
codeflash --all --staging-review
39+
```
40+
41+
This command will:
42+
43+
44+
1. Start to optimize your project, and if it finds any optimizations, it will save them to [Review Optimizations Page](https://app.codeflash.ai/review-optimizations) instead of creating PRs immediately
45+
46+
![Review Optimizations List](../images/review-optimizations.png)
47+
48+
2. Provide you with a staging interface to review all proposed changes
49+
50+
![Staging Review Editor](../images/editor.png)
51+
52+
## Managing Staged Optimizations
53+
54+
Once optimizations are staged, you can:
55+
- Review each optimization individually
56+
- Compare original and optimized code side-by-side
57+
- Edit the code of staged optimizations
58+
- Create pull requests for selected optimizations directly from the staging interface
59+
60+
![Edited Code](../images/edited-code.png)
61+

0 commit comments

Comments
 (0)