Skip to content

feat: Criação de eventos no app (Flutter)#289

Merged
cursor[bot] merged 1 commit into
mainfrom
cursor/criar-eventos-app-1c6f
Jun 29, 2026
Merged

feat: Criação de eventos no app (Flutter)#289
cursor[bot] merged 1 commit into
mainfrom
cursor/criar-eventos-app-1c6f

Conversation

@sraphaz

@sraphaz sraphaz commented Jun 29, 2026

Copy link
Copy Markdown
Owner

📋 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-event já 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étodo createEvent (POST events/create-event, corpo camelCase: territoryId, title, startsAtUtc, endsAtUtc?, latitude?, longitude?, locationLabel?, description?).
  • territory_events_provider.dart: createEvent(...) que cria e recarrega a lista.
  • Nova tela create_event_screen.dart: título, descrição, início/término com showDatePicker/showTimePicker, local — validação de campos e de término ≥ início; estados de envio/erro graciosos.
  • FAB "Novo evento" na tela de Eventos.
  • Strings i18n (pt/en) + regeneração das localizations.
  • Segue o design system Arah (ArahScaffold, AppConstants, cores via Theme).

🔄 Tipo de Mudança

  • Nova funcionalidade

🧪 Testes

  • flutter analyze --no-fatal-infos — sem erros/warnings na feature
  • flutter test — 35 passando (+2: smoke da tela + createEvent no provider com repo falso)
  • ✅ Demo manual end-to-end no app web: criar evento (data/hora via pickers) → "Evento criado." → evento aparece na lista (happy-path funciona para visitante, sem gate de Resident)

Walkthrough

arah_create_event_demo.mp4

Formulário Novo evento preenchido
Evento criado aparecendo na lista

To show artifacts inline, enable in settings.

Open in Web Open in Cursor 

- 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>
@coderabbitai

coderabbitai Bot commented Jun 29, 2026

Copy link
Copy Markdown

Important

Review skipped

Draft detected.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: 6b52031b-3f06-4bff-ae6a-82d45d9f73b0

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch cursor/criar-eventos-app-1c6f

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.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@cursor cursor Bot merged commit e051be8 into main Jun 29, 2026
4 checks passed
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.

2 participants