#4 - users CRUD #24

Merged
Baakoma merged 24 commits from #4-users-crud into main 2022-01-19 10:55:10 +01:00
Baakoma commented 2022-01-18 10:09:33 +01:00 (Migrated from github.com)

It should close #4

imageimage
image

It should close #4 ![image](https://user-images.githubusercontent.com/16743001/149906604-9d04cbf0-60ca-4b95-a7f7-95c0543ab58e.png)![image](https://user-images.githubusercontent.com/16743001/149906463-0d8ee29f-48ee-4339-8390-4f1a2955baf5.png) ![image](https://user-images.githubusercontent.com/16743001/149906389-8ffd7740-b136-41a0-83f0-c10ab127bc67.png)
krzysztofrewak (Migrated from github.com) requested changes 2022-01-18 13:29:11 +01:00
krzysztofrewak (Migrated from github.com) commented 2022-01-18 13:26:55 +01:00

Wouldn't EmploymenyForm a better name?

Wouldn't `EmploymenyForm` a better name?
krzysztofrewak (Migrated from github.com) commented 2022-01-18 13:27:29 +01:00

I would create some "business" namespace for that and all other legal/corporate stuff.

I would create some "business" namespace for that and all other legal/corporate stuff.
krzysztofrewak (Migrated from github.com) requested changes 2022-01-18 14:06:43 +01:00
krzysztofrewak (Migrated from github.com) commented 2022-01-18 13:57:12 +01:00

Maybe add more descriptive key?

Maybe add more descriptive key?
krzysztofrewak (Migrated from github.com) commented 2022-01-18 14:02:44 +01:00
    protected function getRandomColor(string $name): string
    {
        $colors = config("colors");

        return $colors[strlen($name) % count($colors)];
    }
```suggestion protected function getRandomColor(string $name): string { $colors = config("colors"); return $colors[strlen($name) % count($colors)]; } ```
@@ -0,0 +31,4 @@
return $this->generator->rounded()
->background($this->getColor($user->name))
->color("#F4F8FD")
->smooth()
krzysztofrewak (Migrated from github.com) commented 2022-01-18 13:58:31 +01:00

Maybe this would be better?

            ->smooth()
            ->fontSize(0.33)
Maybe this would be better? ```suggestion ->smooth() ->fontSize(0.33) ```
@@ -0,0 +33,4 @@
->color("#F4F8FD")
->smooth()
->fontSize(0.33)
->generateSvg($user->name);
krzysztofrewak (Migrated from github.com) commented 2022-01-18 13:59:14 +01:00

Have you checked if that works with Polish signs? Is Łukasz Żbik a valid name for this package?

Have you checked if that works with Polish signs? Is `Łukasz Żbik` a valid name for this package?
@@ -11,2 +11,4 @@
public static $wrap = false;
public function toArray($request): array
{
krzysztofrewak (Migrated from github.com) commented 2022-01-18 14:04:10 +01:00

I wouldn't use trashed word anywhere outside Laravel. It has bad connotations. ;)

I wouldn't use `trashed` word anywhere outside Laravel. It has bad connotations. ;)
krzysztofrewak (Migrated from github.com) commented 2022-01-18 14:05:39 +01:00
            {name: 'Użytkownicy', href: '/uzytkownicy', current: false},

I would use Polish routes for frontend. Backend can be in English.

```suggestion {name: 'Użytkownicy', href: '/uzytkownicy', current: false}, ``` I would use Polish routes for frontend. Backend can be in English.
krzysztofrewak (Migrated from github.com) commented 2022-01-18 14:06:01 +01:00

Could you enforce trailing commas in eslint?

Could you enforce trailing commas in eslint?
EwelinaLasowy (Migrated from github.com) reviewed 2022-01-18 14:21:33 +01:00
@@ -0,0 +33,4 @@
->color("#F4F8FD")
->smooth()
->fontSize(0.33)
->generateSvg($user->name);
EwelinaLasowy (Migrated from github.com) commented 2022-01-18 14:21:33 +01:00

It works.
image

It works. ![image](https://user-images.githubusercontent.com/56546832/149945138-577727a8-0b69-4640-af2b-156505fc593c.png)
Baakoma (Migrated from github.com) reviewed 2022-01-18 14:49:44 +01:00
Baakoma (Migrated from github.com) commented 2022-01-18 14:49:43 +01:00

You mean all GET routes in polish and POST/PUT/DELETE in english?

You mean all GET routes in polish and POST/PUT/DELETE in english?
EwelinaLasowy (Migrated from github.com) approved these changes 2022-01-19 09:31:01 +01:00
krzysztofrewak (Migrated from github.com) approved these changes 2022-01-19 10:53:32 +01:00
Sign in to join this conversation.