Commit Graph

87 Commits

Author SHA1 Message Date
Maciej Gibowicz
3cc3f50f7b [BH-1809][BH-1835] Add date format setting
Added date format selection between DD/MM and MM/DD.
The time setting has been updated.
2023-11-29 09:45:05 +01:00
Lukasz Mastalerz
d9a1194e6f [BH-1688] Create a standard for logs
* Adding document describing how to use logger
* Adjusting logs to follow a new guide
* Change order in log header:
  line number is now before function name
2023-10-23 15:17:44 +02:00
Lefucjusz
2620191e73 [MOS-238] Use on-chip hardware TRNG as an entropy source
Use hardware TRNG integrated into RT1051 MCU
as an entropy source for builds complied
for RT1051.
2023-06-19 15:57:05 +02:00
Lefucjusz
1d90355828 [MOS-966] Fix day of week abbreviations in Polish
Fixed issue with improperly created
weekdays abbreviations in Polish,
particularly 'Niedziela' (Sunday) that was
shortened to 'Nie', which also means 'No'
(negative response).
Fixed issue with remaining 'Edit' label
in navbar after leaving repetition field
in new alarm window.
Fixed hardcoded 'Custom' string used
as a repetition type text.
2023-03-20 10:30:26 +01:00
Maciej-Mudita
e820a7607e [MOS-893] Fix invalid time description in the SMS thread
The sending/receiving time information will be displayed as follows:
- Only an hour –> for today
- Yesterday and hour –> for messages received/sent yesterday
- Day of the week and hour –> for messages received/sent within
last 7 days
- Date (day+month) and hour –> for messages older than week,
but still from the same year
- Date (day+month+year) and hour –> for messages
rom previous years
2023-02-08 11:53:14 +01:00
Maciej-Mudita
63f09cbcc0 [MOS-196] Add days of the week to the list of SMS, calls and notes
If an event (e.g. receiving a call or SMS) happened
in the current week, we display the days of the week
instead of the date on the list.
2023-02-07 13:18:20 +01:00
Lukasz Mastalerz
cfe88321a8 [MOS-192] Time should not include 0 at the beginning
Fix for displaying an additional 0 at the begging of the clock.
It affects the clock in the status bar and messages and calls time.
2023-02-03 10:19:21 +01:00
Mateusz Piesta
44ef5ddd5f [MOS-807] Unpacking update package
* Added unpacking and validating of
update package
* Removed 'utils-bootconfig'
* Added 'tar' module
* Minor compilation issues fixed
2023-01-19 16:41:56 +01:00
Adam Wulkiewicz
fe708cdf31 [MOS-670] Change clang-format AlwaysBreakTemplateDeclarations to Yes
Add --all and --fix-all options to style-check-hook
2022-08-26 15:22:39 +02:00
Onufry Pajaczek
7c6af2c57f [BH-1542] Pure meditation fix and cetner TimeFixedWidget
*DigitsContainer definicions moved to cpp file(for proper linkage)
*DigitsContainer changed container to std::vector
*Fixed a bug in ProgressTimerWithBarGraphAndCounter where timerText was
treated as timeWidget
*MeditationCountdownWindow timer is now custom size
*Minus removed form MeditationRunningWindow timer
2022-08-18 09:12:36 +02:00
Kuba
106440c78d [MOS-326] Change call logic removed from call window
Call logic is now removed from call window and call app.
There was spaghetti logic mixed in window and app, now
call logic is based on notificatins from service cellular.
2022-04-22 12:59:29 +02:00
Maciej Janicki
2b2bb13a49 [MOS-296] Merge remote-tracking branch 'origin/stable'
Merge stable Harmony branch into merge wip branch
2022-03-09 19:27:50 +01:00
Mateusz Piesta
c1391090c6 [BH-1389] Catch2 unit tests optimization
Removed redundant recompilation of catch2 main
resulted in over 20% speed up of unit tests compilation.
2022-01-26 15:04:23 +01:00
Paweł Joński
ecf5268c6b [BH-1067] Snooze countdown
Add Snooze countdown
2021-10-28 09:59:44 +02:00
Wojtek Rzepecki
d0772ab0b7 [EGD-7798] Fix alarms backend with new format
New format of alarm time in database and processing
2021-10-18 12:14:36 +02:00
Piotr Tański
30eeb362d0 [EGD-7789] Sort timezones by their UTC offset
Currently, timezones are sorted alphabetlically.
2021-10-14 08:54:56 +02:00
Piotr Tański
1d2f5cf7a4 [EGD-7754] Dates bumped in disclaimers
Dates bumped from 2020 to 2021.
2021-10-11 19:08:26 +02:00
Wojtek Rzepecki
bc6b79fea6 [EGD-7673] Fix adding alarm before actual time
Fixed adding of an alarm before actual
system time
2021-10-01 10:59:48 +02:00
Marcin Smoczyński
bd90e57516 [BH-907] Split utils module into components
Split module-utils into smaller components for better dependency
management. Fix many dependencies throughout the project.

