Skip to content

Commit db6996b

Browse files
committed
chore: screenshot updates and copy improvements
1 parent d7fe0f3 commit db6996b

File tree

10 files changed

+41
-57
lines changed

10 files changed

+41
-57
lines changed

packages/projects-docs/pages/learn/ai/boxy.mdx

Lines changed: 22 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -5,61 +5,71 @@ description: Introduction to Boxy the AI-powered coding companion
55

66
import { Callout } from 'nextra-theme-docs'
77

8-
98
# Meet Boxy
109

11-
Boxy is an experimental AI-powered chat tool that is built directly into your editor. Boxy is aware of your code and can answer questions and make suggestions that consider best practices and conventions that are specific to your project.
10+
<Callout emoji="⚠️">Boxy will be deprecated on July 31, 2024.</Callout>
11+
12+
Boxy is an experimental AI-powered chat tool that is built directly into your editor. Boxy is aware of your code and can answer questions and make suggestions that consider best practices and conventions that are specific to your project.
1213

1314
![run project with boxy](../images/boxy-overview.jpg)
1415

1516
## Boxy in the Editor
16-
If you have granted AI permissions in the workspace settings. You will notice the newest addition to your team sitting next to your avatar.
1717

18-
![run project with boxy](../images/boxy-avatar.jpg)
18+
If you have granted AI permissions in the workspace settings. You will notice the newest addition to your team sitting next to your avatar.
19+
20+
![run project with boxy](../images/boxy-avatar.jpg)
1921

2022
The easiest way to work with Boxy is to select a piece of code and choose a saved prompt. When you select the code, you will see a toolbar hover above the top line of the selected code. From there, you can either open the DevTool to chat with Boxy or run a saved prompt.
2123

2224
![run project with boxy](../images/boxy-toolbar.jpg)
2325

24-
2526
- **Edit** shows prompts related to refactoring code.
2627
- **Ask** shows prompts related to chat actions.
2728
- The **AI icon** opens a chat DevTool.
2829

2930
### Command Palette
30-
Saved prompts are listed in the command palette. You can access them from the toolbar using `⌘ + ⇧ + H`.
31-
32-
From here, you can search for or select a prompt from the list. Alternatively, you can type a custom prompt, which Boxy will quickly respond to.
33-
31+
32+
Saved prompts are listed in the command palette. You can access them from the toolbar using `⌘ + ⇧ + H`.
33+
34+
From here, you can search for or select a prompt from the list. Alternatively, you can type a custom prompt, which Boxy will quickly respond to.
35+
3436
When you ask Boxy to perform an action like `Document Code` or `Improve Readability` and you have code selected in the editor, Boxy will make suggestions directly in the file.
3537

3638
If you ask Boxy to `Explain Code` or `Consider Security`, the chat DevTool will automatically open with Boxy's response.
37-
3839

3940
## Boxy Chat
41+
4042
Open a chat DevTool to have a conversation with Boxy. You can open a chat in two different ways:
43+
4144
- select the AI icon in the toolbar.
4245
- open a new DevTool and select `Chat with Boxy`.
4346

44-
You can have multiple chats open at the same time. If you need to change topics but don't want to lose your progress in your last conversation, simply select `+` in the input to create a new chat.
47+
You can have multiple chats open at the same time. If you need to change topics but don't want to lose your progress in your last conversation, simply select `+` in the input to create a new chat.
4548

4649
Below are a few tips and tricks that can help you make the most of your interactions with Boxy.
4750

4851
## Tips and Tricks
52+
4953
### Tips
54+
5055
**Keep chatting**
5156
Boxy remembers your previous conversations and takes them into account when providing responses. For example, if you have asked Boxy to include the file path for the suggested code repeatedly in the past, it will include it in future responses.
5257

5358
**Request response formats**
54-
Do you prefer that Boxy always provides suggestions in insertable snippets? Or do you prefer to see the code situated within the full file? Ask Boxy to `"always respond with ___"` to receive suggestions in the way you like.
59+
Do you prefer that Boxy always provides suggestions in insertable snippets? Or do you prefer to see the code situated within the full file? Ask Boxy to `"always respond with ___"` to receive suggestions in the way you like.
5560

5661
**When in doubt, provide more context**
5762
Boxy will give you what you ask for. They may make suggestions based on the way your frame your question. Boxy may have better responses when you ask them to consider specific files or libraries that may contain useful context for your question.
5863

5964
### Tricks
65+
6066
- use backticks for keywords or code segments
6167
- use "again" to repeat your last prompt
6268

6369
## Commit suggestions
70+
6471
Say goodbye to nondescriptive or confusing commit messages. When you enable AI to work on repositories, Boxy will automatically generate commit messages based on the files changed in your branch. You can easily edit or remove these suggestions according to your preference.
6572

