feat: prepare auth and sync foundation#114
Open
marcelo-m7 wants to merge 1 commit into
Open
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Motivation
Description
AuthRepository(interface),LocalAuthRepository(implementação), eAuthProvider(provider) para sessão local; arquivos principais:lib/domain/repositories/auth_repository.dart,lib/data/repositories/local_auth_repository.dart,lib/core/providers/auth_provider.dart.SecureStorageServicee dependênciaflutter_secure_storagecom fallback para web para armazenar dados sensíveis de sessão; arquivo:lib/data/local/secure_storage_service.dartepubspec.yamlatualizado.RemoteBackendConfig,RemoteSyncService) para isolar futuros backends e habilitar bootstrap de sync sem acoplar UI; arquivos:lib/data/remote/remote_backend_config.dart,lib/data/remote/remote_sync_service.dart.DatabaseServicecom metadados de schema (storage_schema_version),exportSnapshot()eimportSnapshot()para backup/migração, e pequenas melhorias de debounce/locks; arquivo:lib/core/services/database_service.dart.main.dartpassa a inicializarAuthProvidere decidir entreLoginPage/app principal,login_page.dartesignup_page.dartatualizados para usar o provider real; tema consolidado com identidade Monynha emlib/theme.dart.TODO.mdeAGENTS.mdcom regras de arquitetura, segurança, backend e checklist para futuros agentes.Testing
git diff --checkpara checar problemas de diff e format (sem erros relevantes) e o comando concluiu com sucesso.flutter analyze, porém o ambiente não possuiflutter/dartinstalados, então a análise não pôde ser executada aqui (documentado emTODO.md).flutter test, porém o ambiente não possuiflutter/dartinstalados, então os testes automatizados não puderam ser executados neste workspace.feat: prepare auth and sync foundation(HEAD ef4f84e).Codex Task