Signed-off-by: Marcin Smoczyński <smoczynski.marcin@gmail.com>
2021-09-23 15:14:40 +02:00
Przemyslaw Brudny
e3a057e15c [EGD-7310] Alarm GUI and features update
Updated AlarmOptionsItem to use UTF8Spinner.
Created specialized widgets to cover options
sets. Updated GenericSpinner to handle Pure
navigation and content swap. Updated Alarm
RRule code to work with Custom Days selection
and new widgets. Added Tests. General GUI
stylistic fixes. Increased app Alarm Clock
and service Time stack sizes.
2021-09-21 14:11:21 +03:00
Adam Dobrowolski
5e919448eb [EGD-7501] Rrules presenter added
- handles most of our rrule manipulation needs for alarm
- unittests for transformations
2021-09-15 13:08:54 +02:00
Paweł Joński
4ec2d6a1f4 [BH-622] Fix next alarm logic and queries
Simplify recurring between dates query
Round all events dates to full minutes
2021-09-13 16:13:06 +02:00
Paweł Joński
71fa4c5578 [BH-721] Fix and add new rrule generator methods
Add rrule generator for next incoming timestamp
Add ical iterator wrapper
Fix existing range generator to include event start timestamp
Use time lib TimePoint definition
Add neccessary public dependencies
2021-08-16 14:48:34 +02:00
Paweł Joński
45a7216cec [EGD-7217] Separate commonly used headers from application-calendar
Move dateCommon.hpp to module-utils/time
2021-08-10 11:49:14 +02:00
Mateusz Piesta
9edd566530 [BH-678] Add TimeSetFmtSpinner widget
Added time set spinner widget with dynamic switching
between time formats(24/12H).
2021-07-29 12:23:24 +02:00
Marcin Smoczyński
74ae1a6589 [EGD-7031] Remove UT deps to the production image
Remove dependency to the production image by creating separate sysroot
for test assets alongside with a test image Test.img.

Signed-off-by: Marcin Smoczyński <smoczynski.marcin@gmail.com>
2021-07-27 23:36:37 +02:00
Paweł Joński
606e0597e2 [BH-380] Librarize application-calendar
Librarize application-calendar
2021-07-26 09:11:09 +02:00
Alek Rudnik
0e5769ca13 [EGD-7074] Fix date and time unit tests
Made sure test are not dependant on current time.
2021-07-19 14:26:34 +02:00
Piotr Tański
b74e58fa66 [EGD-7074] Removed incorrect and failing unit tests
The unit test needs to be reworked, it can't be easily fixed.
2021-07-02 12:02:34 +02:00
Artur Śleszyński
ae0a970653 [EGD-6697] Fix DateTime::isYesterday() tests
Skip all days numbered 1 to avoid testing at month boundary.
2021-07-01 14:28:44 +02:00
Maciej Gibowicz
781f24bbfc [EGD-6699] Add timezone selecting window
Implementation of the time zone selection from the list
of available cities.
2021-06-29 14:51:12 +02:00
Artur Śleszyński
b5a4e0ff9a [EGD-6697] Fix DateTime tests
Subtractring 0 from current month yields the same date.
2021-06-29 10:50:09 +02:00
Kuba
88a9fdedf2 [EGD-6883] Change time settings cleanup
Time related settings are handled by service time now.
utils DateAndTimeSettings replaced by static time service api.
2021-06-23 17:30:14 +02:00
Alek Rudnik
6dfeacffa4 [EGD-6697] Date and time formatting
Added system locale dependant date and time formatting.
2021-06-18 15:06:43 +02:00
DariuszSabala
5b2881cc6d [BH-372] Turned i18n into separate library
Turned i18n module into separate library moving source files, test
files and creating separate CMakeLists.txt, fixed other modules
link targets, fixed paths and sorted some lists
2021-06-17 14:29:42 +02:00
Alek Rudnik
978b1d507b [EGD-6918] Timestamp clean up
Removal of not needed methods
Addition of unit tests
Fixes according to newst design guidelines
Added new seprate interface cmake lib for time constants
2021-06-16 15:41:23 +02:00
Maciej Gibowicz
39a760bad6 [EGD-6702] Add time zone library
The library is used to manually set the time zone.
It is based on the IANA time zone database.
2021-06-16 14:03:54 +02:00
DariuszSabala
5344c5cfe6 [BH-376] Time module unit test decoupled
Decoupled time module unit test from module-db
2021-06-09 17:03:29 +02:00
DariuszSabala
c611e3c011 [BH-376] Utils time turned to separate library
Turned module-utils/time folder content into separate library,
cleaned up CMake libs dependencies, fixed include paths
2021-06-09 17:03:29 +02:00
Lukasz Skrzypczak
2911b6b4a1 [BH-378] PR changes
PR changes - mainly includes
2021-06-08 12:24:29 +02:00
Lukasz Skrzypczak
7fee0d9cfb [BH-378] Utils move log to library
Moved log to separate library
2021-06-08 12:24:29 +02:00
Alek Rudnik
93c4675d1d [EGD-6701] System time usage fixes
Fixed all calls to stdlib time.
Removed all redundant calls to Timestamp treated as time source.
2021-05-27 16:54:44 +02:00
Borys Jelenski
cbbd94719d [EGD-6605] Fix RTC time not retained between resets if set manually
When setting datetime from timestamp (manually, not from network),
SRTC is set in order to retain the RTC datetime between resets.

