Skip to content

Commit

Permalink
feat(deriv_auth_ui): add option to enable/disable forgot password & c…
Browse files Browse the repository at this point in the history
…reate account (#352)

* deps: update deriv_auth_ui dependencies

* deps: update deriv_theme in deriv_ui

* wip: auth-ui-update

* added invalidresidence errror mapping for social login

* feat: add deriv auth error state handler

* feat: add auth error state handler in sign up page

* feat: add auth error state handler in set password page

* refactor: auth state handling in signup and set password page

* feat: add social button flag

* feat: country consent added in country_selection_layout

* deps: remove relative path

* refactor: auth state handler

* test: country selection cubit test

* test: auth state handler

* feat: add gesture detector in get started layout

* feat: reset pass success page

* docs: update documentation based on latest changes

* refactor: add eof and remove deprecated lint

* refactor: make countries non-nullable

* refactor: deriv country selection cubit

* refactor: deriv country selection cubit

* ci: integrate github actions and setup melos (#328)

* chore: rename `AuthStateListener`

* fix: change color to general

* fix: reset password button alignment

* fix: add missing ok label in referal dialog

* feat: add flag for social login

* fix: spacing after social flag

* chore: add auth ui regex to deriv ui

* feat: [MOBC-608] auth ui setting page (#320)

* feat: setting page

* fix: depricated issues

* fix: change package_info_plus to match packages

* fix: future void callback

* refactor: move regex_helper func to deriv_ui

* fix: remove sahani repo from yaml files

* fix: deriv_auth_ui pubspec

* fix: remove appEnv related to deriv ez

as deriv ez is removed from production we dont need to include it in this package anymore

* fix: revert back the appEnv and change the comment

* chore: merge master to dev (#334)

* add update_checker package

* add Readme

* add comments

* update documentation

* apply suggestions from PR review

* update deps

* update flutter_bloc package

* Revert "update flutter_bloc package"

This reverts commit 7188a18.

* Update packages/update_checker/lib/update_info.dart

Co-authored-by: abed-binary <61964755+abed-binary@users.noreply.github.com>

* update bloc library to 6.0.1

* remove markseen

* remove unnecessary statements

* restore UpdateCheckMarkSeen

* add UpdateCheckDismiss

* push update_checker changes

* Update web_socket_test.dart

* chore: add pull request template with git rules

* chore: pull request update git_rules.md

---------

Co-authored-by: Suyash Mohan <suyash@binary.com>
Co-authored-by: Suyash Mohan <33442325+suyash-binary@users.noreply.github.com>
Co-authored-by: abed-binary <61964755+abed-binary@users.noreply.github.com>
Co-authored-by: Morteza Tavanarad <morteza@binary.com>
Co-authored-by: ramin-deriv <ramin.vakili@deriv.com>
Co-authored-by: ramin-deriv <55975218+ramin-deriv@users.noreply.github.com>
Co-authored-by: WAQAS YOUNAS <waqas.younas@deriv.com>
Co-authored-by: WAQAS YOUNAS <78855520+waqas-younas-deriv@users.noreply.github.com>

* add invalidate and copyValuesFrom to AbstractEMAIndicator (#331)

* ci: automated versioning github actions and updated ref (#338)

* deps: update dependencies

update dependencies deriv_ui

update dependencies part 1

update dependencies deriv_auth_ui

* deps: push melos pubspec.lock

* chore: publish packages

chore(release): publish packages

- analytics@1.0.0
 - deriv_app_performance@0.0.1
 - flutter_deriv_bloc_manager@0.0.1
 - deriv_datadog@0.0.1
 - deriv_dependency_injector@1.0.0
 - deriv_env@0.0.1
 - deriv_grouped_listview@0.0.1
 - deriv_http_client@1.0.0
 - deriv_lint@1.0.0
 - deriv_rudderstack@1.1.0
 - deriv_technical_analysis@0.0.1
 - deriv_theme@2.0.0
 - deriv_web_socket_client@1.0.0
 - form_builder@1.0.0+1
 - update_checker@1.1.0

chore(release): publish packages

- deriv_auth@1.0.2
 - deriv_banner@0.0.1
 - deriv_date_range_picker@0.0.1
 - deriv_expandable_bottom_sheet@0.0.1
 - deriv_live_chat@0.0.1
 - deriv_numpad@1.0.0+1
 - deriv_store_launcher@0.0.1
 - deriv_web_view@0.0.1

chore(release): publish packages

- deriv_ui@0.0.1

chore(release): publish packages

- deriv_auth_ui@0.0.1

* chore: clean changelog

* chore: revert changelog changes

* chore: change auth ui example app ref

* ci: git actions for versioning

* refactor(deriv_env): make package independent of env file (#318)

* get the env file content from outside

* make Env class not being singleton

* create EnvLoader class

* fix the tests

* bring back the removed test case

* update the initialize doc

* export classes need to be used by outside

* export BaseEnv class as well

* format deriv_env.dart

* swape names for Env and EnvLoader to reduce the amount of change in the apps using this packagew

* handle exception in bool type

* remove duplicate lint rules

* define common values as variable in env_test.dart

* update README.md file

* remove breaking change by making the laod method deprecated

* Update CHANGELOG.md

* udpate README.md file

* refactor: Improve flexibility by removing dependency to env file
- **Deprecation:** The `load` method is deprecated; it is recommended to use the new `initialize` method for improved flexibility. The `load` method will still function but may be removed in future releases.
- Introduced a new method `initialize` to handle initialization without requiring an env file directly.
- Improved package flexibility by removing the strict dependency on an env file for test environments.

* chore: [MOBC-632] remove commit hash ci (#340)

* chore(version): bump version and update changelog (#342)

- deriv_env@0.0.1+1

Co-authored-by: GitHub Actions <41898282+github-actions[bot]@users.noreply.github.com>

* chore(deriv_auth_ui): remove unecessary deps from example (#343)

* feat: Ayaan/Added margins 112 and 164 (#319)

* Add dimens 112 and 164

* Update dimens.dart

* chore(release): publish packages (#344)

- deriv_theme@2.1.0
 - deriv_date_range_picker@0.0.1+1
 - deriv_ui@0.0.1+1
 - deriv_auth_ui@0.0.1+1
 - deriv_expandable_bottom_sheet@0.0.1+1
 - deriv_numpad@1.0.1

Co-authored-by: GitHub Actions <41898282+github-actions[bot]@users.noreply.github.com>

* refactor(deriv_auth_ui): [MOBC-629] Adding semantics to UI components (#321)

* chore(deriv_auth_ui):Adding semantics to UI components

* chore(deriv_auth_ui):Adding semantics to UI components, fixes based on review comments

* chore(deriv_auth_ui):Adding explicitChildNodes: true to Semantics Widgets

* chore(release): publish packages (#345)

- deriv_auth_ui@0.0.1+2
 - deriv_ui@0.0.1+2

Co-authored-by: GitHub Actions <41898282+github-actions[bot]@users.noreply.github.com>

* add option to enable/disable forgot password & create account

* fix comment from @sahani-deriv

* update dependencies

---------

Co-authored-by: sahani-deriv <125638269+sahani-deriv@users.noreply.github.com>
Co-authored-by: Istiak <istiak@Md-Istiak-Morsalins-Mac-GG9VCWX96V.local>
Co-authored-by: Ahrar <98078754+ahrar-deriv@users.noreply.github.com>
Co-authored-by: Suyash Mohan <suyash@binary.com>
Co-authored-by: Suyash Mohan <33442325+suyash-binary@users.noreply.github.com>
Co-authored-by: abed-binary <61964755+abed-binary@users.noreply.github.com>
Co-authored-by: Morteza Tavanarad <morteza@binary.com>
Co-authored-by: ramin-deriv <ramin.vakili@deriv.com>
Co-authored-by: ramin-deriv <55975218+ramin-deriv@users.noreply.github.com>
Co-authored-by: WAQAS YOUNAS <waqas.younas@deriv.com>
Co-authored-by: WAQAS YOUNAS <78855520+waqas-younas-deriv@users.noreply.github.com>
Co-authored-by: mobile-apps-deriv <134251399+mobile-apps-deriv@users.noreply.github.com>
Co-authored-by: GitHub Actions <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: ayaan-deriv <142789997+ayaan-deriv@users.noreply.github.com>
Co-authored-by: ernest-deriv <120568427+ernest-deriv@users.noreply.github.com>
  • Loading branch information
16 people authored Dec 22, 2023
1 parent 6305dab commit 1db8715
Showing 1 changed file with 14 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@ class DerivLoginLayout extends StatefulWidget {
required this.onSocialAuthButtonPressed,
required this.welcomeLabel,
required this.greetingLabel,
this.isForgotPasswordEnabled = true,
this.isCreateAccountEnabled = true,
this.isSocialAuthEnabled = true,
this.authErrorStateHandler,
this.onLoginError,
Expand Down Expand Up @@ -59,6 +61,12 @@ class DerivLoginLayout extends StatefulWidget {
/// Whether to display social auth buttons.
final bool isSocialAuthEnabled;

/// Whether to display forgot password section.
final bool isForgotPasswordEnabled;

/// Whether to display create account section.
final bool isCreateAccountEnabled;

@override
State<DerivLoginLayout> createState() => _DerivLoginLayoutState();
}
Expand Down Expand Up @@ -112,7 +120,9 @@ class _DerivLoginLayoutState extends State<DerivLoginLayout> {
..._buildTextFields(
isEnabled: state is! DerivAuthLoadingState),
const SizedBox(height: ThemeProvider.margin24),
_buildForgotPassButton(),
widget.isForgotPasswordEnabled
? _buildForgotPassButton()
: const SizedBox(),
const SizedBox(height: ThemeProvider.margin24),
_buildLoginButton(),
const SizedBox(height: ThemeProvider.margin24),
Expand All @@ -129,7 +139,9 @@ class _DerivLoginLayoutState extends State<DerivLoginLayout> {
),
if (widget.isSocialAuthEnabled)
const SizedBox(height: ThemeProvider.margin24),
_buildFooterSection(),
widget.isCreateAccountEnabled
? _buildFooterSection()
: const SizedBox(),
],
),
),
Expand Down

0 comments on commit 1db8715

Please sign in to comment.