{#if items === null || total === null}
{:else}
{$i18n.t("Feedback History")}
{total}
{#if total > 0}
{/if}
{#if modelIds.length > 0}
{ if (e.deltaY !== 0) { e.preventDefault(); e.currentTarget.scrollLeft += e.deltaY; } }} >
{/if}
{#if (items ?? []).length === 0}
😕
{$i18n.t("No feedback found")}
{$i18n.t( "Try adjusting your search or filter to find what you are looking for.", )}
{:else} {#each items as feedback (feedback.id)} openFeedbackModal(feedback)} > {#if feedback?.data?.rating} {/if} {/each}
setSortKey("user")} >
{$i18n.t("User")} {#if orderBy === "user"} {#if direction === "asc"} {:else} {/if} {:else} {/if}
setSortKey("model_id")} >
{$i18n.t("Models")} {#if orderBy === "model_id"} {#if direction === "asc"} {:else} {/if} {:else} {/if}
setSortKey("rating")} >
{$i18n.t("Result")} {#if orderBy === "rating"} {#if direction === "asc"} {:else} {/if} {:else} {/if}
setSortKey("updated_at")} >
{$i18n.t("Updated At")} {#if orderBy === "updated_at"} {#if direction === "asc"} {:else} {/if} {:else} {/if}
{feedback?.user?.name}
{#if feedback.data?.sibling_model_ids}
{feedback.data ?.model_id}
{#if feedback.data.sibling_model_ids.length > 2} {feedback.data.sibling_model_ids .slice(0, 2) .join(", ")}, {$i18n.t( "and {{COUNT}} more", { COUNT: feedback .data .sibling_model_ids .length - 2, }, )} {:else} {feedback.data.sibling_model_ids.join( ", ", )} {/if}
{:else}
{feedback.data ?.model_id}
{/if}
{#if feedback?.data?.rating.toString() === "1"} {:else if feedback?.data?.rating.toString() === "0"} {:else if feedback?.data?.rating.toString() === "-1"} {/if}
{dayjs( feedback.updated_at * 1000, ).fromNow()} e.stopPropagation()} > { deleteFeedbackHandler(feedback.id); }} >
{/if}
{#if total > 30} {/if}
{/if}