-
-
Notifications
You must be signed in to change notification settings - Fork 51
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add option to view past events for Sharezone Plus users (#1042)
## Description This PR adds the feature to view the past events. I haven't added lazy loading to avoid complexity. If this feature is actually used, we can add lazy later. ## Demo Unlocked: https://github.com/SharezoneApp/sharezone-app/assets/24459435/8db4c9e4-e26b-4150-be42-96cfd32bf8e9 Not unlocked: <img width="754" alt="image" src="https://github.com/SharezoneApp/sharezone-app/assets/24459435/32133a70-2ed4-4429-a2e0-5f761d3248a1"> ## Related Tickets Closes #242 Closes #891
- Loading branch information
1 parent
4986f68
commit 460dba4
Showing
35 changed files
with
1,486 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
32 changes: 32 additions & 0 deletions
32
app/lib/calendrical_events/analytics/past_calendrical_events_page_analytics.dart
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
// Copyright (c) 2023 Sharezone UG (haftungsbeschränkt) | ||
// Licensed under the EUPL-1.2-or-later. | ||
// | ||
// You may obtain a copy of the Licence at: | ||
// https://joinup.ec.europa.eu/software/page/eupl | ||
// | ||
// SPDX-License-Identifier: EUPL-1.2 | ||
|
||
import 'package:analytics/analytics.dart'; | ||
import 'package:sharezone/calendrical_events/provider/past_calendrical_events_page_controller.dart'; | ||
|
||
class PastCalendricalEventsPageAnalytics { | ||
final Analytics analytics; | ||
|
||
const PastCalendricalEventsPageAnalytics(this.analytics); | ||
|
||
void logChangedOrder(EventsSortingOrder order) { | ||
analytics.log( | ||
PastCalendricalEventsPageAnalyticsEvent( | ||
'changed_order', | ||
data: {'order': order.name}, | ||
), | ||
); | ||
} | ||
} | ||
|
||
class PastCalendricalEventsPageAnalyticsEvent extends AnalyticsEvent { | ||
const PastCalendricalEventsPageAnalyticsEvent( | ||
String name, { | ||
Map<String, dynamic>? data, | ||
}) : super('past_events_page_$name', data: data); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.