73+
## Boxy for Sandboxes
74+
75+
Boxy is available only on repositories and Devboxes. If you want the support of Boxy in your Sandbox, you can easily [convert your Sandbox](/tutorial/convert-browser-sandbox-cloud) using the options in the toolbar.

packages/projects-docs/pages/learn/ai/faqs.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,4 +21,4 @@ Yes. Boxy is available in all plans.
2121

2222
No. Boxy is exclusively available in devboxes and repositories. However, you can easily [convert a Sandbox into a Devbox](/tutorial/convert-browser-sandbox-cloud) to get access to Boxy. This is available through the "Convert to Devbox" button at the top right of the Sandbox editor.
2323

24-
![Convert browser sandbox](../images/convert-sandbox-from-ai.png)
24+
![Convert Sandbox to Devbox](../images/convert-sandbox-to-devbox.jpg)

packages/projects-docs/pages/learn/ai/getting-started.mdx

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -4,19 +4,13 @@ description: Instructions for getting started with AI
44
---
55

66
# Getting Started
7-
All CodeSandbox AI tools are available for Pro users. To enable these features, admins need to grant permissions in the workspace settings.
8-
9-
![run project with boxy](../images/boxy-permission.jpg)
107

8+
All CodeSandbox AI tools are available to Free and Pro users. To enable these features, admins need to grant permissions in the [workspace settings](https://codesandbox.io/t/permissions).
119

10+
![AI Permissions](../images/ai-permissions.jpg)
1211

1312
Once you grant AI permissions, CodeSandbox will send information about the event to OpenAI for analysis. Under no circumstances will we send any event data to OpenAI without explicit instruction to do so. We will only share selected event data with OpenAI after you toggle on these permissions. OpenAI does not use the event data shared via this feature to train its AI models. To learn more about our privacy agreement with OpenAI, check out our [Privacy page](https://codesandbox.io/legal/privacy).
1413

1514
## Running AI
16-
Once permissions have been granted, you need to restart the VMs for the changes to take effect. You can do this by selecting `Restart Branch` in the main menu. If you are in a Devbox, the option will read `Restart Sandbox`.
17-
18-
## Boxy for Sandboxes
19-
Boxy is available only on repositories and Devboxes. If you want the support of Boxy in your Sandbox, you can easily [convert your sandbox](/tutorial/convert-browser-sandbox-cloud) using the options in the toolbar.
20-
21-
2215

16+
Once permissions have been granted, you need to restart the VMs for the changes to take effect. You can do this by selecting `Restart Branch` in the main menu. If you are in a Devbox, the option will read `Restart Sandbox`.

packages/projects-docs/pages/learn/editors/desktop-setup.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ Once you open the branch, follow these steps:
4949
1. Click on the dropdown icon of the "Open in VS Code" button.
5050
1. In the dropdown menu, click on the "Open in VS Code Insiders" option.
5151

52-
![Dropdown to select the Open in VS Code Insiders option](../images/vs-code-insiders-open.jpg)
52+
![Dropdown to select the Open in VS Code Insiders option](../images/vscode-desktop-open.png)
5353

5454
<br/>
5555
### In the command palette

packages/projects-docs/pages/learn/editors/settings.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ import { Tabs, WrapContent } from '../../../../../shared-components/Tabs'
2020

2121
#### VIM
2222

23-
For all the VIM users, this setting enables the use of the command palette to control VIM.
23+
This setting enables all VIM users out there to use the command palette to control VIM.
2424

2525
#### Pointer cursor
2626
Enabled by default, this setting determines if the cursor is displayed as a pointer over interactive elements.

packages/projects-docs/pages/learn/editors/web-interface.mdx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,11 @@ In the Terminal panel, you can see all the running tasks, private terminals, and
1717

1818
While the layout is entirely customizable, the standard layout opens previews, and support tools like documentation and setup tools in the right editor panel.
1919

20-
2120
## Tasks, Terminals and Previews
2221

2322
Preview ports, Tasks and shared terminals are controlled through the devtool extension in the sidebar.
2423

25-
![CSB devtool](../images/vscode-web-devtools.png)
24+
![CodeSandbox DevTools](../images/devtools.jpg)
2625

2726
**Tasks**
2827

77.7 KB
Loading
51 KB
Loading

packages/projects-docs/pages/learn/repositories/_meta.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
"title": "File Upload",
3030
"href": "/learn/devboxes/upload"
3131
},
32-
"review": "Code Reviews",
32+
"review": "PR Reviews",
3333
"open-source": "Open Source Collaboration",
3434
"collaborate-share": "Collaborate & Share"
3535
}

packages/projects-docs/pages/tutorial/convert-browser-sandbox-cloud.mdx

Lines changed: 11 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -5,56 +5,37 @@ description: Learn how to quickly convert CodeSandbox browser sandboxes into the
55

66
# Convert a Sandbox into a Devbox
77

