Repository navigation
feat(portal): capa de onboarding no deck da retrospectiva #536
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
Merged
Merged
Changes from all commits
Commits
Show all changes
8 commits
Select commit
Hold shift + click to select a range
6c73642
feat(portal): slide de eventos presenciais na seção sobre da retrô
danielhe4rt b4f4216
feat(portal): adiciona o save the date da He4rt Conf no slide de eventos
danielhe4rt b01b84d
feat(portal): capa de onboarding no deck da retrospectiva
danielhe4rt 996122d
feat(portal): troca o save the date pela foto do He4rt Pub 2026 no sl…
danielhe4rt b70ca1f
Merge branch 'feature/retro-events-slide' into feature/retro-cover-on…
danielhe4rt 6a0f969
feat(portal): capa de onboarding aceita vários apresentadores
danielhe4rt 6a15525
test(portal): atualiza paths das capas da retrô
danielhe4rt feb1429
Merge branch '4.x' into feature/retro-cover-onboarding
danielhe4rt File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
28 changes: 28 additions & 0 deletions
28
...nity/database/migrations/2026_09_02_214927_add_cover_kind_to_community_retrospectives.php
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,28 @@ | ||
| <?php | ||
|
|
||
| declare(strict_types=1); | ||
|
|
||
| use He4rt\Community\Retrospective\Enums\CoverKind; | ||
| use Illuminate\Database\Migrations\Migration; | ||
| use Illuminate\Database\Schema\Blueprint; | ||
| use Illuminate\Support\Facades\Schema; | ||
|
|
||
| return new class extends Migration | ||
| { | ||
| public function up(): void | ||
| { | ||
| Schema::table('community_retrospectives', static function (Blueprint $table): void { | ||
| $table->string('cover_kind', 20) | ||
| ->default(CoverKind::Retrospective->value) | ||
| ->comment(CoverKind::stringifyCases()) | ||
| ->after('status'); | ||
| }); | ||
| } | ||
|
|
||
| public function down(): void | ||
| { | ||
| Schema::table('community_retrospectives', static function (Blueprint $table): void { | ||
| $table->dropColumn('cover_kind'); | ||
| }); | ||
| } | ||
| }; |
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
64 changes: 64 additions & 0 deletions
64
app-modules/community/src/Retrospective/Enums/CoverKind.php
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,64 @@ | ||
| <?php | ||
|
|
||
| declare(strict_types=1); | ||
|
|
||
| namespace He4rt\Community\Retrospective\Enums; | ||
|
|
||
| use App\Enums\Concerns\StringifyEnum; | ||
| use Filament\Support\Contracts\HasColor; | ||
| use Filament\Support\Contracts\HasDescription; | ||
| use Filament\Support\Contracts\HasIcon; | ||
| use Filament\Support\Contracts\HasLabel; | ||
| use Filament\Support\Icons\Heroicon; | ||
|
|
||
| /** | ||
| * Para quem a edição abre. O mesmo deck serve a dois rituais: o balanço do | ||
| * período (retrospectiva) e a recepção mensal de quem acabou de chegar | ||
| * (onboarding). Só a capa muda; o resto do deck é a mesma prova. | ||
| * | ||
| * Não é escala: dois públicos distintos, cada um com cor própria. | ||
| */ | ||
| enum CoverKind: string implements HasColor, HasDescription, HasIcon, HasLabel | ||
| { | ||
| use StringifyEnum; | ||
|
|
||
| case Retrospective = 'retrospective'; | ||
| case Onboarding = 'onboarding'; | ||
|
|
||
| public function getLabel(): string | ||
| { | ||
| return match ($this) { | ||
| self::Retrospective => 'Retrospectiva', | ||
| self::Onboarding => 'Onboarding', | ||
| }; | ||
| } | ||
|
|
||
| public function getColor(): string | ||
| { | ||
| return match ($this) { | ||
| self::Retrospective => 'primary', | ||
| self::Onboarding => 'success', | ||
| }; | ||
| } | ||
|
|
||
| public function getDescription(): string | ||
| { | ||
| return match ($this) { | ||
| self::Retrospective => 'Abre como balanço do período: "quem fez a He4rt bater".', | ||
| self::Onboarding => 'Abre como boas-vindas ao evento mensal de novos membros, com edição e apresentador.', | ||
| }; | ||
| } | ||
|
|
||
| public function getIcon(): Heroicon | ||
| { | ||
| return match ($this) { | ||
| self::Retrospective => Heroicon::OutlinedSparkles, | ||
| self::Onboarding => Heroicon::OutlinedHandRaised, | ||
| }; | ||
| } | ||
|
|
||
| public function isOnboarding(): bool | ||
| { | ||
| return $this === self::Onboarding; | ||
| } | ||
| } | ||
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
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
18 changes: 18 additions & 0 deletions
18
app-modules/community/tests/Unit/Retrospective/CoverKindTest.php
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,18 @@ | ||
| <?php | ||
|
|
||
| declare(strict_types=1); | ||
|
|
||
| use Filament\Support\Icons\Heroicon; | ||
| use He4rt\Community\Retrospective\Enums\CoverKind; | ||
|
|
||
| it('implementa os contratos Filament para todos os casos', function (CoverKind $kind): void { | ||
| expect($kind->getLabel())->toBeString()->not->toBeEmpty() | ||
| ->and($kind->getColor())->toBeString()->not->toBeEmpty() | ||
| ->and($kind->getDescription())->toBeString()->not->toBeEmpty() | ||
| ->and($kind->getIcon())->toBeInstanceOf(Heroicon::class); | ||
| })->with(CoverKind::cases()); | ||
|
|
||
| it('só o onboarding se declara onboarding', function (): void { | ||
| expect(CoverKind::Onboarding->isOnboarding())->toBeTrue() | ||
| ->and(CoverKind::Retrospective->isOnboarding())->toBeFalse(); | ||
| }); |
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
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
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.