From f94c32d8f1bc400625dbf0bd50bb317240309c7a Mon Sep 17 00:00:00 2001 From: Vincent Hardouin Date: Fri, 13 Dec 2024 16:55:42 +0100 Subject: [PATCH] feat(orga): add extraction date on statistics title Co-authored-by: Mathieu Gilet Co-authored-by: Alexandre Monney --- orga/app/components/statistics/index.gjs | 7 +++++++ orga/app/styles/components/statistics.scss | 4 ++++ .../components/statistics/index-test.gjs | 16 ++++++++++++++-- orga/translations/en.json | 1 + orga/translations/fr.json | 1 + orga/translations/nl.json | 1 + 6 files changed, 28 insertions(+), 2 deletions(-) diff --git a/orga/app/components/statistics/index.gjs b/orga/app/components/statistics/index.gjs index 501ede62c47..037caa49e06 100644 --- a/orga/app/components/statistics/index.gjs +++ b/orga/app/components/statistics/index.gjs @@ -1,6 +1,7 @@ import PixPagination from '@1024pix/pix-ui/components/pix-pagination'; import { service } from '@ember/service'; import Component from '@glimmer/component'; +import dayjs from 'dayjs'; import { t } from 'ember-intl'; import Header from '../table/header'; @@ -39,9 +40,15 @@ export default class Statistics extends Component { return this.analysisByTubes.slice(start, end); } + get extractedDate() { + return dayjs(this.analysisByTubes[0]?.extraction_date).format('D MMM YYYY'); + } +