Skip to content

Conversation

@pendingintent
Copy link
Owner

Added new UI arms page
Moved all create/update/delete logic to routers/arms.py
Cleaned up deprecated functions in app.py
Removed arms logic from edit.html

Copilot AI review requested due to automatic review settings January 15, 2026 19:40
@pendingintent pendingintent self-assigned this Jan 15, 2026
@pendingintent pendingintent added the enhancement New feature or request label Jan 15, 2026
@pendingintent pendingintent added this to the v1.2-beta milestone Jan 15, 2026
Copy link
Contributor

Copilot AI left a comment

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 adds a dedicated UI page for managing study arms, refactoring arms-related logic from edit.html into a new standalone page and router module.

Changes:

  • Created new arms.html template with a table-based UI for managing arms
  • Moved all arm CRUD operations to routers/arms.py with dedicated API and UI endpoints
  • Removed arms management section from edit.html
  • Added utility functions for loading arm type and data origin type mappings
  • Enhanced generate_encounters.py to support optional environmental settings and contact modes

Reviewed changes

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

Show a summary per file
File Description
src/usdm/generate_encounters.py Added support for optional environmental settings and contact modes in encounters
src/soa_builder/web/utils.py Added utility functions for arm type/data origin mappings and generic submission value lookup
src/soa_builder/web/templates/edit.html Removed arms management section (moved to dedicated page)
src/soa_builder/web/templates/base.html Added navigation link to new arms page
src/soa_builder/web/templates/arms.html New dedicated arms management page with table-based UI
src/soa_builder/web/routers/epochs.py Added missing connection cleanup and deprecated marker
src/soa_builder/web/routers/arms.py Complete refactor with separate API/UI endpoints and improved code/terminology handling

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

@pendingintent pendingintent merged commit d63fe2c into master Jan 15, 2026
5 of 6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants