Merge pull request #665 from ente-io/change_2

Add change log
This commit is contained in:
Neeraj Gupta 2022-11-23 10:58:21 +05:30 committed by GitHub
commit 28a9cd9dce
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 21 additions and 20 deletions

View file

@ -16,7 +16,7 @@ class UpdateService {
static final UpdateService instance = UpdateService._privateConstructor();
static const kUpdateAvailableShownTimeKey = "update_available_shown_time_key";
static const changeLogVersionKey = "update_change_log_key";
static const currentChangeLogVersion = 1;
static const currentChangeLogVersion = 2;
LatestVersionInfo _latestVersion;
final _logger = Logger("UpdateService");

View file

@ -72,7 +72,9 @@ class _ChangeLogPageState extends State<ChangeLogPage> {
child: GradientButton(
onTap: () async {
await UpdateService.instance.hideChangeLog();
Navigator.of(context).pop();
if (mounted && Navigator.of(context).canPop()) {
Navigator.of(context).pop();
}
},
text: "Let's go",
),
@ -133,44 +135,43 @@ class _ChangeLogPageState extends State<ChangeLogPage> {
final List<ChangeLogEntry> items = [];
items.add(
ChangeLogEntry(
"Hide your photos!",
"On popular demand, "
"ente now supports photos that are hidden behind a lock.\n\nThis "
"is in "
"addition to the existing functionality to archive your photos so "
"that they do not show in your timeline (but are otherwise visible)"
".",
"Select all photos in a day",
"After you select a photo, you'll now see an option next to the date to select all photos from that day.",
),
);
items.add(
ChangeLogEntry(
'''Add a description to your photos''',
"You can now add a caption / description to your photos and videos"
".These will show up on the photo view.\n\nTo add a description, tap on the info icon to view the photo details and enter your text.",
'''Easier access to favorites''',
"Your favorites now have a special heart icon, and will appear first in the list of albums. Archived albums also get a new indicator.",
),
);
items.add(
ChangeLogEntry(
'''And search photos descriptions too''',
"Yes, it doesn't end there! You can also search your photos using "
"their descriptions.\n\nThis allows you to, for example, tag your"
" photos and quickly search for them.",
'''Export photo descriptions''',
"When you export data out of ente using the desktop app, any photo captions and descriptions that you added will also be exported.",
),
);
items.add(
ChangeLogEntry(
'''Initial support for empty albums''',
"Any empty albums that you already have will now show up in ente. You can choose to delete them, or add more photos to them. In the future we'll support more workflows with empty albums.",
isFeature: false,
),
);
if (Platform.isIOS) {
items.add(
ChangeLogEntry(
'''Save live photos''',
"There are some small fixes, including an enhancement to download and save live photos.",
'''Tweak video uploads''',
"ente will now keep videos temporarily cached until they get successfully uploaded. This will make video uploads work better as long as the app is not force killed.",
isFeature: false,
),
);
} else {
items.add(
ChangeLogEntry(
'''Better import of WhatsApp photos''',
"There are some small fixes, including an enhancement to use the creation time for photos imported from WhatsApp.",
'''Better timestamps for screenshots''',
"Added more cases when deducing photo dates from their file names. ente will also automatically apply these rules to fix photos that have already been imported without a valid date.",
isFeature: false,
),
);