Skip to content

Conversation

dfl-aeb
Copy link

@dfl-aeb dfl-aeb commented Feb 20, 2025

Purpose

Does this introduce a breaking change?

When developers merge from main and run the server, azd up, or azd deploy, will this produce an error?
If you're not sure, try it out on an old environment.

[ ] Yes
[ ] No

Does this require changes to learn.microsoft.com docs?

This repository is referenced by this tutorial
which includes deployment, settings and usage instructions. If text or screenshot need to change in the tutorial,
check the box below and notify the tutorial author. A Microsoft employee can do this for you if you're an external contributor.

[ ] Yes
[ ] No

Type of change

[ ] Bugfix
[ ] Feature
[ ] Code style update (formatting, local variables)
[ ] Refactoring (no functional changes, no api changes)
[ ] Documentation content changes
[ ] Other... Please describe:

Code quality checklist

See CONTRIBUTING.md for more details.

  • The current tests all pass (python -m pytest).
  • I added tests that prove my fix is effective or that my feature works
  • I ran python -m pytest --cov to verify 100% coverage of added lines
  • I ran python -m mypy to check for type errors
  • I either used the pre-commit hooks or ran ruff and black manually on my code.

Update frontend header and background
Update boilerplate text and prompts to align with Wahlprogramme chatbot and improve UI design.

* **Frontend Components:**
  - Update `app/frontend/src/components/AnalysisPanel/AnalysisPanel.tsx` to change text from "Citation Image" to "Wahlprogramme Image" and "headerTexts.citation" to "headerTexts.wahlprogramme".
  - Update `app/frontend/src/components/Answer/Answer.tsx` to change tooltips from "tooltips.copied" to "tooltips.wahlprogrammeCopied" and "tooltips.copy" to "tooltips.wahlprogrammeCopy".
  - Update `app/frontend/src/components/ClearChatButton/ClearChatButton.tsx` to change text from "clearChat" to "clearWahlprogrammeChat".
  - Update `app/frontend/src/components/Example/ExampleList.tsx` to change examples from "defaultExamples.1" to "wahlprogrammeExamples.1".
  - Update `app/frontend/src/pages/ask/Ask.tsx` to change placeholder from "gpt4vExamples.placeholder" to "wahlprogrammeExamples.placeholder".
  - Improve UI design in `app/frontend/src/pages/layout/Layout.module.css` for a modern and clean look.

* **Backend Prompts:**
  - Update prompts in `app/backend/approaches/prompts/ask_answer_question_vision.prompty`, `ask_answer_question.prompty`, `chat_answer_question_vision.prompty`, `chat_answer_question.prompty`, `chat_query_rewrite_tools.json`, and `chat_query_rewrite.prompty` to align with Wahlprogramme chatbot and include `#page=N` examples.

* **Translations:**
  - Update translations in `app/frontend/src/locales/en/translation.json` to align with Wahlprogramme chatbot.

---

For more details, open the [Copilot Workspace session](https://copilot-workspace.githubnext.com/dfl-aeb/azure-search-openai-demo/tree/wahlprogramme?shareId=XXXX-XXXX-XXXX-XXXX).
* Change header background to a gradient with the colors of the German flag
* Update text color to ensure readability over the new background
* Update `clearChat` to `clearWahlprogrammeChat`
* Add `defaultExamples` section
* Update `wahlprogrammeExamples.placeholder`
* Remove `gpt4vExamples` section
* Update `tooltips.copy` and `tooltips.copied`
* Update `headerTexts.citation` to `headerTexts.wahlprogramme`
@pamelafox
Copy link
Collaborator

This looks like an unintentionally public PR, so I will close.

@pamelafox pamelafox closed this Feb 20, 2025
@dfl-aeb dfl-aeb deleted the update-wahlprogramme-chatbot branch April 23, 2025 07:01
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