Skip to content

Commit 68adf8d

Browse files
committed
Merge branch 'main' into visionv2
2 parents ed5cf0a + a318a13 commit 68adf8d

File tree

73 files changed

+2694
-1214
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

73 files changed

+2694
-1214
lines changed
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
---
2+
description: 'Fix and verify issues in app'
3+
model: GPT-5 (Preview)
4+
tools: ['extensions', 'codebase', 'usages', 'vscodeAPI', 'problems', 'changes', 'testFailure', 'fetch', 'findTestFiles', 'searchResults', 'githubRepo', 'runTests', 'runCommands', 'runTasks', 'editFiles', 'runNotebooks', 'search', 'new', 'get_issue', 'get_issue_comments', 'get-library-docs', 'playwright', 'pylance mcp server']
5+
---
6+
7+
# Fixer Mode Instructions
8+
9+
You are in fixer mode. When given an issue to fix, follow these steps:
10+
11+
**Gather context**: Read error messages/stack traces/related code. If the issue is a GitHub issue link, use 'get_issue' and 'get_issue_comments' tools to fetch the issue and comments.
12+
**Make targeted fix**: Make minimal changes to fix the issue. Do not fix any issues that weren't identified. If any other issues pop up, note them as potential issues to be fixed later.
13+
**Verify fix**: Test the application to ensure the fix works as intended and doesn't introduce new issues. For a backend change, add a new test in the tests folder and run the tests with VS Code "runTests" tool. RUN all the tests using that tool, not just the tests you added. Try to add tests to existing test files when possible, like test_app.py. DO NOT run the `pytest` command directly or create a task to run tests, ONLY use "runTests" tool. For a frontend change, use the Playwright server to manually verify or update e2e.py tests.
14+
15+
## Local server setup
16+
17+
You MUST check task output readiness before debugging, testing, or declaring work complete.
18+
19+
- Start the app: Run the "Development" compound task (which runs both frontend and backend tasks) and check readiness from task output. Both must be in ready state:
20+
- Frontend task: "Frontend: npm run dev"
21+
- Backend task: "Backend: quart run"
22+
- Investigate and fix errors shown in the corresponding task terminal before proceeding. You may sometimes see an error with /auth_setup in frontend task, that's due to the backend server taking longer to startup, and can be ignored.
23+
- Both of the tasks provide hot reloading behavior:
24+
- Frontend: Vite provides HMR; changes in the frontend are picked up automatically without restarting the task.
25+
- Backend: Quart was started with --reload; Python changes trigger an automatic restart.
26+
- If watchers seem stuck or output stops updating, stop the tasks and run the "Development" task again.
27+
- To interact with a running application, use the Playwright MCP server

.github/copilot-instructions.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
# Adding new data
22

3+
<<<<<<< HEAD
34
New files should be added to the `data` folder, and then either run scripts/prepdocs.sh or script/prepdocs.ps1 to ingest the data.
45

56
# Overall code layout
@@ -31,6 +32,9 @@ New files should be added to the `data` folder, and then either run scripts/prep
3132
* app/frontend/src/pages: Contains the main pages of the application
3233
* infra: Contains the Bicep templates for provisioning Azure resources.
3334
* tests: Contains the test code, including e2e tests, app integration tests, and unit tests.
35+
=======
36+
New files should be added to the `data` folder, and then either run scripts/prepdocs.sh or scripts/prepdocs.ps1 to ingest the data.
37+
>>>>>>> main
3438
3539
# Adding a new azd environment variable
3640

@@ -57,7 +61,11 @@ When adding a new developer setting, update:
5761
* backend:
5862
* app/backend/approaches/chatreadretrieveread.py : Retrieve from overrides parameter
5963
* app/backend/approaches/retrievethenread.py : Retrieve from overrides parameter
64+
<<<<<<< HEAD
6065
* app/backend/app.py: Some settings may need to sent down in the /config route.
66+
=======
67+
* app/backend/app.py: Some settings may need to be sent down in the /config route.
68+
>>>>>>> main
6169
6270
# When adding tests for a new feature:
6371

