mirror of
https://github.com/immich-app/immich.git
synced 2025-10-28 01:02:33 -04:00
* feat: improved update messaging on app bar server info * chore: message improvements * chore: failed to fetch version error message * feat: open latest release when tapping "Update" on server out of date message * fix: text alignment states * chore: code review updates * Apply suggestion from @alextran1502 Co-authored-by: Alex <alex.tran1502@gmail.com> * Apply suggestion from @alextran1502 Co-authored-by: Alex <alex.tran1502@gmail.com> * chore: lots of rework of the version checking code to be cleaner Added a semver utility class to simplify comparisons, broke the update notification logic into own widget, reworked view construction and colors. * fix: show warnign without having to tap on app bar icon * chore: colors --------- Co-authored-by: Alex <alex.tran1502@gmail.com>
14 lines
447 B
Dart
14 lines
447 B
Dart
import 'package:immich_mobile/utils/semver.dart';
|
|
import 'package:openapi/api.dart';
|
|
|
|
class ServerVersion extends SemVer {
|
|
const ServerVersion({required super.major, required super.minor, required super.patch});
|
|
|
|
@override
|
|
String toString() {
|
|
return 'ServerVersion(major: $major, minor: $minor, patch: $patch)';
|
|
}
|
|
|
|
ServerVersion.fromDto(ServerVersionResponseDto dto) : super(major: dto.major, minor: dto.minor, patch: dto.patch_);
|
|
}
|