[Sigmag GSoC2017] Full-featured calendars - Advanced calendar component - Repeated events

72 views
Skip to first unread message

Alex Karpov (Seal98)

unread,
Jun 7, 2017, 5:00:10 PM6/7/17
to Sigmah developement
Hi everyone!
Starting from the 30th of May I'm working on the developing solution for task described in the issue #852 : Advanced calendar component. 

In progress:

Having discussed this task with my mentor Olivier, I started making changes to GWT View "Add new Event" to make it simmilar to the Google calendar. Last week I implemented GUI changes, which help to add events lasting more than a day. 


Step 1 . Add event screen



Step 2 Duration All day is checked (Start\End fileds are hidden now)



Step 3 - ToolTips are shown when cursor is over radiobutton




Step 4 Monthly radiobutton is selected. Monthly setting panel is shown



Edit view for existing event




This week the plan is to finish the View changes.
___________________________________________________________________

On the weekend I tried to correct the error which appeared when trying to save an edited Calendar event.


I started debugging using Chrome Developer tools to check client values and noticed the absence of ID of the Calendar event. After adding several events, I found their absence in the database. I concluded that an error occurred while saving the edited Calendar event due to the fact that the new events had no IDs assigned to them while the event was not inserted into the database when the event was created. So I came to the conclusion the issue is not with new functionality that I had added to Sigmah code but with something else. Then tried to resolve the issue which had stopped my progress in development - I tried to destroy offline Sigmah data and local file database using Sigmah finctionality "Offline data base" panel. After this action events were added into the database. The issue was resolved and I could proceed development
___________________________________________________________________


Plans:
Next week I'm planning to make changes to the Calendar Presenter java class to get the data from the modified GUI to calculate the data into the Sigma database.

Thank you!

Aliaksei Karpau

Alex Karpov (Seal98)

unread,
Jun 13, 2017, 4:00:52 PM6/13/17
to Sigmah developement


Hi everyone!

 

I continue to work on the developing solution for task described in issue #852 : Advanced calendar component.

 

For now, I have made corrections at the functionality of editing the existing event. I have implemented the functionality 'Add daily events'. Now repeating daily events can be created.

https://github.com/sigmah-dev/sigmah/pull/100/commits/1e91db64d19e42076c147d426efb15c2b951a927




Also I’ve implemented the fix to the issue with incorrect showing of some fields (radiogroup) in 'Add event' view. The issue was reproduced if the view 'Add event' opened after the 'Edit event' view.

https://github.com/sigmah-dev/sigmah/pull/100/commits/ff1a7c6bb22de4e25ca45426ee3347306f0df8e0


Plans:

I'm planning to implement the next event date calculation for the weekly, monthly and yearly events.


An important question to Sigmah-dev team:

https://groups.google.com/forum/?utm_source=digest&utm_medium=email#!topic/sigmah-dev/2KMiOWNXjOk


Thank you!

Aliaksei Karpau

Alex Karpov (Seal98)

unread,
Jun 23, 2017, 3:11:01 PM6/23/17
to Sigmah developement

Hi everyone!

 

I'm finishing implementing the task described in issue #852 : Advanced calendar component.

 

Since my last report I've implemented next functionalities:

   - Add weekly events



https://github.com/sigmah-dev/sigmah/pull/100/commits/6ea5bca2de766977b6c29c961491fc07fe3a8c2f


   - Add monthly events with the 'Same date' and 'Same day of a week' options


Same date - https://github.com/sigmah-dev/sigmah/pull/100/commits/c0a328ccd13a1b4db9ccd8865da12a913ebf1467

Same day of a week - https://github.com/sigmah-dev/sigmah/pull/100/commits/2927edcf437f02ccc1665e5a33a7717735636cb1


   - Add yearly events with the 'Same date' and 'Same day of a year' options



https://github.com/sigmah-dev/sigmah/pull/100/commits/90159b87a1e2f519631193cae908f3df57529726


Thus at the moment next functionalities are ready:

- Adding daily events

- Adding weekly events

- Adding monthly events (with functions 'Same day of a week' and 'Same date of a month')

- Adding yearly events (with functions 'Same day of a year' and 'Same date of a year')


Plans:

Next week I'm planning to perform a code clearing and refactoring.

 

Thank you,

 

Aliaksei Karpau



Alex Karpov (Seal98)