8-
CodeSandbox provides two different sandboxing environments you can use to quickly experiment with code, learn, prototype a project and share it with others: sandboxes and devboxes.
8+
CodeSandbox provides two different sandboxing environments you can use to quickly experiment with code, learn, prototype a project and share it with others: Sandboxes and Devboxes.
99

1010
Devboxes are part of our evolved CodeSandbox experience, so we now provide a way to easily convert existing browser sandboxes into this new experience.
1111

1212
## Why convert into a Devbox?
1313

14-
Cloud and browser sandboxes are valuable tools for web development projects, but they have critical differences regarding their capabilities and limitations.
14+
Sandboxes and Devboxes are valuable tools for web development projects, but they have critical differences regarding their capabilities and limitations.
1515

16-
[Browser sandboxes](/learn/sandboxes/editors?tab=browser), also known as client-side sandboxes, run directly within the user's web browser. Because they rely on browser features to provide environments for running code, they are lightweight and easy to use. Still, they do not provide the same level of scalability and isolation as virtualized environments since they rely heavily on the browser.
16+
[Sandboxes](/learn/sandboxes/editor-features) run directly within the user's web browser. Because they rely on browser features to provide environments for running code, they are lightweight and easy to use. Still, they do not provide the same level of scalability and isolation as virtualized environments since they rely heavily on the browser.
1717

18-
In contrast, [Devboxes](/learn/sandboxes/editors?tab=cloud) use [microVMs](/learn/environment/vm) to provide an isolated and secure environment for running code. These microVMs are lightweight and optimized for running web applications, and they provide a more consistent and predictable environment for running code than browser sandboxes.
18+
In contrast, [Devboxes](/learn/devboxes/overview) use [VMs](/learn/environment/vm) to provide an isolated and secure environment for running code. These VMs are lightweight and optimized for running web applications, and they provide a more consistent and predictable environment for running code than Sandboxes.
1919

20-
As a result, Devboxes get rid of several [limitations of sandboxes](/faq#are-there-any-limitations-with-sandboxes), while offering additional benefits when managing and scaling infrastructure. Namely, Devboxes can be easily scaled up or down to accommodate project needs, offering more resource allocation and management flexibility.
20+
As a result, Devboxes get rid of several [limitations of Sandboxes](/faq#are-there-any-limitations-with-sandboxes), while offering additional benefits when managing and scaling infrastructure. Namely, Devboxes can be easily scaled up or down to accommodate project needs, offering more resource allocation and management flexibility.
2121

2222
Additionally, Devboxes are collaborative by default, allowing for easier collaboration among team members, as developers can easily share their code and collaborate in real time. This sets CodeSandbox apart from other cloud development tools.
2323

2424
### Feature comparison
2525

2626
Besides the benefits presented above, there are some other noteworthy features that are only available in Devboxes:
27+
2728
- built-in [Docker support](/learn/environment/docker)
2829
- support for any programming language (using Docker)
2930
- Boxy [AI assistant](/learn/boxy/overview)
3031
- collaborative [terminals](/learn/repositories/terminal) with `root` access
31-
- [VS Code integration](/learn/getting-started/setting-up-vscode)
32+
- [VS Code Desktop integration](/learn/getting-started/setting-up-vscode)
3233
- element inspector
3334
- [tasks](/learn/repositories/task)
35+
- [live sessions](/learn/devboxes/live-sessions)
3436

35-
However, Devboxes currently do not offer feature parity to Sandboxes. The following Sandboxes features are currently not available in Devboxes:
36-
- deployment menu
37-
- live sessions
38-
39-
## Convert into a Devbox via URL
40-
41-
There are several ways to convert a Sandbox into a Devbox. The first is from the URL.
42-
43-
Usually, Sandboxes start with `https://codesandbox.io/s/`. To convert into Devbox, you can replace the prefix with `https://codesandbox.io/p/sandbox/`. This will automatically open up a Devbox.
44-
45-
## Convert from the browser sandbox UI
46-
47-
There are a few prompts for converting a sandbox in the browser sandbox UI.
48-
49-
### Terminal tab
50-
51-
If you want to access the terminal in the browser sandbox UI, we suggest you convert it into a Devbox since the experience is much better there.
52-
53-
![Convert from terminal](/convert-from-terminal.png)
54-
55-
### Sidebar icons
56-
57-
In case you want to use some cloud-only features such as Docker, VS Code integration or AI, click the corresponding icon on the left sidebar. This will display a prompt allowing you to convert or fork the sandbox to get access to those features.
37+
## Convert a Sandbox to a Devbox
5838

59-
![Convert from left sidebar](/convert-from-sidebar.png)
39+
You can convert most Sandboxes into a Devbox by clicking the "Convert to Devbox" button at the top right of the Sandbox editor.
6040

41+
![Convert Sandbox to Devbox](https://assets.codesandbox.io/images/convert-sandbox-to-devbox.jpg)

0 commit comments

Comments
 (0)