[OPENAIINT-13] UI not context path-aware Created: 26/Oct/23  Updated: 26/Oct/23  Resolved: 26/Oct/23

Status: Closed
Project: OpenAI Integrations
Component/s: None
Affects Version/s: None
Fix Version/s: 1.0.6

Type: Bug Priority: Neutral
Reporter: Raymond Tran Assignee: Sebastian Geschke
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Local dev


Attachments: PNG File Screenshot 2023-10-26 at 12.52.50.png    
Template:
Acceptance criteria:
Empty
Work Started:

 Description   

Steps to reproduce

  1. Configure the module in an environment with context path other than `/` e.g. `magnoliaAuthor`
  2. Try to Generate Page

 

Expected results

List of allowed templates is displayed in the "Available templates" drop down

Actual results

List of allowed templates is not displayed in the "Available templates" drop down

Workaround

In `base-api.js` update line 9 to

export const getAvailableTemplates = async (currentNode) => await fetch(`${contextPath}/.rest/registry-definitions/templates/available/${currentNode}`).then(r => r.json());

Development notes

Would expect this to affect other dialogs such as generate personalisation variant.


Generated at Mon Feb 12 10:23:54 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.