Skip to content

Updated code to set default result viewer template for new studies #2648

Merged
amit-sharma-d4l merged 2 commits into
developfrom
amit-sharma-d4l/result_viewer_default_template
Jun 19, 2026
Merged

Updated code to set default result viewer template for new studies #2648
amit-sharma-d4l merged 2 commits into
developfrom
amit-sharma-d4l/result_viewer_default_template

Conversation

@amit-sharma-d4l

Copy link
Copy Markdown
Collaborator

This change sets the default result viewer template for a new study - previously it was empty.

Merge Checklist

Please cross check this list if additions / modifications needs to be done on top of your core changes and tick them off. Reviewer can as well glance through and help the developer if something is missed out.

  • Automated Tests (Jasmine integration tests, Unit tests, and/or Performance tests)
  • Updated Manual tests / Demo Config
  • Documentation (Application guide, Admin guide, Markdown, Readme and/or Wiki)
  • Verified that local development environment is working with latest changes (integrated with latest develop branch)
  • following best practices in code review doc

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 PR updates the System Admin “Study” page so newly created/local studies get a default Result Viewer template instead of an empty value, improving the out-of-box experience when launching/editing a viewer.

Changes:

  • Default local studies’ viewerCode to RESULT_VIEWER_TEMPLATE when the stored value is empty/whitespace-only.

strategus_json: study.analysisSpec,
type: StrategusStudyType.LOCAL,
viewerCode: study.viewerCode ?? RESULT_VIEWER_TEMPLATE,
viewerCode: study.viewerCode?.trim() || RESULT_VIEWER_TEMPLATE,
@amit-sharma-d4l amit-sharma-d4l added this pull request to the merge queue Jun 19, 2026
Merged via the queue into develop with commit fe07142 Jun 19, 2026
70 of 71 checks passed
@amit-sharma-d4l amit-sharma-d4l deleted the amit-sharma-d4l/result_viewer_default_template branch June 19, 2026 14:48
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.

3 participants