You are browsing as a guest. Sign up (or log in) to start making projects!

5h 31m 4s logged

I spent way too long implementing these features :nay:

I couldn’t tell you what’s taking so much longer compared to Tungsten, but things are getting done!

To-do creation

I made a basic flow for creating to-do items (it doesn’t create them yet, I got an optical migraine and had to take a nap), but it has some really cool features!

When you create one, all you get is one input as to not clutter things up. What’s cool is you can input a bunch of different things to auto-set some values!

There’s 4 different matchers for due dates, that match the following (parenthesis are optional fields):

  • “Tomorrow ((at) time)”
  • “(in) [time] [units] (ago)”
  • “MM/DD(/YYYY) (time)”
  • “HH(:MM)(am/pm)”
    For the ones where time is optional, it defaults to 11:59pm.

This is a heavy oversimplification as the regex selectors are super long and complicated. Weirdly enough, I kind of enjoy writing regex? It’s a fun problem solving problem.

You can also auto-fill associated course, priority, and a URL! To associate a course, you simply type “SUB123”, with your courses subject and number, and it will find it for you. Priority is simply “!X”, where X is the priority of this task. It goes all the way to 99 if it’s that important!

Meeting Exclusions

Buzzword buzzword. You can now remove specific events from the calendar, like if there isn’t class that day. This took way longer than it should’ve to implement, as FullCalendar is stupid and doesn’t implement exclusion dates in their recurrence implementation, only through RRule. That took some wrangling cause the docs on it are a little stupid, and the library threw some stupid errors but it works now. There’s a new column in the database to store these as well.

Timezone Issues :husk: :husk: :husk: :husk: :husk:

I hate javascript dates. I hate javascript dates. I hate javascript dates. I hate javascript dates. I hate javascript dates. I hate javascript dates. I hate javascript dates. I hate javascript dates.

Somehow, it is simultaneously the most overengineered piece of garbage ever and the least developed part of the language. Many basic features are a complete afterthought, and most of the time, you’re having to some stupid crap just to add time onto a date.

Anyway, after I implemented meeting exclusions, I suddenly noticed the one 10am class I had in the calendar was now at 4am… yeah. You wouldn’t believe what my timezone offset is. -6.

Sooo I fought that for a while, and as it turns out, FullCalendar tries to help, but really fails miraculously and makes things worse. For example, it “accounted for daylight savings” by moving events back an hour after it ended. That made me very glad that’s not actually how the world works, but it had me questioning it for a second.

What’s next???

I’m tired. I don’t know, whatever I get around to implementing tomorrow. Good night!

0
1

Comments 0

No comments yet. Be the first!