-
-
Notifications
You must be signed in to change notification settings - Fork 163
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
Feat/improved year view #235
base: main
Are you sure you want to change the base?
Feat/improved year view #235
Conversation
@richardtallent Hi! Sorry for coming out of the blue with this kind of big PR, let me introduce this to you. We started using your library for our company's nuxt app a month ago and have been loving it so far. The only thing that we thought needed some refinement is the year view, which is a bit messy with no month separation. So, since it will be something that our users will likely use I settled on trying to develop a solution starting from your latest release. Let me break down for you the main reworks that I did:
This should be it. I Extensively tested all the features/implications that I mentioned and it all looks good to me, so I am pretty confident about starting using it. To wrap this up: our company will start using this new feature from my fork starting next week. We would be really glad if you were to add this to your repo with the timing you see fit so that we can go back to using the original package from npm instead of my fork. |
I just got back from a trip and won't have time to fully digest this for a bit. Since it would be a breaking change, I'd like to mull it over and test more. Some things I noticed when I tried it:
I just released v7.1.0, which adds the ability to put the month name into the Day cell on the 1st unless you're in single-month mode. I'm hoping this improvement will be workable for use cases like yours where there are month crossovers that could otherwise be confusing. Doesn't have all of the advantages of a header, but it's a change with much smaller surface area. |
Thanks for the feedback, I really appreciate it. All the points that you raised make perfect sense. I will try to provide with a solution to all the points with some new commits when I will manage to do so. About lowering the areas of impact of this change I was thinking that maybe it could be beneficial to split the components in separate ones for week, month and year views, so that the former ones can remain as is and the reworks will only be focused on the latter, what would you think about this approach? |
There could be some advantage to splitting out a single-week component, which could then be reused in the overall view. Might have some impact on styling or drag/drop, but worthy of exploration. And yes, it might simplify the code needed to duplicate weeks where there is a month boundary and add headings between them. I would not want to maintain separate components for week/month/year views -- I still think the current approach of a single component that can flexibly handle any combination of a count and a week/month/year unit is best. |
fixed month start items having wrong offset
No description provided.