Skip to content

fix: resolve deprecated code-gen path, address missing asset configs, and enhance security guidelines #17

Description

@Shristi1611

hile conducting a thorough technical audit of the repository infrastructure, build scripts, and cloud synchronization service layers, I identified a combination of structural integration challenges and documentation omissions. On the firmware compilation side, the project relies on a deprecated code-generation path; executing flutter pub run build_runner will throw syntax warnings or fail entirely under updated Dart SDK environments, requiring a transition to the modern dart run build_runner toolchain namespace. More importantly, using Supabase as a primary data backend without explicitly defining PostgreSQL Row Level Security (RLS) policies introduces an immense security vulnerability. Because new Supabase tables lack default restrictions, any user utilizing the client-side Anon Key can execute arbitrary read/write statements across other users' tracking data unless explicit owner-matching triggers (auth.uid() = user_id) are applied to the schema. This risk is compounded by the fact that the installation guide advises hardcoding client credentials directly into a tracked configuration asset (supabase_config.dart) rather than isolating them within an un-tracked .env environment file.

On the layout and frontend structure side, there are a few configuration gaps that will prevent new contributors from running the application cleanly out of the box. Although the README maps out a rich portfolio of animated exercise resources located within the assets/gif/ folder, it lacks instructions for registering these paths inside the pubspec.yaml asset manifest. Without this explicit registration, Flutter will fail to load the image components at runtime, triggering asset-not-found exceptions across the workout UI dashboards. Furthermore, the state architecture inside data_providers.dart needs explicit error-handling and rollback logic to safeguard against async synchronization drift when network latency disrupts communication with the Supabase API. Updating the code-generation commands, integrating environmental variable isolation, implementing a blueprint for RLS data policies, and outlining the asset manifest variables will make LifeTrack robust, secure, and production-ready for the open-source community.

I'd appreciate if this could be assigned to me

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions