发布

  • [OPIK-2766] [FE] Add inline editing for user feedback in threads and experiments (#3743)

    frostbyte_neo 发布于 2025-10-22 12:32:19 +00:00

    • [OPIK-2766] [FE] Refactor user feedback column ID definition in traces table (#3741)

    • Consolidate USER_FEEDBACK_COLUMN_ID definition in shared constants for better maintainability.

    • Update TracesSpansTab component to import USER_FEEDBACK_COLUMN_ID from shared constants.

    • [OPIK-2766] [FE] Refactor user feedback column in TracesSpansTab component

    • Update user feedback column definition to use DynamicColumn type for consistency.

    • Simplify the return structure of scoresColumnsData by directly mapping dynamic columns.

    • Ensure the user feedback column is always included in the scores columns.

    • [OPIK-2766] [FE] Enhance user feedback handling in ThreadsTab component

    • Introduce user feedback column in ThreadsTab to ensure consistent feedback collection.

    • Update FeedbackScoreCell to manage feedback scores for both threads and traces, incorporating project context.

    • Refactor score handling logic to differentiate between thread and trace feedback submissions.

    • [OPIK-2766] [FE] Refactor FeedbackScoreCell to utilize inline editing for user feedback

    • Remove direct mutation calls from FeedbackScoreCell and implement useFeedbackScoreInlineEdit hook for cleaner feedback score handling.

    • Simplify the component by eliminating unused imports and logic related to user feedback submission.

    • Enhance maintainability and readability of the FeedbackScoreCell component.

    • [OPIK-2766] [FE] Integrate user feedback column in ExperimentItemsTab

    • Add USER_FEEDBACK_COLUMN_ID to the default selected columns for the ExperimentItemsTab.

    • Implement user feedback column in scoresColumnsData, ensuring it is always included.

    • Enable inline editing for user feedback in CompareExperimentsFeedbackScoreCell, enhancing user interaction.

    • Update styling to differentiate user feedback column visually.

    • [OPIK-2766] [FE] Simplify feedback score handling in CompareExperimentsFeedbackScoreCell

    • Rename variable for clarity, changing firstFeedbackScore to feedbackScore.

    • Update inline editing hook to use the renamed feedbackScore, improving code readability and maintainability.

    • [OPIK-2766] [FE] Add FeedbackScoreEditDropdown to CompareExperimentsFeedbackScoreCell

    • Introduce FeedbackScoreEditDropdown for user feedback editing when no feedback score is present.

    • Update logic to conditionally render the dropdown based on user feedback column status and experiment item count.

    • Enhance user experience by providing an interactive element for feedback score entry.

    • Fix comparison logic for user feedback editing in CompareExperimentsFeedbackScoreCell

    • Update equality check from == to === for strict comparison of experiment item count.

    • Ensure consistent behavior in enabling user feedback editing based on the number of experiment items.

    • Enhance FeedbackScoreCell and useFeedbackScoreInlineEdit to support Span type. Updated type definitions and logic to handle spans in feedback score editing, improving flexibility for trace data handling.

    • Refactor FeedbackScoreCell to enhance user feedback editing logic. Updated conditions to enable editing based on thread status, improving user experience in feedback score management.

    下载附件