unread,
Jul 11, 2017, 7:27:12 AM7/11/17
to Sigmah developement
Hi everyone!

Starting from the beginning of the last week I'm working on the implementation of additional functionalities for the task described in the issue #852.

For now I've fixed the bug with creating monthly events with the parametr 'same date' while selecting the last day of a month (except February) as a start date of the event (early the event moved from the 28th of February to the begining of the March)

I've implemented the functionality of deleting the event chain by one click. For this purpose such changes were made:
1. Adding the link 'Delete chain'







2. Adding two new fields into the database 'referenceid' and 'eventtype' (Chain events are now saved with the referenceId, which is equal to the id of the first event in the chain. The field 'eventtype' was added for the future use. It contains the type of the event (Daily = 'D', Weekly = 'W' and etc.))



3. Changes in java classes to provide the generating of the referenceId.


Plans for implementing:

Adding one single event across several days
Adding the concept of recurrence ending date


Suggestions:

I was thinking about the items to improve ('Adding one single event across several days' and 'Adding the concept of recurrence ending date') on the issue 852 and I have a suggestion of such user friendly variant:
As a single event for several days already exists (this is a daily event) maybe this variant will be very convenient for the user:

This is an example of how it can look like



When creating 'weekly' events, it will be possible to select only 'days' in an amount not exceeding 7
When creating 'monthly' - only 'days' and 'weeks'
When creating 'yearly' - 'days', 'weeks' and 'months'

Thank you!
Aliaksei Karpau

PS
While I was working on the task, I left the auto-addition of the description to the events with the text about the type of event and the event counter for the convenience in testing

Alex Karpov (Seal98)

unread,
Jul 23, 2017, 4:09:51 PM7/23/17
to Sigmah developement

Hi everyone.


I'm working on the implementation of the functionalities for the creation of several days events. A new group of fields was created for each type of the event starting from the daily. This group involves:

1. The radio button "Number of repetitions", which enables the field for typing the amount of repetitions for the event chain ('1' as a default).



2. The radio button "Repetition end date", which enables the field for typing the repetition end date for the event chain (today's day as a default)



Moreover the functionality of the 'Date end' field was changed

now it enables to set the (recurrence) end date for the several days event


Plans:
Now in the database each several days event consists of single events. As we discussed on the weekly meeting, each several days event should be a 'single event for several days' in the database. I'm working on the implementation of this idea and displaying 'several days events' from the database to the calendar as a multi-day event


Plans until the end of the GSoC:

After changing the sigmah calendar UI for showing events for several days I'm planning to work on the issue #78 "Add a project and annual view in the calendar". Later - implementing the part of issue #824 - adding the functionality of exporting to iCal format into the sigmah calendar (like it is possible in Google calendar)


Thank you!

Aliaksei Karpau

Alex Karpov (Seal98)

unread,
Aug 8, 2017, 6:55:05 AM8/8/17
to Sigmah developement
Hi everyone!


The implementation of the creating of long lasting event is almost completed. I have added some changes to the GUI, so now it is more convenient to see the events that occur on the same day (overlapping events)




The implementation of the weekly view is in progress now. I'm working on the resolution of the issue with correct showing of just added multiday event on monthly and weekly view




Now in the database each long lasting event takes only one line (it is not divided into many one-day events as it was earlier)




Plans:

I'm starting implementing the issue #824 (Calendar export to other devices) and working on the POC (Proof-Of-Concept) of this task



Thank you!



Aliaksei Karpau

Message has been deleted

Alex Karpov (Seal98)

unread,
Aug 24, 2017, 6:20:36 AM8/24/17
to Sigmah developement
Hi everyone

While working on the issue #824(Calendar export to other devices) I'm implementing the second part of the final stage of the issue #852 (Advanced Calendar component) - developing the functional for the non-fullday events for several days.


For now each non-fullday event for several days takes only one line in the database.



I've implemented gui changes for the events of this type. It is possible to create non-fullday events of any type now. They look by this way:



(As we discussed at the weekly meeting on the 22'th of August, It is better to change the view of non-fullday events to make them look like a full-day event (was shown at the previous report), adding some small distinctive feature. The fade to white on the presentation of events will be removed)

Also the autofilling of the endDate field after filling of the startDate field was implemented


Plans:
Now I'm working on the changing the view of the non-fullday events to make them similar to the fullday events

Thank you!

Aliaksei Karpau
Reply all
Reply to author
Forward
0 new messages