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

Insert today's date (shortcut: ctrl+;) #1929

Merged
merged 5 commits into from
Oct 2, 2024
Merged

Insert today's date (shortcut: ctrl+;) #1929

merged 5 commits into from
Oct 2, 2024

Conversation

davidfig
Copy link
Collaborator

This inserts today's date when pressing ctrl+; (or via the command palette). This is an Excel shortcut.

Copy link

qa-wolf bot commented Sep 28, 2024

QA Wolf here! As you write new code it's important that your test coverage is keeping up.
Click here to request test coverage for this PR!

@cla-bot cla-bot bot added the cla-signed label Sep 28, 2024
Copy link

vercel bot commented Sep 28, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated (UTC)
quadratic ✅ Ready (Inspect) Visit Preview Oct 3, 2024 0:14am

Copy link

codecov bot commented Sep 28, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 91.17%. Comparing base (239b8c1) to head (f0619f0).
Report is 6 commits behind head on qa.

Additional details and impacted files
@@           Coverage Diff           @@
##               qa    #1929   +/-   ##
=======================================
  Coverage   91.17%   91.17%           
=======================================
  Files         246      246           
  Lines       54247    54247           
=======================================
  Hits        49459    49459           
  Misses       4788     4788           

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

@davidkircos davidkircos temporarily deployed to quadratic-api-dev-pr-1929 October 1, 2024 11:49 Inactive
const sheet = sheets.sheet;
const cursor = sheet.cursor;
const today = new Date();
const formattedDate = `${today.getFullYear()}/${today.getMonth() + 1}/${today.getDate()}`;
Copy link
Collaborator

Choose a reason for hiding this comment

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

It would be nice to have a date utilities file for stuff like this.

const sheet = sheets.sheet;
const cursor = sheet.cursor;
const today = new Date();
const formattedDate = `${today.getFullYear()}/${today.getMonth() + 1}/${today.getDate()}`;
Copy link
Collaborator

Choose a reason for hiding this comment

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

Same comment here. I've seen this repeat several times, ripe to be refactored into a reusable function.

Copy link
Collaborator

@ddimaria ddimaria left a comment

Choose a reason for hiding this comment

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

Non-blocking comment to make things DRYer.

@luke-quadratic
Copy link
Contributor

bonus points if cmd+; does the time
CleanShot 2024-10-02 at 09 52 04

@davidkircos davidkircos temporarily deployed to quadratic-api-dev-pr-1929 October 2, 2024 23:37 Inactive
@davidkircos davidkircos temporarily deployed to quadratic-api-dev-pr-1929 October 2, 2024 23:41 Inactive
@davidkircos davidkircos temporarily deployed to quadratic-api-dev-pr-1929 October 2, 2024 23:47 Inactive
@davidfig davidfig merged commit cdcf277 into qa Oct 2, 2024
14 of 15 checks passed
@davidfig davidfig deleted the todays-date branch October 2, 2024 23:58
Copy link

qa-wolf bot commented Oct 3, 2024

E2E tests

QA 1 blocking bug

Ran Status Preview Started Run time Est. dev time saved
74 workflows Done (Details) Oct 3, 2024 at 12:29 AM (UTC) 21 minutes ~29.83 hrs
✅ 70 passed

Preexisting bugs

1 Blocking bug
If you are aware of any of these bugs, you can set their priority to low and prevent them from causing a run failure.
View all blocking bugs

1 Non-blocking bug

. . . . . . . .

Re-run your E2E tests

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants