Skip to content

Bansify AI: port Studio UI prototype + CI/CD (APK on every push) - #1

Merged
GothwadTech merged 1 commit into
mainfrom
arena/cf20ab52-aiapp
Nov 21, 2026
Merged

GothwadTech merged 1 commit into
mainfrom
arena/cf20ab52-aiapp

Conversation

@GothwadTech

@GothwadTech GothwadTech commented Nov 21, 2026 •

Copy link
Copy Markdown
Contributor

What

  • Ports the complete Bansify AI UI prototype from gothwadtech/aiapp (Android, Kotlin + Jetpack Compose, Material 3): design system, chat (mock streaming), history, multi-provider models catalog, Studio (repo/file viewer with code/preview panes), onboarding, settings, drawer, splash, workspace
  • data/mock/ and all repositories carried over byte-identical; no backend wired up yet (UI prototype)
  • One build fix: the source referenced a non-existent debug.keystore — debug builds now use the default ~/.android/debug.keystore, release builds are left unsigned for the release workflow to sign
  • CI/CD mirrored from Bansify/mailapp (same release pipeline shape, renamed to Bansify AI):
    • android-ci.yml — tools checks, unit tests, lint, debug APK artifact
    • planning.yml — docs/scaffold consistency
    • release.yml — every push builds release APK + debug APK + AAB; signs with RELEASE_KEYSTORE_BASE64/KEYSTORE_PASSWORD/KEY_ALIAS/KEY_PASSWORD when set (unsigned fallback, never debug-key signed); main/tags → versioned release v1.0.<run>, other branches → rolling latest pre-release
  • Gradle wrapper committed (Gradle 9.3.1, same jar as mailapp, sha256-pinned in the scaffold check)
  • tools/ adapted to the single-module app (mock data, no endpoint contract yet)
  • app versionCode/versionName injectable via -PversionCode/-PversionName (defaults keep prototype values)
  • README: build/test, CI & releases, release secrets, manual device checks

Notes / deviations from mailapp

  • Dropped the mail-specific Kotlin errors <File> failure-annotation bucket steps (hardcoded to Bansify Email source files; they can never match here). All CI logic, the signing flow, and the release publishing behavior are otherwise identical to mailapp
  • tools/ mail invariants (auth callback activity, directory provider, com.gothwad.mail, targetSdk 36, .debug suffix) replaced with Bansify AI's own (single exported launcher activity, com.bansify.ai, targetSdk 35); the release-workflow contract checks are unchanged and pass
  • Android SDK/Gradle build cannot run in the authoring sandbox — CI is the first real build of this code

After merge

The merge push itself triggers release.yml on main → versioned release with APKs + AAB will be published (signed once the four secrets are added to the repo settings; until then the release ships debug + unsigned release APK).

Summary by CodeRabbit

  • New Features
    • Launched Bansify AI, an Android prototype featuring chat, conversation history, model browsing, and a developer Studio for sample projects.
    • Added onboarding, profile, settings, appearance, memory, library, and scheduled-task screens.
    • Added chat tools for attachments, voice-input demos, image and video previews, and Markdown formatting.
    • Added search, filters, and management actions across conversations, models, projects, and library items. Demo content and actions are local and do not connect to a backend.
  • Documentation
    • Expanded setup, build, testing, and release guidance.
  • Chores
    • Added automated checks and Android release workflows.

- .github/workflows/android-ci.yml: tools checks + unit tests + lint + debug APK artifact
- .github/workflows/planning.yml: docs/scaffold checks
- .github/workflows/release.yml: every push builds release APK + debug APK + AAB,
  signs with RELEASE_KEYSTORE_BASE64/KEYSTORE_PASSWORD/KEY_ALIAS/KEY_PASSWORD when set,
  publishes versioned release on main/tags and a rolling 'latest' pre-release elsewhere
- gradle wrapper committed (Gradle 9.3.1, same as mailapp, sha256 pinned in scaffold check)
- tools/ adapted for the single-module AI app (no endpoint contract yet; mock data)
- release.yml: signing secrets resolved once, graceful unsigned fallback, APK staged each run
- app versionCode/versionName injected via -PversionCode/-PversionName (defaults keep prototype values)
- dropped mail-specific failure-annotation bucket steps (hardcoded to Bansify Email source files)
- README: build/test, CI & releases, release secrets, manual device checks sections

Co-authored-by: arena-agent <297053741+arena-agent@users.noreply.github.com>
@coderabbitai

coderabbitai Bot commented Nov 21, 2026 •

Copy link
Copy Markdown

Explain Change →

