Skip to content

CATROID-1667 Select the embroidery AI Tutor prompt for the Embroidery Designer flavor#5223

Open
harissabil wants to merge 1 commit into
explore-ai-tutor-integrationfrom
ai-tutor-embroidery-variant-check
Open

CATROID-1667 Select the embroidery AI Tutor prompt for the Embroidery Designer flavor#5223
harissabil wants to merge 1 commit into
explore-ai-tutor-integrationfrom
ai-tutor-embroidery-variant-check

Conversation

@harissabil

@harissabil harissabil commented Jun 28, 2026

Copy link
Copy Markdown
Member

Summary

Selects the AI Tutor prompt based on the build flavor so the Embroidery Designer build offers the embroidery brick vocabulary instead of the generic Pocket Code one.

  • AiAssistFlow now passes promptVersion to AiTutorView: PromptVersion.EMBROIDERY_SPRITE when BuildConfig.FLAVOR == Constants.FLAVOR_EMBROIDERY_DESIGNER, otherwise PromptVersion.POCKET_CODE_SPRITE.
  • Stacked on explore-ai-tutor-integration (the AI Tutor first integration PR) and targets it, since the aiassist package isn't in dev-ai-tutor yet.

Note for reviewers (building locally)

This branch depends on the AI Tutor library (org.catrobat:aitutor), which is resolved from your Maven Local repository. To build, you first need to publish it locally:

  1. Clone the AI Tutor repo and check out the integration/pocket-code branch: https://github.com/Catrobat/catrobat-ai-tutor/tree/integration/pocket-code
  2. Publish it to Maven Local: ./gradlew publishToMavenLocal
  3. Build

@harissabil - ping me on Slack if the local install gives you any trouble and I'll walk you through it.

Your checklist for this pull request

Please review the contributing guidelines and wiki pages of this repository.

  • Include the name of the Jira ticket in the PR’s title
  • Include a summary of the changes plus the relevant context
  • Choose the proper base branch (develop)
  • Confirm that the changes follow the project’s coding guidelines
  • Verify that the changes generate no compiler or linter warnings
  • Perform a self-review of the changes
  • Verify to commit no other files than the intentionally changed ones
  • Include reasonable and readable tests verifying the added or changed behavior
  • Confirm that new and existing unit tests pass locally
  • Check that the commits’ message style matches the project’s guideline
  • Stick to the project’s gitflow workflow
  • Verify that your changes do not have any conflicts with the base branch
  • After the PR, verify that all CI checks have passed
  • Post a message in the catroid-stage or catroid-ide Slack channel and ask for a code reviewer

@harissabil harissabil changed the title Select the embroidery AI Tutor prompt for the Embroidery Designer flavor [WIP] Select the embroidery AI Tutor prompt for the Embroidery Designer flavor Jun 28, 2026
@harissabil harissabil changed the title [WIP] Select the embroidery AI Tutor prompt for the Embroidery Designer flavor [WIP] CATROID-1667 Select the embroidery AI Tutor prompt for the Embroidery Designer flavor Jun 29, 2026
@harissabil harissabil changed the title [WIP] CATROID-1667 Select the embroidery AI Tutor prompt for the Embroidery Designer flavor CATROID-1667 Select the embroidery AI Tutor prompt for the Embroidery Designer flavor Jun 30, 2026
@harissabil harissabil self-assigned this Jun 30, 2026
@harissabil harissabil requested a review from reichli June 30, 2026 08:41
@harissabil harissabil marked this pull request as ready for review June 30, 2026 08:41
@reichli reichli added the GSoC-2026 This ticket is assigned to the GSoC contributor. label Jul 9, 2026

@reichli reichli left a comment

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.

Looks good - thank you!

… Designer flavor

Pocket Code and the Embroidery Designer flavor share the same AI
Tutor overlay, but Embroidery Designer needs its own brick
vocabulary instead of the generic Pocket Code prompt.

- AiAssistFlow now passes a PromptVersion to AiTutorView:
  PromptVersion.EMBROIDERY_SPRITE when
  BuildConfig.FLAVOR == Constants.FLAVOR_EMBROIDERY_DESIGNER, else
  PromptVersion.POCKET_CODE_SPRITE.
- Fix a whitespace inconsistency in AiAssistOverlay.

Targets explore-ai-tutor-integration rather than dev-ai-tutor,
since the aiassist package hasn't landed on dev-ai-tutor yet.
@harissabil harissabil force-pushed the ai-tutor-embroidery-variant-check branch from 994d6b2 to a08b0b6 Compare July 13, 2026 10:44
@sonarqubecloud

Copy link
Copy Markdown

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

Labels

GSoC-2026 This ticket is assigned to the GSoC contributor.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants