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

Standardize dates and sort icons #2884

Merged
merged 3 commits into from
Jan 31, 2025
Merged

Standardize dates and sort icons #2884

merged 3 commits into from
Jan 31, 2025

Conversation

taylordowns2000
Copy link
Member

@taylordowns2000 taylordowns2000 commented Jan 30, 2025

Description

This PR fixes #2423 (https://openfn.slack.com/archives/C031G8JAU/p1724414804213229) but also standardizes our date formats: YYYY-MM-DD is better than DD/MM/YYYY because we have a very international (including Americans) and it removes ambiguity between mm/dd and dd/mm.

Finally, it adds this: https://community.openfn.org/t/add-project-name-on-failure-alert-emails/809

Validation steps

  1. See that chevrons point the way that the sort is CURRENTLY going, rather than the way they will go in the future.
  2. See date formats are standardized on User Profile, Projects Table, Access Token Table

AI Usage

Please disclose how you've used AI in this work (it's cool, we just want to know!):

  • Code generation (copilot but not intellisense)
  • Learning or fact checking
  • Strategy / design
  • Optimisation / refactoring
  • Translation / spellchecking / doc gen
  • Other
  • I have not used AI

You can read more details in our Responsible AI Policy

Pre-submission checklist

  • I have performed a self-review of my code.
  • I have implemented and tested all related authorization policies. (e.g., :owner, :admin, :editor, :viewer)
  • I have updated the changelog.
  • I have ticked a box in "AI usage" in this PR

@taylordowns2000 taylordowns2000 marked this pull request as ready for review January 30, 2025 18:05
Copy link
Contributor

@elias-ba elias-ba left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice work @taylordowns2000 👏🏽

@@ -344,7 +344,7 @@ defmodule Lightning.Accounts.UserNotifier do
body = """
Hi #{user.first_name},

Here's your #{Atom.to_string(digest)} project digest for "#{project.name}", covering activity from #{start_date |> Calendar.strftime("%a %B %d %Y at %H:%M %Z")} to #{end_date |> Calendar.strftime("%a %B %d %Y at %H:%M %Z")}.
Here's your #{Atom.to_string(digest)} project digest for "#{project.name}", covering activity from #{start_date |> Lightning.Helpers.format_date_long()} to #{end_date |> Lightning.Helpers.format_date_long()}.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice !

Copy link

codecov bot commented Jan 30, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 91.44%. Comparing base (3c438ea) to head (f462473).
Report is 1 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #2884   +/-   ##
=======================================
  Coverage   91.44%   91.44%           
=======================================
  Files         343      343           
  Lines       12351    12355    +4     
=======================================
+ Hits        11294    11298    +4     
  Misses       1057     1057           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link

@christad92 christad92 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks Taylor. Looks good to me

@taylordowns2000 taylordowns2000 merged commit e7291f3 into main Jan 31, 2025
8 checks passed
@taylordowns2000 taylordowns2000 deleted the fix-sort-icon branch January 31, 2025 10:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

Both sort arrows are appearing at once on the projects table
3 participants