Code Monkey home page Code Monkey logo

Comments (6)

valentine195 avatar valentine195 commented on September 24, 2024 1

Hi @kgar, yes, fresh start. I have yet to implement the "large" view in this rewrite (getting everything buttoned up on the small view first).

I would love to tackle this but it might not make it into MVP1. There's a Svelte module (svelte-dnd-action) that can help us with implementing the DnD - I think ultimately each Month in the big view would need to have a drop target in it, and the Event flags are draggable objects. Updating the dates will be the really hard part unfortunately.

from calendarium.

sigrunixia avatar sigrunixia commented on September 24, 2024 1

@kgar
As far as assistance, I see you have several Typescript items on your profile. If you want to help on the calendar, as more gets rewritten and you think you can tackle a PR or two, even if it doesn't close it, that would be most helpful.

We're playing Catch-up on as many issues prior as we can.

from calendarium.

kgar avatar kgar commented on September 24, 2024
  • Yay!

I was just recently manually reordering my events in the json file and thought it'd be nice to be able to drag and drop.

I can think of a few challenges:

  • Moving an event that was added due to frontmatter
    • Do we change the frontmatter on the file? Does that violate any self-imposed rules we have for the calendar?
    • How should intercalery months be represented? Personally, I think they should somehow be represented my their name instead of a number. Currently, they are throwing off the numbering for events added via frontmatter, so in the Calendar of Harptos, months are off by the number of intercalery months that have appeared thus far in the year.
  • Moving event from a month to an intercalery date
    • Handling fitting an event whose range of days exceeds the number of days in an intercalery month

There are probably some other challenges to consider. I could look over the code base and ponder this. Disclaimer: I haven't looked at the code in some time, but I could get back up to speed to collaborate. Just let me know.

from calendarium.

kgar avatar kgar commented on September 24, 2024

Use Case: Moving single-day event

I'm taking screenshots from MS Outlook for ease of visualizing.

Example: I have 2 events

image

I click-and-drag or press-and-swipe, on "Test 2," and then I move it to the next day.

Before releasing, there is a preview of the drop location:

image

Upon mouse up / release, the drop is complete, the date is adjusted, and the UI rerenders:

image

from calendarium.

kgar avatar kgar commented on September 24, 2024

Use Case: Moving Multiple-Day Event

I'm taking screenshots from MS Outlook for ease of visualizing.

Example: I have a multiple-day event

image

I click and drag to move the event forward by one day. Before releasing, I see the preview of where it will go and what it will look like:

image

I release, the event's dates adjust by one day, and the UI rerenders:

image

from calendarium.

kgar avatar kgar commented on September 24, 2024
  • Yay!

I was just recently manually reordering my events in the json file and thought it'd be nice to be able to drag and drop.

I can think of a few challenges:

  • Moving an event that was added due to frontmatter

    • Do we change the frontmatter on the file? Does that violate any self-imposed rules we have for the calendar?
    • How should intercalery months be represented? Personally, I think they should somehow be represented my their name instead of a number. Currently, they are throwing off the numbering for events added via frontmatter, so in the Calendar of Harptos, months are off by the number of intercalery months that have appeared thus far in the year.
  • Moving event from a month to an intercalery date

    • Handling fitting an event whose range of days exceeds the number of days in an intercalery month

There are probably some other challenges to consider. I could look over the code base and ponder this. Disclaimer: I haven't looked at the code in some time, but I could get back up to speed to collaborate. Just let me know.

I just now realized that this discussion is in the new calendarium repo πŸ˜… Very cool! I love the name, and I'm guessing this is a fresh start?

I would love to help in whatever way I can.

from calendarium.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.