Skip to content

feat/redesign-and-improvements #20

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 26 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 14 commits
Commits
Show all changes
26 commits
Select commit Hold shift + click to select a range
d1e6ce2
feat: add new colors and customizable bot settings
May 25, 2025
c20b516
chore: update chat icon
May 25, 2025
0002bf5
feat: add document mock endpoint and refactor documentItem for better UX
May 26, 2025
e95c01c
feat: enable to set settings in env vars
May 26, 2025
d897860
fix: static Navy Blue for nav background
May 27, 2025
3338378
fix: toggle button
May 27, 2025
4ba4a04
Update frontend/libs/shared/ui/NavigationContainer.vue
huhn511 Jun 16, 2025
1ca66ac
Update frontend/libs/shared/global.css
huhn511 Jun 16, 2025
4a6cac2
Update frontend/apps/chat-app/src/App.vue
huhn511 Jun 16, 2025
1b7b1eb
fix: bot_name
Jun 20, 2025
80bec6d
chore: add docs
Jun 20, 2025
9b7eda8
Merge branch 'main' into feat/redesign-and-improvements
huhn511 Jun 20, 2025
e058b39
fix: fix gh-action for PRs from forked repositories
Jun 20, 2025
420f67b
fix: merge conflicts
Jun 20, 2025
0220067
chore: set dark mode as default
Jun 23, 2025
3cd7dbf
fix: show button in light mode correctly
Jun 23, 2025
c6f446b
chore: remove submodules before merging monorepo structure
Jul 31, 2025
6573d0b
fix: merge upstream/main and resolve conflicts after monorepo refactor
Jul 31, 2025
062eef5
fix: remove trailing whitespace from modified files
Jul 31, 2025
40b2580
fix: add missing isDarkMode computed property to theme store
Jul 31, 2025
d0a0c22
fix: use proper theme-aware bg-primary class in NavigationContainer
Jul 31, 2025
96217f5
Update services/frontend/libs/shared/settings.ts
huhn511 Jul 31, 2025
5506973
Update services/frontend/libs/chat-app/data-access/+state/chat.store.ts
huhn511 Jul 31, 2025
6ff503c
Update services/frontend/libs/admin-app/ui/DocumentItem.vue
huhn511 Jul 31, 2025
b428e93
Update services/frontend/libs/shared/store/theme.store.ts
huhn511 Jul 31, 2025
6668111
fix: add missing features property to AppSettings interface
Jul 31, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
152 changes: 77 additions & 75 deletions .github/workflows/lint-and-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,89 +2,91 @@ name: lint-and-test

on:
pull_request:
branches:
- main
branches:
- main
workflow_dispatch:

