Calendar icon indicating copy to clipboard operation
Calendar copied to clipboard

Monthly view widget shows also other weeks

Open Semuria opened this issue 10 months ago • 5 comments

Checklist

  • [X] I made sure that there are no existing issues - open or closed - to which I could contribute my information.
  • [X] I made sure that there are no existing discussions - open or closed - to which I could contribute my information.
  • [X] I have read the FAQs inside the app (Menu -> About -> FAQs) and my problem isn't listed.
  • [X] I have taken the time to fill in all the required details. I understand that the bug report will be dismissed otherwise.
  • [X] This issue contains only one feature request.
  • [X] I have read and understood the contribution guidelines.
  • [X] I optionally donated to support the Fossify mission.

Feature description

Congratulations for such a cool app at first. The monthly view of the widget shows more weeks then necessary compared to other calendars. It shows the first week of next month instead of optimizing the viewsize.

Why do you want this feature?

To get a good overview with just that what is needed/requested

Additional information

20250116_120836 20250116_120830

Semuria avatar Jan 16 '25 11:01 Semuria

Or in other words: 5 rows view in the widget would be best. No month has more weeks so 6 rows like it's now shouldn't be necessary

Semuria avatar Jan 27 '25 08:01 Semuria

No month has more weeks so 6 rows like it's now shouldn't be necessary

It's not true. Check e.g. March 2025.

Aga-C avatar Jan 27 '25 08:01 Aga-C

No month has more weeks so 6 rows like it's now shouldn't be necessary

It's not true. Check e.g. March 2025.

You're right. Checked it with Samsung Calendar and its a unique time I saw it expanding to 6 rows. Let me clarify. I have nothimg against 6 rows if they are necessary :)

Semuria avatar Jan 27 '25 12:01 Semuria

Hi @Aga-C and @Semuria,

I’d like to help with resolving the issue where the monthly view widget sometimes shows extra weeks. My plan is to:

Dynamically calculate the number of rows (weeks) based on the first and last days of the month.

Ensure that if the month spans six weeks, it will display six rows, but if the month only requires five rows, it will display just five.

Prevent unnecessary extra days from the next month or previous month from being displayed, maintaining a clean and concise view of the current month.

I’ll work on this and submit a pull request with the changes. Let me know if you have any suggestions or additional thoughts!

Thanks!

rajappa-adabala avatar Apr 27 '25 05:04 rajappa-adabala

Please read the contribution guidelines:

  • https://github.com/FossifyOrg/Calendar/blob/master/CONTRIBUTING.md
  • https://github.com/FossifyOrg/General-Discussion#contribution-rules-for-developers

Before fixing a bug or adding a feature, make sure it is already reported in the repository, is open, and does not have the needs triage label. If the issue is closed or still has needs triage label, your PR will likely be rejected. The only exception is for critical bugs that have not been classified yet.

naveensingh avatar Apr 27 '25 09:04 naveensingh