Skip to content
GitLab
    • Explore Projects Groups Snippets
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • consumer_app consumer_app
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 0
    • Issues 0
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 6
    • Merge requests 6
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Container Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • MemriMemri
  • consumer_appconsumer_app
  • Merge requests
  • !88

Release-0.4.0-PAUA

  • Review changes

  • Download
  • Email patches
  • Plain diff
Merged Erfan Jazeb Nikoo requested to merge dev into uat 2 years ago
  • Overview 0
  • Commits 10
  • Pipelines 0
  • Changes 14

Used the dummy data button in the fetching screen some new UI updates

Compare
  • uat (base)

and
  • latest version
    287a6923
    10 commits, 2 years ago

14 files
+ 123
- 55

    Preferences

    File browser
    Compare changes
l‎ib‎
co‎re‎
ap‎is‎
pod_ap‎i.dart‎ +8 -0
models‎/states‎
message_bann‎er_state.dart‎ +1 -1
serv‎ices‎
pod_serv‎ice.dart‎ +11 -0
localization/‎generated/intl‎
messages‎_all.dart‎ +6 -7
messages_‎en_US.dart‎ +0 -1
messages_‎nl_NL.dart‎ +0 -1
prov‎iders‎
app_prov‎ider.dart‎ +18 -2
auth_prov‎ider.dart‎ +1 -0
scr‎eens‎
threads_s‎creen.dart‎ +40 -26
utilitie‎s/helpers‎
app_hel‎per.dart‎ +1 -1
feed_hel‎per.dart‎ +6 -2
importer_h‎elper.dart‎ +2 -4
wid‎gets‎
ho‎me‎
feed_bottom_n‎avigation.dart‎ +3 -3
splas‎h.dart‎ +26 -7
lib/core/apis/pod_api.dart
+ 8
- 0
  • View file @ 287a6923

  • Edit in single-file editor

  • Open in Web IDE


@@ -46,6 +46,14 @@ class PodAPI extends BaseAPI {
return response.data;
}
Future<dynamic> getExampleAccount() async {
String endpoint =
'${_podConfig.baseUrl}/${_podConfig.apiVersion}/account/pod/example';
var response = await dio.post(endpoint, data: {});
checkResponseError(response);
return response.data;
}
Future<dynamic> authenticate() async {
String endpoint = '$_endpointUrl/search';
lib/core/models/states/message_banner_state.dart
+ 1
- 1
  • View file @ 287a6923

  • Edit in single-file editor

  • Open in Web IDE


@@ -14,7 +14,7 @@ extension MessageBannerExtension on MessageBannerState {
case MessageBannerState.updating:
return 'This is taking a while, please bear with us.';
case MessageBannerState.error:
return 'Oops, something went wrong. Please restart the app.';
return 'Oops, something went wrong. Please try again.';
case MessageBannerState.mlFeedback:
return 'Thank you for your feedback, it will help improve your AI!';
case MessageBannerState.timeout:
lib/core/services/pod_service.dart
+ 11
- 0
  • View file @ 287a6923

  • Edit in single-file editor

  • Open in Web IDE


@@ -59,6 +59,17 @@ class PodService extends ApiService<PodAPI> {
await api.authenticate();
}
Future<dynamic> useExampleAccount() async {
final response = await api.getExampleAccount();
var ownerKey = response['ownerKey'];
var dbKey = response['databaseKey'];
await storeOwnerKey(ownerKey);
await storeDatabaseKey(dbKey);
await api.authenticate();
return response;
}
Future<void> storeOwnerKey(String ownerKey) async =>
await _prefs.setString(app.keys.ownerKey, ownerKey);
lib/localization/generated/intl/messages_all.dart
+ 6
- 7
  • View file @ 287a6923

  • Edit in single-file editor

  • Open in Web IDE


@@ -11,7 +11,6 @@
import 'dart:async';
import 'package:flutter/foundation.dart';
import 'package:intl/intl.dart';
import 'package:intl/message_lookup_by_library.dart';
import 'package:intl/src/intl_helpers.dart';
@@ -21,8 +20,8 @@ import 'messages_nl_NL.dart' as messages_nl_nl;
typedef Future<dynamic> LibraryLoader();
Map<String, LibraryLoader> _deferredLibraries = {
'en_US': () => new SynchronousFuture(null),
'nl_NL': () => new SynchronousFuture(null),
'en_US': () => new Future.value(null),
'nl_NL': () => new Future.value(null),
};
MessageLookupByLibrary? _findExact(String localeName) {
@@ -37,18 +36,18 @@ MessageLookupByLibrary? _findExact(String localeName) {
}
/// User programs should call this before using [localeName] for messages.
Future<bool> initializeMessages(String localeName) {
Future<bool> initializeMessages(String localeName) async {
var availableLocale = Intl.verifiedLocale(
localeName, (locale) => _deferredLibraries[locale] != null,
onFailure: (_) => null);
if (availableLocale == null) {
return new SynchronousFuture(false);
return new Future.value(false);
}
var lib = _deferredLibraries[availableLocale];
lib == null ? new SynchronousFuture(false) : lib();
await (lib == null ? new Future.value(false) : lib());
initializeInternalMessageLookup(() => new CompositeMessageLookup());
messageLookup.addLocale(availableLocale, _findGeneratedMessagesFor);
return new SynchronousFuture(true);
return new Future.value(true);
}
bool _messagesExistFor(String locale) {
lib/localization/generated/intl/messages_en_US.dart
+ 0
- 1
  • View file @ 287a6923

  • Edit in single-file editor

  • Open in Web IDE


@@ -8,7 +8,6 @@
// ignore_for_file:prefer_single_quotes,comment_references, directives_ordering
// ignore_for_file:annotate_overrides,prefer_generic_function_type_aliases
// ignore_for_file:unused_import, file_names, avoid_escaping_inner_quotes
// ignore_for_file:unnecessary_string_interpolations, unnecessary_string_escapes
import 'package:intl/intl.dart';
import 'package:intl/message_lookup_by_library.dart';
Assignee
Erfan Jazeb Nikoo's avatar
Erfan Jazeb Nikoo
Assign to
0 Reviewers
None
Request review from
Labels
0
None
0
None
    Assign labels
  • Manage project labels

Milestone
No milestone
None
None
Time tracking
No estimate or time spent
Lock merge request
Unlocked
1
1 participant
Erfan Jazeb Nikoo
Reference: memri/consumer_app!88
Source branch: dev

Menu

Explore Projects Groups Snippets