Skip to content

Commit

Permalink
1.7.1 - Adding Melodice integration and Discord invite link (#138)
Browse files Browse the repository at this point in the history
* adding discord info to the readme

* adding discord invite to the about page

* updating the UI of the playthrough stats page

* adding melodice integration

* showing discord invite in a stand alone browser rather than as an in app experience

* updating UI for charts section on playthrough page

* updating games won statistics chart

* updating games played statistics chart
  • Loading branch information
mkieres authored Nov 5, 2022
1 parent 37d2da1 commit 8bc9b68
Show file tree
Hide file tree
Showing 25 changed files with 781 additions and 362 deletions.
6 changes: 5 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,13 @@ Welcome to the official **Board Games Companion** Github repository - an open so

For more information about the application and its features please visit our [Wiki pages](https://github.com/Progrunning/BoardGamesCompanion/wiki).

# Discussion

If you have an idea about how the app could be improved, you ran into a problem or maybe you want to check what's currently in the works then join the [Discord](https://discord.gg/t9dTVXxnvC) server to chat with the development team and other BGC users.

# Contributing

The mobile applications (iOS and Android) are written in [Dart language](https://dart.dev/) and using [Flutter cross-platform framework](https://flutter.dev/). This means that in order to contribute to the project one needs to have working Flutter environemnt on their machines.
The iOS and Android mobile applications are written in [Dart language](https://dart.dev/), using a cross-platform framework [Flutter](https://flutter.dev/). In order to contribute to the project one needs to have working Flutter environemnt on their machines.

## Getting Started

Expand Down
23 changes: 23 additions & 0 deletions board_games_companion/assets/discord-logo-blue.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
17 changes: 12 additions & 5 deletions board_games_companion/lib/common/app_text.dart
Original file line number Diff line number Diff line change
Expand Up @@ -19,19 +19,24 @@ class AppText {
static const aboutPageAuthorSectionTitle = 'Author';
static const aboutPageDesignAndArtSectionTitle = 'Design & Art';
static const aboutPageContentAndDataSectionTitle = 'Content & Data';
static const aboutPageCommunityTitle = 'Community';
static const aboutPagePluginsAndLibrariesSectionTitle = 'Plugins & Libraries';
static const aboutPageLicensesSectionTitle = 'Licenses';
static const aboutPageContentAndDataBggXmlApiTitle =
"The board games data shown in the app is a courtesy of the publicly available BoardGameGeek's XML API.";
static const aboutPageContentAndDataBggXmlApiSubtitle = 'See below links for more details:';
static const aboutPagePluginsAndLibrariesSubtitle =
'The below is a list of the plugins and libraries that helped in building this app:';
static const aboutPageCommunitySubtitle =
"If you need help with the app, have an idea for a new feature or you want to see what we are currently working on then then feel free to join BGC's discord server to chat about it with developers and other app users.";
static const aboutPageCommunityJoinDiscord =
"Tap on the below logo to join the BGC's Discord server.";

static const playthroughsStatisticsPageLastWinnerSectionTitle = 'Last winner';
static const playthroughsStatisticsPageTopFiveSectionTitle = 'Top 5';
static const playthroughsStatisticsPagePlayerCountPercentageSectionTitle =
'Games played by player count';
static const playthroughsStatisticsPagePlayerWinsPercentageSectionTitle = 'Games won by a player';
static const playthroughsStatisticsPageTopFiveSectionTitle = 'Top 5 scores';
static const playthroughsStatisticsPageGamesPlayedAndWonChartsSectionPrimaryTitle =
'Games played';
static const playthroughsStatisticsPageGamesPlayedAndWonChartsSectionSecondaryTitle = 'Games won';
static const playthroughsStatisticsPageOverallStatsSectionTitle = 'Overall stats';
static const playthroughsStatisticsPageOverallStatsAvgPlaytime = 'Avg. playtime';
static const playthroughsStatisticsPageOverallStatsTotalPlaytime = 'Total playtime';
Expand All @@ -45,7 +50,8 @@ class AppText {
playthroughsStatisticsPageOverallStatsAvgScore;
static const playthroughsStatisticsPagePlayersStatsPlayedGames =
playthroughsStatisticsPageOverallStatsAvgPlayedGames;
static const playthroughsStatisticsPagePlayerCountChartLegendFormat = '%s player%s';
static const playthroughsStatisticsPagePlayerCountChartLegendFormatSingular = '%i player';
static const playthroughsStatisticsPagePlayerCountChartLegendFormatPlural = '%i players';

static const playthroughsGameSettingsWinningConditionSectionTitle = 'Winning Condition';
static const playthroughsGameSettingsWinningConditionHighestScore = 'Highest score';
Expand All @@ -69,6 +75,7 @@ class AppText {

static const filterGamesPanelClearFiltersButtonText = 'Clear filters';

static const playthroughsLogGamePageHeader = 'Log a game';
static const playthroughsLogGamePagePlayerScoresStepTitle = 'Player scores';

static const importCollectionsSucceeded = 'Your collection has been imported from BGG!';
Expand Down
2 changes: 2 additions & 0 deletions board_games_companion/lib/common/dimensions.dart
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,8 @@ class Dimensions {

static const double bottomTabTopHeight = 20;

static const double detailsItemHeight = 60;

static const EdgeInsets snackbarMargin = EdgeInsets.only(
left: Dimensions.standardSpacing,
right: Dimensions.standardSpacing,
Expand Down
25 changes: 23 additions & 2 deletions board_games_companion/lib/models/board_game_statistics.dart
Original file line number Diff line number Diff line change
@@ -1,9 +1,12 @@
import 'package:freezed_annotation/freezed_annotation.dart';
import 'package:tuple/tuple.dart';

import 'hive/player.dart';
import 'player_score.dart';
import 'player_statistics.dart';

part 'board_game_statistics.freezed.dart';

class BoardGameStatistics {
DateTime? lastPlayed;

Expand Down Expand Up @@ -31,9 +34,27 @@ class BoardGameStatistics {

List<PlayerStatistics>? playersStatistics;

Map<int, double>? playerCountPercentage;
List<PlayerCountStatistics>? playerCountPercentage;

Map<Player, double>? playerWinsPercentage;
List<PlayerWinsStatistics>? playerWinsPercentage;

Map<Player, int>? playerWins;
}

@freezed
abstract class PlayerWinsStatistics with _$PlayerWinsStatistics {
const factory PlayerWinsStatistics({
required Player player,
required int numberOfWins,
required double winsPercentage,
}) = _PlayerWinsStatistics;
}

@freezed
abstract class PlayerCountStatistics with _$PlayerCountStatistics {
const factory PlayerCountStatistics({
required int numberOfPlayers,
required int numberOfGamesPlayed,
required double gamesPlayedPercentage,
}) = _PlayerCountStatistics;
}
Loading

0 comments on commit 8bc9b68

Please sign in to comment.