Skip to content

Add in-app chat knowledge guide with intro, code example, scenario design, and explanation#1

Draft
Copilot wants to merge 4 commits intomainfrom
copilot/add-knowledge-point-introduction
Draft

Add in-app chat knowledge guide with intro, code example, scenario design, and explanation#1
Copilot wants to merge 4 commits intomainfrom
copilot/add-knowledge-point-introduction

Conversation

Copy link

Copilot AI commented Mar 7, 2026

This change adds a lightweight in-app learning entry for the chat project, covering 知识点介绍、编写代码、场景设计与解释 in a single screen. The goal is to make the app itself provide a concise technical walkthrough instead of requiring external documentation.

  • New guide screen

    • Added ChatKnowledgeActivity as a dedicated screen for educational content
    • Introduced a simple scrollable layout with four sections:
      • 知识点介绍
      • 编写代码
      • 场景设计
      • 解释说明
  • Navigation

    • Added a new menu action in the conversation list to open the guide screen
    • Registered the new activity in the Android manifest
  • Content structure

    • Added ChatKnowledgeContentProvider to centralize the guide definition
    • Moved all user-facing content into strings.xml so the screen content is resource-backed and easier to maintain/localize
  • Focused test coverage

    • Added a unit test to verify the content provider maps each section to the expected string resource

Example of the guide content wiring:

val content = ChatKnowledgeContentProvider.getContent()
findViewById<TextView>(R.id.tv_knowledge_intro).setText(content.introductionResId)
findViewById<TextView>(R.id.tv_knowledge_code).setText(content.codeExampleResId)
findViewById<TextView>(R.id.tv_knowledge_scenario).setText(content.scenarioDesignResId)
findViewById<TextView>(R.id.tv_knowledge_explanation).setText(content.explanationResId)

Chat knowledge guide UI

Warning

Firewall rules blocked me from connecting to one or more addresses (expand for details)

I tried to connect to the following addresses, but was blocked by firewall rules:

  • dl.google.com
    • Triggering command: /usr/lib/jvm/temurin-17-jdk-amd64/bin/java /usr/lib/jvm/temurin-17-jdk-amd64/bin/java --add-opens=java.base/java.lang=ALL-UNNAMED --add-opens=java.base/java.lang.invoke=ALL-UNNAMED --add-opens=java.base/java.util=ALL-UNNAMED --add-opens=java.prefs/java.util.prefs=ALL-UNNAMED --add-exports=jdk.compiler/com.sun.tools.javac.api=ALL-UNNAMED --add-exports=jdk.compiler/com.sun.tools.javac.util=ALL-UNNAMED --add-opens=java.base/java.util=ALL-UNNAMED --add-opens=java.prefs/java.util.prefs=ALL-UNNAMED --add-opens=java.base/java.nio.charset=ALL-UNNAMED --add-opens=java.base/java.net=ALL-UNNAMED --add-opens=java.base/java.util.concurrent.atomic=ALL-UNNAMED --add-opens=java.xml/javax.xml.namespace=ALL-UNNAMED -Xmx2048m -Dfile.encoding=UTF-8 -Duser.country -Duser.language=en -Duser.variant -cp /home/REDACTED/.gradle/wrapper/dists/gradle-8.13-bin/5xuhj0ry160q40clulazy9h7d/gradle-8.13/lib/gradle-daemon-main-8.13.jar (dns block)
    • Triggering command: /home/REDACTED/work/_temp/ghcca-node/node/bin/node /home/REDACTED/work/_temp/ghcca-node/node/bin/node --enable-source-maps /home/REDACTED/work/_temp/copilot-developer-action-main/dist/index.js (dns block)

If you need me to access, download, or install something from one of these locations, you can either:

Original prompt

给出知识点介绍,编写代码,场景设计与解释


✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.

Copilot AI and others added 3 commits March 7, 2026 11:49
Co-authored-by: NITEACE <135036433+NITEACE@users.noreply.github.com>
Co-authored-by: NITEACE <135036433+NITEACE@users.noreply.github.com>
Co-authored-by: NITEACE <135036433+NITEACE@users.noreply.github.com>
Copilot AI changed the title [WIP] Add knowledge point introduction and code explanation Add in-app chat knowledge guide with intro, code example, scenario design, and explanation Mar 7, 2026
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