.github/workflows/azure-dev-validation.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
security-events: write
1818
steps:
1919
- name: Checkout
20-
uses: actions/checkout@v4
20+
uses: actions/checkout@v5
2121

2222
- name: Build Bicep for linting
2323
uses: azure/CLI@v2
@@ -32,7 +32,7 @@ jobs:
3232
security-events: write
3333
steps:
3434
- name: Checkout
35-
uses: actions/checkout@v4
35+
uses: actions/checkout@v5
3636

3737
- name: Run PSRule analysis
3838
uses: microsoft/[email protected]

.github/workflows/azure-dev.yml

Lines changed: 2 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -117,39 +117,24 @@ jobs:
117117
RAG_SEND_IMAGE_SOURCES: ${{ vars.RAG_SEND_IMAGE_SOURCES }}
118118
steps:
119119
- name: Checkout
120-
uses: actions/checkout@v4
120+
uses: actions/checkout@v5
121121

122122
- name: Install azd
123-
uses: Azure/setup-azd@v2.1.0
123+
uses: Azure/setup-azd@v2.2.0
124124

125125
- name: Install Nodejs
126126
uses: actions/setup-node@v4
127127
with:
128128
node-version: 18
129129

130130
- name: Log in with Azure (Federated Credentials)
131-
if: ${{ env.AZURE_CLIENT_ID != '' }}
132131
run: |
133132
azd auth login `
134133
--client-id "$Env:AZURE_CLIENT_ID" `
135134
--federated-credential-provider "github" `
136135
--tenant-id "$Env:AZURE_TENANT_ID"
137136
shell: pwsh
138137

139-
- name: Log in with Azure (Client Credentials)
140-
if: ${{ env.AZURE_CREDENTIALS != '' }}
141-
run: |
142-
$info = $Env:AZURE_CREDENTIALS | ConvertFrom-Json -AsHashtable;
143-
Write-Host "::add-mask::$($info.clientSecret)"
144-
145-
azd auth login `
146-
--client-id "$($info.clientId)" `
147-
--client-secret "$($info.clientSecret)" `
148-
--tenant-id "$($info.tenantId)"
149-
shell: pwsh
150-
env:
151-
AZURE_CREDENTIALS: ${{ secrets.AZURE_CREDENTIALS }}
152-
153138
- name: Provision Infrastructure
154139
run: azd provision --no-prompt
155140
env:

.github/workflows/evaluate.yaml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ jobs:
120120
})
121121
122122
- name: Checkout pull request
123-
uses: actions/checkout@v4
123+
uses: actions/checkout@v5
124124
with:
125125
ref: refs/pull/${{ github.event.issue.number }}/head
126126

@@ -138,7 +138,7 @@ jobs:
138138
node-version: 18
139139

140140
- name: Install azd
141-
uses: Azure/setup-azd@v2.1.0
141+
uses: Azure/setup-azd@v2.2.0
142142

143143
- name: Login to Azure with az CLI
144144
uses: azure/login@v2
@@ -154,7 +154,6 @@ jobs:
154154
az account set --subscription ${{env.AZURE_SUBSCRIPTION_ID}}
155155
156156
- name: Login to with Azure with azd (Federated Credentials)
157-
if: ${{ env.AZURE_CLIENT_ID != '' }}
158157
run: |
159158
azd auth login `
160159
--client-id "$Env:AZURE_CLIENT_ID" `

.github/workflows/frontend.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
prettier:
1515
runs-on: ubuntu-latest
1616
steps:
17-
- uses: actions/checkout@v4
17+
- uses: actions/checkout@v5
1818
- name: Run prettier on frontend
1919
run: |
2020
cd ./app/frontend

.github/workflows/lint-markdown.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
runs-on: ubuntu-latest
1414
steps:
1515
- name: Checkout repo
16-
uses: actions/checkout@v4
16+
uses: actions/checkout@v5
1717
- name: Run markdownlint
1818
uses: articulate/actions-markdownlint@v1
1919
with:

