Skip to main content

Source control and project handoff

AVstudio source is ordinary JSON, JavaScript, CSS, and asset files. Use Git to record reviewed project changes and give collaborators the editable source as well as a tested build.

The AVstudio UI folder can sit beside related control-system source in the same repository. Local files remain available for editing and backups while offline; remote equipment, API data, repositories, and AI services still require their respective connections. Keep that distinction in mind when preparing a site visit or handing the project to another engineer.

Use VS Code Source Control to review project changes before staging and committing them. The illustrated example shows a local repository with one staged file.

Open or initialize a repository​

For an existing team project, clone its repository using Git: Clone from the Command Palette, then open the resulting folder. Open the workspace containing AVstudio UI, rather than only one page file.

For a new local project, open Source Control from the activity bar and choose Initialize Repository if the folder is not already a repository. Initialize at the workspace root so the project and shared workspace files can be reviewed together. If VS Code cannot find Git, install Git and reopen the workspace before continuing.

VS Code Source Control listing untracked sample files beside the NG project configuration

The U markers in this example mean untracked files. An initialized repository has no history until its first commit. The screenshot's empty Graph is expected at this stage.

What to keep​

FilesHandoff guidance
AVstudio UI/avstudio.configTrack the project configuration and valid start-page/theme references.
pages/, global.variables, global.slotsTrack page layouts, actions, shared variables, and slot assignments.
theme/, functions/, required assetsTrack the source and media needed to reproduce the interface.
Datasource definitions and required local dataInclude the definitions and permitted fixtures needed for the project.
Connector and environment filesReview credentials and site-specific values before sharing; provide required private values through the team's secure process.
.vscode/launch.jsonKeep a portable shared Live Preview launch configuration when useful to the team.
.agents/skills/avstudio-guide/Include the project's AI guide if the team uses it, or document how to regenerate it for the extension version.
.gitignoreTrack the agreed ignore rules so collaborators use the same policy.
Build archivesChoose a release policy explicitly; keep editable source regardless of where archives are stored.

Do not remove a required connector file merely to hide its settings without supplying a replacement/setup procedure. Other project files may reference its exact path. Agree whether the shared project contains sanitized configuration or requires local setup, and list those steps in the handoff notes.

Default ignore rules​

The inspected sample's .gitignore excludes local MCP configuration (.mcp.json, .vscode/mcp.json, .cursor/mcp.json), OpenCode local settings, OS/editor temporary files, and node_modules/ for custom-function dependencies.

