发布

  • [OPIK-2515] [FE] Remove Human Annotation feature toggle and related logic (#3425)

    frostbyte_neo 发布于 2025-09-26 12:53:48 +00:00

    • Enhance NoQueueItemsPage with project link and update props
    • Added an optional annotationQueue prop to NoQueueItemsPage for better context.
    • Integrated a project link button that directs users to the corresponding project if available.
    • Updated the documentation link to point to the correct section for adding content to the queue.
    • Adjusted ThreadQueueItemsTab and TraceQueueItemsTab to pass the new annotationQueue prop.
    • Update default selected columns in ThreadQueueItemsTab and TraceQueueItemsTab to include 'comments'

    • Refactor project link in NoQueueItemsPage to conditionally display based on queue type

    • Updated the project link button to differentiate between "Go to traces" and "Go to threads" based on the queue type.
    • Maintained the existing functionality while improving user navigation options.
    • Refactor InstructionsSection and InstructionsContent components to handle missing instructions gracefully
    • Removed conditional rendering for instructions in InstructionsSection to simplify the component.
    • Updated InstructionsContent to display a default message when no instructions are provided, enhancing user experience.
    • Remove Human Annotation feature toggle and related logic
    • Eliminated TOGGLE_HUMAN_ANNOTATION_ENABLED feature flag and associated references across the codebase.
    • Simplified components and logic by removing conditional checks for the flag.
    • Cleaned up code dependencies in both frontend and backend related to the annotation feature.
    • Update SMEFlowContext to default user name to "admin" when not logged in
    • Modified the logic in SMEFlowProvider to set the current user name to "admin" if no user is logged in.
    • This change ensures consistent behavior for feedback scores and comments in deployments without the comet plugin.
    • Revision 7: Fix linting errors by removing unused imports
    下载附件