Bootstrap modular MarkDroid architecture with markdown domain core and Compose feature scaffolding#1
Merged
Merged
Conversation
Copilot
AI
changed the title
[WIP] Add WYSIWYG markdown editor with Git integration
Bootstrap modular MarkDroid architecture with markdown domain core and Compose feature scaffolding
Jul 7, 2026
There was a problem hiding this comment.
Pull request overview
Bootstraps a modular multi-module Gradle project for MarkDroid, introducing a reusable :core:domain markdown/git domain layer and an initial Jetpack Compose :app scaffold (Editor/Files/Graph/Git) to serve as an extensible Obsidian-like foundation.
Changes:
- Added multi-module Gradle scaffolding, wrapper scripts, and baseline project documentation.
- Implemented core domain utilities (YAML-ish frontmatter parsing,
[[wikilinks]]extraction, kanban grouping, and document graph building) plus unit tests. - Added a Compose-based MVP UI scaffold demonstrating editor modes, folder views, graph canvas, and git action buttons.
Reviewed changes
Copilot reviewed 24 out of 27 changed files in this pull request and generated 6 comments.
Show a summary per file
| File | Description |
|---|---|
| settings.gradle.kts | Defines plugin/dependency repositories and includes modules for the multi-module build. |
| README.md | Documents MVP scope, module separation, and basic build/test commands. |
| gradlew.bat | Adds Gradle wrapper script for Windows. |
| gradlew | Adds Gradle wrapper script for POSIX shells. |
| gradle/wrapper/gradle-wrapper.properties | Pins Gradle wrapper distribution (Gradle 8.7). |
| gradle/libs.versions.toml | Introduces a version catalog file (currently placeholder). |
| gradle.properties | Sets Gradle/AndroidX/Kotlin and configuration cache properties. |
| core/domain/build.gradle.kts | Configures Kotlin/JVM domain module and test setup. |
| build.gradle.kts | Root build plugins declaration for the multi-module build. |
| core/domain/src/main/kotlin/com/javcarr/markdroid/domain/WikiLinkParser.kt | Implements wiki link extraction. |
| core/domain/src/main/kotlin/com/javcarr/markdroid/domain/MarkdownParser.kt | Implements frontmatter/body parsing. |
| core/domain/src/main/kotlin/com/javcarr/markdroid/domain/MarkdownModels.kt | Adds shared domain models (docs, view modes, graph models). |
| core/domain/src/main/kotlin/com/javcarr/markdroid/domain/GitSync.kt | Adds git action → command mapping (domain abstraction). |
| core/domain/src/main/kotlin/com/javcarr/markdroid/domain/FolderViews.kt | Implements kanban grouping by YAML property. |
| core/domain/src/main/kotlin/com/javcarr/markdroid/domain/DocumentGraphBuilder.kt | Builds a document graph from wiki links. |
| core/domain/src/test/kotlin/com/javcarr/markdroid/domain/WikiLinkParserTest.kt | Unit tests for wiki link extraction. |
| core/domain/src/test/kotlin/com/javcarr/markdroid/domain/MarkdownParserTest.kt | Unit tests for frontmatter/body parsing. |
| core/domain/src/test/kotlin/com/javcarr/markdroid/domain/FolderViewsTest.kt | Unit tests for kanban grouping behavior. |
| core/domain/src/test/kotlin/com/javcarr/markdroid/domain/DocumentGraphBuilderTest.kt | Unit tests for graph build behavior. |
| app/build.gradle.kts | Configures Android/Compose app module and depends on :core:domain. |
| app/src/main/AndroidManifest.xml | Declares the application and launcher activity. |
| app/src/main/java/com/javcarr/markdroid/MainActivity.kt | Compose MVP screens for Editor/Files/Graph/Git and demo wiring to domain. |
| app/src/main/res/values/themes.xml | Defines a Material 3 theme. |
| app/proguard-rules.pro | Adds initial ProGuard rules placeholder. |
| .gitignore | Adds initial ignore rules for Gradle/Kotlin artifacts. |
| .gitattributes | Normalizes line endings for wrapper scripts and .bat files. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Comment on lines
+1
to
+13
| pluginManagement { | ||
| repositories { | ||
| mavenCentral() | ||
| gradlePluginPortal() | ||
| } | ||
| } | ||
|
|
||
| dependencyResolutionManagement { | ||
| repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS) | ||
| repositories { | ||
| mavenCentral() | ||
| } | ||
| } |
Comment on lines
+15
to
+16
| rootProject.name = "MarkDroid" | ||
| include(":core:domain") |
Comment on lines
+13
to
+15
| tasks.test { | ||
| useJUnitPlatform() | ||
| } |
Comment on lines
+23
to
+27
| import androidx.compose.foundation.lazy.items | ||
| import androidx.compose.foundation.rememberScrollState | ||
| import androidx.compose.foundation.shape.RoundedCornerShape | ||
| import androidx.compose.foundation.text.KeyboardActions | ||
| import androidx.compose.foundation.verticalScroll |
| @@ -0,0 +1,19 @@ | |||
| <?xml version="1.0" encoding="utf-8"?> | |||
| <manifest package="com.javcarr.markdroid" xmlns:android="http://schemas.android.com/apk/res/android"> | |||
Comment on lines
+16
to
+22
| fun from(action: GitAction, commitMessage: String = "Update notes"): GitCommand { | ||
| val command = when (action) { | ||
| GitAction.STATUS -> "git status --short" | ||
| GitAction.PULL -> "git pull --rebase" | ||
| GitAction.COMMIT -> "git add -A && git commit -m \"$commitMessage\"" | ||
| GitAction.PUSH -> "git push" | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Se propone una base extensible para un editor Markdown Android tipo Obsidian: Material 3 + Compose, edición WYSIWYG/fuente,
[[links]], YAML frontmatter, exploración por vistas múltiples y operaciones Git simples sobre carpeta local. El enfoque prioriza modularidad para incorporar funcionalidades futuras sin acoplamiento fuerte.Arquitectura modular (extensible por diseño)
:core:domaincomo núcleo reutilizable.Núcleo markdown/git en
core:domainMarkdownParser: parseo de frontmatter YAML + body.WikiLinkParser: extracción de[[...]].DocumentGraphBuilder: nodos/aristas a partir de wiki links.FolderViews.groupAsKanban(...): agrupación por propiedad YAML seleccionable.GitCommandFactory: acciones simples (status,pull,commit,push) mapeadas a comandos.Scaffold de producto en Compose (
app)Cobertura inicial de comportamiento crítico
Original prompt