Skip to content

Revert "FEAT: add prompt suffix handling" - #136

Merged
michelle-hadfield-nava merged 1 commit into
mainfrom
revert-134-mHadfield/1403_add_prompt_suffix_handling
Jan 9, 2026
Merged

Revert "FEAT: add prompt suffix handling"#136
michelle-hadfield-nava merged 1 commit into
mainfrom
revert-134-mHadfield/1403_add_prompt_suffix_handling

Conversation

@michelle-hadfield-nava

@michelle-hadfield-nava michelle-hadfield-nava commented Jan 9, 2026

Copy link
Copy Markdown
Collaborator

Reverts #134

Preview environment for frontend

♻️ Environment destroyed ♻️

Preview environment for app

♻️ Environment destroyed ♻️

Copilot AI review requested due to automatic review settings January 9, 2026 23:10
@michelle-hadfield-nava
michelle-hadfield-nava merged commit dc74f95 into main Jan 9, 2026
23 of 26 checks passed
@michelle-hadfield-nava
michelle-hadfield-nava deleted the revert-134-mHadfield/1403_add_prompt_suffix_handling branch January 9, 2026 23:10
@github-actions

github-actions Bot commented Jan 9, 2026

Copy link
Copy Markdown

Coverage report for frontend

St.
Category Percentage Covered / Total
🔴 Statements 54.73% 376/687
🔴 Branches 49.8% 122/245
🔴 Functions 59.63% 65/109
🔴 Lines 54.53% 355/651

Test suite run success

78 tests passing in 7 suites.

Report generated by 🧪jest coverage report action from 55da58c

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This pull request reverts PR #134, removing the prompt suffix handling feature that was previously added. The revert removes the ability to pass a suffix parameter to customize prompt names dynamically.

Key changes:

  • Removed suffix parameter from frontend and backend APIs
  • Restored prompt template retrieval to use a single prompt name without suffix concatenation
  • Reverted prompt version IDs in the configuration to earlier versions
  • Simplified request body construction in multiple files

Reviewed changes

Copilot reviewed 8 out of 8 changed files in this pull request and generated no comments.

Show a summary per file
File Description
frontend/src/util/fetchResources.ts Removed suffix parameter and simplified request body construction
frontend/src/util/fetchActionPlan.ts Simplified request body from separate object to inline construction
frontend/src/components/ResourcesList.tsx Formatting-only change collapsing multi-line span element to single line
frontend/src/app/[locale]/generate-referrals/page.tsx Removed extraction and passing of suffix query parameter
app/src/pipelines/generate_referrals/pipeline_wrapper.py Removed suffix parameter from run_api and _run methods, updated error message
app/src/pipelines/generate_action_plan/pipeline_wrapper.py Moved prompt template retrieval from _run to setup, changed ChatPromptBuilder to use required_variables instead of variables
app/src/common/haystack_utils.py Removed suffix parameter from get_phoenix_prompt function
app/src/app_config.py Reverted prompt version IDs to earlier versions and removed generate_referrals_keystone entry

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

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