Caution

Review failed

The pull request is closed.

Walkthrough

Changes: Android application

Layer / File(s) Summary
Android project and app shell
.gitignore, app/build.gradle.kts, app/proguard-rules.pro, app/src/main/AndroidManifest.xml, app/src/main/res/*, build.gradle.kts, gradle.properties, gradle/*, gradlew*, metadata.json, settings.gradle.kts
Adds Gradle and Android configuration, launcher and theme resources, and application metadata.
Compose design system and shared UI
app/src/main/java/com/bansify/ai/core/designsystem/*, app/src/main/java/com/bansify/ai/core/ui/*
Adds color palettes, theme modes, typography and shape tokens, reusable controls, and shared sheet, empty, error, loading, and top-bar components.
Mock data, repositories, and UI state
app/src/main/java/com/bansify/ai/data/mock/*, app/src/main/java/com/bansify/ai/data/repo/*, app/src/main/java/com/bansify/ai/state/UiState.kt
Adds mock user, chat, model, integration, and repository data; in-memory feature repositories; DataStore-backed profile and settings; and common UI states.
Onboarding and app navigation
app/src/main/java/com/bansify/ai/MainActivity.kt, app/src/main/java/com/bansify/ai/feature/onboarding/*, app/src/main/java/com/bansify/ai/feature/splash/SplashScreen.kt, app/src/main/java/com/bansify/ai/nav/*
Adds the app entry activity, splash and onboarding screens, and routes connecting onboarding and feature screens.
Chat interaction and drawer
app/src/main/java/com/bansify/ai/feature/chat/*, app/src/main/java/com/bansify/ai/feature/drawer/*
Adds chat state handling, mock text and media replies, composer and message UI, overlays, model selection, and drawer search and navigation.
History and model catalog screens
app/src/main/java/com/bansify/ai/feature/history/*, app/src/main/java/com/bansify/ai/feature/models/*
Adds conversation history filtering and actions, plus model catalog search, selection, defaults, and custom-provider entry.
Settings, profile, and workspace screens
app/src/main/java/com/bansify/ai/feature/profile/*, app/src/main/java/com/bansify/ai/feature/settings/*, app/src/main/java/com/bansify/ai/feature/workspace/*
Adds profile and preference screens, memory and persona controls, and local library and scheduled-item screens.
Studio projects and repository screens
app/src/main/java/com/bansify/ai/feature/studio/*
Adds project, repository, file, preview, integration, and project-chat screens, including demo ZIP selection and conflict actions.

Validation and release workflows

Layer / File(s) Summary
CI checks and project documentation
.github/workflows/android-ci.yml, .github/workflows/planning.yml, README.md, tools/check_android_scaffold.py, tools/check_docs.py
Adds Android build, test, lint, documentation, and scaffold checks, with failure logs and artifact uploads. The README describes the prototype, project setup, workflows, and release configuration.
Release build and publication
.github/workflows/release.yml
Adds version selection, Android release builds, optional signing, checksums, artifact uploads, and versioned or rolling GitHub releases.

Change: Feature

Merge Risk: Moderate · up to cc243

This is a UI prototype backed by mock data. Before merging, fix the release signing gate so a signing failure cannot block publication, make "delete all data" clear the saved profile and settings, and retain state across Activity recreation. Also fix the Undo and Persona save paths that can lose or overwrite user data. The remaining findings are minor polish.

- [ ] Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Warning

Some tools did not complete. Review the errors below.

PMD (7.29.0)

PMD (7.29.0) exceeded its 180-second time budget. Findings from completed work are retained; remaining checks are incomplete.

app/src/main/java/com/bansify/ai/feature/settings/AppearanceScreen.kt

Picked up JAVA_TOOL_OPTIONS: -XX:+PerfDisableSharedMem -XX:ActiveProcessorCount=1
openjdk version "17.0.21.1" 2026-11-17 LTS
OpenJDK Runtime Environment Corretto-17.0.21.1.2 (build 17.0.21.1+2-LTS)
OpenJDK 64-Bit Server VM Corretto-17.0.21.1.2 (build 17.0.21.1+2-LTS, mixed mode, sharing)
Picked up JAVA_TOOL_OPTIONS: -XX:+PerfDisableSharedMem -XX:ActiveProcessorCount=1
[WARN] Warning at /.coderabbit-pmd-ruleset-810dc9f7-37db-4419-9b6c-981357876b68.xml:36:2
34|
35|
36|
^^^^^ Discontinue using Rule name category/java/errorprone.xml/UselessPureMethodCall as it is scheduled for removal from PMD. PMD 8.0.0 will remove support for this Rule.

37|
38| <rule ref="category/java/errorpr

... [truncated 409 characters] ...

l/CheckSkipResult as it is scheduled for removal from PMD. PMD 8.0.0 will remove support for this Rule.

44|
45|
[WARN] Progressbar rendering conflicts with reporting to STDOUT. No progressbar will be shown. Try running with argument -r to output the report to a file instead.
[WARN] No auxClasspath configured for Kotlin; type resolution will not work. Configure via --aux-classpath or the auxClasspath language property.
{
"formatVersion": 0,
"pmdVersion": "7.29.0",
"timestamp": "2026-11-21T12:55:46.508Z",
"files": [],
"suppressedViolations": [],
"processingErrors": [],
"configurationErrors": []
}[INFO] Found no violations.

app/src/main/java/com/bansify/ai/feature/onboarding/WelcomeScreen.kt

Picked up JAVA_TOOL_OPTIONS: -XX:+PerfDisableSharedMem -XX:ActiveProcessorCount=1
openjdk version "17.0.21.1" 2026-11-17 LTS
OpenJDK Runtime Environment Corretto-17.0.21.1.2 (build 17.0.21.1+2-LTS)
OpenJDK 64-Bit Server VM Corretto-17.0.21.1.2 (build 17.0.21.1+2-LTS, mixed mode, sharing)
Picked up JAVA_TOOL_OPTIONS: -XX:+PerfDisableSharedMem -XX:ActiveProcessorCount=1
[WARN] Warning at /.coderabbit-pmd-ruleset-810dc9f7-37db-4419-9b6c-981357876b68.xml:36:2
34|
35|
36|
^^^^^ Discontinue using Rule name category/java/errorprone.xml/UselessPureMethodCall as it is scheduled for removal from PMD. PMD 8.0.0 will remove support for this Rule.

37|
38| <rule ref="category/java/errorpr

... [truncated 409 characters] ...

l/CheckSkipResult as it is scheduled for removal from PMD. PMD 8.0.0 will remove support for this Rule.

44|
45|
[WARN] Progressbar rendering conflicts with reporting to STDOUT. No progressbar will be shown. Try running with argument -r to output the report to a file instead.
[WARN] No auxClasspath configured for Kotlin; type resolution will not work. Configure via --aux-classpath or the auxClasspath language property.
{
"formatVersion": 0,
"pmdVersion": "7.29.0",
"timestamp": "2026-11-21T12:55:36.008Z",
"files": [],
"suppressedViolations": [],
"processingErrors": [],
"configurationErrors": []
}[INFO] Found no violations.

app/src/main/java/com/bansify/ai/feature/settings/DataScreen.kt

Picked up JAVA_TOOL_OPTIONS: -XX:+PerfDisableSharedMem -XX:ActiveProcessorCount=1
openjdk version "17.0.21.1" 2026-11-17 LTS
OpenJDK Runtime Environment Corretto-17.0.21.1.2 (build 17.0.21.1+2-LTS)
OpenJDK 64-Bit Server VM Corretto-17.0.21.1.2 (build 17.0.21.1+2-LTS, mixed mode, sharing)
Picked up JAVA_TOOL_OPTIONS: -XX:+PerfDisableSharedMem -XX:ActiveProcessorCount=1
[WARN] Warning at /.coderabbit-pmd-ruleset-810dc9f7-37db-4419-9b6c-981357876b68.xml:36:2
34|
35|
36|
^^^^^ Discontinue using Rule name category/java/errorprone.xml/UselessPureMethodCall as it is scheduled for removal from PMD. PMD 8.0.0 will remove support for this Rule.

37|
38| <rule ref="category/java/errorpr

... [truncated 409 characters] ...

l/CheckSkipResult as it is scheduled for removal from PMD. PMD 8.0.0 will remove support for this Rule.

44|
45|
[WARN] Progressbar rendering conflicts with reporting to STDOUT. No progressbar will be shown. Try running with argument -r to output the report to a file instead.
[WARN] No auxClasspath configured for Kotlin; type resolution will not work. Configure via --aux-classpath or the auxClasspath language property.
{
"formatVersion": 0,
"pmdVersion": "7.29.0",
"timestamp": "2026-11-21T12:55:49.642Z",
"files": [],
"suppressedViolations": [],
"processingErrors": [],
"configurationErrors": []
}[INFO] Found no violations.

  • 22 others

@GothwadTech
GothwadTech merged commit b0386df into main Nov 21, 2026
5 of 6 checks passed
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.

1 participant