AS a moderator, I want the member logs to have their dates as an age rather than just a date #9
Labels
No labels
blocked
duplicate
needs
approval
needs
criteria
needs
estimate
needs
tests
question
step
doing
step
review
step
testing
step
todo
step
uat
type
admin
type
alert
type
bug
type
change
type
defect
type
dependencies
type
epic
type
idea
type
incident
type
investigation
type
spike
type
story
won't fix
No project
No assignees
2 participants
Notifications
Total time spent: 18 minutes 26 seconds
Due date
Vylpes
18 minutes 26 seconds
No due date set.
Dependencies
No dependencies set
Reference
RabbitLabs/vylbot-app#9
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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
Notes
x Days agoMember logs dates should say the age in length rather than the dateto AS a moderator, I want the member logs to have their dates as an age rather than just a dateQA results — PASS
Tested on
release/3.5.0@31250de.Pipeline
yarn install --frozen-lockfilePASSyarn build(tsc) PASSyarn testPASS — 3 suites / 29 tests / 1 snapshotyarn lintPASSAcceptance criteria
GuildMemberAdd):Createdfield usesDateTools.FormatDateWithAge(member.user.createdAt)— account age shown.GuildMemberRemove):Joinedfield usesDateTools.FormatDateWithAge(member.joinedAt)(or*none*) — join age shown.DateTools.FormatDateWithAge+tests/helpers/DateTools.test.ts10/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
event.member.add/event.member.removeand confirm embed formatting in a guild) left for UAT.Moved
step/testing→step/uat; assigned to @Vylpes.