Skip to content

Commit

Permalink
fix(ui): analytics date display format (#1999)
Browse files Browse the repository at this point in the history
  • Loading branch information
wwayne authored Apr 29, 2024
1 parent b76a101 commit f956ed5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ export function DailyActivity({
const selects = dailySelectMap[dateKey] || 0
const pendings = views - selects
return {
name: moment(date).format('D MMM'),
name: moment(date).format('MMMM D'),
views,
selects,
pendings
Expand Down
4 changes: 2 additions & 2 deletions ee/tabby-ui/app/(home)/components/completion-charts.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ export function CompletionCharts({
const views = dailyViewMap[dateKey] || 0
const selects = dailySelectMap[dateKey] || 0
return {
name: moment(date).format('D MMM'),
name: moment(date).format('MMMM D'),
value: views === 0 ? 0 : parseFloat(((selects / views) * 100).toFixed(2)),
selects,
views
Expand All @@ -142,7 +142,7 @@ export function CompletionCharts({
const selects = dailySelectMap[dateKey] || 0
const pendings = views - selects
return {
name: moment(date).format('D MMM'),
name: moment(date).format('MMMM D'),
views,
selects,
pending: views === 0 ? 0.5 : pendings,
Expand Down

0 comments on commit f956ed5

Please sign in to comment.