Skip to content

GOATS-993: Display feedback to users on ToO observation creation results.#475

Merged
davner merged 2 commits intomainfrom
GOATS-993/show-create-too
Oct 29, 2025
Merged

GOATS-993: Display feedback to users on ToO observation creation results.#475
davner merged 2 commits intomainfrom
GOATS-993/show-create-too

Conversation

@davner
Copy link
Copy Markdown
Member

@davner davner commented Oct 28, 2025

  • Refactor ToO response statuses to be more user-friendly.
  • Update frontend to show detailed messages based on ToO creation results.
  • Update ModalManager to improve structure and usability.
  • Add methods for better modal handling and debugging.
  • Integrate modal manager into the base HTML for global access.

Checklist

  • Added a release note in doc/changes using the PR number.

…lts.

- Refactor ToO response statuses to be more user-friendly.
- Update frontend to show detailed messages based on ToO creation results.
- Update ModalManager to improve structure and usability.
- Add methods for better modal handling and debugging.
- Integrate modal manager into the base HTML for global access.
@davner davner self-assigned this Oct 28, 2025
@davner davner requested a review from Copilot October 28, 2025 23:56
@codecov
Copy link
Copy Markdown

codecov bot commented Oct 28, 2025

Codecov Report

❌ Patch coverage is 92.85714% with 1 line in your changes missing coverage. Please review.
✅ Project coverage is 78.41%. Comparing base (29461d7) to head (dc57ea4).
⚠️ Report is 78 commits behind head on main.

Files with missing lines Patch % Lines
src/goats_tom/api_views/gpp/toos.py 92.85% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #475      +/-   ##
==========================================
- Coverage   78.42%   78.41%   -0.01%     
==========================================
  Files         276      276              
  Lines        8913     8914       +1     
  Branches      532      532              
==========================================
  Hits         6990     6990              
- Misses       1804     1805       +1     
  Partials      119      119              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Copy link
Copy Markdown

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 introduces a new ModalManager class to replace toast notifications with modal dialogs for the ToO (Target of Opportunity) observation creation workflow. The key improvements include better user feedback during long-running operations and more structured error/success messages.

  • Refactored ModalManager class with private fields, improved documentation, and debug logging capabilities
  • Updated ToO observation creation to use modals instead of toasts, displaying progress spinners and detailed status tables
  • Enhanced backend response messages with more user-friendly stage and status labels
  • Added new helper methods for managing observation button states and tracking active programs

Reviewed Changes

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

Show a summary per file
File Description
src/goats_tom/templates/tom_common/base.html Added global modal container and initialized ModalManager instance
src/goats_tom/static/js/modal_manager.js Refactored to use private fields, added debug logging, focus option, and handleUpdate calls
src/goats_tom/static/js/gpp/program_observations_panel.js Added toggleAllButtons method to control all observation toolbar buttons
src/goats_tom/static/js/gpp/gpp.js Integrated ModalManager for ToO creation workflow with progress tracking and detailed result displays
src/goats_tom/api_views/gpp/toos.py Updated enum values to be more user-friendly and added normalization success message

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

@davner davner merged commit 18e4ac3 into main Oct 29, 2025
8 checks passed
@davner davner deleted the GOATS-993/show-create-too branch October 29, 2025 00:18
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