feat: add admin preview endpoint with tests#882
Conversation
|
Hi @imDarshanGK! 👋 Just following up on this PR — it's been a few days and I wanted to check if you've had a chance to look at it. All 4 tests are passing and the branch can be cleanly merged. Happy to make any changes based on your feedback! Thank you for your time. 🙏 |
|
@shravanithouta108 add demo |
|
Hi @imDarshanGK! 👋 Added the demo video showing the Also fixed the lint issues:
All 4 tests still passing. Ready for review! |
|
Hi @imDarshanGK! 👋 Following up on PR #882 — it's been a few days since your last comment. I've applied black formatting as requested and all 4 tests are still passing ✅. The only remaining issue is the merge conflict in Could you please take another look once that's done? Happy to make any other changes you need. 🙏 |
|
@shravanithouta108 resolve conflicts |
|
Resolved merge conflicts in main.py and analyze.py. Ready for review! |

Description
Implements a POST /admin/preview/ endpoint that allows admins to preview how prompt templates render with placeholder variables before running full analyses. Optionally returns a mock provider response.
Related Issue
Fixes #651
Type of change
Checklist
Test evidence
##Demo
Demo
Tested via Swagger UI at
POST /admin/preview/:demo.mp4