From cd9d8141f5bbed2c41d21e7141745d915856496f 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'); + } +