AS a moderator, I want the member logs to have their dates as an age rather than just a date #9

Open
opened 2021-03-08 19:00:39 +00:00 by Vylpes · 1 comment
Vylpes commented 2021-03-08 19:00:39 +00:00 (Migrated from github.com)

Story Points: 5


AS a moderator, I want the member logs to have their dates as an age rather than just a date
SO THAT I can see how old the account is more easily

Acceptance Criteria

AS a moderator
GIVEN a new account joins/leaves the server
WHEN I look at the embed the bot sent in the logs
THEN I should see the age of their account/when they joined as well

Subtasks

  • Add age to member add event embed
  • Add age to member remove event embed
  • Update tests

Notes

  • Use the format "YYYY-MM-DDTHH:mmZ x Days ago
  • Go by the highest unit you can, for example 6 days ago, then 1 week ago, then 1 month ago, etc.
  • 4 Weeks = 1 Month
  • Round to the nearest unit, for example 12 days would round to 2 weeks ago
Story Points: 5 --- AS a moderator, I want the member logs to have their dates as an age rather than just a date SO THAT I can see how old the account is more easily ## Acceptance Criteria AS a moderator GIVEN a new account joins/leaves the server WHEN I look at the embed the bot sent in the logs THEN I should see the age of their account/when they joined as well ## Subtasks - [x] Add age to member add event embed - [x] Add age to member remove event embed - [x] Update tests ## Notes - Use the format "YYYY-MM-DDTHH:mmZ `x Days ago` - Go by the highest unit you can, for example 6 days ago, then 1 week ago, then 1 month ago, etc. - 4 Weeks = 1 Month - Round to the nearest unit, for example 12 days would round to 2 weeks ago
Vylpes changed title from Member logs dates should say the age in length rather than the date to AS a moderator, I want the member logs to have their dates as an age rather than just a date 2024-03-10 15:38:28 +00:00
Vylpes added this to the 3.5.0 milestone 2025-10-13 18:29:43 +01:00
Vylpes self-assigned this 2025-12-23 16:13:52 +00:00
Vylpes added this to the 3.3 Sprint 9 project 2025-12-23 16:13:57 +00:00
Vylpes stopped working 2025-12-31 14:40:53 +00:00
18 minutes 26 seconds
Vylpes removed their assignment 2026-09-16 13:28:53 +01:00
Member

QA results — PASS

Tested on release/3.5.0 @ 31250de.

Pipeline

  • yarn install --frozen-lockfile PASS
  • yarn build (tsc) PASS
  • yarn test PASS — 3 suites / 29 tests / 1 snapshot
  • yarn lint PASS

Acceptance criteria

  • Member join embed (GuildMemberAdd): Created field uses DateTools.FormatDateWithAge(member.user.createdAt) — account age shown.
  • Member leave embed (GuildMemberRemove): Joined field uses DateTools.FormatDateWithAge(member.joinedAt) (or *none*) — join age shown.
  • Age units (DateTools.FormatDateWithAge + tests/helpers/DateTools.test.ts 10/10): Today, 1 day, N days (<7), weeks (7–27, round nearest; 12 days → 2 weeks), months (28-day months), years — covered and green.

Residual / human UAT

  • Live Discord smoke (enable event.member.add / event.member.remove and confirm embed formatting in a guild) left for UAT.

Moved step/testing → step/uat; assigned to @Vylpes.

## QA results — PASS Tested on `release/3.5.0` @ `31250de`. ### Pipeline - `yarn install --frozen-lockfile` PASS - `yarn build` (tsc) PASS - `yarn test` PASS — 3 suites / 29 tests / 1 snapshot - `yarn lint` PASS ### Acceptance criteria - **Member join embed** (`GuildMemberAdd`): `Created` field uses `DateTools.FormatDateWithAge(member.user.createdAt)` — account age shown. - **Member leave embed** (`GuildMemberRemove`): `Joined` field uses `DateTools.FormatDateWithAge(member.joinedAt)` (or `*none*`) — join age shown. - **Age units** (`DateTools.FormatDateWithAge` + `tests/helpers/DateTools.test.ts` 10/10): Today, 1 day, N days (&lt;7), weeks (7–27, round nearest; 12 days → 2 weeks), months (28-day months), years — covered and green. ### Residual / human UAT - Live Discord smoke (enable `event.member.add` / `event.member.remove` and confirm embed formatting in a guild) left for UAT. Moved `step/testing` → `step/uat`; assigned to @Vylpes.
Smithy-bot removed their assignment 2026-09-20 12:06:33 +01:00
Sign in to join this conversation.
No milestone
No project
No assignees
2 participants
Notifications
Total time spent: 18 minutes 26 seconds
Vylpes
18 minutes 26 seconds
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
RabbitLabs/vylbot-app#9
No description provided.