Skip to content

Commit

Permalink
Updated changelog
Browse files Browse the repository at this point in the history
  • Loading branch information
Prospector committed Feb 17, 2025
1 parent bbb917c commit 4851f18
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 3 deletions.
10 changes: 7 additions & 3 deletions packages/ui/src/components/changelog/ChangelogEntry.vue
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,12 @@
</h2>
</AutoLink>
<div
v-if="recent && !future"
v-if="recent"
v-tooltip="dateTooltip"
class="hidden sm:flex"
:class="{ 'cursor-help': dateTooltip }"
>
{{ relativeDate }}
{{ future ? formatMessage(messages.justNow) : relativeDate }}
</div>
<div v-else-if="entry.version" :class="{ 'cursor-help': dateTooltip }">
{{ longDate }}
Expand Down Expand Up @@ -67,7 +67,7 @@ const props = withDefaults(
const currentDate = ref(dayjs())
const recent = computed(() => props.entry.date.isAfter(currentDate.value.subtract(1, 'week')))
const future = computed(() => props.entry.date.isBefore(currentDate.value))
const future = computed(() => props.entry.date.isAfter(currentDate.value))
const dateTooltip = computed(() => props.entry.date.format('MMMM D, YYYY [at] h:mm A'))
const relativeDate = computed(() => props.entry.date.fromNow())
Expand All @@ -91,6 +91,10 @@ const messages = defineMessages({
id: 'changelog.product.api',
defaultMessage: 'API',
},
justNow: {
id: 'changelog.justNow',
defaultMessage: 'Just now',
},
})
</script>
<style lang="scss" scoped>
Expand Down
12 changes: 12 additions & 0 deletions packages/utils/changelog.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,18 @@ export type VersionEntry = {
}

const VERSIONS: VersionEntry[] = [
{
date: `2025-02-16T19:10:00-08:00`,
product: 'web',
body: `### Improvements
- Fixed spacing issue on confirmation modals.`,
},
{
date: `2025-02-16T19:10:00-08:00`,
product: 'servers',
body: `### Improvements
- Check for availability before allowing a server upgrade.`,
},
{
date: `2025-02-12T19:10:00-08:00`,
product: 'web',
Expand Down

0 comments on commit 4851f18

Please sign in to comment.