Skip to content

Amogh/optimize login latency#317

Open
Amoghhosamane wants to merge 5 commits into
anusii:devfrom
Amoghhosamane:Amogh/optimize_login_latency
Open

Amogh/optimize login latency#317
Amoghhosamane wants to merge 5 commits into
anusii:devfrom
Amoghhosamane:Amogh/optimize_login_latency

Conversation

@Amoghhosamane
Copy link
Copy Markdown

@Amoghhosamane Amoghhosamane commented May 14, 2026

Pull Request Details

Description

Addresses the login performance bottlenecks reported in issue #224 and synchronizes the branch with the latest upstream/dev architecture changes.

Key optimizations and fixes:

  • Optimized login initialization using Future.wait() to reduce sequential async latency.
  • Reduced redundant secure-storage and SharedPreferences access during login/session refresh.
  • Added SharedPreferences instance caching for improved login responsiveness.
  • Reduced unnecessary widget rebuilds by consolidating setState() calls.
  • Resolved merge conflicts with latest upstream/dev architecture updates.
  • Preserved upstream SolidScaffold/navigation/layout architecture while keeping login optimization improvements.
  • Fixed ambiguous imports and method signature mismatches introduced during merge reconciliation.
  • Cleaned analyzer warnings and verified compatibility with latest upstream changes.

These changes improve login responsiveness and reduce unnecessary I/O overhead without changing user-visible behavior.

Related Issues

Closes #224

Type of Change

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • This change requires a documentation update

How To Test?

  1. Test login flow:
  • Login with a valid Solid server/WebID
  • Verify successful navigation after login
  • Verify session restoration on restart
  • Verify logout/login cycle works correctly
  • Disable “Stay signed in” and confirm session clears properly

Confirmed:

  • No analyzer issues
  • No merge conflicts remain
  • Latest upstream/dev changes successfully integrated

Checklist

  • Screenshots included here/in linked issue #

  • Changes adhere to the style and coding guidelines

  • I have performed a self-review of my code

  • I have commented my code, particularly in hard-to-understand areas

  • I have made corresponding changes to the documentation

  • Any dependent changes have been merged and published in downstream modules

  • The update contains no confidential information

  • The update has no duplicated content

  • No lint check errors are related to these changes (flutter analyze lib)

  • Integration test dart test output or screenshot included in issue #

  • I tested the PR on these devices:

    • Android
    • iOS
    • Linux
    • MacOS
    • Windows
    • Web
  • I have identified reviewers

  • The PR has been approved by reviewers

Finalising

  • Merge dev into this branch
  • Resolve any conflicts
  • Add a one line summary into the CHANGELOG.md
  • Push to the git repository and review
  • Merge the PR into dev

@Amoghhosamane Amoghhosamane force-pushed the Amogh/optimize_login_latency branch from eaeab24 to f67b2e1 Compare May 14, 2026 09:24
…check

- Reorder imports to follow Flutter → external packages → project structure
- Add blank lines between each import group
- Disable conflicting directives_ordering lint rule in analysis_options.yaml
  (import_order_lint and directives_ordering are mutually exclusive)
- Apply dart format to all affected files

Affected files:
  lib/src/utils/solid_file_operations_download.dart
  lib/src/utils/solid_file_operations_upload.dart
  lib/src/widgets/solid_about_button.dart
  lib/src/widgets/solid_file_operations.dart
  lib/src/widgets/solid_file_uploader.dart
  lib/src/widgets/solid_file_uploader_helpers.dart
  lib/src/widgets/solid_login_build_helper.dart
  lib/src/widgets/solid_login_buttons.dart
  lib/src/widgets/solid_nav_drawer_header.dart
  lib/src/widgets/solid_nav_drawer_url_helper.dart
  lib/src/widgets/solid_profile_editor.dart
  lib/src/widgets/solid_scaffold_helpers.dart
  lib/src/widgets/solid_status_bar.dart
- Reorganize imports in 13 target files to follow Flutter -> external -> project hierarchy.
- Run import_order on the entire codebase to fix all 158+ violations.
- Disable directives_ordering lint in analysis_options.yaml to support import_order_lint grouping rules.
- Format all files with dart format.
…figuration

- Enforced Flutter -> External -> Project import hierarchy with blank lines.
- Added import_order configuration to pubspec.yaml for both root and example.
- Disabled conflicting directives_ordering lint in analysis_options.yaml.
- Applied dart format.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

perf: Optimize login latency and reduce redundant I/O in solidui/pod/auth

1 participant