Made with Hope

๐Ÿ”„ Changing Components

You can modify and refactor any component at any time. This document outlines the various methods for updating components within Bit Cloud.

Using cloud workspaces

Cloud Workspaces provide a remote development environment where you can edit your component. They offer an in-browser IDE with direct access to the component's implementation.

To edit a component in a Cloud Workspace:

  1. Navigate to the component you want to modify.
  2. Click the Edit Component button.
  3. Run the Bit dev-server to preview your changes.
  4. Modify the component as needed within the in-browser IDE.
  5. Once you're satisfied, create a lane from the IDE.
Create a lane from the IDE

  1. Provide a name for your lane.
Name a lane

  1. Then, go to the "Source Control" tab and select "Snap & Export."
Snap and export changes

  1. A dialog will appear, providing a link to track the build process of your changes.

From this point, you can submit changes through change requests or release a new version of the component directly.

Using Hope AI

Hope AI is an AI assistant designed to help you modify and update your components. It can assist with code changes, provide feedback, and even execute the component's build pipeline.

To use Hope AI to modify a component:

  1. Navigate to the component you want to edit.
  2. Click the Hope AI assistant button.
  3. Choose from the available modification options.
Edit component with Hope AI

  1. Hope AI will display the proposed modifications. You can provide further prompts to refine and align these changes.
  2. When you're satisfied, click the "Snap Changes" button.
  3. Hope AI will provide a link to the change request containing the changes.

From here, you can ask a peer to review changes or release a new version of the component directly.

From a Git repository

If you maintain a local Bit workspace within a Git repository, you can clone the repository and make code changes as you would in any other project.

From anywhere

Bit enables you to create a local workspace for any component in any directory on your computer or server. To do this:

  1. Install Bit.
  2. Create a new directory or cd into an existing project directory.
  3. Run bit init in the directory.
  4. Use the bit import command to import a local copy of the component, including all configuration and implementation.

You can now apply code changes directly to the component.

Use this method to modify a component directly from a project that uses it as a dependency!


๐Ÿฆถ Next Steps