feat: Criação de eventos no app (Flutter)#289
Merged
Conversation
- events_repository: metodo createEvent (POST events/create-event) - territory_events_provider: createEvent + reload da lista - Nova tela create_event_screen (titulo, descricao, inicio/termino com date/time pickers, local) - FAB 'Novo evento' na tela de Eventos - Strings i18n (pt/en) e regeneracao das localizations - Testes: smoke da tela + provider createEvent Co-authored-by: Rapha <sraphaz@users.noreply.github.com>
|
Important Review skippedDraft detected. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
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.
📋 Descrição
Próxima evolução da sequência recomendada para completar o app: criação de eventos no app Flutter. A jornada BFF
events/create-eventjá existia no backend, mas o app só consumia/RSVP — agora moradores e visitantes podem criar eventos no território ativo.Mudanças (app
frontend/arah.app)events_repository.dart: métodocreateEvent(POSTevents/create-event, corpo camelCase:territoryId,title,startsAtUtc,endsAtUtc?,latitude?,longitude?,locationLabel?,description?).territory_events_provider.dart:createEvent(...)que cria e recarrega a lista.create_event_screen.dart: título, descrição, início/término comshowDatePicker/showTimePicker, local — validação de campos e de término ≥ início; estados de envio/erro graciosos.ArahScaffold,AppConstants, cores viaTheme).🔄 Tipo de Mudança
🧪 Testes
flutter analyze --no-fatal-infos— sem erros/warnings na featureflutter test— 35 passando (+2: smoke da tela +createEventno provider com repo falso)Walkthrough
arah_create_event_demo.mp4
Formulário Novo evento preenchido
Evento criado aparecendo na lista
To show artifacts inline, enable in settings.