Skip to content
This repository was archived by the owner on Dec 3, 2025. It is now read-only.

Conversation

@TomaszRebizant
Copy link
Collaborator

@TomaszRebizant TomaszRebizant commented Aug 28, 2025

image image image image image

This should close #21

@TomaszRebizant TomaszRebizant marked this pull request as ready for review September 4, 2025 04:06
Copy link
Member

@EwelinaSkrzypacz EwelinaSkrzypacz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I logged as a [email protected] -> I go to "Zwierzęta" -> I see error

Image

Btw. I think that not authenticated user should also see page with pets 👀

@EwelinaSkrzypacz
Copy link
Member

Conflicts 👀

@TomaszRebizant TomaszRebizant marked this pull request as draft September 9, 2025 10:06
@kamilpiech97
Copy link
Member

@TomaszRebizant conflicts

Copy link
Member

@AleksandraKozubal AleksandraKozubal left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please check my old comments, they're not resolved yet

Copy link
Member

@EwelinaSkrzypacz EwelinaSkrzypacz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  1. Please fix failed checks 👀
  2. Why personality traits are not translated?
image

use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\Relations\BelongsToMany;

Copy link
Member

@AleksandraKozubal AleksandraKozubal Sep 19, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
/**
* @property string $name
* @property-read Collection<int, Pet> $pets
*/

Also add * @property-read Collection<int, Tag> $tags to Pet model

continue;
}
$list = array_is_list($prefValues) ? $prefValues : [$prefValues];
$normalized[$field] = array_values(array_filter($list, static fn($p) => is_array($p) && (array_key_exists("value", $p) || array_key_exists("weight", $p))));
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

function types

return Inertia::render("Dashboard/Dashboard", [
"pets" => PetMatchResource::collection($pets)->resolve(),
$tags = Tag::query()
->withCount(["pets as accepted_pets_count" => fn($q) => $q->where("is_accepted", true)])
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Function types

"pets" => PetMatchResource::collection($pets)->resolve(),
$tags = Tag::query()
->withCount(["pets as accepted_pets_count" => fn($q) => $q->where("is_accepted", true)])
->whereHas("pets", fn($q) => $q->where("is_accepted", true), ">", 1)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same

"count" => (int)$tag->accepted_pets_count,
]);

$breedQuery = fn(string $species) => Pet::query()
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Return type

@kamilpiech97
Copy link
Member

@TomaszRebizant conflicts

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Pet Preferences Selection Page

6 participants