In 27.0.29, newly scaffolded projects also ignore AVstudio UI/build/ and AVstudio UI/env/*.env, with an exception retaining *.example.env templates. Older sample projects may still use their original rules; updating the extension does not prove an existing repository has received the new policy.

For an existing project, review its workspace-root .gitignore. The corresponding rules for the conventional project folder are:

# Generated application archives and deployment values
/AVstudio UI/build/
/AVstudio UI/env/*.env
!/AVstudio UI/env/*.example.env

Adding an ignore rule does not stop tracking files already committed. Review the existing repository policy before changing it. Keep retained releases outside the build folder because NG replaces build output on subsequent builds; see Build and deployment.

Generate project README​

New 27.0.29 projects include a README. Run Generate project README to regenerate the overview for an existing project; the command asks before overwriting an existing README. Preserve team-maintained notes before replacing it, then review the result alongside the actual files and private setup requirements.

A generated README complements environment setup and release notes; it does not verify the runtime or reconstruct omitted credentials.

Review an edit​

  1. Finish editing in NG. In an action form, use Save action & close.
  2. Save the owning page, variable document, or project configuration.
  3. Open Source Control and check the file list. Confirm every changed file belongs to the intended task.
  4. Review the file contents or diff. An NG file may open in its visual or Forms Editor, as in the screenshot; use VS Code's text editor or Git: Open Changes when you need the source comparison.
  5. Check identifiers, references, and values before staging.

For an untracked file, review its entire contents because there is no committed version to compare against. For a modified tracked file, review what was added and removed, including changes made by a visual editor.

What matters in an NG diff​

ChangeReview
A control was editedIntended properties changed; existing UUIDs remain stable.
A control or page was copied as a new entityNew identities are unique, and references point to the intended targets.
A page or file was renamedRouting, subpage, connector, function, and asset references were updated.
An action was editedBehaviour, destination, value, and referenced action UUIDs remain correct.
A mode was changedThe intended mode's properties/actions changed without losing the default configuration.
A variable or parameter was renamedIts bindings and display tokens use the new name in the correct scope.
A theme or global slot changedCheck all pages affected by that shared configuration.

Avoid regenerating identities merely to make a diff look consistent. A syntactically valid file can still point to the wrong page, function, datasource, or control.

Stage and commit a focused change​

Use Stage Changes (the plus beside a file) to select it for the next commit. The file moves from Changes to Staged Changes.

One project configuration staged while other sample files remain under Changes

In this demonstration, only avstudio.config is staged and its A marker means it will be added. Staging one configuration file is an illustration, not a complete initial project commit: a real first commit must include the required source files listed above.

  1. Stage the reviewed files for one coherent change.
  2. Inspect Staged Changes again. If you edit a file after staging it, review and stage the newer changes too when they belong in the commit.
  3. Enter a message describing the result, such as Add room volume control and feedback binding.
  4. Commit the staged change.
  5. Check that any remaining Changes are understood.

Unstage Changes removes a file from the next commit without undoing its working copy. Discard Changes is different: it can remove unsaved-in-Git work. Do not use Discard simply to unstage a file.

A commit records local history. Publishing or pushing transfers commits to a configured remote; it is a separate step. Review the destination repository and the committed files before sharing. Use your team's branch and review process for collaborative changes.

Merge changes safely​

Save or commit your current work before switching branches or integrating a teammate's changes. When two edits affect the same JSON or shared configuration, review both intended behaviours rather than accepting one whole file without inspection.

After resolving a conflict:

  1. Remove all conflict markers and confirm that the document is valid JSON or JavaScript as appropriate.
  2. Preserve the required structure, existing identities, and intended references.
  3. Open the affected file in its NG editor and inspect the resulting configuration.
  4. Run Run Project Health Check and address its diagnostics.
  5. Test the affected flow and its shared dependencies in Live Preview.
  6. Review the resolved diff before committing the merge.

For example, a merged button can retain its label while losing an action or pointing to a renamed page. JSON validity alone will not catch that functional change. Shared themes, slots, variables, and reusable subpages need checks on their consuming pages too.

Hand off a project​

Deliver enough context for the next person to open, test, and rebuild the project.

IncludeDetails
Editable sourceRepository and revision/branch, or a complete source folder with the required files.
Tool versionsNG extension version used for editing/building and relevant runtime requirements.
TargetDevice/runtime, intended dimensions, orientation, and archive format.
Build artifactThe tested archive and its avstudio-meta.md, kept with release notes.
Integration setupRequired connectors, endpoint configuration, joins/topics/datapoints, and where authorized credentials are supplied.
Test notesWorkflows tested, target used, known limitations, and integrations still requiring verification.
Local setupAny excluded files, custom-function dependencies, or machine-specific configuration that must be recreated.

A compact handoff note can use this template:

Project / source revision:
NG extension version:
Target runtime and device size:
Start page:
Build archive and build date:
Local setup required:
Connector configuration supplied separately:
Tested workflows:
Known issues / untested integrations:

Receiving-person check​

  1. Open the source workspace in VS Code and confirm NG recognizes it.
  2. Restore the documented local settings and authorized integration credentials.
  3. Run the project health check and resolve missing references or dependencies.
  4. Preview the main navigation and the affected controls.
  5. Build the project on the receiving machine.
  6. Test the resulting artifact on the intended runtime before treating the handoff as complete.

A clean Git working tree shows that local changes are recorded; it does not prove that the project builds or works on the target. Keep the source revision, generated archive, and test notes associated with the same release.

Troubleshooting​

SymptomWhat to inspect
Visual changes are absent from Source ControlSave the form and owning document; confirm the folder belongs to the intended repository.
Too many unrelated changes appearReview file paths and repository root; separate unrelated edits before staging.
A required file is missing after cloneCheck whether it was committed, ignored, or intentionally supplied through local setup.
Build archive unexpectedly appears in ChangesThe default ignore file does not exclude generated builds. Apply the team's release policy.
A file appears in both Changes and Staged ChangesIt was edited again after staging; review both versions.
Merge opens but navigation or feedback failsCheck semantic references and bindings, then health check and preview the flow.
Commit succeeds but a teammate cannot see itLocal commit and remote push are separate operations; verify the remote and branch.

Visual page diffs​

Since 27.0.3, .page files open in AVS Visual Editor by default, including Git diffs. Open a changed page from Source Control to compare the original and working versions visually. The original side is read-only and is not written back to the working tree.

If an editor association overrides this, run AVstudio: Use visual editor as default for .page files. This repairs both normal editor and diff associations; the extension can also offer it once through a notification. Review the source diff too when changes involve actions, bindings, or nonvisual data.