{$i18n.t('User Activity')}
{userStats.length} {$i18n.t('users')}
{#if loading}
{/if} {#if !userStats.length && !loading}
{$i18n.t('No data found')}
{:else if userStats.length}
#
toggleSort('user_id')} >
{$i18n.t('User')} {#if orderBy === 'user_id'} {#if direction === 'asc'}
{:else}
{/if} {:else}
{/if}
toggleSort('count')} >
{$i18n.t('Messages')} {#if orderBy === 'count'} {#if direction === 'asc'}
{:else}
{/if} {:else}
{/if}
{$i18n.t('Share')}
{#each sortedUsers as user, idx (user.user_id)}
{idx + 1}
{user.user_id.substring(0, 8)}...
{user.count.toLocaleString()}
{((user.count / totalMessages) * 100).toFixed(1)}%
{/each}
{/if}
ⓘ {$i18n.t('Showing all messages (user + assistant) per user.')}