Skip to content

docs: updated AI Element local git storage#315

Merged
Daedalus0013 merged 1 commit intoaskui:mainfrom
Daedalus0013:main
Feb 27, 2025
Merged

docs: updated AI Element local git storage#315
Daedalus0013 merged 1 commit intoaskui:mainfrom
Daedalus0013:main

Conversation

@Daedalus0013
Copy link
Copy Markdown
Contributor

It was made possible to store Ai elements locally & with that also able to push to git.

@Daedalus0013 Daedalus0013 merged commit b9e5215 into askui:main Feb 27, 2025
1 check passed
Copy link
Copy Markdown
Contributor

@adi-wan-askui adi-wan-askui left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Solid work. Like the structure and clarity (where I did not comment otherwise).


AI Elements can be version controlled and shared across team members using Git. Here's how to set it up:

### Current Behavior
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think

Suggested change
### Current Behavior
### Default Behavior

would be clearer


### Configuration Steps
1. Create a folder in your Git project called `<project>/ai-elements`
2. Update your `askui_example/helpers/askui-helper.ts`:
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
2. Update your `askui_example/helpers/askui-helper.ts`:
2. Update your `<project>/helpers/askui-helper.ts`:

Comment on lines +151 to +162
```typescript
beforeAll(async () => {
aui = await UiControlClient.build({
// ... existing configuration ...
aiElementArgs: {
additionalLocations: [
"./ai-elements/" // Add your local AI Element location here
]
}
});
});
```
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would add more of the // ... existing configuration ... around the code to indicate everywhere where there may be other code and point out that the user has to find wherever UiControlClient.build is called and add it there

Comment on lines +165 to +171
1. Open `askui-shell`
2. Get the global AI Element location:
- Run `AskUI-ShowAIElement`
- Copy the path from the Image File
3. Open the path in File Explorer
4. Copy all files from the Global AI Element Location to your Project AI Element Location
5. Add and commit the files to Git
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this would not be 100% clear to me as a user. I think adding example output of the command AskUI-ShowAIElement and maybe shell commands for copying or screenshots of file explorer may do some good so it is easier to follow.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes actually very true! I need to update this

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants