Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix Name Sync & History Inconsistencies #62

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

bhanu-dev82
Copy link
Contributor

@bhanu-dev82 bhanu-dev82 commented Feb 7, 2025

πŸ› οΈ Fix: Name Sync & History Inconsistencies

Excited to share that the issue related to name synchronization and inconsistent history after a name change has now been successfully fixed! πŸŽ‰

This update introduces several changes across multiple files, but I have maintained the overall structure to ensure an easier review process.

πŸ”Ή Notable Changes

  • Primary key usage: We are now using primary_key as the definitive primary key (yes, it sounds redundant, but it ensures uniqueness and immutability).
  • User name mapping: Implemented a mapping of usernames to primary keys to maintain consistency.
  • Caching & UI uniformity: Introduced a new table for names and primary keys to streamline caching and ensure uniformity across the UI.
  • Helper functions: Added dedicated helper functions for handling new tables and keys across different pages.
  • Dependency updates: Upgraded packages in pubspec.yaml to ensure compatibility with the latest devices.

⚑ Important Steps to Run the Updated Code

  1. Migration Support:

    • A migration script is included to handle updates from older versions, but it's recommended to uninstall the previous version for a clean transition.
  2. Java Compatibility:

    • It is tested on Java 17, though other versions may work fine. Using Java 17 is recommended.
  3. Setup Instructions:

    • Run:
      flutter clean
      flutter pub get
    • Then install the latest version via Android Studio.

πŸ“½οΈ Detailed Video Walkthrough

To help with the transition, I have created a 25-minute detailed video covering:

  • A live demo of the app
  • Code changes across files
  • Explanation of updated functions

I have spent 80+ hours understanding, fixing, and testing this issue, so please take the time to watch the video for a complete overview!

πŸ“Œ Watch it here: YouTube Video

Looking forward to your review and feedback! πŸš€

@bhanu-dev82 bhanu-dev82 changed the title fixed the user name sync isssue Fix Name Sync & History Inconsistencies Feb 7, 2025
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.

1 participant