.github/workflows/python-test.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,9 @@ jobs:
2626
matrix:
2727
os: ["ubuntu-latest", "windows-latest"]
2828
python_version: ["3.9", "3.10", "3.11", "3.12", "3.13"]
29-
node_version: ["20", "22"]
29+
node_version: ["20.14", "22"]
3030
steps:
31-
- uses: actions/checkout@v4
31+
- uses: actions/checkout@v5
3232
with:
3333
fetch-depth: 0 # Fetch all history for diff-cover
3434
- name: Install uv

.github/workflows/validate-markdown.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919
runs-on: ubuntu-latest
2020
steps:
2121
- name: Checkout Repo
22-
uses: actions/checkout@v4
22+
uses: actions/checkout@v5
2323
with:
2424
ref: ${{ github.event.pull_request.head.sha }}
2525
- name: Check broken Paths
@@ -37,7 +37,7 @@ jobs:
3737
runs-on: ubuntu-latest
3838
steps:
3939
- name: Checkout Repo
40-
uses: actions/checkout@v4
40+
uses: actions/checkout@v5
4141
with:
4242
ref: ${{ github.event.pull_request.head.sha }}
4343
- name: Run Check URLs Country Locale
@@ -54,7 +54,7 @@ jobs:
5454
runs-on: ubuntu-latest
5555
steps:
5656
- name: Checkout Repo
57-
uses: actions/checkout@v4
57+
uses: actions/checkout@v5
5858
with:
5959
ref: ${{ github.event.pull_request.head.sha }}
6060
- name: Run Check Broken URLs

.vscode/tasks.json

Lines changed: 68 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,74 @@
1515
"cwd": "${workspaceFolder}/app"
1616
},
1717
"problemMatcher": []
18+
},
19+
{
20+
"label": "Development",
21+
"dependsOn": [
22+
"Frontend: npm run dev",
23+
"Backend: quart run"
24+
],
25+
"group": {
26+
"kind": "build",
27+
"isDefault": true
28+
}
29+
},
30+
{
31+
"label": "Frontend: npm run dev",
32+
"type": "npm",
33+
"script": "dev",
34+
"isBackground": true,
35+
"options": {
36+
"cwd": "${workspaceFolder}/app/frontend"
37+
},
38+
"presentation": {
39+
"reveal": "always",
40+
"group": "buildWatchers",
41+
"panel": "dedicated",
42+
"clear": false
43+
},
44+
"problemMatcher": {
45+
"pattern": {
46+
"regexp": ""
47+
},
48+
"background": {
49+
"activeOnStart": true,
50+
"beginsPattern": ".*VITE v.*",
51+
"endsPattern": ".*(?:➜\\s*)?Local:\\s+https?://.*"
52+
}
53+
}
54+
},
55+
{
56+
"label": "Backend: quart run",
57+
"type": "shell",
58+
"command": "${workspaceFolder}/.venv/bin/python",
59+
"windows": {
60+
"command": "${workspaceFolder}\\.venv\\Scripts\\python.exe"
61+
},
62+
"args": ["-m", "quart", "run", "--reload", "-p", "50505"],
63+
"options": {
64+
"cwd": "${workspaceFolder}/app/backend",
65+
"env": {
66+
"QUART_APP": "main:app",
67+
"QUART_ENV": "development",
68+
"QUART_DEBUG": "0",
69+
"LOADING_MODE_FOR_AZD_ENV_VARS": "override"
70+
}
71+
},
72+
"isBackground": true,
73+
"presentation": {
74+
"reveal": "always",
75+
"group": "buildWatchers",
76+
"panel": "dedicated"
77+
},
78+
"problemMatcher": {
79+
"pattern": { "regexp": "" },
80+
"background": {
81+
"activeOnStart": true,
82+
"beginsPattern": ".*Serving Quart app.*",
83+
"endsPattern": ".*hypercorn.*Running on http://.*"
84+
}
85+
}
1886
}
1987
]
2088
}

0 commit comments

Comments
 (0)