Kuba Szczodrzyński
2c34924052
[UI] Mark Firebase-received events as manual. Update legend icons.
2022-10-24 22:41:15 +02:00
Kuba Szczodrzyński
8424414317
[Login] Fix configOverrides NPE during login.
2022-10-23 23:11:20 +02:00
Kuba Szczodrzyński
c8e8c172a2
[App] Rework update handling.
2022-10-22 22:10:04 +02:00
Kuba Szczodrzyński
0d4dee765a
[Lab] Allow setting custom API key.
2022-10-22 12:56:15 +02:00
Kuba Szczodrzyński
40ed5a221f
[App] Fix crashes while deserializing AppData and Config.
2022-10-22 12:19:23 +02:00
Kuba Szczodrzyński
63c5720f63
[App] Move per-register settings to JSON resource. Rewrite Config to use delegates. ( #150 )
...
* [App] Add base for AppData loading.
* [UI] Fix timetable widget date navigation.
* [UI] Migrate register-specific behavior to use AppData.
* [App] Implement new delegate-based config base.
* [Config] Migrate config and profile config.
* [Config] Remove defaults from migrations.
* [App] Apply event types and config overrides from AppData.
* [Events] Change default event types for university type school.
2022-10-21 23:59:53 +02:00
Kuba Szczodrzyński
649d4f619a
[UI] Hide unavailable settings depending on LoginType.
2022-10-20 21:59:01 +02:00
Kuba Szczodrzyński
ba10d10a10
[API] Refactor integer-based types to enum classes. ( #145 )
...
* [App] Add enum classes for common IDs.
* [App] Rename enum package names.
* [App] Migrate code to use new enums.
* [DB] Migrate loginStoreMode IDs to be unique.
* [UI] Fix minor issues after refactor.
* [API] Update sync method signature.
* [UI] Correct pop-to-home and back button drawer behavior.
* [App] Update Bundle extensions usage.
* [App] Migrate notification types to enum.
* [UI] Make Lab fragment compatible with enums.
* [API] Make EndpointTimer use FeatureType.
* [App] Migrate config & API lists to sets.
2022-10-20 21:58:10 +02:00
Kuba Szczodrzyński
52a53334ca
[Strings] Add USOS error descriptions.
2022-10-17 22:30:23 +02:00
Kuba Szczodrzyński
8d174bda01
Merge remote-tracking branch 'origin/develop' into feature/usos
2022-10-16 16:54:44 +02:00
Kuba Szczodrzyński
e2fd714070
[UI/Timetable] Show subject-based lesson colors. ( #141 )
...
* [UI/Timetable] Add timetable config dialog and implement UI options.
* [UI/Timetable] Fix reloading timetable after changing config.
* [UI/Timetable] Fix calculating lesson range boundaries.
* [UI/Timetable] Add coloring subject names.
2022-10-16 12:47:54 +02:00
Kuba Szczodrzyński
93ccdbdeb7
[API/Login] Make user action handling more universal.
2022-10-15 21:24:30 +02:00
Kuba Szczodrzyński
7ded400a30
[API/Usos] Implement first login.
2022-10-15 19:07:12 +02:00
Kuba Szczodrzyński
2ff784066e
[API/Usos] Implement OAuth authorization flow.
2022-10-14 21:44:58 +02:00
Kuba Szczodrzyński
55369eaa8b
[UI/Timetable] Add Timetable settings. ( #140 )
...
* [UI/Timetable] Add timetable config dialog and implement UI options.
* [UI/Timetable] Fix reloading timetable after changing config.
* [UI/Timetable] Fix calculating lesson range boundaries.
2022-10-14 00:25:22 +02:00
kuba2k2
7935d0f097
[API] Pass parameters to user action required errors.
2022-10-13 11:45:17 +02:00
Kuba Szczodrzyński
4b64277948
[API/Usos] Add basic USOS API structure.
2022-10-11 23:23:11 +02:00
Kuba Szczodrzyński
77d22b87aa
[API] Move unused resources to the e-register graveyard.
2022-09-17 17:49:56 +02:00
Kuba Szczodrzyński
a5d0f4212d
[UI/Login] Make Lab accessible from login page.
2022-09-17 15:00:34 +02:00
Antoni Czaplicki
bb44fa066c
[API/Vulcan] Migrate to new MessageBox API. ( #134 )
...
* Implement fetching vulcan messages from new api
* Bump kotlin version and fix timetable card lessons size display
* Revert formatting changes
* Revert disabling message composing
* Revert MultiDex changes and dependency upgrades
* Add missing MultiDex dependency, update Google Services
* Separate MessageBoxes sync, revert API data behavior changes
* Revert migrating MessageRecipient to Kotlin
* Use loginId from MessageBox address book
* Revert using compatible HTML mode in Vulcan
* Implement message meta and read status changing
* Always set attachment lists
* Fix setting tutor role description
* Implement sending messages
* Replace millis constant with WEEK
* Revert timetable changes
* Remove unused DataVulcan properties
* Ensure UUID-format recipient IDs
Co-authored-by: Kuba Szczodrzyński <kuba@szczodrzynski.pl>
2022-09-17 12:31:35 +02:00
Kuba Szczodrzyński
48b7adb564
[UI/Grades] Group unknown subjects without specified name.
2022-03-14 17:05:16 +01:00
Kuba Szczodrzyński
6d1e18cce2
[Strings] Update copyright dates.
2022-02-05 17:44:57 +01:00
Kuba Szczodrzyński
8fe0f88be4
[Strings] Fix a typo.
2022-02-05 17:39:40 +01:00
Kuba Szczodrzyński
afb1863827
[Strings] Fix compilation problem.
2021-10-31 20:25:34 +01:00
Antoni Czaplicki
b0608c47c4
[Strings] Update English translation. ( #117 )
...
* Update translations
* Apply suggestions from code review
Co-authored-by: Kuba Szczodrzyński <kuba@szczodrzynski.pl>
* Update translations
* Update translations
Co-authored-by: Kuba Szczodrzyński <kuba@szczodrzynski.pl>
2021-10-31 20:15:24 +01:00
Antoni Czaplicki
3f11e75985
[Lab] Add Open Chucker button. ( #114 )
2021-10-31 14:23:59 +01:00
Kuba Szczodrzyński
23bd9b8e05
[Strings] Update copyright dates.
2021-10-29 16:51:55 +02:00
Kuba Szczodrzyński
49a093201b
[Teachers] Make the list action buttons bigger.
2021-10-29 15:39:58 +02:00
Kuba Szczodrzyński
7c925cb88a
[UI] Add Notes feature. ( #99 )
...
* [DB] Add Room schema export location.
* [DB] Add Note entity and migration 96.
* Add correct database schema
* [Notes] Implement basic note list UI.
* [DB] Implement Noteable in Full entities. Add note relation and filtering.
* [Notes] Make Note searchable.
* [UI] Disable onClick listeners in adapters when null.
* [UI] Implement showing note list in dialog.
* [UI] Update note dialogs UI.
* [Notes] Add note details dialog.
* [Notes] Extract note dialogs header into a separate layout.
* [Notes] Add note editor dialog.
* [Notes] Show note icons in dialogs and lists.
* [Notes] Add showing substitute text.
* [Notes] Add replacing notes icon.
* [Notes] Add sharing and receiving notes.
* [Notes] Add notes list UI fragment.
* [Notes] Implement adding notes without owner.
* [Notes] Add color names.
* [Notes] Add notes card on home screen.
* [Notes] Add notes card migration.
2021-10-28 22:35:30 +02:00
Antoni Czaplicki
e02246f97d
[UI] Add teacher list action buttons. ( #105 )
...
* Update code
TODO: Change icons color
* Change "More" icon, update teachers list
* Update code
* Update code
* Reformat code
* Apply suggestions from code review
Co-authored-by: Kuba Szczodrzyński <kuba@szczodrzynski.pl>
* Update code
* Update app/src/main/java/pl/szczodrzynski/edziennik/ui/teachers/TeachersListFragment.kt
Co-authored-by: Kuba Szczodrzyński <kuba@szczodrzynski.pl>
* Update code
Co-authored-by: Kuba Szczodrzyński <kuba@szczodrzynski.pl>
2021-10-24 18:29:04 +02:00
Antoni Czaplicki
e629e03b33
[UI/Login] Implement login QR code scanning. ( #100 )
...
* Enable Vulcan QR login [WiP]
* [UI/Login] Implement login QR scanning.
Co-authored-by: Kuba Szczodrzyński <kuba@szczodrzynski.pl>
2021-10-23 17:23:42 +02:00
Kuba Szczodrzyński
d8abac1917
Merge branch 'develop' into feature/structure-refactor
...
# Conflicts:
# app/src/main/java/pl/szczodrzynski/edziennik/Extensions.kt
# app/src/main/java/pl/szczodrzynski/edziennik/MainActivity.kt
# app/src/main/java/pl/szczodrzynski/edziennik/data/db/entity/Teacher.kt
# app/src/main/java/pl/szczodrzynski/edziennik/ui/teachers/TeachersAdapter.kt
# app/src/main/java/pl/szczodrzynski/edziennik/ui/teachers/TeachersListFragment.kt
2021-10-19 13:45:29 +02:00
Antoni Czaplicki
2807659da3
[UI] Add teachers list feature. ( #94 )
...
* Add teachers list feature
* Fix
* some fixes
* Auto stash before merge of "develop" and "origin/develop"
* Add teachers list feature
* Fix
* some fixes
* [UI] Fix updating badges crashing with expanded items.
* Add support for fetching teachers from vulcan, fix some code
* Update app/src/main/java/pl/szczodrzynski/edziennik/data/db/entity/Teacher.kt
Co-authored-by: Kuba Szczodrzyński <kuba@szczodrzynski.pl>
* Update some code
* Update app/src/main/java/pl/szczodrzynski/edziennik/MainActivity.kt
Co-authored-by: Kuba Szczodrzyński <kuba@szczodrzynski.pl>
* Update app/src/main/java/pl/szczodrzynski/edziennik/data/db/entity/Teacher.kt
Co-authored-by: Kuba Szczodrzyński <kuba@szczodrzynski.pl>
* Update app/src/main/java/pl/szczodrzynski/edziennik/MainActivity.kt
Co-authored-by: Kuba Szczodrzyński <kuba@szczodrzynski.pl>
* Update app/src/main/java/pl/szczodrzynski/edziennik/MainActivity.kt
Co-authored-by: Kuba Szczodrzyński <kuba@szczodrzynski.pl>
* Update app/src/main/java/pl/szczodrzynski/edziennik/data/api/edziennik/vulcan/data/hebe/VulcanHebeTeachers.kt
Co-authored-by: Kuba Szczodrzyński <kuba@szczodrzynski.pl>
* Update app/src/main/java/pl/szczodrzynski/edziennik/data/db/entity/Teacher.kt
Co-authored-by: Kuba Szczodrzyński <kuba@szczodrzynski.pl>
* Update app/src/main/java/pl/szczodrzynski/edziennik/data/db/migration/Migration96.kt
Co-authored-by: Kuba Szczodrzyński <kuba@szczodrzynski.pl>
* Update app/src/main/java/pl/szczodrzynski/edziennik/MainActivity.kt
Co-authored-by: Kuba Szczodrzyński <kuba@szczodrzynski.pl>
* Update app/src/main/java/pl/szczodrzynski/edziennik/MainActivity.kt
Co-authored-by: Kuba Szczodrzyński <kuba@szczodrzynski.pl>
* Update app/src/main/java/pl/szczodrzynski/edziennik/data/api/edziennik/vulcan/data/hebe/VulcanHebeTeachers.kt
Co-authored-by: Kuba Szczodrzyński <kuba@szczodrzynski.pl>
* Update app/src/main/java/pl/szczodrzynski/edziennik/MainActivity.kt
Co-authored-by: Kuba Szczodrzyński <kuba@szczodrzynski.pl>
* Update app/src/main/java/pl/szczodrzynski/edziennik/MainActivity.kt
Co-authored-by: Kuba Szczodrzyński <kuba@szczodrzynski.pl>
* Update app/src/main/java/pl/szczodrzynski/edziennik/MainActivity.kt
Co-authored-by: Kuba Szczodrzyński <kuba@szczodrzynski.pl>
* Update app/src/main/java/pl/szczodrzynski/edziennik/MainActivity.kt
Co-authored-by: Kuba Szczodrzyński <kuba@szczodrzynski.pl>
* Optimize code
* Fix loadTarget algorithm
* Apply suggestions from code review
Co-authored-by: Kuba Szczodrzyński <kuba@szczodrzynski.pl>
* Update app/src/main/java/pl/szczodrzynski/edziennik/MainActivity.kt
Co-authored-by: Kuba Szczodrzyński <kuba@szczodrzynski.pl>
Co-authored-by: Kuba Szczodrzyński <kuba@szczodrzynski.pl>
2021-10-18 23:46:39 +02:00
Kuba Szczodrzyński
f1e58db151
[Refactor] Flatten .ui package.
2021-10-17 21:02:35 +02:00
Kuba Szczodrzyński
74b766f18a
[UI] Add text styling to manual events. ( #96 )
...
* [UI] Move text styling outside of messages module.
* [UI] Add text styling to event manual dialog.
* [UI/Events] Implement showing HTML-formatted content.
* [UI] Fix searching in styled event topic. Create HtmlMode enum.
* [UI] Add HTML Simple mode to text styling manager. Fix CharSequence replacing.
* [Events] Disable self-shared event notifications.
* [UI] Fix simple HTML mode format. Fix HTML in notifications.
* [HTML] Replace usages of Html and HtmlCompat with BetterHtml.
* [Events] Fix editing self-added events from other devices.
* [Events] Implement receiving and fix showing HTML-formatted events.
* [UI/Events] Add observing changes in event details dialog.
* [Firebase] Disable self-shared event notifications.
2021-10-16 19:37:41 +02:00
Kuba Szczodrzyński
fa318d4509
[UI] Update Iconics to remove the span workaround.
2021-10-13 19:23:17 +02:00
Kuba Szczodrzyński
63b74a9fda
[Mobidziennik] Add prefix and suffix for server name login field.
2021-10-11 20:23:57 +02:00
Kuba Szczodrzyński
1a543814f4
[UI] Implement homework searching. ( #93 )
...
* [Messages] Create message type checking methods.
* [UI] Refactor messages searching to a separate module.
* [Refactor] Move dialogs.event to modules package.
* [Refactor] Move classes from modules.messages to separate packages.
* [Homework] Implement searching homework lists.
* [Homework] Fix highlighting search query in addedBy text.
* [Homework] Workaround IconicsTextView discarding span data.
* [Messages] Make attachments searchable.
* [Events] Show icons for events with attachments.
* [Homework] Workaround IconicsTextView discarding span data, again.
* [Search] Fix serialization crashes with searchable models.
* [Messages] Fix searching in HTML body.
2021-10-10 19:21:50 +02:00
Kuba Szczodrzyński
50ae767fcd
[Messages] Add saving messages as draft. ( #92 )
...
* [Messages/Compose] Move original message handling code to MessageManager.
* [Messages/Compose] Add draft saving dialog on back button press.
* [Messages/Compose] Implement saving messages as draft.
* [Messages/Compose] Fix missing line breaks when saving/loading HTML.
* [Messages] Fix download button icon padding.
* [Messages] Fix showing correct message read date.
* [Messages] Improve (and fix) scrolling to previous list position.
* [Messages] Fix message body trimming.
* [Messages/Compose] Add draft-related bottom sheet items.
* [Refactor] Cleanup MainActivity code.
* [Messages/Compose] Set htmlCompatible to true by default.
* [Messages/Compose] Show confirmation dialog when navigating with unsaved changes.
* [Messages] Restore message body bottom padding.
* [Messages] Fix download button icon padding, again.
2021-10-09 22:48:41 +02:00
Kuba Szczodrzyński
44263ac95f
[Messages] Add support for starring messages. ( #86 )
...
* [UI/Messages] Add stars to message list layout.
* [Messages] Move text styling-related code to a manager.
* [Messages] Implement starring messages. Move more code to the manager. Update UI.
* [UI] Add padding to the no data text.
* [Messages] Fix checking sent message recipient read state.
* [Messages] Add star icon padding.
2021-10-08 21:43:11 +02:00
Kuba Szczodrzyński
692555732d
[Messages/Compose] Add text styling support. ( #85 )
...
* [UI/Messages] Add draft text styling support.
* [UI/Messages] Improve mid-word span styling. Restore subscript and superscript styles.
* [UI/Messages] Replace framework spans with custom classes on replying.
* [Messages/Compose] Move UI-related code to separate classes.
* [UI/Messages] Disable text style buttons when not in focus.
* [Messages/Compose] Disable text styling on Vulcan.
* [UI/Messages] Add hint toasts to text style toggles.
* [UI/Messages] Add button to clear text styling.
* [Messages/Compose] Fix XML formatting.
2021-10-05 20:28:29 +02:00
Antoni Czaplicki
959168771b
[UI] Add secret features. ( #73 )
...
* Add easter egg
* Remove big file
* Reformat code
* Remove unneded blank lines, optimize some code
* Fix small issue
* Update easter egg logic
Co-authored-by: Kuba Szczodrzyński <kuba@szczodrzynski.pl>
2021-10-01 18:40:44 +02:00
Kuba Szczodrzyński
c6be1a7954
[Strings] Update copyright dates.
2021-09-22 13:52:06 +02:00
Antoni Czaplicki
e8e9f04050
[UI] Show attendance info in timetable and lesson dialog. ( #74 )
...
* Show attendance in timetable view
* Optimize code and UX
* Update some code
* Update attendance layout
* Fix timetable view
* Bump iconics version
* Change umbrella icon
* Update app/src/main/java/pl/szczodrzynski/edziennik/ui/modules/timetable/TimetableDayFragment.kt
* Update app/src/main/java/pl/szczodrzynski/edziennik/ui/modules/timetable/TimetableDayFragment.kt
* Update app/src/main/java/pl/szczodrzynski/edziennik/ui/modules/timetable/TimetableDayFragment.kt
* Update app/src/main/java/pl/szczodrzynski/edziennik/ui/modules/timetable/TimetableDayFragment.kt
* Update lesson cell margins
* Add attendance info in lesson dialog
Co-authored-by: Kuba Szczodrzyński <kuba@szczodrzynski.pl>
2021-09-22 00:03:31 +02:00
Kuba Szczodrzyński
60f0628f5e
[Lab] Fix disabling Chucker and Dev Mode. Add new Lab options.
2021-09-18 16:37:24 +02:00
Antoni Czaplicki
2e3e3dcf3c
[Lab] Add button to disable devmode and Chucker toggle. ( #70 )
...
* Add option to disable/enable chucker and option to disable dev mode from lab page
* Change "chucker" to "enableChucker"
* Update App.kt
2021-09-10 23:47:46 +02:00
Kuba Szczodrzyński
83f84de019
[UI] Fix attachments view cut off on API 30+.
2021-09-10 17:11:21 +02:00
Czapla
cf4906f2f4
[API/Vulcan] Fix sending messages. ( #64 )
...
* Fix sending message
* Add checking for address name/hash when sending message.
Co-authored-by: Kuba Szczodrzyński <kuba@szczodrzynski.pl>
2021-09-09 18:52:04 +02:00
Kuba Szczodrzyński
c1062cd7ed
[UI] Update drawer header background. ( #62 )
2021-09-08 22:49:00 +02:00
Kuba Szczodrzyński
8f72e11d0c
[UI] Center "no data" text view. ( #59 )
2021-09-08 22:48:21 +02:00