-
Notifications
You must be signed in to change notification settings - Fork 69
feat: add report creation date #214
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
| retries: PropTypes.number.isRequired | ||
| }) | ||
| }), | ||
| date: PropTypes.string.isRequired |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
почему оно обязательное то?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
просто потому, что мы контролируем это в dateToLocaleString
| <SummaryKey label="Failed" value={failed} isFailed={true}/> | ||
| <SummaryKey label="Skipped" value={skipped}/> | ||
| <SummaryKey label="Retries" value={retries}/> | ||
| <span className='summary__date'>created in {date}</span> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
разве не created at?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
да, конечно.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
почему span а не div, если ты его все равно флоатишь в правую часть экрана?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
почему span а не div, если ты его все равно флоатишь в правую часть экрана?
И что?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
да ничего ) пытаюсь понять почему был использован данный html тег
| return resStats; | ||
| } | ||
|
|
||
| function dateToLocaleString(date) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
кажется, ты здесь немного упоролся - давай просто время с AM/PM оставим и все
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Проблема в основном с положением месяцев относительно дней. Нашим пользователям, полагаю, будет удобнее DD.MM.YYYY, а по дефолту MM/DD/YYYY.
new Date().toLocaleString()
"3/28/2019, 1:18:26 PM"
new Date().toLocaleString('en-US')
"3/28/2019, 1:18:35 PM"
new Date().toLocaleString('en-GB')
"28/03/2019, 13:18:38"
new Date().toLocaleString('ru')
"28.03.2019, 13:18:42"
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
а мне все таки нравится. Я постоянно забываю PM это утро или вечер. Плюс неудобно читать, что дата вторым значением указана. Го голосовать ;)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Я постоянно забываю PM это утро или вечер
рукалицо
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
кулакподбородок
DudaGod
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/ok
| <SummaryKey label="Failed" value={failed} isFailed={true}/> | ||
| <SummaryKey label="Skipped" value={skipped}/> | ||
| <SummaryKey label="Retries" value={retries}/> | ||
| <span className='summary__date'>created in {date}</span> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
почему span а не div, если ты его все равно флоатишь в правую часть экрана?
| return { | ||
| stats: statsToShow | ||
| stats: statsToShow, | ||
| date |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
я бы одной строкой выводил, тут же всего 2 поля
|
|
||
| function dateToLocaleString(date) { | ||
| if (!date) { | ||
| return ''; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
а в каком случае мы можем в это условие попасть? Кажется его выгасить можно
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
если в gui режиме
| return resStats; | ||
| } | ||
|
|
||
| function dateToLocaleString(date) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
а мне все таки нравится. Я постоянно забываю PM это утро или вечер. Плюс неудобно читать, что дата вторым значением указана. Го голосовать ;)
lib/static/modules/utils.js
Outdated
| lang = navigator.languages[0]; | ||
| } else { | ||
| lang = navigator.language; | ||
| } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Я бы так написал:
const lang = _.isEmpty(navigator.languages) ? navigator.language : navigator.languages[0];There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
норм
3465578 to
80c18c7
Compare
80c18c7 to
e84757e
Compare
|
published [email protected] |
in "ru-ru" locale

in "en-us" locale
