-
Notifications
You must be signed in to change notification settings - Fork 9
Add OpenAI Prompts admin page with CRUD operations #97
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
Conversation
Co-authored-by: maximgorbatyuk <13348685+maximgorbatyuk@users.noreply.github.com>
Co-authored-by: maximgorbatyuk <13348685+maximgorbatyuk@users.noreply.github.com>
package.json
Outdated
| "ngx-spinner": "^17.0.0", | ||
| "oidc-client": "^1.11.5", | ||
| "prettier": "^3.4.2", | ||
| "prismjs": "^1.30.0", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
is this required for the feature?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You're absolutely right - the prismjs dependency was not needed for the OpenAI Prompts feature. I've removed it in commit d4f5c8a. The dependency was added by mistake and isn't used anywhere in the codebase.
Co-authored-by: maximgorbatyuk <13348685+maximgorbatyuk@users.noreply.github.com>
|
Just as a heads up, I was blocked by some firewall rules while working on your feedback. Expand below for details. Warning Firewall rules blocked me from connecting to one or more addressesI tried to connect to the following addresses, but was blocked by firewall rules:
If you need me to access, download, or install something from one of these locations, you can either:
|
|
Important Review skippedBot user detected. To trigger a single review, invoke the You can disable this status message by setting the 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Join our Discord community for assistance with any issues or questions. Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
This PR adds a new admin page for managing OpenAI prompts with full CRUD operations, addressing the backend API endpoints added in web-api#139.
Features Added
🔧 Service Layer
src/app/services/openai-prompts.service.ts)/api/openai-prompts/- Fetch all prompts (non-paginated)/api/openai-prompts/- Create new prompt/api/openai-prompts/update- Update existing prompt/api/openai-prompts/{id}- Delete prompt by ID🎨 UI Components
Admin Page (
/admin/openai-prompts)Reusable Form Modal
Delete Confirmation
app-confirm-dialogcomponent🧭 Navigation
/admin/openai-promptsTechnical Implementation
OpenAiPrompt,OpenAiPromptCreateRequest, andOpenAiPromptUpdateRequestScreenshot
The page will display a table of prompts with create/edit/delete functionality once the backend API is deployed.
Fixes #96.
Warning
Firewall rules blocked me from connecting to one or more addresses
I tried to connect to the following addresses, but was blocked by firewall rules:
googlechromelabs.github.ionode install.mjs(dns block)https://storage.googleapis.com/chrome-for-testing-public/133.0.6943.53/linux64/chrome-headless-shell-linux64.zipnode install.mjs(http block)https://storage.googleapis.com/chrome-for-testing-public/133.0.6943.53/linux64/chrome-linux64.zipnode install.mjs(http block)If you need me to access, download, or install something from one of these locations, you can either:
💬 Share your feedback on Copilot coding agent for the chance to win a $200 gift card! Click here to start the survey.