RTC handling was refactored in order to get rid of unnecesary
conversions and third-party code mixed with proprietary code
within a single file.
2021-05-24 04:54:02 +02:00
Adam Dobrowolski
940989833f [EGD-6527] Internationalization API unification
Single api to rule i18n
all calls to localistaion in cpp files unified
cut off ass many dependencies in i18n header as possible
2021-04-20 20:07:44 +02:00
Alek Rudnik
7ccc68c202 [EGD-5832] Status bar widgets refactor
Status bar SIM widget refactor
Status bar time widget recfactor
Status bar lock widget refactor
Separation of status bar time widget and desktop main window time widget
Fixed issue with wrong calculation of timezone based time
2021-03-03 13:37:11 +01:00
Lucjan Bryndza
194368db9d [EGD-5047] Add support for newlib time
Add support for newlib time standard syscalls.
2021-03-02 10:20:41 +01:00
Mateusz Grzegorzek
8f0797218f [EGD-5312] Add Time selection window
- add ChangeDateAndTimeWindow,
- extract EventTimeItem to common widgets folder
  and rename it to TimeWidget,
- extract EventDateItem to common widgets folder
  and rename it to DateWidget,
- replace timeWidget with common TimeWidget
  in NightshiftWindow,
- refactor time setting in
  DesktopMainWindow and TopBar,
- Remove dead code from EventManager
  (GetNextAlarmTimestamp and HandleAlarmTrigger)
2021-02-23 15:59:51 +01:00
Mateusz Grzegorzek
d87c69479f [EGD-5311] Create Date&Time main window
- add DateAndTimeSettings class and
  dateAndTimeSettings global var
  (cache for storing date and time related settings),
- add DateAndTimeChangeRequest messages and proper
  methods in app::manager::Controller for sending them,
- handle DateAndTimeChangeRequest messages in ApplicationManager,
- add SettingRightItem::Text case for OptionSettings
  to provide possibility to add text
  on the right side of particular option,
- rename fields in db (settings_tab table):
  gs_time_format_12 to gs_time_format
  and
  gs_time_date_format to gs_date_format
- create only main Date&Time window.
  Sub windows will be added in separate task.
2021-02-03 10:11:56 +01:00
KacperLewandowski
9ff089462e [EGD-5073] Add UI modifications in Calendar after review
Changes mainly concern margins, positions, sizes etc of items in:
- Custom repeat window,
- New/Edit event window,
- No events window.
2021-01-28 12:09:00 +01:00
Tomas Rogala
80768bf4a5 [EGD-4708] Add backend of multiday events handling
-sql req for multiday events handling
-Add UT
-Add markEventsInDays method
-Add new query for day filter
2021-01-26 06:34:12 +01:00