Commit Graph

313 Commits

Author SHA1 Message Date
Ryan Mwangi 8881361a1f text: create and run test for google-calendar-mininal 2024-11-19 15:21:19 +03:00
Ryan Mwangi 8965eaa319 fix(line-endings): normalize line endings to LF for cross-platform consistency- Normalized line endings in generated calendar content to LF.- Updated test assertions to handle line-ending discrepancies.- Ensured compatibility across Windows and UNIX-like systems. 2024-11-19 14:17:42 +03:00
Ryan Mwangi ca52065f66 feat(calendar): include CALSCALE and SEQUENCE details 2024-11-19 14:03:42 +03:00
Ryan Mwangi 8ab685dec0 test: run tests for nextcloud minimal alone first 2024-11-19 13:35:14 +03:00
Ryan Mwangi 585b83b03c test: run tests for nextcloud minimal alone first 2024-11-19 13:34:35 +03:00
Ryan Mwangi 73e46d7f99 feat(prodid): introduce custom PRODID for merged calendars 2024-11-19 13:32:55 +03:00
Ryan Mwangi d2b0234b4b feat(location): conditionally handle VEVENT location based on override flag 2024-11-19 13:21:22 +03:00
Ryan Mwangi 2b7002303c fix(calendar): align VEVENT property order and include time zone details 2024-11-19 01:29:32 +03:00
Ryan Mwangi 6cf5b8420e feat(calendar): copy summary, timestamps, and recurrence details for VEVENTs 2024-11-18 23:49:50 +03:00
Ryan Mwangi ddcfedbbdf feat(calendar): support extracting and writing VTIMEZONE subcomponents 2024-11-18 23:40:41 +03:00
xeruf bed3e47f8e test: add nextcloud tests 2024-11-18 13:34:14 +01:00
xeruf 1f19d8cf1f build(gitattributes): ics line feeds 2024-11-18 13:01:47 +01:00
xeruf 77e6963118 test: fix calendar paths 2024-11-18 13:00:24 +01:00
Ryan Mwangi 782e62d56d refactor:remove logging for ICAL and ICAL.component as it works now 2024-11-18 14:07:22 +03:00
Ryan Mwangi 9468e58132 test: validate fetchCalendarData reads and parses files accurately 2024-11-18 14:04:51 +03:00
Ryan Mwangi d4498cd0d8 fix: export ICAL in ical.timezones.js 2024-11-18 13:55:44 +03:00
Ryan Mwangi 3edc551031 test:add logging to confirm import and structure of ICAL 2024-11-16 02:53:06 +03:00
Ryan Mwangi 859d3f3db5 fix:pull changes from contrib 2024-11-15 13:14:53 +03:00
xeruf 00e152f08c chore(package.json): remove unused libraries 2024-11-14 13:49:01 +01:00
xeruf 864a3739b3 fix: adjust ical.js to fix import
https://github.com/kewisch/ical.js/issues/329
2024-11-14 13:45:23 +01:00
Ryan Mwangi 495fb57675 refactor:create gitattributes file 2024-11-14 15:12:43 +03:00
Ryan Mwangi ff32bb430d Merge remote-tracking branch 'contrib/master' 2024-11-14 14:04:47 +03:00
Ryan Mwangi 9a0a62675c fix:add ical.js and ical.timezones.js files in lib 2024-11-14 03:02:54 +03:00
xeruf 0a863a4eb2 test(calendarUtil): failing ical test 2024-11-13 17:43:13 +01:00
Ryan Mwangi a94727df56 build:install luxon to handle timezone parsing 2024-11-13 15:45:53 +03:00
Ryan Mwangi 7e2b846029 build:install date-fns and date-fns-tz to handle timezones 2024-11-13 15:18:25 +03:00
Ryan Mwangi cbdfdf6c97 test:update test forhandling timezones 2024-11-13 15:17:17 +03:00
Ryan Mwangi 2e9de0749d fix:handle timebased events 2024-11-13 02:54:42 +03:00
Ryan Mwangi d08d87f47c test:get date based calendar test to run 2024-11-12 23:23:59 +03:00
Ryan Mwangi 0114c94caa fix: get DTSTAMP to get parsed correctly and remain the same as the original 2024-11-12 23:13:56 +03:00
Ryan Mwangi e8582cd411 test:add logging to ensure DTSTAMP is correctly added to the new event 2024-11-12 22:53:25 +03:00
Ryan Mwangi 665c134597 test(in-progress): run tests for date based calendar 2024-11-12 22:40:28 +03:00
ryanmwangi 0b0ecaa0c2 Merge pull request 'test: preserve date-based calendar' (#4) from janek/CalMerger:master into master
Reviewed-on: #4
2024-11-12 15:38:31 +00:00
xeruf 4032e2c49d test: preserve date-based calendar 2024-11-12 16:20:53 +01:00
Ryan Mwangi 441f4d2fb3 test:set up initial structure for unit tests for fetchCalendarData function 2024-11-11 22:32:12 +03:00
Ryan Mwangi 8c0de14d5f refactor: move server.js and app.js into src directory 2024-11-11 20:14:49 +03:00
Ryan Mwangi af980956cb test:edit expected outcome file for override calendar 2024-11-11 20:01:58 +03:00
Ryan Mwangi 5d7bdb6878 refactor:streamlined server file 2024-11-11 19:57:56 +03:00
Ryan Mwangi df37f35ace refactor: separated route logic from server startup 2024-11-11 19:45:44 +03:00
Ryan Mwangi 2a0fe0812e refactor: move utility functions to calendarUtil.js 2024-11-11 19:34:53 +03:00
Ryan Mwangi 3b590958a0 test: run tests to check the produced output against the expected output 2024-11-11 14:03:37 +03:00
Ryan Mwangi 299b8c1404 refactor: serve static files from a dedicated directory 2024-11-11 13:47:18 +03:00
Ryan Mwangi be6d378890 style: refactor async functions to use traditional function declaration syntax
- Converted async arrow functions to traditional function declarations for consistency
- Updated  and  to use  syntax
- Maintained overall functionality while improving readability and alignment with preferred style
2024-11-08 15:49:33 +03:00
Ryan Mwangi 11a4efe30b fix: ensure valid date-time handling in event components
- Resolved calendar merging error where ICAL.js rejected formatted date-time strings by refactoring  and  initialization to use  for accurate timezone conversion.
- Updated  and  to receive ICAL.Time objects directly, ensuring proper format consistency and timezone handling in event components.
2024-11-08 14:23:30 +03:00
Ryan Mwangi db78a0121e refactor: Refactor addEventsToCalendar to properly handle date validation and usage
- Updated the handling of start and end dates in the addEventsToCalendar function.
- Added validation checks directly on startDate and endDate to ensure they are valid before updating event properties.
- Improved logging for better traceability of event addition and date handling.

Note: The changes are intended to enhance the handling of date properties, but further testing is required to ensure full functionality.
2024-11-08 02:21:22 +03:00
Ryan Mwangi 1bb1db7326 logging: log result.data as I debug. correct synta as wellx 2024-11-07 20:37:23 +03:00
Ryan Mwangi 73135dd9d4 refactor: use ical.js to generate calendar merged and refreshed calendars 2024-11-07 20:27:43 +03:00
Ryan Mwangi 41687e1e22 remove: tests directory 2024-11-07 20:17:37 +03:00
Ryan Mwangi 8e143df754 refactor: replace event addition with ical.js
- transition event processing from ical-generator to ical.js
- add logging for event addition to calendar component
- preserve event details (uid, summary, start, end) in new event components
2024-11-07 20:11:48 +03:00
Ryan Mwangi ffd2fa5370 refactor: switch calendar component creation to ical.js
- replace ical-generator with ical.js for VCALENDAR creation
- add logging for component creation process
- set component metadata (prodid, version, name) using ical.js
2024-11-07 20:06:07 +03:00