Skip to content
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

Make date formats consistent for .github embeds #1093

Open
1 of 2 tasks
minalike opened this issue Aug 25, 2022 · 6 comments
Open
1 of 2 tasks

Make date formats consistent for .github embeds #1093

minalike opened this issue Aug 25, 2022 · 6 comments
Labels
area: frontend Related to output and formatting category: utilities Related to utilities status: planning Discussing details type: enhancement Changes or improvements to existing features

Comments

@minalike
Copy link
Member

minalike commented Aug 25, 2022

Description

  • Some dates are mm/dd/yyyy and others are dd/mm/yyyy. Make this consistent one way or another. Perhaps use localized timestamps since we have that option now instead of using the embed footers.
  • Nitpick: I think "minalike's GitHub profile info" should instead read: "minalike's GitHub Profile" (no backticks, proper casing)
  • Nitpick: The usage of a large thumbnail in the user embed versus a small icon for the repo embed is weird. I think I prefer the small icon. (Edit: on second thought, the user command is to feature the user and the repo command features the repository, not the repository owner. Still, my preference is the smaller icon for both).

image

Would you like to implement a fix?

  • I'd like to implement the bug fix
  • Anyone can implement the bug fix

Comments and suggestions welcome.

@minalike minalike added type: bug Something isn't working status: planning Discussing details area: frontend Related to output and formatting type: enhancement Changes or improvements to existing features category: utilities Related to utilities and removed type: bug Something isn't working labels Aug 25, 2022
@wookie184
Copy link
Contributor

I think the first one (Account created at) is a localised embed timestamp (shows dd/mm/yyyy for me), whereas the second one isn't, as localized timestamps in embed footers are very limited. I don't really have a preference on how to fix this inconsistency.

I agree with your second point on changing the title wording/formatting.

I don't really mind the icons being different. I quite like the bigger icon on the user command.

@Ibrahim2750mi
Copy link
Contributor

If the status gets approved can I be assigned this issue?

@wookie184
Copy link
Contributor

If the status gets approved can I be assigned this issue?

There's still not really a conclusion on what should be changed for each part (apart from the second part).

@Ibrahim2750mi
Copy link
Contributor

@wookie184 For the first part I think these lines are concerned

We could use either dd/mm/yyyy or mm/dd/yyyy for both.

Don't know about the third part, I think its better the way its now.

@wookie184
Copy link
Contributor

@wookie184 For the first part I think these lines are concerned
* https://github.com/python-discord/sir-lancebot/blob/main/bot/exts/utilities/githubinfo.py#L350-L351
* https://github.com/python-discord/sir-lancebot/blob/main/bot/exts/utilities/githubinfo.py#L264

We could use either dd/mm/yyyy or mm/dd/yyyy for both.

I would be happy with using dd/mm/yyyy for both although others may prefer using timestamps not in the footer so it's localised (CC @minalike?), i'm not too sure how that would look, although I'd also be happy with that.

@minalike
Copy link
Member Author

Yeah I think it would be nice to move them out of the footer so we can use localized timestamps.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: frontend Related to output and formatting category: utilities Related to utilities status: planning Discussing details type: enhancement Changes or improvements to existing features
Projects
None yet
Development

No branches or pull requests

3 participants