jobs:
sanitize-branch-name:
runs-on: ubuntu-latest
outputs:
sanitized_ref: ${{ steps.sanitize.outputs.sanitized_ref }}
steps:
- name: sanitize-branch-name
id: sanitize
run: |
SANITIZED_REF=$(echo "${GITHUB_HEAD_REF}" | tr '[:upper:]' '[:lower:]' | tr -c 'a-z0-9' '-')
SANITIZED_REF=${SANITIZED_REF#-}
SANITIZED_REF=${SANITIZED_REF%-}
SANITIZED_REF=${SANITIZED_REF:0:63}
if [[ -z "$SANITIZED_REF" || "$SANITIZED_REF" =~ ^-+$ ]]; then
SANITIZED_REF="tmp-branch"
fi
echo "::set-output name=sanitized_ref::${SANITIZED_REF}"
shell: bash
env:
GITHUB_HEAD_REF: ${{ github.head_ref }}
sanitize-branch-name:
runs-on: ubuntu-latest
outputs:
sanitized_ref: ${{ steps.sanitize.outputs.sanitized_ref }}
steps:
- name: sanitize-branch-name
id: sanitize
run: |
SANITIZED_REF=$(echo "${GITHUB_HEAD_REF}" | tr '[:upper:]' '[:lower:]' | tr -c 'a-z0-9' '-')
SANITIZED_REF=${SANITIZED_REF#-}
SANITIZED_REF=${SANITIZED_REF%-}
SANITIZED_REF=${SANITIZED_REF:0:63}
if [[ -z "$SANITIZED_REF" || "$SANITIZED_REF" =~ ^-+$ ]]; then
SANITIZED_REF="tmp-branch"
fi
echo "::set-output name=sanitized_ref::${SANITIZED_REF}"
shell: bash
env:
GITHUB_HEAD_REF: ${{ github.head_ref }}

update-submodules:
name: update-submodules
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
ref: ${{ github.event.pull_request.head.ref }}
submodules: false
update-submodules:
name: update-submodules
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
ref: ${{ github.event.pull_request.head.ref }}
repository: ${{ github.event.pull_request.head.repo.full_name }}
submodules: false

- name: update-submodules
id: update-submodules
run: |
git config --global url."https://github.com/".insteadOf "[email protected]:"
git submodule sync --recursive
git submodule update --init --remote --recursive
- name: update-submodules
id: update-submodules
run: |
git config --global url."https://github.com/".insteadOf "[email protected]:"
git submodule sync --recursive
git submodule update --init --remote --recursive

if [ -n "$(git status --porcelain)" ]; then
echo "Submodules have new commits. Committing and pushing..."
git config user.name "github-actions[bot]"
git config user.email "github-actions[bot]@users.noreply.github.com"
git commit -am "chore: update submodules to latest main"
git push
else
echo "No submodule changes."
fi
if [ -n "$(git status --porcelain)" ]; then
echo "Submodules have new commits. Committing and pushing..."
git config user.name "github-actions[bot]"
git config user.email "github-actions[bot]@users.noreply.github.com"
git commit -am "chore: update submodules to latest main"
git push
else
echo "No submodule changes."
fi

build-and-lint:
name: Build and Lint
runs-on: ubuntu-latest
needs: [sanitize-branch-name, update-submodules]
strategy:
fail-fast: true
matrix:
service: [ "admin-backend", "document-extractor", "rag-backend"]
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
ref: ${{ github.event.pull_request.head.ref }}
submodules: true
build-and-lint:
name: Build and Lint
runs-on: ubuntu-latest
needs: [sanitize-branch-name, update-submodules]
strategy:
fail-fast: true
matrix:
service: ["admin-backend", "document-extractor", "rag-backend"]
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
ref: ${{ github.event.pull_request.head.ref }}
repository: ${{ github.event.pull_request.head.repo.full_name }}
submodules: true

- name: Set Docker Image Name
run: |
echo "IMAGE_NAME=${{ matrix.service }}:${{ needs.sanitize-branch-name.outputs.sanitized_ref }}-${{ github.run_number }}" >> $GITHUB_ENV
shell: bash
- name: Set Docker Image Name
run: |
echo "IMAGE_NAME=${{ matrix.service }}:${{ needs.sanitize-branch-name.outputs.sanitized_ref }}-${{ github.run_number }}" >> $GITHUB_ENV
shell: bash

- name: Build lint image
run: |
docker build -t $IMAGE_NAME --build-arg dev=1 --build-arg TAG=debug -f ${{ matrix.service }}/Dockerfile .
- name: Build lint image
run: |
docker build -t $IMAGE_NAME --build-arg dev=1 --build-arg TAG=debug -f ${{ matrix.service }}/Dockerfile .

- name: Generate lint report
run: |
docker run --rm --entrypoint make "$IMAGE_NAME" lint
- name: Generate lint report
run: |
docker run --rm --entrypoint make "$IMAGE_NAME" lint

- name: Run tests
run: |
docker run --rm --entrypoint make "$IMAGE_NAME" test
- name: Run tests
run: |
docker run --rm --entrypoint make "$IMAGE_NAME" test
Loading
Loading