Skip to content

Conversation

@paigewilliams
Copy link
Contributor

part 1 of a fix for this bug

This fix addresses the issue of not showing the import error message in the modal. We still need to fix the permissions issue on demo.itkdb.org.

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 fixes the display of import error messages in the admin interface modal. The changes ensure that error messages from the server are properly shown to the user with appropriate styling when database import operations fail.

  • Added a period to the backend error message for consistency
  • Enhanced frontend error handling to display server-side error messages from the JSON response
  • Improved UI state management in error scenarios by showing the next steps section and re-enabling the import button

Reviewed changes

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

File Description
TEKDB/TEKDB/views.py Added period to error message string for grammatical consistency
TEKDB/TEKDB/static/admin/js/admin_index.js Enhanced error display with server message extraction, red text styling, and proper UI state management

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

@paigewilliams paigewilliams merged commit c26fbab into main Dec 11, 2025
10 checks passed
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