[Enhancement] Implement Dynamic Loading States and Inline Validation for Model Configuration Forms

Đang mở
#235 2 bình luận 0 reaction 0 người được giao Xem trên GitHub

@bnyashwanth đang làm issue này rồi.

Từ ngày 16/1/2026.

Đánh giá

Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
42/100
Loại issue
Tính năng
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Đình trệ
Công nghệ
react
Lĩnh vực
frontend

Hướng nghiên cứu

Bắt đầu bằng cách xác định UI cấu hình, các nút Submit hoặc Run, các trường tham số số và các lệnh gọi API không đồng bộ mà chúng kích hoạt. Kiểm tra công việc theo cách thủ công bằng cách kiểm tra các nút bị vô hiệu hóa và các chỉ báo đang tải, các thông báo xác thực ngay lập tức đối với các giá trị nằm ngoài phạm vi, cũng như các thông báo thành công hoặc thất bại sau khi nhận được phản hồi.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

Issue Description

Description

Currently, the user interface for configuring and submitting AI model parameters lacks sufficient visual feedback. When a user submits a configuration or inputs data, there is a lack of real-time validation and no "loading" indicator during asynchronous API calls.
This can lead to a confusing user experience, duplicate submissions, and uncertainty regarding whether a process is running.


Impact

Providing immediate visual feedback ensures that the application feels responsive and professional.
It prevents users from making input errors before submission and stops "double-submission" bugs by disabling buttons during the loading state.


Proposed Changes

I propose adding a robust feedback loop to the configuration UI:

  • Button Loading States: * Update the "Submit" or "Run" buttons to display a spinner and become disabled once clicked.
    Revert to the active state only after a response (Success/Error) is received from the backend.
  • Inline Form Validation: * Add real-time validation for numerical inputs (e.g., Learning Rate must be between 0 and 1).
  • Highlight fields in red with a brief error message if the input is invalid.
  • Toast Notifications: * Implement "Success" or "Failure" toast notifications (snackbars) to confirm that a background task has started or failed.

Technical Implementation Suggestion
  • Introduce an isLoading state variable to manage the UI transition during API calls.
  • Use conditional rendering for the button content: {isLoading ? : 'Run Model'}.
  • (If applicable) Integrate a lightweight notification library like react-hot-toast or use the project's existing UI framework components.

Verification Plan
  • Manual Test: Click the submit button and verify it becomes disabled and shows a spinner.
  • Validation Test: Enter an out-of-range value in a parameter field and verify the error message appears immediately.
  • Network Test: Simulate a slow network connection to ensure the loading state persists until the data is returned.
Ngôn ngữ chính
Python
Star
103
Fork
143
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Chuẩn bị môi trường

  • Không có Dockerfile hay tệp Docker Compose
  • Có mẫu pull request
  • Không có hướng dẫn đóng góp

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của AOSSIE-Org/Devr.AI

Tất cả issue của AOSSIE-Org/Devr.AI

Issue tương tự

Thêm issue về Python

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.