|
79901
|
2793
|
25
|
2026-05-28T06:47:20.977474+00:00
|
/Users/lukas/.screenpipe/data/data/2026-05-28/1779 /Users/lukas/.screenpipe/data/data/2026-05-28/1779950840977_m2.jpg...
|
PhpStorm
|
faVsco.js – FieldTransformer.php
|
1
|
NULL
|
monitor_2
|
NULL
|
NULL
|
NULL
|
NULL
|
Project: faVsco.js, menu
JY-20915-fix-missing-head Project: faVsco.js, menu
JY-20915-fix-missing-header-text-relay, menu
Start Listening for PHP Debug Connections
TextRelayServiceTest
Run 'TextRelayServiceTest'
Debug 'TextRelayServiceTest'
More Actions
JetBrains AI
Search Everywhere
IDE and Project Settings
Sync Changes
Hide This Notification
Code changed:
Hide
11
1
Previous Highlighted Error
Next Highlighted Error
<?php
namespace Jiminny\Http\Transformers;
use Jiminny\Models\Crm\Field;
use Jiminny\Models\Crm\Profile;
use League\Fractal\Resource\Collection;
use League\Fractal\TransformerAbstract;
class FieldTransformer extends TransformerAbstract
{
protected array $availableIncludes = [
'options',
];
private ?Profile $profile;
private bool $noDefault = false;
public function __construct(?Profile $profile = null)
{
$this->profile = $profile;
}
public function setNoDefault(bool $noDefault)
{
$this->noDefault = $noDefault;
}
public function transform(Field $field): array
{
$defaultValue = $field->default_value;
$type = $field->type;
if (\is_bool($defaultValue)) {
$defaultValue = (bool) $defaultValue;
}
return [
'id' => $field->id_string,
'objectType' => $field->object_type,
'label' => $field->label,
'fieldName' => $field->crm_provider_id,
'type' => $type,
'enabled' => $field->is_selectable,
'length' => $field->length,
'defaultValue' => $defaultValue,
];
}
public function includeOptions(Field $field): ?Collection
{
if ($field->isPicklist() && $values = $field->values) {
// if ($field->type === Field::TYPE_PICKLIST && $values = $field->values) {
// This gets a little complex. We need to check if this field has any record type constraints for the profile.
if (
$this->profile
&& ($recordType = $this->profile->{$field->object_type . 'RecordType'})
&& $recordType->fieldValues()->where('crm_field_id', $field->id)->exists()
) {
// Fetch the values specific for this record type.
$values = $recordType->fieldValues()->where('crm_field_id', $field->id)->get();
}
if ($this->noDefault) {
foreach ($values as $value) {
$value->is_default = false;
}
}
return $this->collection($values, new FieldValueTransformer());
}
return null;
}
}
A
id
B
uuid (UUID with time-low and time-high swapped)
C
crm_configuration_id
D
crm_provider_id
E
label
F
description
G
type
H
length
I
default_value
J
object_type
K
is_selectable
L
is_mandatory
M
is_filterable
N
is_indexable
O
created_at
P
updated_at
Q
is_readonly
Select All
1885
1885
39
58a51d4d-0ca7-49f0-9b2c-e16027877cc5
58a51d4d-0ca7-49f0-9b2c-e16027877cc5
picktestmulti__c
39
39
39
ReminderDateTime
ReminderDateTime
picktestmulti__c
Reminder Date/Time
Reminder Date/Time...
|
[{"role":"AXButton","text" [{"role":"AXButton","text":"Project: faVsco.js, menu","depth":5,"bounds":{"left":0.025930852,"top":0.019952115,"width":0.03856383,"height":0.025538707},"on_screen":true,"help_text":"~/jiminny/app","role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"JY-20915-fix-missing-header-text-relay, menu","depth":5,"bounds":{"left":0.064494684,"top":0.019952115,"width":0.09740692,"height":0.025538707},"on_screen":true,"help_text":"Git Branch: JY-20915-fix-missing-header-text-relay","role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Start Listening for PHP Debug Connections","depth":5,"bounds":{"left":0.8374335,"top":0.019952115,"width":0.011303191,"height":0.025538707},"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"TextRelayServiceTest","depth":6,"bounds":{"left":0.85272604,"top":0.019952115,"width":0.062832445,"height":0.025538707},"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Run 'TextRelayServiceTest'","depth":6,"bounds":{"left":0.9155585,"top":0.019952115,"width":0.011303191,"height":0.025538707},"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Debug 'TextRelayServiceTest'","depth":6,"bounds":{"left":0.9268617,"top":0.019952115,"width":0.011303191,"height":0.025538707},"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"More Actions","depth":6,"bounds":{"left":0.9381649,"top":0.019952115,"width":0.011303191,"height":0.025538707},"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"JetBrains AI","depth":5,"bounds":{"left":0.96609044,"top":0.019952115,"width":0.011303191,"height":0.025538707},"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Search Everywhere","depth":5,"bounds":{"left":0.9773936,"top":0.019952115,"width":0.011303191,"height":0.025538707},"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"IDE and Project Settings","depth":5,"bounds":{"left":0.9886968,"top":0.019952115,"width":0.011303186,"height":0.025538707},"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Sync Changes","depth":4,"bounds":{"left":0.27027926,"top":1.0,"width":0.008643617,"height":0.0},"on_screen":false,"role_description":"button","is_enabled":false,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Hide This Notification","depth":4,"bounds":{"left":0.27027926,"top":1.0,"width":0.008643617,"height":0.0},"on_screen":false,"role_description":"button","is_enabled":false,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Code changed:","depth":4,"bounds":{"left":0.27027926,"top":1.0,"width":0.042220745,"height":0.0},"on_screen":false,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Hide","depth":4,"bounds":{"left":0.27027926,"top":1.0,"width":0.008643617,"height":0.0},"on_screen":false,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXStaticText","text":"11","depth":4,"bounds":{"left":0.37699467,"top":0.12529927,"width":0.008976064,"height":0.015163607},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"1","depth":4,"bounds":{"left":0.3879654,"top":0.12529927,"width":0.00731383,"height":0.015163607},"on_screen":true,"role_description":"text"},{"role":"AXButton","text":"Previous Highlighted Error","depth":4,"bounds":{"left":0.39694148,"top":0.123703115,"width":0.00731383,"height":0.018355945},"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Next Highlighted Error","depth":4,"bounds":{"left":0.40425533,"top":0.123703115,"width":0.006981383,"height":0.018355945},"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXTextArea","text":"<?php\n\nnamespace Jiminny\\Http\\Transformers;\n\nuse Jiminny\\Models\\Crm\\Field;\nuse Jiminny\\Models\\Crm\\Profile;\nuse League\\Fractal\\Resource\\Collection;\nuse League\\Fractal\\TransformerAbstract;\n\nclass FieldTransformer extends TransformerAbstract\n{\n protected array $availableIncludes = [\n 'options',\n ];\n private ?Profile $profile;\n\n private bool $noDefault = false;\n\n public function __construct(?Profile $profile = null)\n {\n $this->profile = $profile;\n }\n\n public function setNoDefault(bool $noDefault)\n {\n $this->noDefault = $noDefault;\n }\n\n public function transform(Field $field): array\n {\n $defaultValue = $field->default_value;\n $type = $field->type;\n\n if (\\is_bool($defaultValue)) {\n $defaultValue = (bool) $defaultValue;\n }\n\n return [\n 'id' => $field->id_string,\n 'objectType' => $field->object_type,\n 'label' => $field->label,\n 'fieldName' => $field->crm_provider_id,\n 'type' => $type,\n 'enabled' => $field->is_selectable,\n 'length' => $field->length,\n 'defaultValue' => $defaultValue,\n ];\n }\n\n public function includeOptions(Field $field): ?Collection\n {\n if ($field->isPicklist() && $values = $field->values) {\n// if ($field->type === Field::TYPE_PICKLIST && $values = $field->values) {\n // This gets a little complex. We need to check if this field has any record type constraints for the profile.\n if (\n $this->profile\n && ($recordType = $this->profile->{$field->object_type . 'RecordType'})\n && $recordType->fieldValues()->where('crm_field_id', $field->id)->exists()\n ) {\n // Fetch the values specific for this record type.\n $values = $recordType->fieldValues()->where('crm_field_id', $field->id)->get();\n }\n\n if ($this->noDefault) {\n foreach ($values as $value) {\n $value->is_default = false;\n }\n }\n\n return $this->collection($values, new FieldValueTransformer());\n }\n\n return null;\n }\n}","depth":4,"on_screen":true,"value":"<?php\n\nnamespace Jiminny\\Http\\Transformers;\n\nuse Jiminny\\Models\\Crm\\Field;\nuse Jiminny\\Models\\Crm\\Profile;\nuse League\\Fractal\\Resource\\Collection;\nuse League\\Fractal\\TransformerAbstract;\n\nclass FieldTransformer extends TransformerAbstract\n{\n protected array $availableIncludes = [\n 'options',\n ];\n private ?Profile $profile;\n\n private bool $noDefault = false;\n\n public function __construct(?Profile $profile = null)\n {\n $this->profile = $profile;\n }\n\n public function setNoDefault(bool $noDefault)\n {\n $this->noDefault = $noDefault;\n }\n\n public function transform(Field $field): array\n {\n $defaultValue = $field->default_value;\n $type = $field->type;\n\n if (\\is_bool($defaultValue)) {\n $defaultValue = (bool) $defaultValue;\n }\n\n return [\n 'id' => $field->id_string,\n 'objectType' => $field->object_type,\n 'label' => $field->label,\n 'fieldName' => $field->crm_provider_id,\n 'type' => $type,\n 'enabled' => $field->is_selectable,\n 'length' => $field->length,\n 'defaultValue' => $defaultValue,\n ];\n }\n\n public function includeOptions(Field $field): ?Collection\n {\n if ($field->isPicklist() && $values = $field->values) {\n// if ($field->type === Field::TYPE_PICKLIST && $values = $field->values) {\n // This gets a little complex. We need to check if this field has any record type constraints for the profile.\n if (\n $this->profile\n && ($recordType = $this->profile->{$field->object_type . 'RecordType'})\n && $recordType->fieldValues()->where('crm_field_id', $field->id)->exists()\n ) {\n // Fetch the values specific for this record type.\n $values = $recordType->fieldValues()->where('crm_field_id', $field->id)->get();\n }\n\n if ($this->noDefault) {\n foreach ($values as $value) {\n $value->is_default = false;\n }\n }\n\n return $this->collection($values, new FieldValueTransformer());\n }\n\n return null;\n }\n}","role_description":"text entry area","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXStaticText","text":"A","depth":4,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"id","depth":5,"bounds":{"left":0.27027926,"top":1.0,"width":0.020944148,"height":0.0},"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"B","depth":4,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"uuid (UUID with time-low and time-high swapped)","depth":5,"bounds":{"left":0.27027926,"top":1.0,"width":0.020944148,"height":0.0},"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"C","depth":4,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"crm_configuration_id","depth":5,"bounds":{"left":0.27027926,"top":1.0,"width":0.020944148,"height":0.0},"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"D","depth":4,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"crm_provider_id","depth":5,"bounds":{"left":0.27027926,"top":1.0,"width":0.020944148,"height":0.0},"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"E","depth":4,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"label","depth":5,"bounds":{"left":0.27027926,"top":1.0,"width":0.020944148,"height":0.0},"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"F","depth":4,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"description","depth":5,"bounds":{"left":0.27027926,"top":1.0,"width":0.020944148,"height":0.0},"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"G","depth":4,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"type","depth":5,"bounds":{"left":0.27027926,"top":1.0,"width":0.020944148,"height":0.0},"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"H","depth":4,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"length","depth":5,"bounds":{"left":0.27027926,"top":1.0,"width":0.020944148,"height":0.0},"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"I","depth":4,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"default_value","depth":5,"bounds":{"left":0.27027926,"top":1.0,"width":0.020944148,"height":0.0},"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"J","depth":4,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"object_type","depth":5,"bounds":{"left":0.27027926,"top":1.0,"width":0.020944148,"height":0.0},"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"K","depth":4,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"is_selectable","depth":5,"bounds":{"left":0.27027926,"top":1.0,"width":0.020944148,"height":0.0},"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"L","depth":4,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"is_mandatory","depth":5,"bounds":{"left":0.27027926,"top":1.0,"width":0.020944148,"height":0.0},"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"M","depth":4,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"is_filterable","depth":5,"bounds":{"left":0.27027926,"top":1.0,"width":0.020944148,"height":0.0},"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"N","depth":4,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"is_indexable","depth":5,"bounds":{"left":0.27027926,"top":1.0,"width":0.020944148,"height":0.0},"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"O","depth":4,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"created_at","depth":5,"bounds":{"left":0.27027926,"top":1.0,"width":0.020944148,"height":0.0},"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"P","depth":4,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"updated_at","depth":5,"bounds":{"left":0.27027926,"top":1.0,"width":0.020944148,"height":0.0},"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"Q","depth":4,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"is_readonly","depth":5,"bounds":{"left":0.27027926,"top":1.0,"width":0.020944148,"height":0.0},"on_screen":false,"role_description":"text"},{"role":"AXButton","text":"Select All","depth":4,"bounds":{"left":0.41156915,"top":0.14365523,"width":0.007978723,"height":0.0207502},"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXCell","text":"1885","depth":6,"bounds":{"left":0.41988033,"top":0.16520351,"width":0.034242023,"height":0.0207502},"on_screen":true,"role_description":"cell"},{"role":"AXStaticText","text":"1885","depth":7,"bounds":{"left":0.41988033,"top":0.16520351,"width":0.034242023,"height":0.0207502},"on_screen":true,"role_description":"text"},{"role":"AXTextArea","text":"39","depth":8,"bounds":{"left":0.27027926,"top":1.0,"width":0.0787899,"height":0.0},"on_screen":false,"value":"39","role_description":"text entry area","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXCell","text":"58a51d4d-0ca7-49f0-9b2c-e16027877cc5","depth":6,"bounds":{"left":0.45445478,"top":0.16520351,"width":0.10073138,"height":0.0207502},"on_screen":true,"role_description":"cell"},{"role":"AXStaticText","text":"58a51d4d-0ca7-49f0-9b2c-e16027877cc5","depth":7,"bounds":{"left":0.45445478,"top":0.16520351,"width":0.10073138,"height":0.0207502},"on_screen":true,"role_description":"text"},{"role":"AXTextArea","text":"picktestmulti__c","depth":8,"bounds":{"left":0.27027926,"top":1.0,"width":0.050199468,"height":0.0},"on_screen":false,"value":"picktestmulti__c","role_description":"text entry area","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXCell","text":"39","depth":6,"bounds":{"left":0.5555186,"top":0.16520351,"width":0.080784574,"height":0.0207502},"on_screen":true,"role_description":"cell"},{"role":"AXStaticText","text":"39","depth":7,"bounds":{"left":0.5555186,"top":0.16520351,"width":0.080784574,"height":0.0207502},"on_screen":true,"role_description":"text"},{"role":"AXTextArea","text":"39","depth":8,"bounds":{"left":0.27027926,"top":1.0,"width":0.0787899,"height":0.0},"on_screen":false,"value":"39","role_description":"text entry area","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXCell","text":"ReminderDateTime","depth":6,"bounds":{"left":0.63663566,"top":0.16520351,"width":0.06781915,"height":0.0207502},"on_screen":true,"role_description":"cell"},{"role":"AXStaticText","text":"ReminderDateTime","depth":7,"bounds":{"left":0.63663566,"top":0.16520351,"width":0.06781915,"height":0.0207502},"on_screen":true,"role_description":"text"},{"role":"AXTextArea","text":"picktestmulti__c","depth":8,"bounds":{"left":0.27027926,"top":1.0,"width":0.050199468,"height":0.0},"on_screen":false,"value":"picktestmulti__c","role_description":"text entry area","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXCell","text":"Reminder Date/Time","depth":6,"bounds":{"left":0.70478725,"top":0.16520351,"width":0.05219415,"height":0.0207502},"on_screen":true,"role_description":"cell"},{"role":"AXStaticText","text":"Reminder Date/Time","depth":7,"bounds":{"left":0.70478725,"top":0.16520351,"width":0.05219415,"height":0.0207502},"on_screen":true,"role_description":"text"}]...
|
-1485668980241007621
|
-7589146504243105357
|
click
|
accessibility
|
NULL
|
Project: faVsco.js, menu
JY-20915-fix-missing-head Project: faVsco.js, menu
JY-20915-fix-missing-header-text-relay, menu
Start Listening for PHP Debug Connections
TextRelayServiceTest
Run 'TextRelayServiceTest'
Debug 'TextRelayServiceTest'
More Actions
JetBrains AI
Search Everywhere
IDE and Project Settings
Sync Changes
Hide This Notification
Code changed:
Hide
11
1
Previous Highlighted Error
Next Highlighted Error
<?php
namespace Jiminny\Http\Transformers;
use Jiminny\Models\Crm\Field;
use Jiminny\Models\Crm\Profile;
use League\Fractal\Resource\Collection;
use League\Fractal\TransformerAbstract;
class FieldTransformer extends TransformerAbstract
{
protected array $availableIncludes = [
'options',
];
private ?Profile $profile;
private bool $noDefault = false;
public function __construct(?Profile $profile = null)
{
$this->profile = $profile;
}
public function setNoDefault(bool $noDefault)
{
$this->noDefault = $noDefault;
}
public function transform(Field $field): array
{
$defaultValue = $field->default_value;
$type = $field->type;
if (\is_bool($defaultValue)) {
$defaultValue = (bool) $defaultValue;
}
return [
'id' => $field->id_string,
'objectType' => $field->object_type,
'label' => $field->label,
'fieldName' => $field->crm_provider_id,
'type' => $type,
'enabled' => $field->is_selectable,
'length' => $field->length,
'defaultValue' => $defaultValue,
];
}
public function includeOptions(Field $field): ?Collection
{
if ($field->isPicklist() && $values = $field->values) {
// if ($field->type === Field::TYPE_PICKLIST && $values = $field->values) {
// This gets a little complex. We need to check if this field has any record type constraints for the profile.
if (
$this->profile
&& ($recordType = $this->profile->{$field->object_type . 'RecordType'})
&& $recordType->fieldValues()->where('crm_field_id', $field->id)->exists()
) {
// Fetch the values specific for this record type.
$values = $recordType->fieldValues()->where('crm_field_id', $field->id)->get();
}
if ($this->noDefault) {
foreach ($values as $value) {
$value->is_default = false;
}
}
return $this->collection($values, new FieldValueTransformer());
}
return null;
}
}
A
id
B
uuid (UUID with time-low and time-high swapped)
C
crm_configuration_id
D
crm_provider_id
E
label
F
description
G
type
H
length
I
default_value
J
object_type
K
is_selectable
L
is_mandatory
M
is_filterable
N
is_indexable
O
created_at
P
updated_at
Q
is_readonly
Select All
1885
1885
39
58a51d4d-0ca7-49f0-9b2c-e16027877cc5
58a51d4d-0ca7-49f0-9b2c-e16027877cc5
picktestmulti__c
39
39
39
ReminderDateTime
ReminderDateTime
picktestmulti__c
Reminder Date/Time
Reminder Date/Time...
|
NULL
|
NULL
|
NULL
|
NULL
|
|
79900
|
2792
|
32
|
2026-05-28T06:47:18.146971+00:00
|
/Users/lukas/.screenpipe/data/data/2026-05-28/1779 /Users/lukas/.screenpipe/data/data/2026-05-28/1779950838146_m1.jpg...
|
PhpStorm
|
faVsco.js – FieldTransformer.php
|
1
|
NULL
|
monitor_1
|
NULL
|
NULL
|
NULL
|
NULL
|
Project: faVsco.js, menu
JY-20915-fix-missing-head Project: faVsco.js, menu
JY-20915-fix-missing-header-text-relay, menu
Start Listening for PHP Debug Connections
TextRelayServiceTest
Run 'TextRelayServiceTest'
Debug 'TextRelayServiceTest'
More Actions
JetBrains AI
Search Everywhere
IDE and Project Settings
Sync Changes
Hide This Notification
Code changed:
Hide
11
1
Previous Highlighted Error
Next Highlighted Error
<?php
namespace Jiminny\Http\Transformers;
use Jiminny\Models\Crm\Field;
use Jiminny\Models\Crm\Profile;
use League\Fractal\Resource\Collection;
use League\Fractal\TransformerAbstract;
class FieldTransformer extends TransformerAbstract
{
protected array $availableIncludes = [
'options',
];
private ?Profile $profile;
private bool $noDefault = false;
public function __construct(?Profile $profile = null)
{
$this->profile = $profile;
}
public function setNoDefault(bool $noDefault)
{
$this->noDefault = $noDefault;
}
public function transform(Field $field): array
{
$defaultValue = $field->default_value;
$type = $field->type;
if (\is_bool($defaultValue)) {
$defaultValue = (bool) $defaultValue;
}
return [
'id' => $field->id_string,
'objectType' => $field->object_type,
'label' => $field->label,
'fieldName' => $field->crm_provider_id,
'type' => $type,
'enabled' => $field->is_selectable,
'length' => $field->length,
'defaultValue' => $defaultValue,
];
}
public function includeOptions(Field $field): ?Collection
{
if ($field->isPicklist() && $values = $field->values) {
// if ($field->type === Field::TYPE_PICKLIST && $values = $field->values) {
// This gets a little complex. We need to check if this field has any record type constraints for the profile.
if (
$this->profile
&& ($recordType = $this->profile->{$field->object_type . 'RecordType'})
&& $recordType->fieldValues()->where('crm_field_id', $field->id)->exists()
) {
// Fetch the values specific for this record type.
$values = $recordType->fieldValues()->where('crm_field_id', $field->id)->get();
}
if ($this->noDefault) {
foreach ($values as $value) {
$value->is_default = false;
}
}
return $this->collection($values, new FieldValueTransformer());
}
return null;
}
}
A
id
B
uuid (UUID with time-low and time-high swapped)
C
crm_configuration_id
D
crm_provider_id
E
label
F
description
G
type
H
length
I
default_value
J
object_type
K
is_selectable
L
is_mandatory
M
is_filterable
N
is_indexable
O
created_at
P
updated_at
Q
is_readonly
Select All
1885
1885
39
58a51d4d-0ca7-49f0-9b2c-e16027877cc5
58a51d4d-0ca7-49f0-9b2c-e16027877cc5
picktestmulti__c
39
39
39
ReminderDateTime
ReminderDateTime
picktestmulti__c
Reminder Date/Time
Reminder Date/Time
picktestmulti__c
<null>
<null>
picktestmulti__c
datetime
datetime
picktestmulti__c
<null>
<null>
39
<null>
<null>
picktestmulti__c
event
event
picktestmulti__c
1
1
39
0
0
39
0
0
39
0
0
39
2022-12-15 14:53:05
2022-12-15 14:53:05
picktestmulti__c...
|
[{"role":"AXButton","text" [{"role":"AXButton","text":"Project: faVsco.js, menu","depth":5,"on_screen":true,"help_text":"~/jiminny/app","role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"JY-20915-fix-missing-header-text-relay, menu","depth":5,"on_screen":true,"help_text":"Git Branch: JY-20915-fix-missing-header-text-relay","role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Start Listening for PHP Debug Connections","depth":5,"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"TextRelayServiceTest","depth":6,"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Run 'TextRelayServiceTest'","depth":6,"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Debug 'TextRelayServiceTest'","depth":6,"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"More Actions","depth":6,"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"JetBrains AI","depth":5,"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Search Everywhere","depth":5,"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"IDE and Project Settings","depth":5,"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Sync Changes","depth":4,"bounds":{"left":0.0,"top":0.0,"width":0.018055556,"height":0.026666667},"on_screen":false,"role_description":"button","is_enabled":false,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Hide This Notification","depth":4,"bounds":{"left":0.0,"top":0.0,"width":0.018055556,"height":0.026666667},"on_screen":false,"role_description":"button","is_enabled":false,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Code changed:","depth":4,"bounds":{"left":0.0,"top":0.0,"width":0.088194445,"height":0.027777778},"on_screen":false,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Hide","depth":4,"bounds":{"left":0.0,"top":0.0,"width":0.018055556,"height":0.026666667},"on_screen":false,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXStaticText","text":"11","depth":4,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"1","depth":4,"on_screen":true,"role_description":"text"},{"role":"AXButton","text":"Previous Highlighted Error","depth":4,"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Next Highlighted Error","depth":4,"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXTextArea","text":"<?php\n\nnamespace Jiminny\\Http\\Transformers;\n\nuse Jiminny\\Models\\Crm\\Field;\nuse Jiminny\\Models\\Crm\\Profile;\nuse League\\Fractal\\Resource\\Collection;\nuse League\\Fractal\\TransformerAbstract;\n\nclass FieldTransformer extends TransformerAbstract\n{\n protected array $availableIncludes = [\n 'options',\n ];\n private ?Profile $profile;\n\n private bool $noDefault = false;\n\n public function __construct(?Profile $profile = null)\n {\n $this->profile = $profile;\n }\n\n public function setNoDefault(bool $noDefault)\n {\n $this->noDefault = $noDefault;\n }\n\n public function transform(Field $field): array\n {\n $defaultValue = $field->default_value;\n $type = $field->type;\n\n if (\\is_bool($defaultValue)) {\n $defaultValue = (bool) $defaultValue;\n }\n\n return [\n 'id' => $field->id_string,\n 'objectType' => $field->object_type,\n 'label' => $field->label,\n 'fieldName' => $field->crm_provider_id,\n 'type' => $type,\n 'enabled' => $field->is_selectable,\n 'length' => $field->length,\n 'defaultValue' => $defaultValue,\n ];\n }\n\n public function includeOptions(Field $field): ?Collection\n {\n if ($field->isPicklist() && $values = $field->values) {\n// if ($field->type === Field::TYPE_PICKLIST && $values = $field->values) {\n // This gets a little complex. We need to check if this field has any record type constraints for the profile.\n if (\n $this->profile\n && ($recordType = $this->profile->{$field->object_type . 'RecordType'})\n && $recordType->fieldValues()->where('crm_field_id', $field->id)->exists()\n ) {\n // Fetch the values specific for this record type.\n $values = $recordType->fieldValues()->where('crm_field_id', $field->id)->get();\n }\n\n if ($this->noDefault) {\n foreach ($values as $value) {\n $value->is_default = false;\n }\n }\n\n return $this->collection($values, new FieldValueTransformer());\n }\n\n return null;\n }\n}","depth":4,"on_screen":true,"value":"<?php\n\nnamespace Jiminny\\Http\\Transformers;\n\nuse Jiminny\\Models\\Crm\\Field;\nuse Jiminny\\Models\\Crm\\Profile;\nuse League\\Fractal\\Resource\\Collection;\nuse League\\Fractal\\TransformerAbstract;\n\nclass FieldTransformer extends TransformerAbstract\n{\n protected array $availableIncludes = [\n 'options',\n ];\n private ?Profile $profile;\n\n private bool $noDefault = false;\n\n public function __construct(?Profile $profile = null)\n {\n $this->profile = $profile;\n }\n\n public function setNoDefault(bool $noDefault)\n {\n $this->noDefault = $noDefault;\n }\n\n public function transform(Field $field): array\n {\n $defaultValue = $field->default_value;\n $type = $field->type;\n\n if (\\is_bool($defaultValue)) {\n $defaultValue = (bool) $defaultValue;\n }\n\n return [\n 'id' => $field->id_string,\n 'objectType' => $field->object_type,\n 'label' => $field->label,\n 'fieldName' => $field->crm_provider_id,\n 'type' => $type,\n 'enabled' => $field->is_selectable,\n 'length' => $field->length,\n 'defaultValue' => $defaultValue,\n ];\n }\n\n public function includeOptions(Field $field): ?Collection\n {\n if ($field->isPicklist() && $values = $field->values) {\n// if ($field->type === Field::TYPE_PICKLIST && $values = $field->values) {\n // This gets a little complex. We need to check if this field has any record type constraints for the profile.\n if (\n $this->profile\n && ($recordType = $this->profile->{$field->object_type . 'RecordType'})\n && $recordType->fieldValues()->where('crm_field_id', $field->id)->exists()\n ) {\n // Fetch the values specific for this record type.\n $values = $recordType->fieldValues()->where('crm_field_id', $field->id)->get();\n }\n\n if ($this->noDefault) {\n foreach ($values as $value) {\n $value->is_default = false;\n }\n }\n\n return $this->collection($values, new FieldValueTransformer());\n }\n\n return null;\n }\n}","role_description":"text entry area","is_enabled":true,"is_focused":true,"is_selected":false,"is_expanded":false},{"role":"AXStaticText","text":"A","depth":4,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"id","depth":5,"bounds":{"left":0.0,"top":0.0,"width":0.04375,"height":0.03},"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"B","depth":4,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"uuid (UUID with time-low and time-high swapped)","depth":5,"bounds":{"left":0.0,"top":0.0,"width":0.04375,"height":0.03},"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"C","depth":4,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"crm_configuration_id","depth":5,"bounds":{"left":0.0,"top":0.0,"width":0.04375,"height":0.03},"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"D","depth":4,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"crm_provider_id","depth":5,"bounds":{"left":0.0,"top":0.0,"width":0.04375,"height":0.03},"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"E","depth":4,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"label","depth":5,"bounds":{"left":0.0,"top":0.0,"width":0.04375,"height":0.03},"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"F","depth":4,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"description","depth":5,"bounds":{"left":0.0,"top":0.0,"width":0.04375,"height":0.03},"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"G","depth":4,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"type","depth":5,"bounds":{"left":0.0,"top":0.0,"width":0.04375,"height":0.03},"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"H","depth":4,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"length","depth":5,"bounds":{"left":0.0,"top":0.0,"width":0.04375,"height":0.03},"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"I","depth":4,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"default_value","depth":5,"bounds":{"left":0.0,"top":0.0,"width":0.04375,"height":0.03},"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"J","depth":4,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"object_type","depth":5,"bounds":{"left":0.0,"top":0.0,"width":0.04375,"height":0.03},"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"K","depth":4,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"is_selectable","depth":5,"bounds":{"left":0.0,"top":0.0,"width":0.04375,"height":0.03},"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"L","depth":4,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"is_mandatory","depth":5,"bounds":{"left":0.0,"top":0.0,"width":0.04375,"height":0.03},"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"M","depth":4,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"is_filterable","depth":5,"bounds":{"left":0.0,"top":0.0,"width":0.04375,"height":0.03},"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"N","depth":4,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"is_indexable","depth":5,"bounds":{"left":0.0,"top":0.0,"width":0.04375,"height":0.03},"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"O","depth":4,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"created_at","depth":5,"bounds":{"left":0.0,"top":0.0,"width":0.04375,"height":0.03},"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"P","depth":4,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"updated_at","depth":5,"bounds":{"left":0.0,"top":0.0,"width":0.04375,"height":0.03},"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"Q","depth":4,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"is_readonly","depth":5,"bounds":{"left":0.0,"top":0.0,"width":0.04375,"height":0.03},"on_screen":false,"role_description":"text"},{"role":"AXButton","text":"Select All","depth":4,"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXCell","text":"1885","depth":6,"on_screen":true,"role_description":"cell"},{"role":"AXStaticText","text":"1885","depth":7,"on_screen":true,"role_description":"text"},{"role":"AXTextArea","text":"39","depth":8,"bounds":{"left":0.0,"top":0.0,"width":0.16458334,"height":0.024444444},"on_screen":false,"value":"39","role_description":"text entry area","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXCell","text":"58a51d4d-0ca7-49f0-9b2c-e16027877cc5","depth":6,"on_screen":true,"role_description":"cell"},{"role":"AXStaticText","text":"58a51d4d-0ca7-49f0-9b2c-e16027877cc5","depth":7,"on_screen":true,"role_description":"text"},{"role":"AXTextArea","text":"picktestmulti__c","depth":8,"bounds":{"left":0.0,"top":0.0,"width":0.10486111,"height":0.024444444},"on_screen":false,"value":"picktestmulti__c","role_description":"text entry area","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXCell","text":"39","depth":6,"on_screen":true,"role_description":"cell"},{"role":"AXStaticText","text":"39","depth":7,"on_screen":true,"role_description":"text"},{"role":"AXTextArea","text":"39","depth":8,"bounds":{"left":0.0,"top":0.0,"width":0.16458334,"height":0.024444444},"on_screen":false,"value":"39","role_description":"text entry area","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXCell","text":"ReminderDateTime","depth":6,"on_screen":true,"role_description":"cell"},{"role":"AXStaticText","text":"ReminderDateTime","depth":7,"on_screen":true,"role_description":"text"},{"role":"AXTextArea","text":"picktestmulti__c","depth":8,"bounds":{"left":0.0,"top":0.0,"width":0.10486111,"height":0.024444444},"on_screen":false,"value":"picktestmulti__c","role_description":"text entry area","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXCell","text":"Reminder Date/Time","depth":6,"on_screen":true,"role_description":"cell"},{"role":"AXStaticText","text":"Reminder Date/Time","depth":7,"on_screen":true,"role_description":"text"},{"role":"AXTextArea","text":"picktestmulti__c","depth":8,"bounds":{"left":0.0,"top":0.0,"width":0.10486111,"height":0.024444444},"on_screen":false,"value":"picktestmulti__c","role_description":"text entry area","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXCell","text":"<null>","depth":6,"on_screen":true,"role_description":"cell"},{"role":"AXStaticText","text":"<null>","depth":7,"on_screen":true,"role_description":"text"},{"role":"AXTextArea","text":"picktestmulti__c","depth":8,"bounds":{"left":0.0,"top":0.0,"width":0.10486111,"height":0.024444444},"on_screen":false,"value":"picktestmulti__c","role_description":"text entry area","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXCell","text":"datetime","depth":6,"on_screen":true,"role_description":"cell"},{"role":"AXStaticText","text":"datetime","depth":7,"on_screen":true,"role_description":"text"},{"role":"AXTextArea","text":"picktestmulti__c","depth":8,"bounds":{"left":0.0,"top":0.0,"width":0.10486111,"height":0.024444444},"on_screen":false,"value":"picktestmulti__c","role_description":"text entry area","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXCell","text":"<null>","depth":6,"on_screen":true,"role_description":"cell"},{"role":"AXStaticText","text":"<null>","depth":7,"on_screen":true,"role_description":"text"},{"role":"AXTextArea","text":"39","depth":8,"bounds":{"left":0.0,"top":0.0,"width":0.16458334,"height":0.024444444},"on_screen":false,"value":"39","role_description":"text entry area","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXCell","text":"<null>","depth":6,"on_screen":true,"role_description":"cell"},{"role":"AXStaticText","text":"<null>","depth":7,"on_screen":true,"role_description":"text"},{"role":"AXTextArea","text":"picktestmulti__c","depth":8,"bounds":{"left":0.0,"top":0.0,"width":0.10486111,"height":0.024444444},"on_screen":false,"value":"picktestmulti__c","role_description":"text entry area","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXCell","text":"event","depth":6,"on_screen":true,"role_description":"cell"},{"role":"AXStaticText","text":"event","depth":7,"on_screen":true,"role_description":"text"},{"role":"AXTextArea","text":"picktestmulti__c","depth":8,"bounds":{"left":0.0,"top":0.0,"width":0.10486111,"height":0.024444444},"on_screen":false,"value":"picktestmulti__c","role_description":"text entry area","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXCell","text":"1","depth":6,"on_screen":false,"role_description":"cell"},{"role":"AXStaticText","text":"1","depth":7,"on_screen":false,"role_description":"text"},{"role":"AXTextArea","text":"39","depth":8,"bounds":{"left":0.0,"top":0.0,"width":0.16458334,"height":0.024444444},"on_screen":false,"value":"39","role_description":"text entry area","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXCell","text":"0","depth":6,"on_screen":false,"role_description":"cell"},{"role":"AXStaticText","text":"0","depth":7,"on_screen":false,"role_description":"text"},{"role":"AXTextArea","text":"39","depth":8,"bounds":{"left":0.0,"top":0.0,"width":0.16458334,"height":0.024444444},"on_screen":false,"value":"39","role_description":"text entry area","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXCell","text":"0","depth":6,"on_screen":false,"role_description":"cell"},{"role":"AXStaticText","text":"0","depth":7,"on_screen":false,"role_description":"text"},{"role":"AXTextArea","text":"39","depth":8,"bounds":{"left":0.0,"top":0.0,"width":0.16458334,"height":0.024444444},"on_screen":false,"value":"39","role_description":"text entry area","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXCell","text":"0","depth":6,"on_screen":false,"role_description":"cell"},{"role":"AXStaticText","text":"0","depth":7,"on_screen":false,"role_description":"text"},{"role":"AXTextArea","text":"39","depth":8,"bounds":{"left":0.0,"top":0.0,"width":0.16458334,"height":0.024444444},"on_screen":false,"value":"39","role_description":"text entry area","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXCell","text":"2022-12-15 14:53:05","depth":6,"on_screen":false,"role_description":"cell"},{"role":"AXStaticText","text":"2022-12-15 14:53:05","depth":7,"on_screen":false,"role_description":"text"},{"role":"AXTextArea","text":"picktestmulti__c","depth":8,"bounds":{"left":0.0,"top":0.0,"width":0.10486111,"height":0.024444444},"on_screen":false,"value":"picktestmulti__c","role_description":"text entry area","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false}]...
|
359997250132989537
|
1595909751477451123
|
visual_change
|
accessibility
|
NULL
|
Project: faVsco.js, menu
JY-20915-fix-missing-head Project: faVsco.js, menu
JY-20915-fix-missing-header-text-relay, menu
Start Listening for PHP Debug Connections
TextRelayServiceTest
Run 'TextRelayServiceTest'
Debug 'TextRelayServiceTest'
More Actions
JetBrains AI
Search Everywhere
IDE and Project Settings
Sync Changes
Hide This Notification
Code changed:
Hide
11
1
Previous Highlighted Error
Next Highlighted Error
<?php
namespace Jiminny\Http\Transformers;
use Jiminny\Models\Crm\Field;
use Jiminny\Models\Crm\Profile;
use League\Fractal\Resource\Collection;
use League\Fractal\TransformerAbstract;
class FieldTransformer extends TransformerAbstract
{
protected array $availableIncludes = [
'options',
];
private ?Profile $profile;
private bool $noDefault = false;
public function __construct(?Profile $profile = null)
{
$this->profile = $profile;
}
public function setNoDefault(bool $noDefault)
{
$this->noDefault = $noDefault;
}
public function transform(Field $field): array
{
$defaultValue = $field->default_value;
$type = $field->type;
if (\is_bool($defaultValue)) {
$defaultValue = (bool) $defaultValue;
}
return [
'id' => $field->id_string,
'objectType' => $field->object_type,
'label' => $field->label,
'fieldName' => $field->crm_provider_id,
'type' => $type,
'enabled' => $field->is_selectable,
'length' => $field->length,
'defaultValue' => $defaultValue,
];
}
public function includeOptions(Field $field): ?Collection
{
if ($field->isPicklist() && $values = $field->values) {
// if ($field->type === Field::TYPE_PICKLIST && $values = $field->values) {
// This gets a little complex. We need to check if this field has any record type constraints for the profile.
if (
$this->profile
&& ($recordType = $this->profile->{$field->object_type . 'RecordType'})
&& $recordType->fieldValues()->where('crm_field_id', $field->id)->exists()
) {
// Fetch the values specific for this record type.
$values = $recordType->fieldValues()->where('crm_field_id', $field->id)->get();
}
if ($this->noDefault) {
foreach ($values as $value) {
$value->is_default = false;
}
}
return $this->collection($values, new FieldValueTransformer());
}
return null;
}
}
A
id
B
uuid (UUID with time-low and time-high swapped)
C
crm_configuration_id
D
crm_provider_id
E
label
F
description
G
type
H
length
I
default_value
J
object_type
K
is_selectable
L
is_mandatory
M
is_filterable
N
is_indexable
O
created_at
P
updated_at
Q
is_readonly
Select All
1885
1885
39
58a51d4d-0ca7-49f0-9b2c-e16027877cc5
58a51d4d-0ca7-49f0-9b2c-e16027877cc5
picktestmulti__c
39
39
39
ReminderDateTime
ReminderDateTime
picktestmulti__c
Reminder Date/Time
Reminder Date/Time
picktestmulti__c
<null>
<null>
picktestmulti__c
datetime
datetime
picktestmulti__c
<null>
<null>
39
<null>
<null>
picktestmulti__c
event
event
picktestmulti__c
1
1
39
0
0
39
0
0
39
0
0
39
2022-12-15 14:53:05
2022-12-15 14:53:05
picktestmulti__c...
|
79898
|
NULL
|
NULL
|
NULL
|
|
79899
|
2793
|
24
|
2026-05-28T06:47:13.000520+00:00
|
/Users/lukas/.screenpipe/data/data/2026-05-28/1779 /Users/lukas/.screenpipe/data/data/2026-05-28/1779950833000_m2.jpg...
|
PhpStorm
|
faVsco.js – FieldTransformer.php
|
1
|
NULL
|
monitor_2
|
NULL
|
NULL
|
NULL
|
NULL
|
Project: faVsco.js, menu
JY-20915-fix-missing-head Project: faVsco.js, menu
JY-20915-fix-missing-header-text-relay, menu
Start Listening for PHP Debug Connections
TextRelayServiceTest
Run 'TextRelayServiceTest'
Debug 'TextRelayServiceTest'
More Actions
JetBrains AI
Search Everywhere
IDE and Project Settings...
|
[{"role":"AXButton","text" [{"role":"AXButton","text":"Project: faVsco.js, menu","depth":5,"bounds":{"left":0.025930852,"top":0.019952115,"width":0.03856383,"height":0.025538707},"on_screen":true,"help_text":"~/jiminny/app","role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"JY-20915-fix-missing-header-text-relay, menu","depth":5,"bounds":{"left":0.064494684,"top":0.019952115,"width":0.09740692,"height":0.025538707},"on_screen":true,"help_text":"Git Branch: JY-20915-fix-missing-header-text-relay","role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Start Listening for PHP Debug Connections","depth":5,"bounds":{"left":0.8374335,"top":0.019952115,"width":0.011303191,"height":0.025538707},"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"TextRelayServiceTest","depth":6,"bounds":{"left":0.85272604,"top":0.019952115,"width":0.062832445,"height":0.025538707},"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Run 'TextRelayServiceTest'","depth":6,"bounds":{"left":0.9155585,"top":0.019952115,"width":0.011303191,"height":0.025538707},"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Debug 'TextRelayServiceTest'","depth":6,"bounds":{"left":0.9268617,"top":0.019952115,"width":0.011303191,"height":0.025538707},"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"More Actions","depth":6,"bounds":{"left":0.9381649,"top":0.019952115,"width":0.011303191,"height":0.025538707},"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"JetBrains AI","depth":5,"bounds":{"left":0.96609044,"top":0.019952115,"width":0.011303191,"height":0.025538707},"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Search Everywhere","depth":5,"bounds":{"left":0.9773936,"top":0.019952115,"width":0.011303191,"height":0.025538707},"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"IDE and Project Settings","depth":5,"bounds":{"left":0.9886968,"top":0.019952115,"width":0.011303186,"height":0.025538707},"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false}]...
|
7923424182753190895
|
-8780372176425246254
|
visual_change
|
hybrid
|
NULL
|
Project: faVsco.js, menu
JY-20915-fix-missing-head Project: faVsco.js, menu
JY-20915-fix-missing-header-text-relay, menu
Start Listening for PHP Debug Connections
TextRelayServiceTest
Run 'TextRelayServiceTest'
Debug 'TextRelayServiceTest'
More Actions
JetBrains AI
Search Everywhere
IDE and Project Settings
rnpstomFV faVsco.|s ~$2 JY-20915-fix-missiProinet v© DealStageTransformer.phpresture ronstonmer.onoridld tonstotmer.ondorielovalelon omeone© GroupTransformer.ohocpoo elansotneoneC LanquageDialect TransformeCLavout Enttviranstormer choC Lavout Transformer.ohoC) Lesdtranstormer.oho(CMessagetiranstormer.ohoCMomentitranstormer.onoCNotetiranstormer.onoCNotirestontirans ormer.onocenoorur eommsodtodecennodur ithaeomat ocoarcinsottihne omatooc Paroheiane tmanooipem isronlttnohmorot(© PlaybackPageTransformer.p(© PlaybookTransformer.pho© PlaybookTreeTransformer.phPlaylistActivityTransformer.plPlaylistSharesTransformer.phPlaylistTransformer.php© ProspectsTransformer.phooQueston lfanstommer.ohoc Kolellansouneen© ScorecardRuleTiransformer.olc sactrans ormec.ond) TeamDomainTransformec.ohd8) Teamintcaration Transformer8) Team Transtormec ohoc) Themetirand ormes.choc)Tooic transtormer onoc)Tooic troced trane ormer.oheerealrne nrmor nhre llleor tane nmot nane Wolcodcroeehlind Mmornhrc Korol ahrCooccomposer.ison• Dockerfilecustom.iosravelloSF (iminny@localhost)un crm fields jiminnytalocalhost) x# HS Jocal jiminny@tocalhost# consolel poonA console (EU]A console [STAGING)Ty:AlrowDLQwEOgMCSVYLL+OeANYAV7- WHERE id IN (1885, 3014)=•OROER 81 wuid (UULD with tine-low a-:ae con_configuration_id v* Bcrn_provider_id UJ8 labelM1885 S8a51d4d-8ca7-49f0-9b2c-e16027877ccS39 ReninderDateTimeReminder Date/Tine3814 a3d3dfSa-eaa1-43d0-b95e-1ff4bec8c42839 picktestmulti cpicktestnult30publac tuncizon serwouerau loool Snouetaul...oublac tuncizon transtor Field Smeld: arrawSdetau vailme atel de%deraut wallue?tune asedosvne:ess nooikdeau rVate)DSdefau Vailme KhooiaSdetau thailue:neturn"id' => $field->id_string.'objectType' => $field->object_type'label' => $field->label"fieldName' => $field->crn_provider_id"type' => $type'enabled' => Sfield->is selectable"Length' => Sfield->length"defaultValue' => SdefaultValuelpublic function includeOptions(Field Sfield): PCollectionif (Sfield->isPicklisto d& Svalues = Sfield->values) "if (Sfield»›tyoe == Field::TYPE PTCKLIST 55 Svalues = Sfield-›values) {// This gets a little complex. We need to check if this field has any record type constraintsSthis->orofile&s (SrecordTyoe = Sthis-›orofile->/SSield-sobiecttype . 'RecordTvoe'})&s SrecordTvoe->SieldValues(-yahere("con Sieldid' Ssield->id)-sexists()/ Fetch the values specific for this record type.Svalues = Srecordtype->fieldValues)->ahere(crn_field_1d, Sfield->id)->getO:1f (Sthis->noDefault) {Fonssch vaimae se walla?dsualmnesse datant= tcaxreturn Sthis->collection(Svalues, new FieldValueTransfornerO)=heMactarcauTextRelayServiceTestler henwserwiCtCNUL-PICKIALEVOITOO%L7Thu 28 May 9:47:12+0.The backend API is now correctiy returning the mutti-picklist field with cations. The issue is in the frontend vue-co)ponents pockoco elrosnienere oocomimity woecon cornoernorskeverence Pattern trom DealInsignts/DealView DetaisView DetansView.vue)Delwwascripswitch (tfeldTvoe)torrclolwoe curtencycace "Anta".formFieldType = "date"breokformFieldtype = "select",ondeldivoeseuleseleceor aporcopfre suldosalevehrankformFieldtype = "number",orcanFiles to Uodate in vue-comoonente packaae.Tihe seiwwesummar comwooeot thet raodarsteddAny field type mapping logic that converts CRM field types to form field type:Next Steos1.Uodate the vue-cosponents package to handie au tcoick tisr tyoe2. Bump the version in the package3. Uodate the dependency in /front-end//oackage, fson to the new version4. Run yarn install to get the updated packagThe backend fix is complete and working correctly. The field is being returned with options, but the frontendcomoonent donsn't know how to render eniticotcklet telde vetAsk anything Xol@ Code swioThNwodtur Tatme"ktitres*4 space...
|
79897
|
NULL
|
NULL
|
NULL
|
|
79882
|
2793
|
19
|
2026-05-28T06:46:36.942629+00:00
|
/Users/lukas/.screenpipe/data/data/2026-05-28/1779 /Users/lukas/.screenpipe/data/data/2026-05-28/1779950796942_m2.jpg...
|
PhpStorm
|
faVsco.js – FieldTransformer.php
|
1
|
NULL
|
monitor_2
|
NULL
|
NULL
|
NULL
|
NULL
|
rnpstomViewFV faVsco.|s ~$2 JY-20915-fix-missiproi rnpstomViewFV faVsco.|s ~$2 JY-20915-fix-missiproidet© DealStageTransformer.phpresture ronstonmer.onoridld tonstotmer.ondorielovalelon omeone© GroupTransformer.ohocpoo elansotneoneC) LanquageDialect TransformeCLavout Enttviranstormer choC Lavout Transformer.ohoC) Lesdtranstormer.oho© MessageTransformer oho)CMomentitranstormer.onoCNotetiranstormer.onoCNotrestontttans ormer.onocenoorur eommsodtodecennodur ithaeomat ocoarcinsottihne omatooc Paroheiane tmanooipem isronlttnohmorot(© PlaybackPageTransformer.p(© PlaybookTransformer.pho© PlaybookTreeTransformer.phPlaylistActivityTransformer.plPlaylistSharesTransformer.phPlaylistTransformer.php© ProspectsTransformer.phooQueston lfanstommer.ohoc Kolellansouneen© ScorecardRuleTiransformer.olc sactrans ormec.ond) TeamDomainTransformec.ohd8) Teamintcaration Transformer8) Team Transtormec ohoc) Themetirand ormes.choc)Tooic transtormer onoc)Tooic troced trane ormer.oheerealrne nrmor nhre llleor tane nmot nane Wolcodcroeehlind Mmornhrc Korol ahrCooccomposer.ison• Dockerfilecustom.iosravelloSF fiminny@localhost)un crm fields (jiminnytalocalhost) x# HS Jocal jiminny@tocalhostconsole (PROD)A console (EU]A console [STAGING)Ty:AlrowDLQwEOgMCSVYLL+OeANYAV7- WHERE id IN (1885, 3014)=•OROER 81 wuid (UULD with tine-low a-:ae con_configuration_id v* Bcrn_provider_id U#8 label M1885 S8a51d4d-8ca7-49f0-9b2c-e16027877ccS39 ReninderDateTimeReminder Date/Tine3814 a3d3dfSa-eaa1-43d0-b95e-1ff4bec8c42839 picktestmulti cpicktestnult30publac tuncizon serwouerau loool Snouetaul...oublac tuncizon transtor Field Smeld: arrawSdetau vailme atel de derault wailue?tune asedosvne:essnooilsneau vailue)DSdefau Vailme KhooiaSdetau thailue:neturn"id' => $field->id_string.'objectType' => $field->object_type'label' => $field->label"fieldName' => $field->crn_provider_id"type' => $type'enabled' => Sfield->is selectable"Length' => Sfield->length"defaultValue' => SdefaultValuelpublic function includeOptions(Field Sfield): PCollectionif (Sfield->isPicklisto d& Svalues = Sfield->values) "if (Sfield»›tyoe == Field::TYPE PTCKLIST 55 Svalues = Sfield-›values) {// This gets a little complex. We need to check if this field has any record type constraintsSthis->orofile&s (SrecordTyoe = Sthis-›orofile->/SSield-sobiecttype . 'RecordTvoe'})&s SrecordTvoe->SieldValues(-yahere("con Sieldid' Ssield->id)-sexists()/ Fetch the values specific for this record type.Svalues = Srecordtype->fieldValues)->ahere(crn_field_1d, Sfield->id)->getO:1f (Sthis->noDefault) {Fonssch vaimae se walla?dsualmnesse datant= tcaxreturn Sthis->collection(Svalues, new FieldValueTransfornerO)=ecor othar aonuaoaeMactardau.00%LXThu 28 May 9:46:36TextRelayServiceTestler henwserwiCtCNUL-PICKIALEVOIororened ecumily sommesy mmoneene owostouahtorsscarcinco vue-componchts and ochofmco toiner cuchyThought for 1sAccess to tue act ivity-sumary, vue is prohibited ou ,e acore, You can enable access to a tianore tiles by ena.oouoherorsThought for 1sThought for 1sThe backend API is now correctly returning the multi-picklist field with options. The issue is in the frontendmndarino. Tha net fuftucdtenary comoonant comae from tha salt-cosooshott oacknod (oodh madulae) whichHowever, 1 can see from the Dealinsights components that the frontend has logic to handle field types but onhchocke for oicktst, not enl teofckttetSearched switch,*type in front-end/sroThe backend is now correctly returning the multi-picilist field with options. The issue is in the frontend renderingooke tthe trontend necds to handie the euitcotcklltst. tyoc, but currently only chocke tor ofckiltatPasd malans learAsk anything Xol* eodeswiaTtM Wodtur Teams 20:80 UTE-A2 4 spac...
|
NULL
|
-8095164540799755462
|
NULL
|
visual_change
|
ocr
|
NULL
|
rnpstomViewFV faVsco.|s ~$2 JY-20915-fix-missiproi rnpstomViewFV faVsco.|s ~$2 JY-20915-fix-missiproidet© DealStageTransformer.phpresture ronstonmer.onoridld tonstotmer.ondorielovalelon omeone© GroupTransformer.ohocpoo elansotneoneC) LanquageDialect TransformeCLavout Enttviranstormer choC Lavout Transformer.ohoC) Lesdtranstormer.oho© MessageTransformer oho)CMomentitranstormer.onoCNotetiranstormer.onoCNotrestontttans ormer.onocenoorur eommsodtodecennodur ithaeomat ocoarcinsottihne omatooc Paroheiane tmanooipem isronlttnohmorot(© PlaybackPageTransformer.p(© PlaybookTransformer.pho© PlaybookTreeTransformer.phPlaylistActivityTransformer.plPlaylistSharesTransformer.phPlaylistTransformer.php© ProspectsTransformer.phooQueston lfanstommer.ohoc Kolellansouneen© ScorecardRuleTiransformer.olc sactrans ormec.ond) TeamDomainTransformec.ohd8) Teamintcaration Transformer8) Team Transtormec ohoc) Themetirand ormes.choc)Tooic transtormer onoc)Tooic troced trane ormer.oheerealrne nrmor nhre llleor tane nmot nane Wolcodcroeehlind Mmornhrc Korol ahrCooccomposer.ison• Dockerfilecustom.iosravelloSF fiminny@localhost)un crm fields (jiminnytalocalhost) x# HS Jocal jiminny@tocalhostconsole (PROD)A console (EU]A console [STAGING)Ty:AlrowDLQwEOgMCSVYLL+OeANYAV7- WHERE id IN (1885, 3014)=•OROER 81 wuid (UULD with tine-low a-:ae con_configuration_id v* Bcrn_provider_id U#8 label M1885 S8a51d4d-8ca7-49f0-9b2c-e16027877ccS39 ReninderDateTimeReminder Date/Tine3814 a3d3dfSa-eaa1-43d0-b95e-1ff4bec8c42839 picktestmulti cpicktestnult30publac tuncizon serwouerau loool Snouetaul...oublac tuncizon transtor Field Smeld: arrawSdetau vailme atel de derault wailue?tune asedosvne:essnooilsneau vailue)DSdefau Vailme KhooiaSdetau thailue:neturn"id' => $field->id_string.'objectType' => $field->object_type'label' => $field->label"fieldName' => $field->crn_provider_id"type' => $type'enabled' => Sfield->is selectable"Length' => Sfield->length"defaultValue' => SdefaultValuelpublic function includeOptions(Field Sfield): PCollectionif (Sfield->isPicklisto d& Svalues = Sfield->values) "if (Sfield»›tyoe == Field::TYPE PTCKLIST 55 Svalues = Sfield-›values) {// This gets a little complex. We need to check if this field has any record type constraintsSthis->orofile&s (SrecordTyoe = Sthis-›orofile->/SSield-sobiecttype . 'RecordTvoe'})&s SrecordTvoe->SieldValues(-yahere("con Sieldid' Ssield->id)-sexists()/ Fetch the values specific for this record type.Svalues = Srecordtype->fieldValues)->ahere(crn_field_1d, Sfield->id)->getO:1f (Sthis->noDefault) {Fonssch vaimae se walla?dsualmnesse datant= tcaxreturn Sthis->collection(Svalues, new FieldValueTransfornerO)=ecor othar aonuaoaeMactardau.00%LXThu 28 May 9:46:36TextRelayServiceTestler henwserwiCtCNUL-PICKIALEVOIororened ecumily sommesy mmoneene owostouahtorsscarcinco vue-componchts and ochofmco toiner cuchyThought for 1sAccess to tue act ivity-sumary, vue is prohibited ou ,e acore, You can enable access to a tianore tiles by ena.oouoherorsThought for 1sThought for 1sThe backend API is now correctly returning the multi-picklist field with options. The issue is in the frontendmndarino. Tha net fuftucdtenary comoonant comae from tha salt-cosooshott oacknod (oodh madulae) whichHowever, 1 can see from the Dealinsights components that the frontend has logic to handle field types but onhchocke for oicktst, not enl teofckttetSearched switch,*type in front-end/sroThe backend is now correctly returning the multi-picilist field with options. The issue is in the frontend renderingooke tthe trontend necds to handie the euitcotcklltst. tyoc, but currently only chocke tor ofckiltatPasd malans learAsk anything Xol* eodeswiaTtM Wodtur Teams 20:80 UTE-A2 4 spac...
|
NULL
|
NULL
|
NULL
|
NULL
|
|
79850
|
2792
|
2
|
2026-05-28T06:45:03.164362+00:00
|
/Users/lukas/.screenpipe/data/data/2026-05-28/1779 /Users/lukas/.screenpipe/data/data/2026-05-28/1779950703164_m1.jpg...
|
PhpStorm
|
faVsco.js – FieldTransformer.php
|
1
|
NULL
|
monitor_1
|
NULL
|
NULL
|
NULL
|
NULL
|
iTerm2ShellEditViewSessionScriptsProfilesWindowHel iTerm2ShellEditViewSessionScriptsProfilesWindowHelp•DOCKER₴81DEV (docker)-zshH3configcachecompiledeventsroutesviewsjiminny-worker-processing-1:jiminny-worker-processing-1_00: stoppedjiminny-worker-processing-2:jiminny-worker-processing-2_00:stoppedjiminny-worker-processing-3:jiminny-worker-processing-3_00: stoppedjiminny-worker-processing-4:jiminny-worker-processing-4_00: stoppedjiminny-worker-processing-5:jiminny-worker-processing-5_00:stoppedjiminny-worker-processing-delayed: jiminny-worker-processing-delayed_00: stoppedworker-analytics:worker-analytics_00: stoppedworker-crm-update:worker-crm-update_00: stoppedworker-download:worker-download_00: stoppedworker-nudges:worker-nudges_00: stoppedworker:worker_00: stoppedworker-audio:worker-audio_00: stoppedworker-calendar:worker-calendar_00:stoppedworker-conferences:worker-conferences_00: stoppedworker-crm-sync:worker-crm-sync_00: stoppedworker-emails:worker-emails_00: stoppedworker-es-update:worker-es-update_00: stoppedartisan-schedule:artisan-schedule_00: stoppedartisan-schedule:artisan-schedule_00: startedjiminny-worker-processing-1:jiminny-worker-processing-1_00: startedjiminny-worker-processing-2:jiminny-worker-processing-2_00: startedjiminny-worker-processing-3:jiminny-worker-processing-3_00: startedjiminny-worker-processing-4:jiminny-worker-processing-4_00: startedjiminny-worker-processing-5:jiminny-worker-processing-5_00: startedjiminny-worker-processing-delayed:jiminny-worker-processing-delayed_00:startedworker:worker_00: startedworker-analytics:worker-analytics_00: startedworker-audio:worker-audio_00: startedworker-calendar:worker-calendar_00: startedworker-conferences:worker-conferences_00: startedworker-crm-sync:worker-crm-sync_00: startedworker-crm-update:worker-crm-update_00:startedworker-download:worker-download_00:startedworker-emails:worker-emails_00: startedworker-es-update:worker-es-update_00: startedworker-nudges:worker-nudges_00:startedroot@docker_lamp_1:/home/jiminny# l100% C47 8• Thu 28 May 9:45:02DEV (docker)screenpipe™0 84-zshDaily - Platformin 1m - 9:45-10:05 AM66.75ms DONE3.76ms DONE3.74ms DONE2.01ms DONE26.78ms DONECi Join Google MeetDEV...
|
NULL
|
-5392230084433354633
|
NULL
|
click
|
ocr
|
NULL
|
iTerm2ShellEditViewSessionScriptsProfilesWindowHel iTerm2ShellEditViewSessionScriptsProfilesWindowHelp•DOCKER₴81DEV (docker)-zshH3configcachecompiledeventsroutesviewsjiminny-worker-processing-1:jiminny-worker-processing-1_00: stoppedjiminny-worker-processing-2:jiminny-worker-processing-2_00:stoppedjiminny-worker-processing-3:jiminny-worker-processing-3_00: stoppedjiminny-worker-processing-4:jiminny-worker-processing-4_00: stoppedjiminny-worker-processing-5:jiminny-worker-processing-5_00:stoppedjiminny-worker-processing-delayed: jiminny-worker-processing-delayed_00: stoppedworker-analytics:worker-analytics_00: stoppedworker-crm-update:worker-crm-update_00: stoppedworker-download:worker-download_00: stoppedworker-nudges:worker-nudges_00: stoppedworker:worker_00: stoppedworker-audio:worker-audio_00: stoppedworker-calendar:worker-calendar_00:stoppedworker-conferences:worker-conferences_00: stoppedworker-crm-sync:worker-crm-sync_00: stoppedworker-emails:worker-emails_00: stoppedworker-es-update:worker-es-update_00: stoppedartisan-schedule:artisan-schedule_00: stoppedartisan-schedule:artisan-schedule_00: startedjiminny-worker-processing-1:jiminny-worker-processing-1_00: startedjiminny-worker-processing-2:jiminny-worker-processing-2_00: startedjiminny-worker-processing-3:jiminny-worker-processing-3_00: startedjiminny-worker-processing-4:jiminny-worker-processing-4_00: startedjiminny-worker-processing-5:jiminny-worker-processing-5_00: startedjiminny-worker-processing-delayed:jiminny-worker-processing-delayed_00:startedworker:worker_00: startedworker-analytics:worker-analytics_00: startedworker-audio:worker-audio_00: startedworker-calendar:worker-calendar_00: startedworker-conferences:worker-conferences_00: startedworker-crm-sync:worker-crm-sync_00: startedworker-crm-update:worker-crm-update_00:startedworker-download:worker-download_00:startedworker-emails:worker-emails_00: startedworker-es-update:worker-es-update_00: startedworker-nudges:worker-nudges_00:startedroot@docker_lamp_1:/home/jiminny# l100% C47 8• Thu 28 May 9:45:02DEV (docker)screenpipe™0 84-zshDaily - Platformin 1m - 9:45-10:05 AM66.75ms DONE3.76ms DONE3.74ms DONE2.01ms DONE26.78ms DONECi Join Google MeetDEV...
|
79846
|
NULL
|
NULL
|
NULL
|
|
79849
|
2793
|
4
|
2026-05-28T06:45:03.060724+00:00
|
/Users/lukas/.screenpipe/data/data/2026-05-28/1779 /Users/lukas/.screenpipe/data/data/2026-05-28/1779950703060_m2.jpg...
|
PhpStorm
|
faVsco.js – FieldTransformer.php
|
1
|
NULL
|
monitor_2
|
NULL
|
NULL
|
NULL
|
NULL
|
rnpstomCoocFV faVsco.|s ~$ JY-20915-fix-missproide rnpstomCoocFV faVsco.|s ~$ JY-20915-fix-missproidet© DealStageTransformer.phpresture ronstonmer.onoridld tonstotmer.ondorielovalelon omeone© GroupTransformer.ohocpoo elansotneoneC LanquageDialect TransformeCLavout Enttviranstormer choC Lavout Transformer.ohoC) Lesdtranstormer.oho© MessageTransformer oho)CMomentitranstormer.onoCNotetiranstormer.onoCNotrestontttans ormer.onocenoorur eommsodtodecenoodur wihnddmatoodcoarcinsottihne omatooc Paroheiane tmanooipem isronlttnohmorot(© PlaybackPageTransformer.p(© PlaybookTransformer.pho© PlaybookTreeTransformer.phPlaylistActivityTransformer.plPlaylistSharesTransformer.phPlaylistTransformer.php© ProspectsTransformer.phooQueston lfanstommer.ohoc Kolellansouneen© ScorecardRuleTiransformer.olc Sacetirans omer.onoc sactrans ormec.ond) TeamDomainTransformec.ohd8) Teamintcaration Transformer8) Team Transtormec ohoc) Themetirand ormes.choc)Tooic transtormer onoc)Tooic troced trane ormer.oheerealrne nrmor nhre Wolcodcroeehlind Mmornhrc Korol ahrTextRelayServiceTestecrmcontrober.orcomposer.json• Dockerfile00%LXIno Lo woy 3i4o.0+0.custom.losravelloSF (iminny@localhost)un crm fields (jiminnytalocalhost) x# HS Jocal jiminny@tocalhost# console lPeonA console (EU]A console (STAGING)Ty:AlrowDLRbEogMCSVvgu+ANYAV7- WHERE id IN (1885, 3014)=•OROER 81 wuid (UULD with tine-low a-:ae con_configuration_id v1885 S8a51d4d-8ca7-49f0-9b2c-e16027877ccS* Bcrn_provider_id U39 ReminderDateTime#8 label MKebander vaterlae3814 a3d3dfSa-eaa1-43d0-b95e-1ff4bec8c42839 picktestmulti cpicktestnultler henwserwiCtCNUL-PICKIALEVOIThiSa5 (7C3227871-4C25-4c56-9a0f-44c5a849d65c*Jucs .*id": *0591cbe4-244а-4911-9883-256b53697006вбон Хенику Sулітауy:publac tuncizon serwolerau loool Snobetaul...oublac tuncizon transtor Field Smeld: arrawSdetau vailme atel de%deraut wallue?tune asedosvne:essnooilsneau vailue)DSdefau Valme MnooidSdetau twallme?neturn"id' => $field->id_string.'objectType' => $field->object_type'label' => $field->label"fieldName' => $field->crn_provider_id"type' => $type'enabled' => Sfield->is selectable"Length' => Sfield->length"defaultValue' => SdefaultValuelThinkingthe ueer has made the change to sic ctrans omer pho to ues irhitr srloineohd of checkno tor TYPEPXiIST directly. The JSON response shows that the multi-pickdist field "picktestmulti" is now correctly returning withHowever, the user says they still can't see it in the Ul. This means the backend is now working correctly (the fiekaand options are boina returned), but thore's likelya trontend ikaue orcuentind the multi eoicidlist ticid tfrom boindpublic function includeOptions(Field Sfield): PCollectionif (Sfield->isPicklisto d& Svalues = Sfield->values) 4if (Sfield»›tyoe == Field::TYPE PTCKLIST 55 Svalues = Sfield-›values) {// This gets a little complex. We need to check if this field has any record type constraintsSthis-›orofile8s (SrecordTvoe = Sthis-sorofile->/Sfield-›obiect type , 'RecordTvoe'})&s SrecordTvoe->SieldValues@-yahere('con Sieldid' Ssield->id)-sexists()/ Fetch the values specific for this record type.Svalues = Srecordtype->fieldValues)->ahere(crn_field_1d, Sfield->id)->getO:1f (Sthis->noDefault) {Fonssch vallae se Swaime?asuamnese darant= teaxreturn Sthis->collection(Svalues, new FieldValueTransfornerO)>as for othar lanausons. lvesterdav 15:44Ask anything (XoL)* eodeswiaTtW Wodtur Teams SP-R4 UTE-яt4 spad...
|
NULL
|
4870944879151292523
|
NULL
|
click
|
ocr
|
NULL
|
rnpstomCoocFV faVsco.|s ~$ JY-20915-fix-missproide rnpstomCoocFV faVsco.|s ~$ JY-20915-fix-missproidet© DealStageTransformer.phpresture ronstonmer.onoridld tonstotmer.ondorielovalelon omeone© GroupTransformer.ohocpoo elansotneoneC LanquageDialect TransformeCLavout Enttviranstormer choC Lavout Transformer.ohoC) Lesdtranstormer.oho© MessageTransformer oho)CMomentitranstormer.onoCNotetiranstormer.onoCNotrestontttans ormer.onocenoorur eommsodtodecenoodur wihnddmatoodcoarcinsottihne omatooc Paroheiane tmanooipem isronlttnohmorot(© PlaybackPageTransformer.p(© PlaybookTransformer.pho© PlaybookTreeTransformer.phPlaylistActivityTransformer.plPlaylistSharesTransformer.phPlaylistTransformer.php© ProspectsTransformer.phooQueston lfanstommer.ohoc Kolellansouneen© ScorecardRuleTiransformer.olc Sacetirans omer.onoc sactrans ormec.ond) TeamDomainTransformec.ohd8) Teamintcaration Transformer8) Team Transtormec ohoc) Themetirand ormes.choc)Tooic transtormer onoc)Tooic troced trane ormer.oheerealrne nrmor nhre Wolcodcroeehlind Mmornhrc Korol ahrTextRelayServiceTestecrmcontrober.orcomposer.json• Dockerfile00%LXIno Lo woy 3i4o.0+0.custom.losravelloSF (iminny@localhost)un crm fields (jiminnytalocalhost) x# HS Jocal jiminny@tocalhost# console lPeonA console (EU]A console (STAGING)Ty:AlrowDLRbEogMCSVvgu+ANYAV7- WHERE id IN (1885, 3014)=•OROER 81 wuid (UULD with tine-low a-:ae con_configuration_id v1885 S8a51d4d-8ca7-49f0-9b2c-e16027877ccS* Bcrn_provider_id U39 ReminderDateTime#8 label MKebander vaterlae3814 a3d3dfSa-eaa1-43d0-b95e-1ff4bec8c42839 picktestmulti cpicktestnultler henwserwiCtCNUL-PICKIALEVOIThiSa5 (7C3227871-4C25-4c56-9a0f-44c5a849d65c*Jucs .*id": *0591cbe4-244а-4911-9883-256b53697006вбон Хенику Sулітауy:publac tuncizon serwolerau loool Snobetaul...oublac tuncizon transtor Field Smeld: arrawSdetau vailme atel de%deraut wallue?tune asedosvne:essnooilsneau vailue)DSdefau Valme MnooidSdetau twallme?neturn"id' => $field->id_string.'objectType' => $field->object_type'label' => $field->label"fieldName' => $field->crn_provider_id"type' => $type'enabled' => Sfield->is selectable"Length' => Sfield->length"defaultValue' => SdefaultValuelThinkingthe ueer has made the change to sic ctrans omer pho to ues irhitr srloineohd of checkno tor TYPEPXiIST directly. The JSON response shows that the multi-pickdist field "picktestmulti" is now correctly returning withHowever, the user says they still can't see it in the Ul. This means the backend is now working correctly (the fiekaand options are boina returned), but thore's likelya trontend ikaue orcuentind the multi eoicidlist ticid tfrom boindpublic function includeOptions(Field Sfield): PCollectionif (Sfield->isPicklisto d& Svalues = Sfield->values) 4if (Sfield»›tyoe == Field::TYPE PTCKLIST 55 Svalues = Sfield-›values) {// This gets a little complex. We need to check if this field has any record type constraintsSthis-›orofile8s (SrecordTvoe = Sthis-sorofile->/Sfield-›obiect type , 'RecordTvoe'})&s SrecordTvoe->SieldValues@-yahere('con Sieldid' Ssield->id)-sexists()/ Fetch the values specific for this record type.Svalues = Srecordtype->fieldValues)->ahere(crn_field_1d, Sfield->id)->getO:1f (Sthis->noDefault) {Fonssch vallae se Swaime?asuamnese darant= teaxreturn Sthis->collection(Svalues, new FieldValueTransfornerO)>as for othar lanausons. lvesterdav 15:44Ask anything (XoL)* eodeswiaTtW Wodtur Teams SP-R4 UTE-яt4 spad...
|
79848
|
NULL
|
NULL
|
NULL
|
|
79848
|
2793
|
3
|
2026-05-28T06:44:56.570021+00:00
|
/Users/lukas/.screenpipe/data/data/2026-05-28/1779 /Users/lukas/.screenpipe/data/data/2026-05-28/1779950696570_m2.jpg...
|
PhpStorm
|
faVsco.js – FieldTransformer.php
|
1
|
NULL
|
monitor_2
|
NULL
|
NULL
|
NULL
|
NULL
|
Project: faVsco.js, menu
JY-20915-fix-missing-head Project: faVsco.js, menu
JY-20915-fix-missing-header-text-relay, menu
Start Listening for PHP Debug Connections
TextRelayServiceTest
Run 'TextRelayServiceTest'
Debug 'TextRelayServiceTest'
More Actions
JetBrains AI
Search Everywhere
IDE and Project Settings
Sync Changes
Hide This Notification
Code changed:
Hide
11
1
Previous Highlighted Error
Next Highlighted Error
<?php
namespace Jiminny\Http\Transformers;
use Jiminny\Models\Crm\Field;
use Jiminny\Models\Crm\Profile;
use League\Fractal\Resource\Collection;
use League\Fractal\TransformerAbstract;
class FieldTransformer extends TransformerAbstract
{
protected array $availableIncludes = [
'options',
];
private ?Profile $profile;
private bool $noDefault = false;
public function __construct(?Profile $profile = null)
{
$this->profile = $profile;
}
public function setNoDefault(bool $noDefault)
{
$this->noDefault = $noDefault;
}
public function transform(Field $field): array
{
$defaultValue = $field->default_value;
$type = $field->type;
if (\is_bool($defaultValue)) {
$defaultValue = (bool) $defaultValue;
}
return [
'id' => $field->id_string,
'objectType' => $field->object_type,
'label' => $field->label,
'fieldName' => $field->crm_provider_id,
'type' => $type,
'enabled' => $field->is_selectable,
'length' => $field->length,
'defaultValue' => $defaultValue,
];
}
public function includeOptions(Field $field): ?Collection
{
if ($field->isPicklist() && $values = $field->values) {
// if ($field->type === Field::TYPE_PICKLIST && $values = $field->values) {
// This gets a little complex. We need to check if this field has any record type constraints for the profile.
if (
$this->profile
&& ($recordType = $this->profile->{$field->object_type . 'RecordType'})
&& $recordType->fieldValues()->where('crm_field_id', $field->id)->exists()
) {
// Fetch the values specific for this record type.
$values = $recordType->fieldValues()->where('crm_field_id', $field->id)->get();
}
if ($this->noDefault) {
foreach ($values as $value) {
$value->is_default = false;
}
}
return $this->collection($values, new FieldValueTransformer());
}
return null;
}
}
A
id
B
uuid (UUID with time-low and time-high swapped)
C
crm_configuration_id
D
crm_provider_id
E
label
F
description
G
type
H
length
I
default_value
J
object_type
K
is_selectable
L
is_mandatory
M
is_filterable
N
is_indexable
O
created_at
P
updated_at
Q
is_readonly
Select All
1885
1885
39
58a51d4d-0ca7-49f0-9b2c-e16027877cc5
58a51d4d-0ca7-49f0-9b2c-e16027877cc5
picktestmulti__c
39
39
39
ReminderDateTime
ReminderDateTime
picktestmulti__c
Reminder Date/Time
Reminder Date/Time
picktestmulti__c
<null>
<null>
picktestmulti__c
datetime
datetime
picktestmulti__c
<null>
<null>
39
<null>
<null>
picktestmulti__c
event
event
picktestmulti__c
1
1
39
0
0
39
0
0
39
0
0
39
2022-12-15 14:53:05
2022-12-15 14:53:05
picktestmulti__c
2025-09-29 11:00:32
2025-09-29 11:00:32...
|
[{"role":"AXButton","text" [{"role":"AXButton","text":"Project: faVsco.js, menu","depth":5,"bounds":{"left":0.025930852,"top":0.019952115,"width":0.03856383,"height":0.025538707},"on_screen":true,"help_text":"~/jiminny/app","role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"JY-20915-fix-missing-header-text-relay, menu","depth":5,"bounds":{"left":0.064494684,"top":0.019952115,"width":0.09740692,"height":0.025538707},"on_screen":true,"help_text":"Git Branch: JY-20915-fix-missing-header-text-relay","role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Start Listening for PHP Debug Connections","depth":5,"bounds":{"left":0.8374335,"top":0.019952115,"width":0.011303191,"height":0.025538707},"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"TextRelayServiceTest","depth":6,"bounds":{"left":0.85272604,"top":0.019952115,"width":0.062832445,"height":0.025538707},"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Run 'TextRelayServiceTest'","depth":6,"bounds":{"left":0.9155585,"top":0.019952115,"width":0.011303191,"height":0.025538707},"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Debug 'TextRelayServiceTest'","depth":6,"bounds":{"left":0.9268617,"top":0.019952115,"width":0.011303191,"height":0.025538707},"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"More Actions","depth":6,"bounds":{"left":0.9381649,"top":0.019952115,"width":0.011303191,"height":0.025538707},"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"JetBrains AI","depth":5,"bounds":{"left":0.96609044,"top":0.019952115,"width":0.011303191,"height":0.025538707},"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Search Everywhere","depth":5,"bounds":{"left":0.9773936,"top":0.019952115,"width":0.011303191,"height":0.025538707},"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"IDE and Project Settings","depth":5,"bounds":{"left":0.9886968,"top":0.019952115,"width":0.011303186,"height":0.025538707},"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Sync Changes","depth":4,"bounds":{"left":0.27027926,"top":1.0,"width":0.008643617,"height":0.0},"on_screen":false,"role_description":"button","is_enabled":false,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Hide This Notification","depth":4,"bounds":{"left":0.27027926,"top":1.0,"width":0.008643617,"height":0.0},"on_screen":false,"role_description":"button","is_enabled":false,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Code changed:","depth":4,"bounds":{"left":0.27027926,"top":1.0,"width":0.042220745,"height":0.0},"on_screen":false,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Hide","depth":4,"bounds":{"left":0.27027926,"top":1.0,"width":0.008643617,"height":0.0},"on_screen":false,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXStaticText","text":"11","depth":4,"bounds":{"left":0.37699467,"top":0.12529927,"width":0.008976064,"height":0.015163607},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"1","depth":4,"bounds":{"left":0.3879654,"top":0.12529927,"width":0.00731383,"height":0.015163607},"on_screen":true,"role_description":"text"},{"role":"AXButton","text":"Previous Highlighted Error","depth":4,"bounds":{"left":0.39694148,"top":0.123703115,"width":0.00731383,"height":0.018355945},"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Next Highlighted Error","depth":4,"bounds":{"left":0.40425533,"top":0.123703115,"width":0.006981383,"height":0.018355945},"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXTextArea","text":"<?php\n\nnamespace Jiminny\\Http\\Transformers;\n\nuse Jiminny\\Models\\Crm\\Field;\nuse Jiminny\\Models\\Crm\\Profile;\nuse League\\Fractal\\Resource\\Collection;\nuse League\\Fractal\\TransformerAbstract;\n\nclass FieldTransformer extends TransformerAbstract\n{\n protected array $availableIncludes = [\n 'options',\n ];\n private ?Profile $profile;\n\n private bool $noDefault = false;\n\n public function __construct(?Profile $profile = null)\n {\n $this->profile = $profile;\n }\n\n public function setNoDefault(bool $noDefault)\n {\n $this->noDefault = $noDefault;\n }\n\n public function transform(Field $field): array\n {\n $defaultValue = $field->default_value;\n $type = $field->type;\n\n if (\\is_bool($defaultValue)) {\n $defaultValue = (bool) $defaultValue;\n }\n\n return [\n 'id' => $field->id_string,\n 'objectType' => $field->object_type,\n 'label' => $field->label,\n 'fieldName' => $field->crm_provider_id,\n 'type' => $type,\n 'enabled' => $field->is_selectable,\n 'length' => $field->length,\n 'defaultValue' => $defaultValue,\n ];\n }\n\n public function includeOptions(Field $field): ?Collection\n {\n if ($field->isPicklist() && $values = $field->values) {\n// if ($field->type === Field::TYPE_PICKLIST && $values = $field->values) {\n // This gets a little complex. We need to check if this field has any record type constraints for the profile.\n if (\n $this->profile\n && ($recordType = $this->profile->{$field->object_type . 'RecordType'})\n && $recordType->fieldValues()->where('crm_field_id', $field->id)->exists()\n ) {\n // Fetch the values specific for this record type.\n $values = $recordType->fieldValues()->where('crm_field_id', $field->id)->get();\n }\n\n if ($this->noDefault) {\n foreach ($values as $value) {\n $value->is_default = false;\n }\n }\n\n return $this->collection($values, new FieldValueTransformer());\n }\n\n return null;\n }\n}","depth":4,"on_screen":true,"value":"<?php\n\nnamespace Jiminny\\Http\\Transformers;\n\nuse Jiminny\\Models\\Crm\\Field;\nuse Jiminny\\Models\\Crm\\Profile;\nuse League\\Fractal\\Resource\\Collection;\nuse League\\Fractal\\TransformerAbstract;\n\nclass FieldTransformer extends TransformerAbstract\n{\n protected array $availableIncludes = [\n 'options',\n ];\n private ?Profile $profile;\n\n private bool $noDefault = false;\n\n public function __construct(?Profile $profile = null)\n {\n $this->profile = $profile;\n }\n\n public function setNoDefault(bool $noDefault)\n {\n $this->noDefault = $noDefault;\n }\n\n public function transform(Field $field): array\n {\n $defaultValue = $field->default_value;\n $type = $field->type;\n\n if (\\is_bool($defaultValue)) {\n $defaultValue = (bool) $defaultValue;\n }\n\n return [\n 'id' => $field->id_string,\n 'objectType' => $field->object_type,\n 'label' => $field->label,\n 'fieldName' => $field->crm_provider_id,\n 'type' => $type,\n 'enabled' => $field->is_selectable,\n 'length' => $field->length,\n 'defaultValue' => $defaultValue,\n ];\n }\n\n public function includeOptions(Field $field): ?Collection\n {\n if ($field->isPicklist() && $values = $field->values) {\n// if ($field->type === Field::TYPE_PICKLIST && $values = $field->values) {\n // This gets a little complex. We need to check if this field has any record type constraints for the profile.\n if (\n $this->profile\n && ($recordType = $this->profile->{$field->object_type . 'RecordType'})\n && $recordType->fieldValues()->where('crm_field_id', $field->id)->exists()\n ) {\n // Fetch the values specific for this record type.\n $values = $recordType->fieldValues()->where('crm_field_id', $field->id)->get();\n }\n\n if ($this->noDefault) {\n foreach ($values as $value) {\n $value->is_default = false;\n }\n }\n\n return $this->collection($values, new FieldValueTransformer());\n }\n\n return null;\n }\n}","role_description":"text entry area","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXStaticText","text":"A","depth":4,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"id","depth":5,"bounds":{"left":0.27027926,"top":1.0,"width":0.020944148,"height":0.0},"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"B","depth":4,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"uuid (UUID with time-low and time-high swapped)","depth":5,"bounds":{"left":0.27027926,"top":1.0,"width":0.020944148,"height":0.0},"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"C","depth":4,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"crm_configuration_id","depth":5,"bounds":{"left":0.27027926,"top":1.0,"width":0.020944148,"height":0.0},"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"D","depth":4,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"crm_provider_id","depth":5,"bounds":{"left":0.27027926,"top":1.0,"width":0.020944148,"height":0.0},"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"E","depth":4,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"label","depth":5,"bounds":{"left":0.27027926,"top":1.0,"width":0.020944148,"height":0.0},"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"F","depth":4,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"description","depth":5,"bounds":{"left":0.27027926,"top":1.0,"width":0.020944148,"height":0.0},"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"G","depth":4,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"type","depth":5,"bounds":{"left":0.27027926,"top":1.0,"width":0.020944148,"height":0.0},"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"H","depth":4,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"length","depth":5,"bounds":{"left":0.27027926,"top":1.0,"width":0.020944148,"height":0.0},"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"I","depth":4,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"default_value","depth":5,"bounds":{"left":0.27027926,"top":1.0,"width":0.020944148,"height":0.0},"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"J","depth":4,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"object_type","depth":5,"bounds":{"left":0.27027926,"top":1.0,"width":0.020944148,"height":0.0},"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"K","depth":4,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"is_selectable","depth":5,"bounds":{"left":0.27027926,"top":1.0,"width":0.020944148,"height":0.0},"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"L","depth":4,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"is_mandatory","depth":5,"bounds":{"left":0.27027926,"top":1.0,"width":0.020944148,"height":0.0},"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"M","depth":4,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"is_filterable","depth":5,"bounds":{"left":0.27027926,"top":1.0,"width":0.020944148,"height":0.0},"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"N","depth":4,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"is_indexable","depth":5,"bounds":{"left":0.27027926,"top":1.0,"width":0.020944148,"height":0.0},"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"O","depth":4,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"created_at","depth":5,"bounds":{"left":0.27027926,"top":1.0,"width":0.020944148,"height":0.0},"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"P","depth":4,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"updated_at","depth":5,"bounds":{"left":0.27027926,"top":1.0,"width":0.020944148,"height":0.0},"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"Q","depth":4,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"is_readonly","depth":5,"bounds":{"left":0.27027926,"top":1.0,"width":0.020944148,"height":0.0},"on_screen":false,"role_description":"text"},{"role":"AXButton","text":"Select All","depth":4,"bounds":{"left":0.41156915,"top":0.14365523,"width":0.007978723,"height":0.0207502},"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXCell","text":"1885","depth":6,"bounds":{"left":0.41988033,"top":0.16520351,"width":0.034242023,"height":0.0207502},"on_screen":true,"role_description":"cell"},{"role":"AXStaticText","text":"1885","depth":7,"bounds":{"left":0.41988033,"top":0.16520351,"width":0.034242023,"height":0.0207502},"on_screen":true,"role_description":"text"},{"role":"AXTextArea","text":"39","depth":8,"bounds":{"left":0.27027926,"top":1.0,"width":0.0787899,"height":0.0},"on_screen":false,"value":"39","role_description":"text entry area","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXCell","text":"58a51d4d-0ca7-49f0-9b2c-e16027877cc5","depth":6,"bounds":{"left":0.45445478,"top":0.16520351,"width":0.10073138,"height":0.0207502},"on_screen":true,"role_description":"cell"},{"role":"AXStaticText","text":"58a51d4d-0ca7-49f0-9b2c-e16027877cc5","depth":7,"bounds":{"left":0.45445478,"top":0.16520351,"width":0.10073138,"height":0.0207502},"on_screen":true,"role_description":"text"},{"role":"AXTextArea","text":"picktestmulti__c","depth":8,"bounds":{"left":0.27027926,"top":1.0,"width":0.050199468,"height":0.0},"on_screen":false,"value":"picktestmulti__c","role_description":"text entry area","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXCell","text":"39","depth":6,"bounds":{"left":0.5555186,"top":0.16520351,"width":0.080784574,"height":0.0207502},"on_screen":true,"role_description":"cell"},{"role":"AXStaticText","text":"39","depth":7,"bounds":{"left":0.5555186,"top":0.16520351,"width":0.080784574,"height":0.0207502},"on_screen":true,"role_description":"text"},{"role":"AXTextArea","text":"39","depth":8,"bounds":{"left":0.27027926,"top":1.0,"width":0.0787899,"height":0.0},"on_screen":false,"value":"39","role_description":"text entry area","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXCell","text":"ReminderDateTime","depth":6,"bounds":{"left":0.63663566,"top":0.16520351,"width":0.06781915,"height":0.0207502},"on_screen":true,"role_description":"cell"},{"role":"AXStaticText","text":"ReminderDateTime","depth":7,"bounds":{"left":0.63663566,"top":0.16520351,"width":0.06781915,"height":0.0207502},"on_screen":true,"role_description":"text"},{"role":"AXTextArea","text":"picktestmulti__c","depth":8,"bounds":{"left":0.27027926,"top":1.0,"width":0.050199468,"height":0.0},"on_screen":false,"value":"picktestmulti__c","role_description":"text entry area","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXCell","text":"Reminder Date/Time","depth":6,"bounds":{"left":0.70478725,"top":0.16520351,"width":0.05219415,"height":0.0207502},"on_screen":true,"role_description":"cell"},{"role":"AXStaticText","text":"Reminder Date/Time","depth":7,"bounds":{"left":0.70478725,"top":0.16520351,"width":0.05219415,"height":0.0207502},"on_screen":true,"role_description":"text"},{"role":"AXTextArea","text":"picktestmulti__c","depth":8,"bounds":{"left":0.27027926,"top":1.0,"width":0.050199468,"height":0.0},"on_screen":false,"value":"picktestmulti__c","role_description":"text entry area","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXCell","text":"<null>","depth":6,"bounds":{"left":0.75731385,"top":0.16520351,"width":0.057513297,"height":0.0207502},"on_screen":true,"role_description":"cell"},{"role":"AXStaticText","text":"<null>","depth":7,"bounds":{"left":0.75731385,"top":0.16520351,"width":0.057513297,"height":0.0207502},"on_screen":true,"role_description":"text"},{"role":"AXTextArea","text":"picktestmulti__c","depth":8,"bounds":{"left":0.27027926,"top":1.0,"width":0.050199468,"height":0.0},"on_screen":false,"value":"picktestmulti__c","role_description":"text entry area","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXCell","text":"datetime","depth":6,"bounds":{"left":0.81515956,"top":0.16520351,"width":0.04155585,"height":0.0207502},"on_screen":true,"role_description":"cell"},{"role":"AXStaticText","text":"datetime","depth":7,"bounds":{"left":0.81515956,"top":0.16520351,"width":0.04155585,"height":0.0207502},"on_screen":true,"role_description":"text"},{"role":"AXTextArea","text":"picktestmulti__c","depth":8,"bounds":{"left":0.27027926,"top":1.0,"width":0.050199468,"height":0.0},"on_screen":false,"value":"picktestmulti__c","role_description":"text entry area","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXCell","text":"<null>","depth":6,"bounds":{"left":0.85704786,"top":0.16520351,"width":0.04454787,"height":0.0207502},"on_screen":true,"role_description":"cell"},{"role":"AXStaticText","text":"<null>","depth":7,"bounds":{"left":0.85704786,"top":0.16520351,"width":0.04454787,"height":0.0207502},"on_screen":true,"role_description":"text"},{"role":"AXTextArea","text":"39","depth":8,"bounds":{"left":0.27027926,"top":1.0,"width":0.0787899,"height":0.0},"on_screen":false,"value":"39","role_description":"text entry area","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXCell","text":"<null>","depth":6,"bounds":{"left":0.9019282,"top":0.16520351,"width":0.0625,"height":0.0207502},"on_screen":true,"role_description":"cell"},{"role":"AXStaticText","text":"<null>","depth":7,"bounds":{"left":0.9019282,"top":0.16520351,"width":0.0625,"height":0.0207502},"on_screen":true,"role_description":"text"},{"role":"AXTextArea","text":"picktestmulti__c","depth":8,"bounds":{"left":0.27027926,"top":1.0,"width":0.050199468,"height":0.0},"on_screen":false,"value":"picktestmulti__c","role_description":"text entry area","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXCell","text":"event","depth":6,"bounds":{"left":0.96476066,"top":0.16520351,"width":0.03523934,"height":0.0207502},"on_screen":true,"role_description":"cell"},{"role":"AXStaticText","text":"event","depth":7,"bounds":{"left":0.96476066,"top":0.16520351,"width":0.03523934,"height":0.0207502},"on_screen":true,"role_description":"text"},{"role":"AXTextArea","text":"picktestmulti__c","depth":8,"bounds":{"left":0.27027926,"top":1.0,"width":0.050199468,"height":0.0},"on_screen":false,"value":"picktestmulti__c","role_description":"text entry area","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXCell","text":"1","depth":6,"bounds":{"left":1.0,"top":0.16520351,"width":-0.022606373,"height":0.0207502},"on_screen":false,"role_description":"cell"},{"role":"AXStaticText","text":"1","depth":7,"bounds":{"left":1.0,"top":0.16520351,"width":-0.022606373,"height":0.0207502},"on_screen":false,"role_description":"text"},{"role":"AXTextArea","text":"39","depth":8,"bounds":{"left":0.27027926,"top":1.0,"width":0.0787899,"height":0.0},"on_screen":false,"value":"39","role_description":"text entry area","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXCell","text":"0","depth":6,"bounds":{"left":1.0,"top":0.16520351,"width":-0.08543885,"height":0.0207502},"on_screen":false,"role_description":"cell"},{"role":"AXStaticText","text":"0","depth":7,"bounds":{"left":1.0,"top":0.16520351,"width":-0.08543885,"height":0.0207502},"on_screen":false,"role_description":"text"},{"role":"AXTextArea","text":"39","depth":8,"bounds":{"left":0.27027926,"top":1.0,"width":0.0787899,"height":0.0},"on_screen":false,"value":"39","role_description":"text entry area","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXCell","text":"0","depth":6,"on_screen":false,"role_description":"cell"},{"role":"AXStaticText","text":"0","depth":7,"on_screen":false,"role_description":"text"},{"role":"AXTextArea","text":"39","depth":8,"bounds":{"left":0.27027926,"top":1.0,"width":0.0787899,"height":0.0},"on_screen":false,"value":"39","role_description":"text entry area","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXCell","text":"0","depth":6,"on_screen":false,"role_description":"cell"},{"role":"AXStaticText","text":"0","depth":7,"on_screen":false,"role_description":"text"},{"role":"AXTextArea","text":"39","depth":8,"bounds":{"left":0.27027926,"top":1.0,"width":0.0787899,"height":0.0},"on_screen":false,"value":"39","role_description":"text entry area","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXCell","text":"2022-12-15 14:53:05","depth":6,"on_screen":false,"role_description":"cell"},{"role":"AXStaticText","text":"2022-12-15 14:53:05","depth":7,"on_screen":false,"role_description":"text"},{"role":"AXTextArea","text":"picktestmulti__c","depth":8,"bounds":{"left":0.27027926,"top":1.0,"width":0.050199468,"height":0.0},"on_screen":false,"value":"picktestmulti__c","role_description":"text entry area","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXCell","text":"2025-09-29 11:00:32","depth":6,"on_screen":false,"role_description":"cell"},{"role":"AXStaticText","text":"2025-09-29 11:00:32","depth":7,"on_screen":false,"role_description":"text"}]...
|
7935373448790391699
|
1595909751477451123
|
visual_change
|
accessibility
|
NULL
|
Project: faVsco.js, menu
JY-20915-fix-missing-head Project: faVsco.js, menu
JY-20915-fix-missing-header-text-relay, menu
Start Listening for PHP Debug Connections
TextRelayServiceTest
Run 'TextRelayServiceTest'
Debug 'TextRelayServiceTest'
More Actions
JetBrains AI
Search Everywhere
IDE and Project Settings
Sync Changes
Hide This Notification
Code changed:
Hide
11
1
Previous Highlighted Error
Next Highlighted Error
<?php
namespace Jiminny\Http\Transformers;
use Jiminny\Models\Crm\Field;
use Jiminny\Models\Crm\Profile;
use League\Fractal\Resource\Collection;
use League\Fractal\TransformerAbstract;
class FieldTransformer extends TransformerAbstract
{
protected array $availableIncludes = [
'options',
];
private ?Profile $profile;
private bool $noDefault = false;
public function __construct(?Profile $profile = null)
{
$this->profile = $profile;
}
public function setNoDefault(bool $noDefault)
{
$this->noDefault = $noDefault;
}
public function transform(Field $field): array
{
$defaultValue = $field->default_value;
$type = $field->type;
if (\is_bool($defaultValue)) {
$defaultValue = (bool) $defaultValue;
}
return [
'id' => $field->id_string,
'objectType' => $field->object_type,
'label' => $field->label,
'fieldName' => $field->crm_provider_id,
'type' => $type,
'enabled' => $field->is_selectable,
'length' => $field->length,
'defaultValue' => $defaultValue,
];
}
public function includeOptions(Field $field): ?Collection
{
if ($field->isPicklist() && $values = $field->values) {
// if ($field->type === Field::TYPE_PICKLIST && $values = $field->values) {
// This gets a little complex. We need to check if this field has any record type constraints for the profile.
if (
$this->profile
&& ($recordType = $this->profile->{$field->object_type . 'RecordType'})
&& $recordType->fieldValues()->where('crm_field_id', $field->id)->exists()
) {
// Fetch the values specific for this record type.
$values = $recordType->fieldValues()->where('crm_field_id', $field->id)->get();
}
if ($this->noDefault) {
foreach ($values as $value) {
$value->is_default = false;
}
}
return $this->collection($values, new FieldValueTransformer());
}
return null;
}
}
A
id
B
uuid (UUID with time-low and time-high swapped)
C
crm_configuration_id
D
crm_provider_id
E
label
F
description
G
type
H
length
I
default_value
J
object_type
K
is_selectable
L
is_mandatory
M
is_filterable
N
is_indexable
O
created_at
P
updated_at
Q
is_readonly
Select All
1885
1885
39
58a51d4d-0ca7-49f0-9b2c-e16027877cc5
58a51d4d-0ca7-49f0-9b2c-e16027877cc5
picktestmulti__c
39
39
39
ReminderDateTime
ReminderDateTime
picktestmulti__c
Reminder Date/Time
Reminder Date/Time
picktestmulti__c
<null>
<null>
picktestmulti__c
datetime
datetime
picktestmulti__c
<null>
<null>
39
<null>
<null>
picktestmulti__c
event
event
picktestmulti__c
1
1
39
0
0
39
0
0
39
0
0
39
2022-12-15 14:53:05
2022-12-15 14:53:05
picktestmulti__c
2025-09-29 11:00:32
2025-09-29 11:00:32...
|
NULL
|
NULL
|
NULL
|
NULL
|
|
79847
|
2793
|
2
|
2026-05-28T06:44:53.609619+00:00
|
/Users/lukas/.screenpipe/data/data/2026-05-28/1779 /Users/lukas/.screenpipe/data/data/2026-05-28/1779950693609_m2.jpg...
|
PhpStorm
|
faVsco.js – FieldTransformer.php
|
1
|
NULL
|
monitor_2
|
NULL
|
NULL
|
NULL
|
NULL
|
Project: faVsco.js, menu
JY-20915-fix-missing-head Project: faVsco.js, menu
JY-20915-fix-missing-header-text-relay, menu
Start Listening for PHP Debug Connections
TextRelayServiceTest
Run 'TextRelayServiceTest'
Debug 'TextRelayServiceTest'
More Actions
JetBrains AI
Search Everywhere
IDE and Project Settings
Sync Changes
Hide This Notification
Code changed:
Hide
11...
|
[{"role":"AXButton","text" [{"role":"AXButton","text":"Project: faVsco.js, menu","depth":5,"bounds":{"left":0.025930852,"top":0.019952115,"width":0.03856383,"height":0.025538707},"on_screen":true,"help_text":"~/jiminny/app","role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"JY-20915-fix-missing-header-text-relay, menu","depth":5,"bounds":{"left":0.064494684,"top":0.019952115,"width":0.09740692,"height":0.025538707},"on_screen":true,"help_text":"Git Branch: JY-20915-fix-missing-header-text-relay","role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Start Listening for PHP Debug Connections","depth":5,"bounds":{"left":0.8374335,"top":0.019952115,"width":0.011303191,"height":0.025538707},"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"TextRelayServiceTest","depth":6,"bounds":{"left":0.85272604,"top":0.019952115,"width":0.062832445,"height":0.025538707},"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Run 'TextRelayServiceTest'","depth":6,"bounds":{"left":0.9155585,"top":0.019952115,"width":0.011303191,"height":0.025538707},"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Debug 'TextRelayServiceTest'","depth":6,"bounds":{"left":0.9268617,"top":0.019952115,"width":0.011303191,"height":0.025538707},"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"More Actions","depth":6,"bounds":{"left":0.9381649,"top":0.019952115,"width":0.011303191,"height":0.025538707},"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"JetBrains AI","depth":5,"bounds":{"left":0.96609044,"top":0.019952115,"width":0.011303191,"height":0.025538707},"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Search Everywhere","depth":5,"bounds":{"left":0.9773936,"top":0.019952115,"width":0.011303191,"height":0.025538707},"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"IDE and Project Settings","depth":5,"bounds":{"left":0.9886968,"top":0.019952115,"width":0.011303186,"height":0.025538707},"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Sync Changes","depth":4,"bounds":{"left":0.27027926,"top":1.0,"width":0.008643617,"height":0.0},"on_screen":false,"role_description":"button","is_enabled":false,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Hide This Notification","depth":4,"bounds":{"left":0.27027926,"top":1.0,"width":0.008643617,"height":0.0},"on_screen":false,"role_description":"button","is_enabled":false,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Code changed:","depth":4,"bounds":{"left":0.27027926,"top":1.0,"width":0.042220745,"height":0.0},"on_screen":false,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Hide","depth":4,"bounds":{"left":0.27027926,"top":1.0,"width":0.008643617,"height":0.0},"on_screen":false,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXStaticText","text":"11","depth":4,"bounds":{"left":0.37699467,"top":0.12529927,"width":0.008976064,"height":0.015163607},"on_screen":true,"role_description":"text"}]...
|
-1401201372213671302
|
-6470455373517880894
|
click
|
hybrid
|
NULL
|
Project: faVsco.js, menu
JY-20915-fix-missing-head Project: faVsco.js, menu
JY-20915-fix-missing-header-text-relay, menu
Start Listening for PHP Debug Connections
TextRelayServiceTest
Run 'TextRelayServiceTest'
Debug 'TextRelayServiceTest'
More Actions
JetBrains AI
Search Everywhere
IDE and Project Settings
Sync Changes
Hide This Notification
Code changed:
Hide
11
rnpstomFV faVsco.|s ~$ JY-20915-fix-missProinet v© DealStageTransformer.phpresture ronstonmer.onoridld tonstotmer.ondorielovalelon omeone© GroupTransformer.ohooneoaononoieroncJoo eanouneonC LanquageDialect TransformeCLavout Enttviranstormer choC Lavout Transformer.ohoC) Lesdtranstormer.oho© MessageTransformer oho)CMomentitranstormer.onoCNotetiranstormer.onoCNotrestontttans ormer.onocenoorur eommsodtodecennodur ithaeomat ocoarcinsottihne omatooc Paroheiane tmanooipem isronlttnohmorot(© PlaybackPageTransformer.p(© PlaybookTransformer.pho© PlaybookTreeTransformer.phPlaylistActivityTransformer.plPlaylistSharesTransformer.phPlaylistTransformer.phprrospectsfanstoner.oneoQueston lfanstommer.ohoc Kolellansouneen© ScorecardRuleTiransformer.olCoocecrmcontrober.orcomposer.json• DockerfileTO0%L7Thu 28 May 9:44:53TextRelayServiceTest+0.custom.losravelloSF (iminny@localhost)un crm fields (jiminnytalocalhost) x# HS Jocal jiminny@tocalhost# consolel poonA console (EU]A console [STAGING)Ty:AlrowDLRbEogMCSVYLL+OeANYAV7- WHERE id IN (1885, 3014)=•OROER 81 wuid (UULD with tine-low a-:ae con_configuration_id v* Bcrn_provider_id U#8 label M1885 S8a51d4d-8ca7-49f0-9b2c-e16027877ccS39 ReninderDateTimeReminder Date/Tine3814 a3d3dfSa-eaa1-43d0-b95e-1ff4bec8c42839 picktestmulti cpicktestnultrner hensewietwtlerekevouteScarched dinss Crmcontrolien in siminnuinodRead CrmController.php and 2 other filesscorenco lire woctlin hminhyop5&9public function setNolefault(bool SnobefauLe)l...public function transform(Field Sfield): arraySdefaultValue = Sfield->derault_value:Stype = Sfield->type:it (is_bool(SdefaultValue)) 4Cootantvallua = Thoah Coatan tuaima:return"id' => Sfield->id string.'objectType' => Sfield->obiect type.Label u> StreldesladelTrelonane s> Streldescrn provzderzo"cype suyoe'enabled' => Sfield-sis selectablelenounsseles enoun"defaultValue' => SdefaultValue.wstoon.myna.wsis.multt-oickistielosarecurtentynoror.cumocn000inavoulsooc@use.nene1oransformer:: includeOpt ions () method only handies TYPE PICKLIST and excludes TYPE MULTIPICKLISTin /app/Http/Transformers/FieldTransformer.php line 52aphe1f (Sfield→>type =a= Field::TYPE PICKLIST 66 Svalues = Sfield-»values) 4this con.tion.onwinciloesob.ionstocreoul.roickenelos.ino.tmut-otcklisehhC Sess ontirans ormer.onoc Sacetirans omer.onoc sactrans ormec.ondf TeamDomainTransformec.ohe8) Teamintcaration Transformer8) Team Transtormec ohoc) Themetirand ormes.choc)Tooic transtormer onoc)Tooic troced trane ormer.oheerealrne nrmor nhre Wolcodcroeehlind Mmornhrc Korol ahrpublze tuncczon anctudeupcions(hrela stieto): pcolteccionif (Sfield->isPicklist() && Svalues = $field->values) ‹StSfteldos voe sas Sieldiatpe prkasiss Syalues = Steld->values)// This gets a little complex. We need to check if this field has any record type constraintaSthis-sorofileScecondivne & SthiisoorotRoystieldrsobsiecttyne"RecordType')se ScecordTvne-sSieldValuesOeshere("eon Siold sd" Ssieldesid)-sexicte/ Fetch the values specific for this record type.Svalues = Srecordtype->fieldValues-›where("crn field id', Sfield->id)-›geto:if (Sthis->noDefault) €foreach (Svalues as Svalue)Svalue->is default = false:346-1552-4661-8689-9200115660369return Sthis->collection(Svalues, new FieldValueTransfornerO)lanausoas lvesterdav 15:44Msolauryatue: null*id*: *54415f81-9f04-435d-9b6a-2fa0e178ce61*v-up, stne tchildren".tdnatontent" PodeStan maotd SiodlgW Wodtur Teams SP-R4 UTE-*4 space...
|
79845
|
NULL
|
NULL
|
NULL
|
|
79846
|
2792
|
1
|
2026-05-28T06:44:53.710457+00:00
|
/Users/lukas/.screenpipe/data/data/2026-05-28/1779 /Users/lukas/.screenpipe/data/data/2026-05-28/1779950693710_m1.jpg...
|
PhpStorm
|
faVsco.js – FieldTransformer.php
|
1
|
NULL
|
monitor_1
|
NULL
|
NULL
|
NULL
|
NULL
|
Project: faVsco.js, menu
JY-20915-fix-missing-head Project: faVsco.js, menu
JY-20915-fix-missing-header-text-relay, menu
Start Listening for PHP Debug Connections
TextRelayServiceTest
Run 'TextRelayServiceTest'
Debug 'TextRelayServiceTest'
More Actions
JetBrains AI
Search Everywhere
IDE and Project Settings
Sync Changes
Hide This Notification
Code changed:
Hide
11
1
Previous Highlighted Error
Next Highlighted Error
<?php
namespace Jiminny\Http\Transformers;
use Jiminny\Models\Crm\Field;
use Jiminny\Models\Crm\Profile;
use League\Fractal\Resource\Collection;
use League\Fractal\TransformerAbstract;
class FieldTransformer extends TransformerAbstract
{
protected array $availableIncludes = [
'options',
];
private ?Profile $profile;
private bool $noDefault = false;
public function __construct(?Profile $profile = null)
{
$this->profile = $profile;
}
public function setNoDefault(bool $noDefault)
{
$this->noDefault = $noDefault;
}
public function transform(Field $field): array
{
$defaultValue = $field->default_value;
$type = $field->type;
if (\is_bool($defaultValue)) {
$defaultValue = (bool) $defaultValue;
}
return [
'id' => $field->id_string,
'objectType' => $field->object_type,
'label' => $field->label,
'fieldName' => $field->crm_provider_id,
'type' => $type,
'enabled' => $field->is_selectable,
'length' => $field->length,
'defaultValue' => $defaultValue,
];
}
public function includeOptions(Field $field): ?Collection
{
if ($field->isPicklist() && $values = $field->values) {
// if ($field->type === Field::TYPE_PICKLIST && $values = $field->values) {
// This gets a little complex. We need to check if this field has any record type constraints for the profile.
if (
$this->profile
&& ($recordType = $this->profile->{$field->object_type . 'RecordType'})
&& $recordType->fieldValues()->where('crm_field_id', $field->id)->exists()
) {
// Fetch the values specific for this record type.
$values = $recordType->fieldValues()->where('crm_field_id', $field->id)->get();
}
if ($this->noDefault) {
foreach ($values as $value) {
$value->is_default = false;
}
}
return $this->collection($values, new FieldValueTransformer());
}
return null;
}
}...
|
[{"role":"AXButton","text" [{"role":"AXButton","text":"Project: faVsco.js, menu","depth":5,"on_screen":true,"help_text":"~/jiminny/app","role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"JY-20915-fix-missing-header-text-relay, menu","depth":5,"on_screen":true,"help_text":"Git Branch: JY-20915-fix-missing-header-text-relay","role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Start Listening for PHP Debug Connections","depth":5,"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"TextRelayServiceTest","depth":6,"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Run 'TextRelayServiceTest'","depth":6,"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Debug 'TextRelayServiceTest'","depth":6,"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"More Actions","depth":6,"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"JetBrains AI","depth":5,"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Search Everywhere","depth":5,"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"IDE and Project Settings","depth":5,"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Sync Changes","depth":4,"bounds":{"left":0.0,"top":0.0,"width":0.018055556,"height":0.026666667},"on_screen":false,"role_description":"button","is_enabled":false,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Hide This Notification","depth":4,"bounds":{"left":0.0,"top":0.0,"width":0.018055556,"height":0.026666667},"on_screen":false,"role_description":"button","is_enabled":false,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Code changed:","depth":4,"bounds":{"left":0.0,"top":0.0,"width":0.088194445,"height":0.027777778},"on_screen":false,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Hide","depth":4,"bounds":{"left":0.0,"top":0.0,"width":0.018055556,"height":0.026666667},"on_screen":false,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXStaticText","text":"11","depth":4,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"1","depth":4,"on_screen":true,"role_description":"text"},{"role":"AXButton","text":"Previous Highlighted Error","depth":4,"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Next Highlighted Error","depth":4,"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXTextArea","text":"<?php\n\nnamespace Jiminny\\Http\\Transformers;\n\nuse Jiminny\\Models\\Crm\\Field;\nuse Jiminny\\Models\\Crm\\Profile;\nuse League\\Fractal\\Resource\\Collection;\nuse League\\Fractal\\TransformerAbstract;\n\nclass FieldTransformer extends TransformerAbstract\n{\n protected array $availableIncludes = [\n 'options',\n ];\n private ?Profile $profile;\n\n private bool $noDefault = false;\n\n public function __construct(?Profile $profile = null)\n {\n $this->profile = $profile;\n }\n\n public function setNoDefault(bool $noDefault)\n {\n $this->noDefault = $noDefault;\n }\n\n public function transform(Field $field): array\n {\n $defaultValue = $field->default_value;\n $type = $field->type;\n\n if (\\is_bool($defaultValue)) {\n $defaultValue = (bool) $defaultValue;\n }\n\n return [\n 'id' => $field->id_string,\n 'objectType' => $field->object_type,\n 'label' => $field->label,\n 'fieldName' => $field->crm_provider_id,\n 'type' => $type,\n 'enabled' => $field->is_selectable,\n 'length' => $field->length,\n 'defaultValue' => $defaultValue,\n ];\n }\n\n public function includeOptions(Field $field): ?Collection\n {\n if ($field->isPicklist() && $values = $field->values) {\n// if ($field->type === Field::TYPE_PICKLIST && $values = $field->values) {\n // This gets a little complex. We need to check if this field has any record type constraints for the profile.\n if (\n $this->profile\n && ($recordType = $this->profile->{$field->object_type . 'RecordType'})\n && $recordType->fieldValues()->where('crm_field_id', $field->id)->exists()\n ) {\n // Fetch the values specific for this record type.\n $values = $recordType->fieldValues()->where('crm_field_id', $field->id)->get();\n }\n\n if ($this->noDefault) {\n foreach ($values as $value) {\n $value->is_default = false;\n }\n }\n\n return $this->collection($values, new FieldValueTransformer());\n }\n\n return null;\n }\n}","depth":4,"on_screen":true,"value":"<?php\n\nnamespace Jiminny\\Http\\Transformers;\n\nuse Jiminny\\Models\\Crm\\Field;\nuse Jiminny\\Models\\Crm\\Profile;\nuse League\\Fractal\\Resource\\Collection;\nuse League\\Fractal\\TransformerAbstract;\n\nclass FieldTransformer extends TransformerAbstract\n{\n protected array $availableIncludes = [\n 'options',\n ];\n private ?Profile $profile;\n\n private bool $noDefault = false;\n\n public function __construct(?Profile $profile = null)\n {\n $this->profile = $profile;\n }\n\n public function setNoDefault(bool $noDefault)\n {\n $this->noDefault = $noDefault;\n }\n\n public function transform(Field $field): array\n {\n $defaultValue = $field->default_value;\n $type = $field->type;\n\n if (\\is_bool($defaultValue)) {\n $defaultValue = (bool) $defaultValue;\n }\n\n return [\n 'id' => $field->id_string,\n 'objectType' => $field->object_type,\n 'label' => $field->label,\n 'fieldName' => $field->crm_provider_id,\n 'type' => $type,\n 'enabled' => $field->is_selectable,\n 'length' => $field->length,\n 'defaultValue' => $defaultValue,\n ];\n }\n\n public function includeOptions(Field $field): ?Collection\n {\n if ($field->isPicklist() && $values = $field->values) {\n// if ($field->type === Field::TYPE_PICKLIST && $values = $field->values) {\n // This gets a little complex. We need to check if this field has any record type constraints for the profile.\n if (\n $this->profile\n && ($recordType = $this->profile->{$field->object_type . 'RecordType'})\n && $recordType->fieldValues()->where('crm_field_id', $field->id)->exists()\n ) {\n // Fetch the values specific for this record type.\n $values = $recordType->fieldValues()->where('crm_field_id', $field->id)->get();\n }\n\n if ($this->noDefault) {\n foreach ($values as $value) {\n $value->is_default = false;\n }\n }\n\n return $this->collection($values, new FieldValueTransformer());\n }\n\n return null;\n }\n}","role_description":"text entry area","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false}]...
|
-6759074700917923411
|
-7195371876637394509
|
click
|
accessibility
|
NULL
|
Project: faVsco.js, menu
JY-20915-fix-missing-head Project: faVsco.js, menu
JY-20915-fix-missing-header-text-relay, menu
Start Listening for PHP Debug Connections
TextRelayServiceTest
Run 'TextRelayServiceTest'
Debug 'TextRelayServiceTest'
More Actions
JetBrains AI
Search Everywhere
IDE and Project Settings
Sync Changes
Hide This Notification
Code changed:
Hide
11
1
Previous Highlighted Error
Next Highlighted Error
<?php
namespace Jiminny\Http\Transformers;
use Jiminny\Models\Crm\Field;
use Jiminny\Models\Crm\Profile;
use League\Fractal\Resource\Collection;
use League\Fractal\TransformerAbstract;
class FieldTransformer extends TransformerAbstract
{
protected array $availableIncludes = [
'options',
];
private ?Profile $profile;
private bool $noDefault = false;
public function __construct(?Profile $profile = null)
{
$this->profile = $profile;
}
public function setNoDefault(bool $noDefault)
{
$this->noDefault = $noDefault;
}
public function transform(Field $field): array
{
$defaultValue = $field->default_value;
$type = $field->type;
if (\is_bool($defaultValue)) {
$defaultValue = (bool) $defaultValue;
}
return [
'id' => $field->id_string,
'objectType' => $field->object_type,
'label' => $field->label,
'fieldName' => $field->crm_provider_id,
'type' => $type,
'enabled' => $field->is_selectable,
'length' => $field->length,
'defaultValue' => $defaultValue,
];
}
public function includeOptions(Field $field): ?Collection
{
if ($field->isPicklist() && $values = $field->values) {
// if ($field->type === Field::TYPE_PICKLIST && $values = $field->values) {
// This gets a little complex. We need to check if this field has any record type constraints for the profile.
if (
$this->profile
&& ($recordType = $this->profile->{$field->object_type . 'RecordType'})
&& $recordType->fieldValues()->where('crm_field_id', $field->id)->exists()
) {
// Fetch the values specific for this record type.
$values = $recordType->fieldValues()->where('crm_field_id', $field->id)->get();
}
if ($this->noDefault) {
foreach ($values as $value) {
$value->is_default = false;
}
}
return $this->collection($values, new FieldValueTransformer());
}
return null;
}
}...
|
NULL
|
NULL
|
NULL
|
NULL
|
|
79845
|
2793
|
1
|
2026-05-28T06:44:50.733796+00:00
|
/Users/lukas/.screenpipe/data/data/2026-05-28/1779 /Users/lukas/.screenpipe/data/data/2026-05-28/1779950690733_m2.jpg...
|
PhpStorm
|
faVsco.js – FieldTransformer.php
|
1
|
NULL
|
monitor_2
|
NULL
|
NULL
|
NULL
|
NULL
|
Project: faVsco.js, menu
JY-20915-fix-missing-head Project: faVsco.js, menu
JY-20915-fix-missing-header-text-relay, menu
Start Listening for PHP Debug Connections
TextRelayServiceTest
Run 'TextRelayServiceTest'
Debug 'TextRelayServiceTest'
More Actions
JetBrains AI
Search Everywhere
IDE and Project Settings
Sync Changes...
|
[{"role":"AXButton","text" [{"role":"AXButton","text":"Project: faVsco.js, menu","depth":5,"bounds":{"left":0.025930852,"top":0.019952115,"width":0.03856383,"height":0.025538707},"on_screen":true,"help_text":"~/jiminny/app","role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"JY-20915-fix-missing-header-text-relay, menu","depth":5,"bounds":{"left":0.064494684,"top":0.019952115,"width":0.09740692,"height":0.025538707},"on_screen":true,"help_text":"Git Branch: JY-20915-fix-missing-header-text-relay","role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Start Listening for PHP Debug Connections","depth":5,"bounds":{"left":0.8374335,"top":0.019952115,"width":0.011303191,"height":0.025538707},"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"TextRelayServiceTest","depth":6,"bounds":{"left":0.85272604,"top":0.019952115,"width":0.062832445,"height":0.025538707},"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Run 'TextRelayServiceTest'","depth":6,"bounds":{"left":0.9155585,"top":0.019952115,"width":0.011303191,"height":0.025538707},"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Debug 'TextRelayServiceTest'","depth":6,"bounds":{"left":0.9268617,"top":0.019952115,"width":0.011303191,"height":0.025538707},"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"More Actions","depth":6,"bounds":{"left":0.9381649,"top":0.019952115,"width":0.011303191,"height":0.025538707},"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"JetBrains AI","depth":5,"bounds":{"left":0.96609044,"top":0.019952115,"width":0.011303191,"height":0.025538707},"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Search Everywhere","depth":5,"bounds":{"left":0.9773936,"top":0.019952115,"width":0.011303191,"height":0.025538707},"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"IDE and Project Settings","depth":5,"bounds":{"left":0.9886968,"top":0.019952115,"width":0.011303186,"height":0.025538707},"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Sync Changes","depth":4,"bounds":{"left":0.27027926,"top":1.0,"width":0.008643617,"height":0.0},"on_screen":false,"role_description":"button","is_enabled":false,"is_focused":false,"is_selected":false,"is_expanded":false}]...
|
-6107491181398235475
|
-8780371094093495853
|
click
|
hybrid
|
NULL
|
Project: faVsco.js, menu
JY-20915-fix-missing-head Project: faVsco.js, menu
JY-20915-fix-missing-header-text-relay, menu
Start Listening for PHP Debug Connections
TextRelayServiceTest
Run 'TextRelayServiceTest'
Debug 'TextRelayServiceTest'
More Actions
JetBrains AI
Search Everywhere
IDE and Project Settings
Sync Changes
rnpstomFV faVsco.|s ~$ JY-20915-fix-missProinet v© DealStageTransformer.phpresture ronstonmer.onoridld tonstotmer.ondorielovalelon omeone© GroupTransformer.ohooneoaononoieroncJoo eanouneonC LanquageDialect TransformeCLavout Enttviranstormer choC Lavout Transformer.ohoC) Lesdtranstormer.oho© MessageTransformer oho)CMomentitranstormer.onoCNotetiranstormer.onoCNotrestontttans ormer.onocenoorur eommsodtodecennodur ithaeomat ocoarcinsottihne omatooc Paroheiane tmanooipem isronlttnohmorot(© PlaybackPageTransformer.p(© PlaybookTransformer.pho© PlaybookTreeTransformer.phPlaylistActivityTransformer.plPlaylistSharesTransformer.phPlaylistTransformer.phprrospectsfanstoner.oneoQueston lfanstommer.ohoc Kolellansouneen© ScorecardRuleTiransformer.olCoocecrmcontrober.orcomposer.json• DockerfileTO0%L7Thu 28 May 9:44:50TextRelayServiceTest+0.custom.losravelloSF (iminny@localhost)un crm fields (jiminnytalocalhost) x# HS Jocal jiminny@tocalhost# consolel poonA console (EU]A console [STAGING)Ty:AlrowDLQwEOgMCSrLL+OeANYAV7- WHERE id IN (1885, 3014)=•OROER 81 wuid (UULD with tine-low a-:ae con_configuration_id v* Bcrn_provider_id U#8 label M1885 S8a51d4d-8ca7-49f0-9b2c-e16027877ccS39 ReninderDateTimeReminder Date/Tine3814 a3d3dfSa-eaa1-43d0-b95e-1ff4bec8c42839 picktestmulti cpicktestnultrner hensewietwtlerekevouteScarched dinss Crmcontrolien in siminnuinodRead CrmController.php and 2 other files5&9public function setNolefault(bool SnobefauLe)l...public function transform(Field Sfield): arraySdefaultValue = Sfield->derault_value:Stype = Sfield->type:it (is_bool(SdefaultValue)) 4Cootantvallua = Thoah Coatan tuaima:return"id' => Sfield->id string.'objectType' => Sfield->obiect type.Label u> Streldesladel"fieldName' a> Sfield->crn provider id"cype suyoe'enabled' => Sfield-sis selectablelenounsseles enoun"defaultValue' => SdefaultValue.PasdSiwldnho. aocllltwouttanetormar.obdwstoon.myna.wsis.multt-oickistielosarecurtentynoror.cumocn000inavoulsooc@use.nene1oransformer:: includeOpt ions () method only handies TYPE PICKLIST and excludes TYPE MULTIPICKLISTin /app/Http/Transformers/FieldTransformer.php line 52aphe1f (Sfield→>type =a= Field::TYPE PICKLIST 66 Svalues = Sfield-»values) 4Tiniscon.tion.onwinciloesob.ionstocreou.rpicketelosino.mutt-otcklisehCAlTtAn.oahte the cond ton to ind ude woth dickk wong"defauit" false346-05-4001-3684-470015040C Sess ontirans ormer.onoc Sacetirans omer.onoc sactrans ormec.ondf TeamDomainTransformec.ohe8) Teamintcaration Transformer8) Team Transtormec ohoc) Themetirand ormes.choc)Tooic transtormer onoc)Tooic troced trane ormer.oheerealrne nrmor nhre Wolcodcroeehlind Mmornhrc Korol ahrpublze tuncczon anctudeupcions(hrela stieto): pcolteccionif (Sfield->isPicklist() && Svalues = $field->values) ‹StSfteldos voe sas Sieldiatpe prkasiss Syalues = Steld->values)// This gets a little complex. We need to check if this field has any record type constraintaSthis-sorofileScecondivne & SthiisoorotRoystieldrsobsiecttyne"RecordType')se ScecordTvne-sSieldValuesOeshere("eon Siold sd" Ssieldesid)-sexicte/ Fetch the values specific for this record type.Svalues = Srecordtype->fieldValues-›where("crn field id', Sfield->id)-›geto:if (Sthis->noDefault) €foreach (Svalues as Svalue)Svalue->is default = false:return Sthis->collection(Svalues, new FieldValueTransfornerO)adoroher hoousoasMastardau..wMsolauryatue: null*id*: *54415f81-9f04-435d-9b6a-2fa0e178ce61*v-up: Stne -children".tdnatontent" PodeNtwadtur TatmeyoRahiest4 space...
|
NULL
|
NULL
|
NULL
|
NULL
|
|
79844
|
2792
|
0
|
2026-05-28T06:44:50.632537+00:00
|
/Users/lukas/.screenpipe/data/data/2026-05-28/1779 /Users/lukas/.screenpipe/data/data/2026-05-28/1779950690632_m1.jpg...
|
PhpStorm
|
faVsco.js – FieldTransformer.php
|
1
|
NULL
|
monitor_1
|
NULL
|
NULL
|
NULL
|
NULL
|
Project: faVsco.js, menu
JY-20915-fix-missing-head Project: faVsco.js, menu
JY-20915-fix-missing-header-text-relay, menu
Start Listening for PHP Debug Connections
TextRelayServiceTest
Run 'TextRelayServiceTest'
Debug 'TextRelayServiceTest'
More Actions
JetBrains AI
Search Everywhere
IDE and Project Settings
Sync Changes
Hide This Notification
Code changed:
Hide...
|
[{"role":"AXButton","text" [{"role":"AXButton","text":"Project: faVsco.js, menu","depth":5,"on_screen":true,"help_text":"~/jiminny/app","role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"JY-20915-fix-missing-header-text-relay, menu","depth":5,"on_screen":true,"help_text":"Git Branch: JY-20915-fix-missing-header-text-relay","role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Start Listening for PHP Debug Connections","depth":5,"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"TextRelayServiceTest","depth":6,"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Run 'TextRelayServiceTest'","depth":6,"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Debug 'TextRelayServiceTest'","depth":6,"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"More Actions","depth":6,"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"JetBrains AI","depth":5,"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Search Everywhere","depth":5,"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"IDE and Project Settings","depth":5,"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Sync Changes","depth":4,"bounds":{"left":0.0,"top":0.0,"width":0.018055556,"height":0.026666667},"on_screen":false,"role_description":"button","is_enabled":false,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Hide This Notification","depth":4,"bounds":{"left":0.0,"top":0.0,"width":0.018055556,"height":0.026666667},"on_screen":false,"role_description":"button","is_enabled":false,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Code changed:","depth":4,"bounds":{"left":0.0,"top":0.0,"width":0.088194445,"height":0.027777778},"on_screen":false,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Hide","depth":4,"bounds":{"left":0.0,"top":0.0,"width":0.018055556,"height":0.026666667},"on_screen":false,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false}]...
|
-7334512262672537281
|
-8780802033898552894
|
click
|
hybrid
|
NULL
|
Project: faVsco.js, menu
JY-20915-fix-missing-head Project: faVsco.js, menu
JY-20915-fix-missing-header-text-relay, menu
Start Listening for PHP Debug Connections
TextRelayServiceTest
Run 'TextRelayServiceTest'
Debug 'TextRelayServiceTest'
More Actions
JetBrains AI
Search Everywhere
IDE and Project Settings
Sync Changes
Hide This Notification
Code changed:
Hide
iTerm2ShellEditViewSessionScriptsProfilesWindowHelp•DOCKER₴81DEV (docker)-zsh*3configcachecompiledeventsroutesviewsjiminny-worker-processing-1:jiminny-worker-processing-1_00: stoppedjiminny-worker-processing-2:jiminny-worker-processing-2_00:stoppedjiminny-worker-processing-3:jiminny-worker-processing-3_00: stoppedjiminny-worker-processing-4:jiminny-worker-processing-4_00: stoppedjiminny-worker-processing-5:jiminny-worker-processing-5_00:stoppedjiminny-worker-processing-delayed: jiminny-worker-processing-delayed_00: stoppedworker-analytics:worker-analytics_00: stoppedworker-crm-update:worker-crm-update_00: stoppedworker-download:worker-download_00: stoppedworker-nudges:worker-nudges_00: stoppedworker:worker_00: stoppedworker-audio:worker-audio_00: stoppedworker-calendar:worker-calendar_00:stoppedworker-conferences:worker-conferences_00: stoppedworker-crm-sync:worker-crm-sync_00: stoppedworker-emails:worker-emails_00: stoppedworker-es-update:worker-es-update_00: stoppedartisan-schedule:artisan-schedule_00: stoppedartisan-schedule:artisan-schedule_00: startedjiminny-worker-processing-1:jiminny-worker-processing-1_00: startedjiminny-worker-processing-2:jiminny-worker-processing-2_00: startedjiminny-worker-processing-3:jiminny-worker-processing-3_00: startedjiminny-worker-processing-4:jiminny-worker-processing-4_00: startedjiminny-worker-processing-5:jiminny-worker-processing-5_00: startedjiminny-worker-processing-delayed:jiminny-worker-processing-delayed_00:startedworker:worker_00: startedworker-analytics:worker-analytics_00: startedworker-audio:worker-audio_00: startedworker-calendar:worker-calendar_00: startedworker-conferences:worker-conferences_00: startedworker-crm-sync:worker-crm-sync_00: startedworker-crm-update:worker-crm-update_00:startedworker-download:worker-download_00:startedworker-emails:worker-emails_00: startedworker-es-update:worker-es-update_00: startedworker-nudges:worker-nudges_00:startedroot@docker_lamp_1:/home/jiminny# l100% C47 8• Thu 28 May 9:44:50DEV (docker)ffmpeg- 84-zshDaily - Platformin 1m - 9:45-10:05 AM66.75ms DONE3.76ms DONE3.74ms DONE2.01ms DONE26.78ms DONECi Join Google MeetDEV...
|
79841
|
NULL
|
NULL
|
NULL
|
|
79838
|
2791
|
80
|
2026-05-28T06:44:39.761554+00:00
|
/Users/lukas/.screenpipe/data/data/2026-05-28/1779 /Users/lukas/.screenpipe/data/data/2026-05-28/1779950679761_m2.jpg...
|
PhpStorm
|
faVsco.js – FieldTransformer.php
|
1
|
NULL
|
monitor_2
|
NULL
|
NULL
|
NULL
|
NULL
|
Project: faVsco.js, menu
JY-20915-fix-missing-head Project: faVsco.js, menu
JY-20915-fix-missing-header-text-relay, menu
Start Listening for PHP Debug Connections
TextRelayServiceTest
Run 'TextRelayServiceTest'
Debug 'TextRelayServiceTest'
More Actions
JetBrains AI
Search Everywhere
IDE and Project Settings
Sync Changes
Hide This Notification
Code changed:
Hide
11
1
Previous Highlighted Error
Next Highlighted Error
<?php
namespace Jiminny\Http\Transformers;
use Jiminny\Models\Crm\Field;
use Jiminny\Models\Crm\Profile;
use League\Fractal\Resource\Collection;
use League\Fractal\TransformerAbstract;
class FieldTransformer extends TransformerAbstract
{
protected array $availableIncludes = [
'options',
];
private ?Profile $profile;
private bool $noDefault = false;
public function __construct(?Profile $profile = null)
{
$this->profile = $profile;
}
public function setNoDefault(bool $noDefault)
{
$this->noDefault = $noDefault;
}
public function transform(Field $field): array
{
$defaultValue = $field->default_value;
$type = $field->type;
if (\is_bool($defaultValue)) {
$defaultValue = (bool) $defaultValue;
}
return [
'id' => $field->id_string,
'objectType' => $field->object_type,
'label' => $field->label,
'fieldName' => $field->crm_provider_id,
'type' => $type,
'enabled' => $field->is_selectable,
'length' => $field->length,
'defaultValue' => $defaultValue,
];
}
public function includeOptions(Field $field): ?Collection
{
if ($field->isPicklist() && $values = $field->values) {
// if ($field->type === Field::TYPE_PICKLIST && $values = $field->values) {
// This gets a little complex. We need to check if this field has any record type constraints for the profile.
if (
$this->profile
&& ($recordType = $this->profile->{$field->object_type . 'RecordType'})
&& $recordType->fieldValues()->where('crm_field_id', $field->id)->exists()
) {
// Fetch the values specific for this record type.
$values = $recordType->fieldValues()->where('crm_field_id', $field->id)->get();
}
if ($this->noDefault) {
foreach ($values as $value) {
$value->is_default = false;
}
}
return $this->collection($values, new FieldValueTransformer());
}
return null;
}
}
A
id
B
uuid (UUID with time-low and time-high swapped)
C
crm_configuration_id
D
crm_provider_id
E
label
F
description
G
type
H
length
I
default_value
J
object_type
K...
|
[{"role":"AXButton","text" [{"role":"AXButton","text":"Project: faVsco.js, menu","depth":5,"bounds":{"left":0.025930852,"top":0.019952115,"width":0.03856383,"height":0.025538707},"on_screen":true,"help_text":"~/jiminny/app","role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"JY-20915-fix-missing-header-text-relay, menu","depth":5,"bounds":{"left":0.064494684,"top":0.019952115,"width":0.09740692,"height":0.025538707},"on_screen":true,"help_text":"Git Branch: JY-20915-fix-missing-header-text-relay","role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Start Listening for PHP Debug Connections","depth":5,"bounds":{"left":0.8374335,"top":0.019952115,"width":0.011303191,"height":0.025538707},"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"TextRelayServiceTest","depth":6,"bounds":{"left":0.85272604,"top":0.019952115,"width":0.062832445,"height":0.025538707},"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Run 'TextRelayServiceTest'","depth":6,"bounds":{"left":0.9155585,"top":0.019952115,"width":0.011303191,"height":0.025538707},"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Debug 'TextRelayServiceTest'","depth":6,"bounds":{"left":0.9268617,"top":0.019952115,"width":0.011303191,"height":0.025538707},"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"More Actions","depth":6,"bounds":{"left":0.9381649,"top":0.019952115,"width":0.011303191,"height":0.025538707},"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"JetBrains AI","depth":5,"bounds":{"left":0.96609044,"top":0.019952115,"width":0.011303191,"height":0.025538707},"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Search Everywhere","depth":5,"bounds":{"left":0.9773936,"top":0.019952115,"width":0.011303191,"height":0.025538707},"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"IDE and Project Settings","depth":5,"bounds":{"left":0.9886968,"top":0.019952115,"width":0.011303186,"height":0.025538707},"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Sync Changes","depth":4,"bounds":{"left":0.27027926,"top":1.0,"width":0.008643617,"height":0.0},"on_screen":false,"role_description":"button","is_enabled":false,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Hide This Notification","depth":4,"bounds":{"left":0.27027926,"top":1.0,"width":0.008643617,"height":0.0},"on_screen":false,"role_description":"button","is_enabled":false,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Code changed:","depth":4,"bounds":{"left":0.27027926,"top":1.0,"width":0.042220745,"height":0.0},"on_screen":false,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Hide","depth":4,"bounds":{"left":0.27027926,"top":1.0,"width":0.008643617,"height":0.0},"on_screen":false,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXStaticText","text":"11","depth":4,"bounds":{"left":0.37699467,"top":0.12529927,"width":0.008976064,"height":0.015163607},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"1","depth":4,"bounds":{"left":0.3879654,"top":0.12529927,"width":0.00731383,"height":0.015163607},"on_screen":true,"role_description":"text"},{"role":"AXButton","text":"Previous Highlighted Error","depth":4,"bounds":{"left":0.39694148,"top":0.123703115,"width":0.00731383,"height":0.018355945},"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Next Highlighted Error","depth":4,"bounds":{"left":0.40425533,"top":0.123703115,"width":0.006981383,"height":0.018355945},"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXTextArea","text":"<?php\n\nnamespace Jiminny\\Http\\Transformers;\n\nuse Jiminny\\Models\\Crm\\Field;\nuse Jiminny\\Models\\Crm\\Profile;\nuse League\\Fractal\\Resource\\Collection;\nuse League\\Fractal\\TransformerAbstract;\n\nclass FieldTransformer extends TransformerAbstract\n{\n protected array $availableIncludes = [\n 'options',\n ];\n private ?Profile $profile;\n\n private bool $noDefault = false;\n\n public function __construct(?Profile $profile = null)\n {\n $this->profile = $profile;\n }\n\n public function setNoDefault(bool $noDefault)\n {\n $this->noDefault = $noDefault;\n }\n\n public function transform(Field $field): array\n {\n $defaultValue = $field->default_value;\n $type = $field->type;\n\n if (\\is_bool($defaultValue)) {\n $defaultValue = (bool) $defaultValue;\n }\n\n return [\n 'id' => $field->id_string,\n 'objectType' => $field->object_type,\n 'label' => $field->label,\n 'fieldName' => $field->crm_provider_id,\n 'type' => $type,\n 'enabled' => $field->is_selectable,\n 'length' => $field->length,\n 'defaultValue' => $defaultValue,\n ];\n }\n\n public function includeOptions(Field $field): ?Collection\n {\n if ($field->isPicklist() && $values = $field->values) {\n// if ($field->type === Field::TYPE_PICKLIST && $values = $field->values) {\n // This gets a little complex. We need to check if this field has any record type constraints for the profile.\n if (\n $this->profile\n && ($recordType = $this->profile->{$field->object_type . 'RecordType'})\n && $recordType->fieldValues()->where('crm_field_id', $field->id)->exists()\n ) {\n // Fetch the values specific for this record type.\n $values = $recordType->fieldValues()->where('crm_field_id', $field->id)->get();\n }\n\n if ($this->noDefault) {\n foreach ($values as $value) {\n $value->is_default = false;\n }\n }\n\n return $this->collection($values, new FieldValueTransformer());\n }\n\n return null;\n }\n}","depth":4,"on_screen":true,"value":"<?php\n\nnamespace Jiminny\\Http\\Transformers;\n\nuse Jiminny\\Models\\Crm\\Field;\nuse Jiminny\\Models\\Crm\\Profile;\nuse League\\Fractal\\Resource\\Collection;\nuse League\\Fractal\\TransformerAbstract;\n\nclass FieldTransformer extends TransformerAbstract\n{\n protected array $availableIncludes = [\n 'options',\n ];\n private ?Profile $profile;\n\n private bool $noDefault = false;\n\n public function __construct(?Profile $profile = null)\n {\n $this->profile = $profile;\n }\n\n public function setNoDefault(bool $noDefault)\n {\n $this->noDefault = $noDefault;\n }\n\n public function transform(Field $field): array\n {\n $defaultValue = $field->default_value;\n $type = $field->type;\n\n if (\\is_bool($defaultValue)) {\n $defaultValue = (bool) $defaultValue;\n }\n\n return [\n 'id' => $field->id_string,\n 'objectType' => $field->object_type,\n 'label' => $field->label,\n 'fieldName' => $field->crm_provider_id,\n 'type' => $type,\n 'enabled' => $field->is_selectable,\n 'length' => $field->length,\n 'defaultValue' => $defaultValue,\n ];\n }\n\n public function includeOptions(Field $field): ?Collection\n {\n if ($field->isPicklist() && $values = $field->values) {\n// if ($field->type === Field::TYPE_PICKLIST && $values = $field->values) {\n // This gets a little complex. We need to check if this field has any record type constraints for the profile.\n if (\n $this->profile\n && ($recordType = $this->profile->{$field->object_type . 'RecordType'})\n && $recordType->fieldValues()->where('crm_field_id', $field->id)->exists()\n ) {\n // Fetch the values specific for this record type.\n $values = $recordType->fieldValues()->where('crm_field_id', $field->id)->get();\n }\n\n if ($this->noDefault) {\n foreach ($values as $value) {\n $value->is_default = false;\n }\n }\n\n return $this->collection($values, new FieldValueTransformer());\n }\n\n return null;\n }\n}","role_description":"text entry area","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXStaticText","text":"A","depth":4,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"id","depth":5,"bounds":{"left":0.27027926,"top":1.0,"width":0.020944148,"height":0.0},"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"B","depth":4,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"uuid (UUID with time-low and time-high swapped)","depth":5,"bounds":{"left":0.27027926,"top":1.0,"width":0.020944148,"height":0.0},"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"C","depth":4,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"crm_configuration_id","depth":5,"bounds":{"left":0.27027926,"top":1.0,"width":0.020944148,"height":0.0},"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"D","depth":4,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"crm_provider_id","depth":5,"bounds":{"left":0.27027926,"top":1.0,"width":0.020944148,"height":0.0},"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"E","depth":4,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"label","depth":5,"bounds":{"left":0.27027926,"top":1.0,"width":0.020944148,"height":0.0},"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"F","depth":4,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"description","depth":5,"bounds":{"left":0.27027926,"top":1.0,"width":0.020944148,"height":0.0},"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"G","depth":4,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"type","depth":5,"bounds":{"left":0.27027926,"top":1.0,"width":0.020944148,"height":0.0},"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"H","depth":4,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"length","depth":5,"bounds":{"left":0.27027926,"top":1.0,"width":0.020944148,"height":0.0},"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"I","depth":4,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"default_value","depth":5,"bounds":{"left":0.27027926,"top":1.0,"width":0.020944148,"height":0.0},"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"J","depth":4,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"object_type","depth":5,"bounds":{"left":0.27027926,"top":1.0,"width":0.020944148,"height":0.0},"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"K","depth":4,"on_screen":false,"role_description":"text"}]...
|
-8122398310849236392
|
-8057802409186872909
|
typing_pause
|
accessibility
|
NULL
|
Project: faVsco.js, menu
JY-20915-fix-missing-head Project: faVsco.js, menu
JY-20915-fix-missing-header-text-relay, menu
Start Listening for PHP Debug Connections
TextRelayServiceTest
Run 'TextRelayServiceTest'
Debug 'TextRelayServiceTest'
More Actions
JetBrains AI
Search Everywhere
IDE and Project Settings
Sync Changes
Hide This Notification
Code changed:
Hide
11
1
Previous Highlighted Error
Next Highlighted Error
<?php
namespace Jiminny\Http\Transformers;
use Jiminny\Models\Crm\Field;
use Jiminny\Models\Crm\Profile;
use League\Fractal\Resource\Collection;
use League\Fractal\TransformerAbstract;
class FieldTransformer extends TransformerAbstract
{
protected array $availableIncludes = [
'options',
];
private ?Profile $profile;
private bool $noDefault = false;
public function __construct(?Profile $profile = null)
{
$this->profile = $profile;
}
public function setNoDefault(bool $noDefault)
{
$this->noDefault = $noDefault;
}
public function transform(Field $field): array
{
$defaultValue = $field->default_value;
$type = $field->type;
if (\is_bool($defaultValue)) {
$defaultValue = (bool) $defaultValue;
}
return [
'id' => $field->id_string,
'objectType' => $field->object_type,
'label' => $field->label,
'fieldName' => $field->crm_provider_id,
'type' => $type,
'enabled' => $field->is_selectable,
'length' => $field->length,
'defaultValue' => $defaultValue,
];
}
public function includeOptions(Field $field): ?Collection
{
if ($field->isPicklist() && $values = $field->values) {
// if ($field->type === Field::TYPE_PICKLIST && $values = $field->values) {
// This gets a little complex. We need to check if this field has any record type constraints for the profile.
if (
$this->profile
&& ($recordType = $this->profile->{$field->object_type . 'RecordType'})
&& $recordType->fieldValues()->where('crm_field_id', $field->id)->exists()
) {
// Fetch the values specific for this record type.
$values = $recordType->fieldValues()->where('crm_field_id', $field->id)->get();
}
if ($this->noDefault) {
foreach ($values as $value) {
$value->is_default = false;
}
}
return $this->collection($values, new FieldValueTransformer());
}
return null;
}
}
A
id
B
uuid (UUID with time-low and time-high swapped)
C
crm_configuration_id
D
crm_provider_id
E
label
F
description
G
type
H
length
I
default_value
J
object_type
K...
|
79836
|
NULL
|
NULL
|
NULL
|
|
79837
|
2790
|
53
|
2026-05-28T06:44:39.577656+00:00
|
/Users/lukas/.screenpipe/data/data/2026-05-28/1779 /Users/lukas/.screenpipe/data/data/2026-05-28/1779950679577_m1.jpg...
|
PhpStorm
|
faVsco.js – FieldTransformer.php
|
1
|
NULL
|
monitor_1
|
NULL
|
NULL
|
NULL
|
NULL
|
Project: faVsco.js, menu
JY-20915-fix-missing-head Project: faVsco.js, menu
JY-20915-fix-missing-header-text-relay, menu
Start Listening for PHP Debug Connections
TextRelayServiceTest
Run 'TextRelayServiceTest'
Debug 'TextRelayServiceTest'
More Actions
JetBrains AI
Search Everywhere
IDE and Project Settings
Sync Changes
Hide This Notification
Code changed:
Hide
11
1
Previous Highlighted Error
Next Highlighted Error
<?php
namespace Jiminny\Http\Transformers;
use Jiminny\Models\Crm\Field;
use Jiminny\Models\Crm\Profile;
use League\Fractal\Resource\Collection;
use League\Fractal\TransformerAbstract;
class FieldTransformer extends TransformerAbstract
{
protected array $availableIncludes = [
'options',
];
private ?Profile $profile;
private bool $noDefault = false;
public function __construct(?Profile $profile = null)
{
$this->profile = $profile;
}
public function setNoDefault(bool $noDefault)
{
$this->noDefault = $noDefault;
}
public function transform(Field $field): array
{
$defaultValue = $field->default_value;
$type = $field->type;
if (\is_bool($defaultValue)) {
$defaultValue = (bool) $defaultValue;
}
return [
'id' => $field->id_string,
'objectType' => $field->object_type,
'label' => $field->label,
'fieldName' => $field->crm_provider_id,
'type' => $type,
'enabled' => $field->is_selectable,
'length' => $field->length,
'defaultValue' => $defaultValue,
];
}
public function includeOptions(Field $field): ?Collection
{
if ($field->isPicklist() && $values = $field->values) {
// if ($field->type === Field::TYPE_PICKLIST && $values = $field->values) {
// This gets a little complex. We need to check if this field has any record type constraints for the profile.
if (
$this->profile
&& ($recordType = $this->profile->{$field->object_type . 'RecordType'})
&& $recordType->fieldValues()->where('crm_field_id', $field->id)->exists()
) {
// Fetch the values specific for this record type.
$values = $recordType->fieldValues()->where('crm_field_id', $field->id)->get();
}
if ($this->noDefault) {
foreach ($values as $value) {
$value->is_default = false;
}
}
return $this->collection($values, new FieldValueTransformer());
}
return null;
}
}
A
id
B
uuid (UUID with time-low and time-high swapped)
C
crm_configuration_id
D
crm_provider_id
E
label
F
description
G
type
H
length
I
default_value
J
object_type
K
is_selectable
L
is_mandatory
M
is_filterable
N
is_indexable
O
created_at
P
updated_at
Q
is_readonly
Select All
1885
1885
39
58a51d4d-0ca7-49f0-9b2c-e16027877cc5
58a51d4d-0ca7-49f0-9b2c-e16027877cc5
picktestmulti__c
39
39
39
ReminderDateTime
ReminderDateTime
picktestmulti__c
Reminder Date/Time
Reminder Date/Time
picktestmulti__c
<null>
<null>
picktestmulti__c
datetime
datetime
picktestmulti__c
<null>
<null>
39
<null>
<null>
picktestmulti__c
event
event
picktestmulti__c
1
1
39
0
0
39
0
0
39
0
0
39
2022-12-15 14:53:05
2022-12-15 14:53:05
picktestmulti__c
2025-09-29 11:00:32
2025-09-29 11:00:32
picktestmulti__c
0
0
39
3014
3014
39
a3d3df5a-eaa1-43d0-b95e-1ff4bec8c428
a3d3df5a-eaa1-43d0-b95e-1ff4bec8c428
picktestmulti__c
39
39
39
picktestmulti__c
picktestmulti__c
picktestmulti__c
picktestmulti
picktestmulti
picktestmulti__c
<null>
<null>
picktestmulti__c
multi-picklist
multi-picklist
picktestmulti__c
4099
4099
39
<null>
<null>
picktestmulti__c
event
event
picktestmulti__c
1
1
39
0
0
39
0
0
39
0
0...
|
[{"role":"AXButton","text" [{"role":"AXButton","text":"Project: faVsco.js, menu","depth":5,"on_screen":true,"help_text":"~/jiminny/app","role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"JY-20915-fix-missing-header-text-relay, menu","depth":5,"on_screen":true,"help_text":"Git Branch: JY-20915-fix-missing-header-text-relay","role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Start Listening for PHP Debug Connections","depth":5,"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"TextRelayServiceTest","depth":6,"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Run 'TextRelayServiceTest'","depth":6,"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Debug 'TextRelayServiceTest'","depth":6,"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"More Actions","depth":6,"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"JetBrains AI","depth":5,"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Search Everywhere","depth":5,"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"IDE and Project Settings","depth":5,"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Sync Changes","depth":4,"bounds":{"left":0.0,"top":0.0,"width":0.018055556,"height":0.026666667},"on_screen":false,"role_description":"button","is_enabled":false,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Hide This Notification","depth":4,"bounds":{"left":0.0,"top":0.0,"width":0.018055556,"height":0.026666667},"on_screen":false,"role_description":"button","is_enabled":false,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Code changed:","depth":4,"bounds":{"left":0.0,"top":0.0,"width":0.088194445,"height":0.027777778},"on_screen":false,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Hide","depth":4,"bounds":{"left":0.0,"top":0.0,"width":0.018055556,"height":0.026666667},"on_screen":false,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXStaticText","text":"11","depth":4,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"1","depth":4,"on_screen":true,"role_description":"text"},{"role":"AXButton","text":"Previous Highlighted Error","depth":4,"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Next Highlighted Error","depth":4,"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXTextArea","text":"<?php\n\nnamespace Jiminny\\Http\\Transformers;\n\nuse Jiminny\\Models\\Crm\\Field;\nuse Jiminny\\Models\\Crm\\Profile;\nuse League\\Fractal\\Resource\\Collection;\nuse League\\Fractal\\TransformerAbstract;\n\nclass FieldTransformer extends TransformerAbstract\n{\n protected array $availableIncludes = [\n 'options',\n ];\n private ?Profile $profile;\n\n private bool $noDefault = false;\n\n public function __construct(?Profile $profile = null)\n {\n $this->profile = $profile;\n }\n\n public function setNoDefault(bool $noDefault)\n {\n $this->noDefault = $noDefault;\n }\n\n public function transform(Field $field): array\n {\n $defaultValue = $field->default_value;\n $type = $field->type;\n\n if (\\is_bool($defaultValue)) {\n $defaultValue = (bool) $defaultValue;\n }\n\n return [\n 'id' => $field->id_string,\n 'objectType' => $field->object_type,\n 'label' => $field->label,\n 'fieldName' => $field->crm_provider_id,\n 'type' => $type,\n 'enabled' => $field->is_selectable,\n 'length' => $field->length,\n 'defaultValue' => $defaultValue,\n ];\n }\n\n public function includeOptions(Field $field): ?Collection\n {\n if ($field->isPicklist() && $values = $field->values) {\n// if ($field->type === Field::TYPE_PICKLIST && $values = $field->values) {\n // This gets a little complex. We need to check if this field has any record type constraints for the profile.\n if (\n $this->profile\n && ($recordType = $this->profile->{$field->object_type . 'RecordType'})\n && $recordType->fieldValues()->where('crm_field_id', $field->id)->exists()\n ) {\n // Fetch the values specific for this record type.\n $values = $recordType->fieldValues()->where('crm_field_id', $field->id)->get();\n }\n\n if ($this->noDefault) {\n foreach ($values as $value) {\n $value->is_default = false;\n }\n }\n\n return $this->collection($values, new FieldValueTransformer());\n }\n\n return null;\n }\n}","depth":4,"on_screen":true,"value":"<?php\n\nnamespace Jiminny\\Http\\Transformers;\n\nuse Jiminny\\Models\\Crm\\Field;\nuse Jiminny\\Models\\Crm\\Profile;\nuse League\\Fractal\\Resource\\Collection;\nuse League\\Fractal\\TransformerAbstract;\n\nclass FieldTransformer extends TransformerAbstract\n{\n protected array $availableIncludes = [\n 'options',\n ];\n private ?Profile $profile;\n\n private bool $noDefault = false;\n\n public function __construct(?Profile $profile = null)\n {\n $this->profile = $profile;\n }\n\n public function setNoDefault(bool $noDefault)\n {\n $this->noDefault = $noDefault;\n }\n\n public function transform(Field $field): array\n {\n $defaultValue = $field->default_value;\n $type = $field->type;\n\n if (\\is_bool($defaultValue)) {\n $defaultValue = (bool) $defaultValue;\n }\n\n return [\n 'id' => $field->id_string,\n 'objectType' => $field->object_type,\n 'label' => $field->label,\n 'fieldName' => $field->crm_provider_id,\n 'type' => $type,\n 'enabled' => $field->is_selectable,\n 'length' => $field->length,\n 'defaultValue' => $defaultValue,\n ];\n }\n\n public function includeOptions(Field $field): ?Collection\n {\n if ($field->isPicklist() && $values = $field->values) {\n// if ($field->type === Field::TYPE_PICKLIST && $values = $field->values) {\n // This gets a little complex. We need to check if this field has any record type constraints for the profile.\n if (\n $this->profile\n && ($recordType = $this->profile->{$field->object_type . 'RecordType'})\n && $recordType->fieldValues()->where('crm_field_id', $field->id)->exists()\n ) {\n // Fetch the values specific for this record type.\n $values = $recordType->fieldValues()->where('crm_field_id', $field->id)->get();\n }\n\n if ($this->noDefault) {\n foreach ($values as $value) {\n $value->is_default = false;\n }\n }\n\n return $this->collection($values, new FieldValueTransformer());\n }\n\n return null;\n }\n}","role_description":"text entry area","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXStaticText","text":"A","depth":4,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"id","depth":5,"bounds":{"left":0.0,"top":0.0,"width":0.04375,"height":0.03},"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"B","depth":4,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"uuid (UUID with time-low and time-high swapped)","depth":5,"bounds":{"left":0.0,"top":0.0,"width":0.04375,"height":0.03},"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"C","depth":4,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"crm_configuration_id","depth":5,"bounds":{"left":0.0,"top":0.0,"width":0.04375,"height":0.03},"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"D","depth":4,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"crm_provider_id","depth":5,"bounds":{"left":0.0,"top":0.0,"width":0.04375,"height":0.03},"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"E","depth":4,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"label","depth":5,"bounds":{"left":0.0,"top":0.0,"width":0.04375,"height":0.03},"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"F","depth":4,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"description","depth":5,"bounds":{"left":0.0,"top":0.0,"width":0.04375,"height":0.03},"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"G","depth":4,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"type","depth":5,"bounds":{"left":0.0,"top":0.0,"width":0.04375,"height":0.03},"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"H","depth":4,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"length","depth":5,"bounds":{"left":0.0,"top":0.0,"width":0.04375,"height":0.03},"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"I","depth":4,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"default_value","depth":5,"bounds":{"left":0.0,"top":0.0,"width":0.04375,"height":0.03},"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"J","depth":4,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"object_type","depth":5,"bounds":{"left":0.0,"top":0.0,"width":0.04375,"height":0.03},"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"K","depth":4,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"is_selectable","depth":5,"bounds":{"left":0.0,"top":0.0,"width":0.04375,"height":0.03},"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"L","depth":4,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"is_mandatory","depth":5,"bounds":{"left":0.0,"top":0.0,"width":0.04375,"height":0.03},"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"M","depth":4,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"is_filterable","depth":5,"bounds":{"left":0.0,"top":0.0,"width":0.04375,"height":0.03},"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"N","depth":4,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"is_indexable","depth":5,"bounds":{"left":0.0,"top":0.0,"width":0.04375,"height":0.03},"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"O","depth":4,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"created_at","depth":5,"bounds":{"left":0.0,"top":0.0,"width":0.04375,"height":0.03},"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"P","depth":4,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"updated_at","depth":5,"bounds":{"left":0.0,"top":0.0,"width":0.04375,"height":0.03},"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"Q","depth":4,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"is_readonly","depth":5,"bounds":{"left":0.0,"top":0.0,"width":0.04375,"height":0.03},"on_screen":false,"role_description":"text"},{"role":"AXButton","text":"Select All","depth":4,"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXCell","text":"1885","depth":6,"on_screen":true,"role_description":"cell"},{"role":"AXStaticText","text":"1885","depth":7,"on_screen":true,"role_description":"text"},{"role":"AXTextArea","text":"39","depth":8,"bounds":{"left":0.0,"top":0.0,"width":0.16458334,"height":0.024444444},"on_screen":false,"value":"39","role_description":"text entry area","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXCell","text":"58a51d4d-0ca7-49f0-9b2c-e16027877cc5","depth":6,"on_screen":true,"role_description":"cell"},{"role":"AXStaticText","text":"58a51d4d-0ca7-49f0-9b2c-e16027877cc5","depth":7,"on_screen":true,"role_description":"text"},{"role":"AXTextArea","text":"picktestmulti__c","depth":8,"bounds":{"left":0.0,"top":0.0,"width":0.10486111,"height":0.024444444},"on_screen":false,"value":"picktestmulti__c","role_description":"text entry area","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXCell","text":"39","depth":6,"on_screen":true,"role_description":"cell"},{"role":"AXStaticText","text":"39","depth":7,"on_screen":true,"role_description":"text"},{"role":"AXTextArea","text":"39","depth":8,"bounds":{"left":0.0,"top":0.0,"width":0.16458334,"height":0.024444444},"on_screen":false,"value":"39","role_description":"text entry area","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXCell","text":"ReminderDateTime","depth":6,"on_screen":true,"role_description":"cell"},{"role":"AXStaticText","text":"ReminderDateTime","depth":7,"on_screen":true,"role_description":"text"},{"role":"AXTextArea","text":"picktestmulti__c","depth":8,"bounds":{"left":0.0,"top":0.0,"width":0.10486111,"height":0.024444444},"on_screen":false,"value":"picktestmulti__c","role_description":"text entry area","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXCell","text":"Reminder Date/Time","depth":6,"on_screen":true,"role_description":"cell"},{"role":"AXStaticText","text":"Reminder Date/Time","depth":7,"on_screen":true,"role_description":"text"},{"role":"AXTextArea","text":"picktestmulti__c","depth":8,"bounds":{"left":0.0,"top":0.0,"width":0.10486111,"height":0.024444444},"on_screen":false,"value":"picktestmulti__c","role_description":"text entry area","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXCell","text":"<null>","depth":6,"on_screen":true,"role_description":"cell"},{"role":"AXStaticText","text":"<null>","depth":7,"on_screen":true,"role_description":"text"},{"role":"AXTextArea","text":"picktestmulti__c","depth":8,"bounds":{"left":0.0,"top":0.0,"width":0.10486111,"height":0.024444444},"on_screen":false,"value":"picktestmulti__c","role_description":"text entry area","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXCell","text":"datetime","depth":6,"on_screen":true,"role_description":"cell"},{"role":"AXStaticText","text":"datetime","depth":7,"on_screen":true,"role_description":"text"},{"role":"AXTextArea","text":"picktestmulti__c","depth":8,"bounds":{"left":0.0,"top":0.0,"width":0.10486111,"height":0.024444444},"on_screen":false,"value":"picktestmulti__c","role_description":"text entry area","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXCell","text":"<null>","depth":6,"on_screen":true,"role_description":"cell"},{"role":"AXStaticText","text":"<null>","depth":7,"on_screen":true,"role_description":"text"},{"role":"AXTextArea","text":"39","depth":8,"bounds":{"left":0.0,"top":0.0,"width":0.16458334,"height":0.024444444},"on_screen":false,"value":"39","role_description":"text entry area","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXCell","text":"<null>","depth":6,"on_screen":true,"role_description":"cell"},{"role":"AXStaticText","text":"<null>","depth":7,"on_screen":true,"role_description":"text"},{"role":"AXTextArea","text":"picktestmulti__c","depth":8,"bounds":{"left":0.0,"top":0.0,"width":0.10486111,"height":0.024444444},"on_screen":false,"value":"picktestmulti__c","role_description":"text entry area","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXCell","text":"event","depth":6,"on_screen":true,"role_description":"cell"},{"role":"AXStaticText","text":"event","depth":7,"on_screen":true,"role_description":"text"},{"role":"AXTextArea","text":"picktestmulti__c","depth":8,"bounds":{"left":0.0,"top":0.0,"width":0.10486111,"height":0.024444444},"on_screen":false,"value":"picktestmulti__c","role_description":"text entry area","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXCell","text":"1","depth":6,"on_screen":false,"role_description":"cell"},{"role":"AXStaticText","text":"1","depth":7,"on_screen":false,"role_description":"text"},{"role":"AXTextArea","text":"39","depth":8,"bounds":{"left":0.0,"top":0.0,"width":0.16458334,"height":0.024444444},"on_screen":false,"value":"39","role_description":"text entry area","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXCell","text":"0","depth":6,"on_screen":false,"role_description":"cell"},{"role":"AXStaticText","text":"0","depth":7,"on_screen":false,"role_description":"text"},{"role":"AXTextArea","text":"39","depth":8,"bounds":{"left":0.0,"top":0.0,"width":0.16458334,"height":0.024444444},"on_screen":false,"value":"39","role_description":"text entry area","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXCell","text":"0","depth":6,"on_screen":false,"role_description":"cell"},{"role":"AXStaticText","text":"0","depth":7,"on_screen":false,"role_description":"text"},{"role":"AXTextArea","text":"39","depth":8,"bounds":{"left":0.0,"top":0.0,"width":0.16458334,"height":0.024444444},"on_screen":false,"value":"39","role_description":"text entry area","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXCell","text":"0","depth":6,"on_screen":false,"role_description":"cell"},{"role":"AXStaticText","text":"0","depth":7,"on_screen":false,"role_description":"text"},{"role":"AXTextArea","text":"39","depth":8,"bounds":{"left":0.0,"top":0.0,"width":0.16458334,"height":0.024444444},"on_screen":false,"value":"39","role_description":"text entry area","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXCell","text":"2022-12-15 14:53:05","depth":6,"on_screen":false,"role_description":"cell"},{"role":"AXStaticText","text":"2022-12-15 14:53:05","depth":7,"on_screen":false,"role_description":"text"},{"role":"AXTextArea","text":"picktestmulti__c","depth":8,"bounds":{"left":0.0,"top":0.0,"width":0.10486111,"height":0.024444444},"on_screen":false,"value":"picktestmulti__c","role_description":"text entry area","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXCell","text":"2025-09-29 11:00:32","depth":6,"on_screen":false,"role_description":"cell"},{"role":"AXStaticText","text":"2025-09-29 11:00:32","depth":7,"on_screen":false,"role_description":"text"},{"role":"AXTextArea","text":"picktestmulti__c","depth":8,"bounds":{"left":0.0,"top":0.0,"width":0.10486111,"height":0.024444444},"on_screen":false,"value":"picktestmulti__c","role_description":"text entry area","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXCell","text":"0","depth":6,"on_screen":false,"role_description":"cell"},{"role":"AXStaticText","text":"0","depth":7,"on_screen":false,"role_description":"text"},{"role":"AXTextArea","text":"39","depth":8,"bounds":{"left":0.0,"top":0.0,"width":0.16458334,"height":0.024444444},"on_screen":false,"value":"39","role_description":"text entry area","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXCell","text":"3014","depth":6,"on_screen":true,"role_description":"cell"},{"role":"AXStaticText","text":"3014","depth":7,"on_screen":true,"role_description":"text"},{"role":"AXTextArea","text":"39","depth":8,"bounds":{"left":0.0,"top":0.0,"width":0.16458334,"height":0.024444444},"on_screen":false,"value":"39","role_description":"text entry area","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXCell","text":"a3d3df5a-eaa1-43d0-b95e-1ff4bec8c428","depth":6,"on_screen":true,"role_description":"cell"},{"role":"AXStaticText","text":"a3d3df5a-eaa1-43d0-b95e-1ff4bec8c428","depth":7,"on_screen":true,"role_description":"text"},{"role":"AXTextArea","text":"picktestmulti__c","depth":8,"bounds":{"left":0.0,"top":0.0,"width":0.10486111,"height":0.024444444},"on_screen":false,"value":"picktestmulti__c","role_description":"text entry area","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXCell","text":"39","depth":6,"on_screen":true,"role_description":"cell"},{"role":"AXStaticText","text":"39","depth":7,"on_screen":true,"role_description":"text"},{"role":"AXTextArea","text":"39","depth":8,"bounds":{"left":0.0,"top":0.0,"width":0.16458334,"height":0.024444444},"on_screen":false,"value":"39","role_description":"text entry area","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXCell","text":"picktestmulti__c","depth":6,"on_screen":true,"role_description":"cell"},{"role":"AXStaticText","text":"picktestmulti__c","depth":7,"on_screen":true,"role_description":"text"},{"role":"AXTextArea","text":"picktestmulti__c","depth":8,"bounds":{"left":0.0,"top":0.0,"width":0.10486111,"height":0.024444444},"on_screen":false,"value":"picktestmulti__c","role_description":"text entry area","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXCell","text":"picktestmulti","depth":6,"on_screen":true,"role_description":"cell"},{"role":"AXStaticText","text":"picktestmulti","depth":7,"on_screen":true,"role_description":"text"},{"role":"AXTextArea","text":"picktestmulti__c","depth":8,"bounds":{"left":0.0,"top":0.0,"width":0.10486111,"height":0.024444444},"on_screen":false,"value":"picktestmulti__c","role_description":"text entry area","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXCell","text":"<null>","depth":6,"on_screen":true,"role_description":"cell"},{"role":"AXStaticText","text":"<null>","depth":7,"on_screen":true,"role_description":"text"},{"role":"AXTextArea","text":"picktestmulti__c","depth":8,"bounds":{"left":0.0,"top":0.0,"width":0.10486111,"height":0.024444444},"on_screen":false,"value":"picktestmulti__c","role_description":"text entry area","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXCell","text":"multi-picklist","depth":6,"on_screen":true,"role_description":"cell"},{"role":"AXStaticText","text":"multi-picklist","depth":7,"on_screen":true,"role_description":"text"},{"role":"AXTextArea","text":"picktestmulti__c","depth":8,"bounds":{"left":0.0,"top":0.0,"width":0.10486111,"height":0.024444444},"on_screen":false,"value":"picktestmulti__c","role_description":"text entry area","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXCell","text":"4099","depth":6,"on_screen":true,"role_description":"cell"},{"role":"AXStaticText","text":"4099","depth":7,"on_screen":true,"role_description":"text"},{"role":"AXTextArea","text":"39","depth":8,"bounds":{"left":0.0,"top":0.0,"width":0.16458334,"height":0.024444444},"on_screen":false,"value":"39","role_description":"text entry area","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXCell","text":"<null>","depth":6,"on_screen":true,"role_description":"cell"},{"role":"AXStaticText","text":"<null>","depth":7,"on_screen":true,"role_description":"text"},{"role":"AXTextArea","text":"picktestmulti__c","depth":8,"bounds":{"left":0.0,"top":0.0,"width":0.10486111,"height":0.024444444},"on_screen":false,"value":"picktestmulti__c","role_description":"text entry area","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXCell","text":"event","depth":6,"on_screen":true,"role_description":"cell"},{"role":"AXStaticText","text":"event","depth":7,"on_screen":true,"role_description":"text"},{"role":"AXTextArea","text":"picktestmulti__c","depth":8,"bounds":{"left":0.0,"top":0.0,"width":0.10486111,"height":0.024444444},"on_screen":false,"value":"picktestmulti__c","role_description":"text entry area","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXCell","text":"1","depth":6,"on_screen":false,"role_description":"cell"},{"role":"AXStaticText","text":"1","depth":7,"on_screen":false,"role_description":"text"},{"role":"AXTextArea","text":"39","depth":8,"bounds":{"left":0.0,"top":0.0,"width":0.16458334,"height":0.024444444},"on_screen":false,"value":"39","role_description":"text entry area","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXCell","text":"0","depth":6,"on_screen":false,"role_description":"cell"},{"role":"AXStaticText","text":"0","depth":7,"on_screen":false,"role_description":"text"},{"role":"AXTextArea","text":"39","depth":8,"bounds":{"left":0.0,"top":0.0,"width":0.16458334,"height":0.024444444},"on_screen":false,"value":"39","role_description":"text entry area","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXCell","text":"0","depth":6,"on_screen":false,"role_description":"cell"},{"role":"AXStaticText","text":"0","depth":7,"on_screen":false,"role_description":"text"},{"role":"AXTextArea","text":"39","depth":8,"bounds":{"left":0.0,"top":0.0,"width":0.16458334,"height":0.024444444},"on_screen":false,"value":"39","role_description":"text entry area","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXCell","text":"0","depth":6,"on_screen":false,"role_description":"cell"},{"role":"AXStaticText","text":"0","depth":7,"on_screen":false,"role_description":"text"}]...
|
-4209027929803511578
|
447491777778497651
|
typing_pause
|
accessibility
|
NULL
|
Project: faVsco.js, menu
JY-20915-fix-missing-head Project: faVsco.js, menu
JY-20915-fix-missing-header-text-relay, menu
Start Listening for PHP Debug Connections
TextRelayServiceTest
Run 'TextRelayServiceTest'
Debug 'TextRelayServiceTest'
More Actions
JetBrains AI
Search Everywhere
IDE and Project Settings
Sync Changes
Hide This Notification
Code changed:
Hide
11
1
Previous Highlighted Error
Next Highlighted Error
<?php
namespace Jiminny\Http\Transformers;
use Jiminny\Models\Crm\Field;
use Jiminny\Models\Crm\Profile;
use League\Fractal\Resource\Collection;
use League\Fractal\TransformerAbstract;
class FieldTransformer extends TransformerAbstract
{
protected array $availableIncludes = [
'options',
];
private ?Profile $profile;
private bool $noDefault = false;
public function __construct(?Profile $profile = null)
{
$this->profile = $profile;
}
public function setNoDefault(bool $noDefault)
{
$this->noDefault = $noDefault;
}
public function transform(Field $field): array
{
$defaultValue = $field->default_value;
$type = $field->type;
if (\is_bool($defaultValue)) {
$defaultValue = (bool) $defaultValue;
}
return [
'id' => $field->id_string,
'objectType' => $field->object_type,
'label' => $field->label,
'fieldName' => $field->crm_provider_id,
'type' => $type,
'enabled' => $field->is_selectable,
'length' => $field->length,
'defaultValue' => $defaultValue,
];
}
public function includeOptions(Field $field): ?Collection
{
if ($field->isPicklist() && $values = $field->values) {
// if ($field->type === Field::TYPE_PICKLIST && $values = $field->values) {
// This gets a little complex. We need to check if this field has any record type constraints for the profile.
if (
$this->profile
&& ($recordType = $this->profile->{$field->object_type . 'RecordType'})
&& $recordType->fieldValues()->where('crm_field_id', $field->id)->exists()
) {
// Fetch the values specific for this record type.
$values = $recordType->fieldValues()->where('crm_field_id', $field->id)->get();
}
if ($this->noDefault) {
foreach ($values as $value) {
$value->is_default = false;
}
}
return $this->collection($values, new FieldValueTransformer());
}
return null;
}
}
A
id
B
uuid (UUID with time-low and time-high swapped)
C
crm_configuration_id
D
crm_provider_id
E
label
F
description
G
type
H
length
I
default_value
J
object_type
K
is_selectable
L
is_mandatory
M
is_filterable
N
is_indexable
O
created_at
P
updated_at
Q
is_readonly
Select All
1885
1885
39
58a51d4d-0ca7-49f0-9b2c-e16027877cc5
58a51d4d-0ca7-49f0-9b2c-e16027877cc5
picktestmulti__c
39
39
39
ReminderDateTime
ReminderDateTime
picktestmulti__c
Reminder Date/Time
Reminder Date/Time
picktestmulti__c
<null>
<null>
picktestmulti__c
datetime
datetime
picktestmulti__c
<null>
<null>
39
<null>
<null>
picktestmulti__c
event
event
picktestmulti__c
1
1
39
0
0
39
0
0
39
0
0
39
2022-12-15 14:53:05
2022-12-15 14:53:05
picktestmulti__c
2025-09-29 11:00:32
2025-09-29 11:00:32
picktestmulti__c
0
0
39
3014
3014
39
a3d3df5a-eaa1-43d0-b95e-1ff4bec8c428
a3d3df5a-eaa1-43d0-b95e-1ff4bec8c428
picktestmulti__c
39
39
39
picktestmulti__c
picktestmulti__c
picktestmulti__c
picktestmulti
picktestmulti
picktestmulti__c
<null>
<null>
picktestmulti__c
multi-picklist
multi-picklist
picktestmulti__c
4099
4099
39
<null>
<null>
picktestmulti__c
event
event
picktestmulti__c
1
1
39
0
0
39
0
0
39
0
0...
|
79835
|
NULL
|
NULL
|
NULL
|
|
79836
|
2791
|
79
|
2026-05-28T06:44:38.651323+00:00
|
/Users/lukas/.screenpipe/data/data/2026-05-28/1779 /Users/lukas/.screenpipe/data/data/2026-05-28/1779950678651_m2.jpg...
|
PhpStorm
|
faVsco.js – FieldTransformer.php
|
1
|
NULL
|
monitor_2
|
NULL
|
NULL
|
NULL
|
NULL
|
Project: faVsco.js, menu
JY-20915-fix-missing-head Project: faVsco.js, menu
JY-20915-fix-missing-header-text-relay, menu
Start Listening for PHP Debug Connections
TextRelayServiceTest
Run 'TextRelayServiceTest'
Debug 'TextRelayServiceTest'
More Actions
JetBrains AI
Search Everywhere
IDE and Project Settings
Sync Changes
Hide This Notification
Code changed:
Hide
11
1
Previous Highlighted Error
Next Highlighted Error
<?php
namespace Jiminny\Http\Transformers;
use Jiminny\Models\Crm\Field;
use Jiminny\Models\Crm\Profile;
use League\Fractal\Resource\Collection;
use League\Fractal\TransformerAbstract;
class FieldTransformer extends TransformerAbstract
{
protected array $availableIncludes = [
'options',
];
private ?Profile $profile;
private bool $noDefault = false;
public function __construct(?Profile $profile = null)
{
$this->profile = $profile;
}
public function setNoDefault(bool $noDefault)
{
$this->noDefault = $noDefault;
}
public function transform(Field $field): array
{
$defaultValue = $field->default_value;
$type = $field->type;
if (\is_bool($defaultValue)) {
$defaultValue = (bool) $defaultValue;
}
return [
'id' => $field->id_string,
'objectType' => $field->object_type,
'label' => $field->label,
'fieldName' => $field->crm_provider_id,
'type' => $type,
'enabled' => $field->is_selectable,
'length' => $field->length,
'defaultValue' => $defaultValue,
];
}
public function includeOptions(Field $field): ?Collection
{
if ($field->isPicklist() && $values = $field->values) {
// if ($field->type === Field::TYPE_PICKLIST && $values = $field->values) {
// This gets a little complex. We need to check if this field has any record type constraints for the profile.
if (
$this->profile
&& ($recordType = $this->profile->{$field->object_type . 'RecordType'})
&& $recordType->fieldValues()->where('crm_field_id', $field->id)->exists()
) {
// Fetch the values specific for this record type.
$values = $recordType->fieldValues()->where('crm_field_id', $field->id)->get();
}
if ($this->noDefault) {
foreach ($values as $value) {
$value->is_default = false;
}
}
return $this->collection($values, new FieldValueTransformer());
}
return null;
}
}
A
id
B
uuid (UUID with time-low and time-high swapped)
C
crm_configuration_id
D
crm_provider_id
E
label
F
description
G
type
H
length
I
default_value
J
object_type
K
is_selectable
L
is_mandatory
M
is_filterable
N
is_indexable
O
created_at
P
updated_at
Q
is_readonly
Select All
1885
1885
39
58a51d4d-0ca7-49f0-9b2c-e16027877cc5
58a51d4d-0ca7-49f0-9b2c-e16027877cc5
picktestmulti__c
39
39
39
ReminderDateTime
ReminderDateTime
picktestmulti__c
Reminder Date/Time
Reminder Date/Time
picktestmulti__c
<null>
<null>
picktestmulti__c
datetime
datetime
picktestmulti__c
<null>
<null>
39
<null>
<null>
picktestmulti__c
event
event
picktestmulti__c
1
1
39
0
0
39
0
0
39
0
0
39
2022-12-15 14:53:05
2022-12-15 14:53:05
picktestmulti__c
2025-09-29 11:00:32
2025-09-29 11:00:32
picktestmulti__c
0
0
39
3014
3014
39
a3d3df5a-eaa1-43d0-b95e-1ff4bec8c428
a3d3df5a-eaa1-43d0-b95e-1ff4bec8c428
picktestmulti__c
39
39
39
picktestmulti__c
picktestmulti__c
picktestmulti__c
picktestmulti
picktestmulti
picktestmulti__c
<null>
<null>
picktestmulti__c
multi-picklist
multi-picklist...
|
[{"role":"AXButton","text" [{"role":"AXButton","text":"Project: faVsco.js, menu","depth":5,"bounds":{"left":0.025930852,"top":0.019952115,"width":0.03856383,"height":0.025538707},"on_screen":true,"help_text":"~/jiminny/app","role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"JY-20915-fix-missing-header-text-relay, menu","depth":5,"bounds":{"left":0.064494684,"top":0.019952115,"width":0.09740692,"height":0.025538707},"on_screen":true,"help_text":"Git Branch: JY-20915-fix-missing-header-text-relay","role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Start Listening for PHP Debug Connections","depth":5,"bounds":{"left":0.8374335,"top":0.019952115,"width":0.011303191,"height":0.025538707},"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"TextRelayServiceTest","depth":6,"bounds":{"left":0.85272604,"top":0.019952115,"width":0.062832445,"height":0.025538707},"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Run 'TextRelayServiceTest'","depth":6,"bounds":{"left":0.9155585,"top":0.019952115,"width":0.011303191,"height":0.025538707},"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Debug 'TextRelayServiceTest'","depth":6,"bounds":{"left":0.9268617,"top":0.019952115,"width":0.011303191,"height":0.025538707},"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"More Actions","depth":6,"bounds":{"left":0.9381649,"top":0.019952115,"width":0.011303191,"height":0.025538707},"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"JetBrains AI","depth":5,"bounds":{"left":0.96609044,"top":0.019952115,"width":0.011303191,"height":0.025538707},"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Search Everywhere","depth":5,"bounds":{"left":0.9773936,"top":0.019952115,"width":0.011303191,"height":0.025538707},"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"IDE and Project Settings","depth":5,"bounds":{"left":0.9886968,"top":0.019952115,"width":0.011303186,"height":0.025538707},"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Sync Changes","depth":4,"bounds":{"left":0.27027926,"top":1.0,"width":0.008643617,"height":0.0},"on_screen":false,"role_description":"button","is_enabled":false,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Hide This Notification","depth":4,"bounds":{"left":0.27027926,"top":1.0,"width":0.008643617,"height":0.0},"on_screen":false,"role_description":"button","is_enabled":false,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Code changed:","depth":4,"bounds":{"left":0.27027926,"top":1.0,"width":0.042220745,"height":0.0},"on_screen":false,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Hide","depth":4,"bounds":{"left":0.27027926,"top":1.0,"width":0.008643617,"height":0.0},"on_screen":false,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXStaticText","text":"11","depth":4,"bounds":{"left":0.37699467,"top":0.12529927,"width":0.008976064,"height":0.015163607},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"1","depth":4,"bounds":{"left":0.3879654,"top":0.12529927,"width":0.00731383,"height":0.015163607},"on_screen":true,"role_description":"text"},{"role":"AXButton","text":"Previous Highlighted Error","depth":4,"bounds":{"left":0.39694148,"top":0.123703115,"width":0.00731383,"height":0.018355945},"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Next Highlighted Error","depth":4,"bounds":{"left":0.40425533,"top":0.123703115,"width":0.006981383,"height":0.018355945},"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXTextArea","text":"<?php\n\nnamespace Jiminny\\Http\\Transformers;\n\nuse Jiminny\\Models\\Crm\\Field;\nuse Jiminny\\Models\\Crm\\Profile;\nuse League\\Fractal\\Resource\\Collection;\nuse League\\Fractal\\TransformerAbstract;\n\nclass FieldTransformer extends TransformerAbstract\n{\n protected array $availableIncludes = [\n 'options',\n ];\n private ?Profile $profile;\n\n private bool $noDefault = false;\n\n public function __construct(?Profile $profile = null)\n {\n $this->profile = $profile;\n }\n\n public function setNoDefault(bool $noDefault)\n {\n $this->noDefault = $noDefault;\n }\n\n public function transform(Field $field): array\n {\n $defaultValue = $field->default_value;\n $type = $field->type;\n\n if (\\is_bool($defaultValue)) {\n $defaultValue = (bool) $defaultValue;\n }\n\n return [\n 'id' => $field->id_string,\n 'objectType' => $field->object_type,\n 'label' => $field->label,\n 'fieldName' => $field->crm_provider_id,\n 'type' => $type,\n 'enabled' => $field->is_selectable,\n 'length' => $field->length,\n 'defaultValue' => $defaultValue,\n ];\n }\n\n public function includeOptions(Field $field): ?Collection\n {\n if ($field->isPicklist() && $values = $field->values) {\n// if ($field->type === Field::TYPE_PICKLIST && $values = $field->values) {\n // This gets a little complex. We need to check if this field has any record type constraints for the profile.\n if (\n $this->profile\n && ($recordType = $this->profile->{$field->object_type . 'RecordType'})\n && $recordType->fieldValues()->where('crm_field_id', $field->id)->exists()\n ) {\n // Fetch the values specific for this record type.\n $values = $recordType->fieldValues()->where('crm_field_id', $field->id)->get();\n }\n\n if ($this->noDefault) {\n foreach ($values as $value) {\n $value->is_default = false;\n }\n }\n\n return $this->collection($values, new FieldValueTransformer());\n }\n\n return null;\n }\n}","depth":4,"on_screen":true,"value":"<?php\n\nnamespace Jiminny\\Http\\Transformers;\n\nuse Jiminny\\Models\\Crm\\Field;\nuse Jiminny\\Models\\Crm\\Profile;\nuse League\\Fractal\\Resource\\Collection;\nuse League\\Fractal\\TransformerAbstract;\n\nclass FieldTransformer extends TransformerAbstract\n{\n protected array $availableIncludes = [\n 'options',\n ];\n private ?Profile $profile;\n\n private bool $noDefault = false;\n\n public function __construct(?Profile $profile = null)\n {\n $this->profile = $profile;\n }\n\n public function setNoDefault(bool $noDefault)\n {\n $this->noDefault = $noDefault;\n }\n\n public function transform(Field $field): array\n {\n $defaultValue = $field->default_value;\n $type = $field->type;\n\n if (\\is_bool($defaultValue)) {\n $defaultValue = (bool) $defaultValue;\n }\n\n return [\n 'id' => $field->id_string,\n 'objectType' => $field->object_type,\n 'label' => $field->label,\n 'fieldName' => $field->crm_provider_id,\n 'type' => $type,\n 'enabled' => $field->is_selectable,\n 'length' => $field->length,\n 'defaultValue' => $defaultValue,\n ];\n }\n\n public function includeOptions(Field $field): ?Collection\n {\n if ($field->isPicklist() && $values = $field->values) {\n// if ($field->type === Field::TYPE_PICKLIST && $values = $field->values) {\n // This gets a little complex. We need to check if this field has any record type constraints for the profile.\n if (\n $this->profile\n && ($recordType = $this->profile->{$field->object_type . 'RecordType'})\n && $recordType->fieldValues()->where('crm_field_id', $field->id)->exists()\n ) {\n // Fetch the values specific for this record type.\n $values = $recordType->fieldValues()->where('crm_field_id', $field->id)->get();\n }\n\n if ($this->noDefault) {\n foreach ($values as $value) {\n $value->is_default = false;\n }\n }\n\n return $this->collection($values, new FieldValueTransformer());\n }\n\n return null;\n }\n}","role_description":"text entry area","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXStaticText","text":"A","depth":4,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"id","depth":5,"bounds":{"left":0.27027926,"top":1.0,"width":0.020944148,"height":0.0},"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"B","depth":4,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"uuid (UUID with time-low and time-high swapped)","depth":5,"bounds":{"left":0.27027926,"top":1.0,"width":0.020944148,"height":0.0},"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"C","depth":4,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"crm_configuration_id","depth":5,"bounds":{"left":0.27027926,"top":1.0,"width":0.020944148,"height":0.0},"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"D","depth":4,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"crm_provider_id","depth":5,"bounds":{"left":0.27027926,"top":1.0,"width":0.020944148,"height":0.0},"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"E","depth":4,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"label","depth":5,"bounds":{"left":0.27027926,"top":1.0,"width":0.020944148,"height":0.0},"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"F","depth":4,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"description","depth":5,"bounds":{"left":0.27027926,"top":1.0,"width":0.020944148,"height":0.0},"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"G","depth":4,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"type","depth":5,"bounds":{"left":0.27027926,"top":1.0,"width":0.020944148,"height":0.0},"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"H","depth":4,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"length","depth":5,"bounds":{"left":0.27027926,"top":1.0,"width":0.020944148,"height":0.0},"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"I","depth":4,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"default_value","depth":5,"bounds":{"left":0.27027926,"top":1.0,"width":0.020944148,"height":0.0},"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"J","depth":4,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"object_type","depth":5,"bounds":{"left":0.27027926,"top":1.0,"width":0.020944148,"height":0.0},"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"K","depth":4,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"is_selectable","depth":5,"bounds":{"left":0.27027926,"top":1.0,"width":0.020944148,"height":0.0},"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"L","depth":4,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"is_mandatory","depth":5,"bounds":{"left":0.27027926,"top":1.0,"width":0.020944148,"height":0.0},"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"M","depth":4,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"is_filterable","depth":5,"bounds":{"left":0.27027926,"top":1.0,"width":0.020944148,"height":0.0},"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"N","depth":4,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"is_indexable","depth":5,"bounds":{"left":0.27027926,"top":1.0,"width":0.020944148,"height":0.0},"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"O","depth":4,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"created_at","depth":5,"bounds":{"left":0.27027926,"top":1.0,"width":0.020944148,"height":0.0},"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"P","depth":4,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"updated_at","depth":5,"bounds":{"left":0.27027926,"top":1.0,"width":0.020944148,"height":0.0},"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"Q","depth":4,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"is_readonly","depth":5,"bounds":{"left":0.27027926,"top":1.0,"width":0.020944148,"height":0.0},"on_screen":false,"role_description":"text"},{"role":"AXButton","text":"Select All","depth":4,"bounds":{"left":0.41156915,"top":0.14365523,"width":0.007978723,"height":0.0207502},"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXCell","text":"1885","depth":6,"bounds":{"left":0.41988033,"top":0.16520351,"width":0.034242023,"height":0.0207502},"on_screen":true,"role_description":"cell"},{"role":"AXStaticText","text":"1885","depth":7,"bounds":{"left":0.41988033,"top":0.16520351,"width":0.034242023,"height":0.0207502},"on_screen":true,"role_description":"text"},{"role":"AXTextArea","text":"39","depth":8,"bounds":{"left":0.27027926,"top":1.0,"width":0.0787899,"height":0.0},"on_screen":false,"value":"39","role_description":"text entry area","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXCell","text":"58a51d4d-0ca7-49f0-9b2c-e16027877cc5","depth":6,"bounds":{"left":0.45445478,"top":0.16520351,"width":0.10073138,"height":0.0207502},"on_screen":true,"role_description":"cell"},{"role":"AXStaticText","text":"58a51d4d-0ca7-49f0-9b2c-e16027877cc5","depth":7,"bounds":{"left":0.45445478,"top":0.16520351,"width":0.10073138,"height":0.0207502},"on_screen":true,"role_description":"text"},{"role":"AXTextArea","text":"picktestmulti__c","depth":8,"bounds":{"left":0.27027926,"top":1.0,"width":0.050199468,"height":0.0},"on_screen":false,"value":"picktestmulti__c","role_description":"text entry area","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXCell","text":"39","depth":6,"bounds":{"left":0.5555186,"top":0.16520351,"width":0.080784574,"height":0.0207502},"on_screen":true,"role_description":"cell"},{"role":"AXStaticText","text":"39","depth":7,"bounds":{"left":0.5555186,"top":0.16520351,"width":0.080784574,"height":0.0207502},"on_screen":true,"role_description":"text"},{"role":"AXTextArea","text":"39","depth":8,"bounds":{"left":0.27027926,"top":1.0,"width":0.0787899,"height":0.0},"on_screen":false,"value":"39","role_description":"text entry area","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXCell","text":"ReminderDateTime","depth":6,"bounds":{"left":0.63663566,"top":0.16520351,"width":0.06781915,"height":0.0207502},"on_screen":true,"role_description":"cell"},{"role":"AXStaticText","text":"ReminderDateTime","depth":7,"bounds":{"left":0.63663566,"top":0.16520351,"width":0.06781915,"height":0.0207502},"on_screen":true,"role_description":"text"},{"role":"AXTextArea","text":"picktestmulti__c","depth":8,"bounds":{"left":0.27027926,"top":1.0,"width":0.050199468,"height":0.0},"on_screen":false,"value":"picktestmulti__c","role_description":"text entry area","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXCell","text":"Reminder Date/Time","depth":6,"bounds":{"left":0.70478725,"top":0.16520351,"width":0.05219415,"height":0.0207502},"on_screen":true,"role_description":"cell"},{"role":"AXStaticText","text":"Reminder Date/Time","depth":7,"bounds":{"left":0.70478725,"top":0.16520351,"width":0.05219415,"height":0.0207502},"on_screen":true,"role_description":"text"},{"role":"AXTextArea","text":"picktestmulti__c","depth":8,"bounds":{"left":0.27027926,"top":1.0,"width":0.050199468,"height":0.0},"on_screen":false,"value":"picktestmulti__c","role_description":"text entry area","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXCell","text":"<null>","depth":6,"bounds":{"left":0.75731385,"top":0.16520351,"width":0.057513297,"height":0.0207502},"on_screen":true,"role_description":"cell"},{"role":"AXStaticText","text":"<null>","depth":7,"bounds":{"left":0.75731385,"top":0.16520351,"width":0.057513297,"height":0.0207502},"on_screen":true,"role_description":"text"},{"role":"AXTextArea","text":"picktestmulti__c","depth":8,"bounds":{"left":0.27027926,"top":1.0,"width":0.050199468,"height":0.0},"on_screen":false,"value":"picktestmulti__c","role_description":"text entry area","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXCell","text":"datetime","depth":6,"bounds":{"left":0.81515956,"top":0.16520351,"width":0.04155585,"height":0.0207502},"on_screen":true,"role_description":"cell"},{"role":"AXStaticText","text":"datetime","depth":7,"bounds":{"left":0.81515956,"top":0.16520351,"width":0.04155585,"height":0.0207502},"on_screen":true,"role_description":"text"},{"role":"AXTextArea","text":"picktestmulti__c","depth":8,"bounds":{"left":0.27027926,"top":1.0,"width":0.050199468,"height":0.0},"on_screen":false,"value":"picktestmulti__c","role_description":"text entry area","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXCell","text":"<null>","depth":6,"bounds":{"left":0.85704786,"top":0.16520351,"width":0.04454787,"height":0.0207502},"on_screen":true,"role_description":"cell"},{"role":"AXStaticText","text":"<null>","depth":7,"bounds":{"left":0.85704786,"top":0.16520351,"width":0.04454787,"height":0.0207502},"on_screen":true,"role_description":"text"},{"role":"AXTextArea","text":"39","depth":8,"bounds":{"left":0.27027926,"top":1.0,"width":0.0787899,"height":0.0},"on_screen":false,"value":"39","role_description":"text entry area","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXCell","text":"<null>","depth":6,"bounds":{"left":0.9019282,"top":0.16520351,"width":0.0625,"height":0.0207502},"on_screen":true,"role_description":"cell"},{"role":"AXStaticText","text":"<null>","depth":7,"bounds":{"left":0.9019282,"top":0.16520351,"width":0.0625,"height":0.0207502},"on_screen":true,"role_description":"text"},{"role":"AXTextArea","text":"picktestmulti__c","depth":8,"bounds":{"left":0.27027926,"top":1.0,"width":0.050199468,"height":0.0},"on_screen":false,"value":"picktestmulti__c","role_description":"text entry area","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXCell","text":"event","depth":6,"bounds":{"left":0.96476066,"top":0.16520351,"width":0.03523934,"height":0.0207502},"on_screen":true,"role_description":"cell"},{"role":"AXStaticText","text":"event","depth":7,"bounds":{"left":0.96476066,"top":0.16520351,"width":0.03523934,"height":0.0207502},"on_screen":true,"role_description":"text"},{"role":"AXTextArea","text":"picktestmulti__c","depth":8,"bounds":{"left":0.27027926,"top":1.0,"width":0.050199468,"height":0.0},"on_screen":false,"value":"picktestmulti__c","role_description":"text entry area","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXCell","text":"1","depth":6,"bounds":{"left":1.0,"top":0.16520351,"width":-0.022606373,"height":0.0207502},"on_screen":false,"role_description":"cell"},{"role":"AXStaticText","text":"1","depth":7,"bounds":{"left":1.0,"top":0.16520351,"width":-0.022606373,"height":0.0207502},"on_screen":false,"role_description":"text"},{"role":"AXTextArea","text":"39","depth":8,"bounds":{"left":0.27027926,"top":1.0,"width":0.0787899,"height":0.0},"on_screen":false,"value":"39","role_description":"text entry area","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXCell","text":"0","depth":6,"bounds":{"left":1.0,"top":0.16520351,"width":-0.08543885,"height":0.0207502},"on_screen":false,"role_description":"cell"},{"role":"AXStaticText","text":"0","depth":7,"bounds":{"left":1.0,"top":0.16520351,"width":-0.08543885,"height":0.0207502},"on_screen":false,"role_description":"text"},{"role":"AXTextArea","text":"39","depth":8,"bounds":{"left":0.27027926,"top":1.0,"width":0.0787899,"height":0.0},"on_screen":false,"value":"39","role_description":"text entry area","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXCell","text":"0","depth":6,"on_screen":false,"role_description":"cell"},{"role":"AXStaticText","text":"0","depth":7,"on_screen":false,"role_description":"text"},{"role":"AXTextArea","text":"39","depth":8,"bounds":{"left":0.27027926,"top":1.0,"width":0.0787899,"height":0.0},"on_screen":false,"value":"39","role_description":"text entry area","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXCell","text":"0","depth":6,"on_screen":false,"role_description":"cell"},{"role":"AXStaticText","text":"0","depth":7,"on_screen":false,"role_description":"text"},{"role":"AXTextArea","text":"39","depth":8,"bounds":{"left":0.27027926,"top":1.0,"width":0.0787899,"height":0.0},"on_screen":false,"value":"39","role_description":"text entry area","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXCell","text":"2022-12-15 14:53:05","depth":6,"on_screen":false,"role_description":"cell"},{"role":"AXStaticText","text":"2022-12-15 14:53:05","depth":7,"on_screen":false,"role_description":"text"},{"role":"AXTextArea","text":"picktestmulti__c","depth":8,"bounds":{"left":0.27027926,"top":1.0,"width":0.050199468,"height":0.0},"on_screen":false,"value":"picktestmulti__c","role_description":"text entry area","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXCell","text":"2025-09-29 11:00:32","depth":6,"on_screen":false,"role_description":"cell"},{"role":"AXStaticText","text":"2025-09-29 11:00:32","depth":7,"on_screen":false,"role_description":"text"},{"role":"AXTextArea","text":"picktestmulti__c","depth":8,"bounds":{"left":0.27027926,"top":1.0,"width":0.050199468,"height":0.0},"on_screen":false,"value":"picktestmulti__c","role_description":"text entry area","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXCell","text":"0","depth":6,"on_screen":false,"role_description":"cell"},{"role":"AXStaticText","text":"0","depth":7,"on_screen":false,"role_description":"text"},{"role":"AXTextArea","text":"39","depth":8,"bounds":{"left":0.27027926,"top":1.0,"width":0.0787899,"height":0.0},"on_screen":false,"value":"39","role_description":"text entry area","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXCell","text":"3014","depth":6,"bounds":{"left":0.41988033,"top":0.1867518,"width":0.034242023,"height":0.0207502},"on_screen":true,"role_description":"cell"},{"role":"AXStaticText","text":"3014","depth":7,"bounds":{"left":0.41988033,"top":0.1867518,"width":0.034242023,"height":0.0207502},"on_screen":true,"role_description":"text"},{"role":"AXTextArea","text":"39","depth":8,"bounds":{"left":0.27027926,"top":1.0,"width":0.0787899,"height":0.0},"on_screen":false,"value":"39","role_description":"text entry area","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXCell","text":"a3d3df5a-eaa1-43d0-b95e-1ff4bec8c428","depth":6,"bounds":{"left":0.45445478,"top":0.1867518,"width":0.10073138,"height":0.0207502},"on_screen":true,"role_description":"cell"},{"role":"AXStaticText","text":"a3d3df5a-eaa1-43d0-b95e-1ff4bec8c428","depth":7,"bounds":{"left":0.45445478,"top":0.1867518,"width":0.10073138,"height":0.0207502},"on_screen":true,"role_description":"text"},{"role":"AXTextArea","text":"picktestmulti__c","depth":8,"bounds":{"left":0.27027926,"top":1.0,"width":0.050199468,"height":0.0},"on_screen":false,"value":"picktestmulti__c","role_description":"text entry area","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXCell","text":"39","depth":6,"bounds":{"left":0.5555186,"top":0.1867518,"width":0.080784574,"height":0.0207502},"on_screen":true,"role_description":"cell"},{"role":"AXStaticText","text":"39","depth":7,"bounds":{"left":0.5555186,"top":0.1867518,"width":0.080784574,"height":0.0207502},"on_screen":true,"role_description":"text"},{"role":"AXTextArea","text":"39","depth":8,"bounds":{"left":0.27027926,"top":1.0,"width":0.0787899,"height":0.0},"on_screen":false,"value":"39","role_description":"text entry area","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXCell","text":"picktestmulti__c","depth":6,"bounds":{"left":0.63663566,"top":0.1867518,"width":0.06781915,"height":0.0207502},"on_screen":true,"role_description":"cell"},{"role":"AXStaticText","text":"picktestmulti__c","depth":7,"bounds":{"left":0.63663566,"top":0.1867518,"width":0.06781915,"height":0.0207502},"on_screen":true,"role_description":"text"},{"role":"AXTextArea","text":"picktestmulti__c","depth":8,"bounds":{"left":0.27027926,"top":1.0,"width":0.050199468,"height":0.0},"on_screen":false,"value":"picktestmulti__c","role_description":"text entry area","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXCell","text":"picktestmulti","depth":6,"bounds":{"left":0.70478725,"top":0.1867518,"width":0.05219415,"height":0.0207502},"on_screen":true,"role_description":"cell"},{"role":"AXStaticText","text":"picktestmulti","depth":7,"bounds":{"left":0.70478725,"top":0.1867518,"width":0.05219415,"height":0.0207502},"on_screen":true,"role_description":"text"},{"role":"AXTextArea","text":"picktestmulti__c","depth":8,"bounds":{"left":0.27027926,"top":1.0,"width":0.050199468,"height":0.0},"on_screen":false,"value":"picktestmulti__c","role_description":"text entry area","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXCell","text":"<null>","depth":6,"bounds":{"left":0.75731385,"top":0.1867518,"width":0.057513297,"height":0.0207502},"on_screen":true,"role_description":"cell"},{"role":"AXStaticText","text":"<null>","depth":7,"bounds":{"left":0.75731385,"top":0.1867518,"width":0.057513297,"height":0.0207502},"on_screen":true,"role_description":"text"},{"role":"AXTextArea","text":"picktestmulti__c","depth":8,"bounds":{"left":0.27027926,"top":1.0,"width":0.050199468,"height":0.0},"on_screen":false,"value":"picktestmulti__c","role_description":"text entry area","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXCell","text":"multi-picklist","depth":6,"bounds":{"left":0.81515956,"top":0.1867518,"width":0.04155585,"height":0.0207502},"on_screen":true,"role_description":"cell"},{"role":"AXStaticText","text":"multi-picklist","depth":7,"bounds":{"left":0.81515956,"top":0.1867518,"width":0.04155585,"height":0.0207502},"on_screen":true,"role_description":"text"}]...
|
1462949895739260656
|
442988178151127411
|
typing_pause
|
accessibility
|
NULL
|
Project: faVsco.js, menu
JY-20915-fix-missing-head Project: faVsco.js, menu
JY-20915-fix-missing-header-text-relay, menu
Start Listening for PHP Debug Connections
TextRelayServiceTest
Run 'TextRelayServiceTest'
Debug 'TextRelayServiceTest'
More Actions
JetBrains AI
Search Everywhere
IDE and Project Settings
Sync Changes
Hide This Notification
Code changed:
Hide
11
1
Previous Highlighted Error
Next Highlighted Error
<?php
namespace Jiminny\Http\Transformers;
use Jiminny\Models\Crm\Field;
use Jiminny\Models\Crm\Profile;
use League\Fractal\Resource\Collection;
use League\Fractal\TransformerAbstract;
class FieldTransformer extends TransformerAbstract
{
protected array $availableIncludes = [
'options',
];
private ?Profile $profile;
private bool $noDefault = false;
public function __construct(?Profile $profile = null)
{
$this->profile = $profile;
}
public function setNoDefault(bool $noDefault)
{
$this->noDefault = $noDefault;
}
public function transform(Field $field): array
{
$defaultValue = $field->default_value;
$type = $field->type;
if (\is_bool($defaultValue)) {
$defaultValue = (bool) $defaultValue;
}
return [
'id' => $field->id_string,
'objectType' => $field->object_type,
'label' => $field->label,
'fieldName' => $field->crm_provider_id,
'type' => $type,
'enabled' => $field->is_selectable,
'length' => $field->length,
'defaultValue' => $defaultValue,
];
}
public function includeOptions(Field $field): ?Collection
{
if ($field->isPicklist() && $values = $field->values) {
// if ($field->type === Field::TYPE_PICKLIST && $values = $field->values) {
// This gets a little complex. We need to check if this field has any record type constraints for the profile.
if (
$this->profile
&& ($recordType = $this->profile->{$field->object_type . 'RecordType'})
&& $recordType->fieldValues()->where('crm_field_id', $field->id)->exists()
) {
// Fetch the values specific for this record type.
$values = $recordType->fieldValues()->where('crm_field_id', $field->id)->get();
}
if ($this->noDefault) {
foreach ($values as $value) {
$value->is_default = false;
}
}
return $this->collection($values, new FieldValueTransformer());
}
return null;
}
}
A
id
B
uuid (UUID with time-low and time-high swapped)
C
crm_configuration_id
D
crm_provider_id
E
label
F
description
G
type
H
length
I
default_value
J
object_type
K
is_selectable
L
is_mandatory
M
is_filterable
N
is_indexable
O
created_at
P
updated_at
Q
is_readonly
Select All
1885
1885
39
58a51d4d-0ca7-49f0-9b2c-e16027877cc5
58a51d4d-0ca7-49f0-9b2c-e16027877cc5
picktestmulti__c
39
39
39
ReminderDateTime
ReminderDateTime
picktestmulti__c
Reminder Date/Time
Reminder Date/Time
picktestmulti__c
<null>
<null>
picktestmulti__c
datetime
datetime
picktestmulti__c
<null>
<null>
39
<null>
<null>
picktestmulti__c
event
event
picktestmulti__c
1
1
39
0
0
39
0
0
39
0
0
39
2022-12-15 14:53:05
2022-12-15 14:53:05
picktestmulti__c
2025-09-29 11:00:32
2025-09-29 11:00:32
picktestmulti__c
0
0
39
3014
3014
39
a3d3df5a-eaa1-43d0-b95e-1ff4bec8c428
a3d3df5a-eaa1-43d0-b95e-1ff4bec8c428
picktestmulti__c
39
39
39
picktestmulti__c
picktestmulti__c
picktestmulti__c
picktestmulti
picktestmulti
picktestmulti__c
<null>
<null>
picktestmulti__c
multi-picklist
multi-picklist...
|
NULL
|
NULL
|
NULL
|
NULL
|
|
79835
|
2790
|
52
|
2026-05-28T06:44:38.550107+00:00
|
/Users/lukas/.screenpipe/data/data/2026-05-28/1779 /Users/lukas/.screenpipe/data/data/2026-05-28/1779950678550_m1.jpg...
|
PhpStorm
|
faVsco.js – FieldTransformer.php
|
1
|
NULL
|
monitor_1
|
NULL
|
NULL
|
NULL
|
NULL
|
Project: faVsco.js, menu
JY-20915-fix-missing-head Project: faVsco.js, menu
JY-20915-fix-missing-header-text-relay, menu
Start Listening for PHP Debug Connections
TextRelayServiceTest
Run 'TextRelayServiceTest'
Debug 'TextRelayServiceTest'
More Actions
JetBrains AI
Search Everywhere
IDE and Project Settings
Sync Changes
Hide This Notification
Code changed:
Hide
11
1
Previous Highlighted Error
Next Highlighted Error
<?php
namespace Jiminny\Http\Transformers;
use Jiminny\Models\Crm\Field;
use Jiminny\Models\Crm\Profile;
use League\Fractal\Resource\Collection;
use League\Fractal\TransformerAbstract;
class FieldTransformer extends TransformerAbstract
{
protected array $availableIncludes = [
'options',
];
private ?Profile $profile;
private bool $noDefault = false;
public function __construct(?Profile $profile = null)
{
$this->profile = $profile;
}
public function setNoDefault(bool $noDefault)
{
$this->noDefault = $noDefault;
}
public function transform(Field $field): array
{
$defaultValue = $field->default_value;
$type = $field->type;
if (\is_bool($defaultValue)) {
$defaultValue = (bool) $defaultValue;
}
return [
'id' => $field->id_string,
'objectType' => $field->object_type,
'label' => $field->label,
'fieldName' => $field->crm_provider_id,
'type' => $type,
'enabled' => $field->is_selectable,
'length' => $field->length,
'defaultValue' => $defaultValue,
];
}
public function includeOptions(Field $field): ?Collection
{
if ($field->isPicklist() && $values = $field->values) {
// if ($field->type === Field::TYPE_PICKLIST && $values = $field->values) {
// This gets a little complex. We need to check if this field has any record type constraints for the profile.
if (
$this->profile
&& ($recordType = $this->profile->{$field->object_type . 'RecordType'})
&& $recordType->fieldValues()->where('crm_field_id', $field->id)->exists()
) {
// Fetch the values specific for this record type.
$values = $recordType->fieldValues()->where('crm_field_id', $field->id)->get();
}
if ($this->noDefault) {
foreach ($values as $value) {
$value->is_default = false;
}
}
return $this->collection($values, new FieldValueTransformer());
}
return null;
}
}
A
id
B
uuid (UUID with time-low and time-high swapped)
C
crm_configuration_id
D
crm_provider_id
E
label
F
description
G
type
H
length
I
default_value
J
object_type
K
is_selectable
L
is_mandatory
M
is_filterable
N
is_indexable
O
created_at
P
updated_at
Q
is_readonly
Select All
1885
1885
39
58a51d4d-0ca7-49f0-9b2c-e16027877cc5
58a51d4d-0ca7-49f0-9b2c-e16027877cc5
picktestmulti__c
39
39
39
ReminderDateTime
ReminderDateTime
picktestmulti__c
Reminder Date/Time
Reminder Date/Time
picktestmulti__c
<null>
<null>
picktestmulti__c
datetime
datetime
picktestmulti__c
<null>
<null>
39
<null>
<null>
picktestmulti__c
event
event
picktestmulti__c
1
1
39
0
0
39
0
0
39
0
0
39
2022-12-15 14:53:05
2022-12-15 14:53:05
picktestmulti__c
2025-09-29 11:00:32
2025-09-29 11:00:32
picktestmulti__c
0
0
39
3014
3014
39
a3d3df5a-eaa1-43d0-b95e-1ff4bec8c428
a3d3df5a-eaa1-43d0-b95e-1ff4bec8c428
picktestmulti__c
39
39
39
picktestmulti__c
picktestmulti__c
picktestmulti__c
picktestmulti
picktestmulti
picktestmulti__c
<null>
<null>
picktestmulti__c
multi-picklist
multi-picklist
picktestmulti__c
4099
4099
39
<null>
<null>
picktestmulti__c
event
event...
|
[{"role":"AXButton","text" [{"role":"AXButton","text":"Project: faVsco.js, menu","depth":5,"on_screen":true,"help_text":"~/jiminny/app","role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"JY-20915-fix-missing-header-text-relay, menu","depth":5,"on_screen":true,"help_text":"Git Branch: JY-20915-fix-missing-header-text-relay","role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Start Listening for PHP Debug Connections","depth":5,"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"TextRelayServiceTest","depth":6,"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Run 'TextRelayServiceTest'","depth":6,"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Debug 'TextRelayServiceTest'","depth":6,"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"More Actions","depth":6,"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"JetBrains AI","depth":5,"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Search Everywhere","depth":5,"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"IDE and Project Settings","depth":5,"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Sync Changes","depth":4,"bounds":{"left":0.0,"top":0.0,"width":0.018055556,"height":0.026666667},"on_screen":false,"role_description":"button","is_enabled":false,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Hide This Notification","depth":4,"bounds":{"left":0.0,"top":0.0,"width":0.018055556,"height":0.026666667},"on_screen":false,"role_description":"button","is_enabled":false,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Code changed:","depth":4,"bounds":{"left":0.0,"top":0.0,"width":0.088194445,"height":0.027777778},"on_screen":false,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Hide","depth":4,"bounds":{"left":0.0,"top":0.0,"width":0.018055556,"height":0.026666667},"on_screen":false,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXStaticText","text":"11","depth":4,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"1","depth":4,"on_screen":true,"role_description":"text"},{"role":"AXButton","text":"Previous Highlighted Error","depth":4,"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Next Highlighted Error","depth":4,"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXTextArea","text":"<?php\n\nnamespace Jiminny\\Http\\Transformers;\n\nuse Jiminny\\Models\\Crm\\Field;\nuse Jiminny\\Models\\Crm\\Profile;\nuse League\\Fractal\\Resource\\Collection;\nuse League\\Fractal\\TransformerAbstract;\n\nclass FieldTransformer extends TransformerAbstract\n{\n protected array $availableIncludes = [\n 'options',\n ];\n private ?Profile $profile;\n\n private bool $noDefault = false;\n\n public function __construct(?Profile $profile = null)\n {\n $this->profile = $profile;\n }\n\n public function setNoDefault(bool $noDefault)\n {\n $this->noDefault = $noDefault;\n }\n\n public function transform(Field $field): array\n {\n $defaultValue = $field->default_value;\n $type = $field->type;\n\n if (\\is_bool($defaultValue)) {\n $defaultValue = (bool) $defaultValue;\n }\n\n return [\n 'id' => $field->id_string,\n 'objectType' => $field->object_type,\n 'label' => $field->label,\n 'fieldName' => $field->crm_provider_id,\n 'type' => $type,\n 'enabled' => $field->is_selectable,\n 'length' => $field->length,\n 'defaultValue' => $defaultValue,\n ];\n }\n\n public function includeOptions(Field $field): ?Collection\n {\n if ($field->isPicklist() && $values = $field->values) {\n// if ($field->type === Field::TYPE_PICKLIST && $values = $field->values) {\n // This gets a little complex. We need to check if this field has any record type constraints for the profile.\n if (\n $this->profile\n && ($recordType = $this->profile->{$field->object_type . 'RecordType'})\n && $recordType->fieldValues()->where('crm_field_id', $field->id)->exists()\n ) {\n // Fetch the values specific for this record type.\n $values = $recordType->fieldValues()->where('crm_field_id', $field->id)->get();\n }\n\n if ($this->noDefault) {\n foreach ($values as $value) {\n $value->is_default = false;\n }\n }\n\n return $this->collection($values, new FieldValueTransformer());\n }\n\n return null;\n }\n}","depth":4,"on_screen":true,"value":"<?php\n\nnamespace Jiminny\\Http\\Transformers;\n\nuse Jiminny\\Models\\Crm\\Field;\nuse Jiminny\\Models\\Crm\\Profile;\nuse League\\Fractal\\Resource\\Collection;\nuse League\\Fractal\\TransformerAbstract;\n\nclass FieldTransformer extends TransformerAbstract\n{\n protected array $availableIncludes = [\n 'options',\n ];\n private ?Profile $profile;\n\n private bool $noDefault = false;\n\n public function __construct(?Profile $profile = null)\n {\n $this->profile = $profile;\n }\n\n public function setNoDefault(bool $noDefault)\n {\n $this->noDefault = $noDefault;\n }\n\n public function transform(Field $field): array\n {\n $defaultValue = $field->default_value;\n $type = $field->type;\n\n if (\\is_bool($defaultValue)) {\n $defaultValue = (bool) $defaultValue;\n }\n\n return [\n 'id' => $field->id_string,\n 'objectType' => $field->object_type,\n 'label' => $field->label,\n 'fieldName' => $field->crm_provider_id,\n 'type' => $type,\n 'enabled' => $field->is_selectable,\n 'length' => $field->length,\n 'defaultValue' => $defaultValue,\n ];\n }\n\n public function includeOptions(Field $field): ?Collection\n {\n if ($field->isPicklist() && $values = $field->values) {\n// if ($field->type === Field::TYPE_PICKLIST && $values = $field->values) {\n // This gets a little complex. We need to check if this field has any record type constraints for the profile.\n if (\n $this->profile\n && ($recordType = $this->profile->{$field->object_type . 'RecordType'})\n && $recordType->fieldValues()->where('crm_field_id', $field->id)->exists()\n ) {\n // Fetch the values specific for this record type.\n $values = $recordType->fieldValues()->where('crm_field_id', $field->id)->get();\n }\n\n if ($this->noDefault) {\n foreach ($values as $value) {\n $value->is_default = false;\n }\n }\n\n return $this->collection($values, new FieldValueTransformer());\n }\n\n return null;\n }\n}","role_description":"text entry area","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXStaticText","text":"A","depth":4,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"id","depth":5,"bounds":{"left":0.0,"top":0.0,"width":0.04375,"height":0.03},"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"B","depth":4,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"uuid (UUID with time-low and time-high swapped)","depth":5,"bounds":{"left":0.0,"top":0.0,"width":0.04375,"height":0.03},"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"C","depth":4,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"crm_configuration_id","depth":5,"bounds":{"left":0.0,"top":0.0,"width":0.04375,"height":0.03},"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"D","depth":4,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"crm_provider_id","depth":5,"bounds":{"left":0.0,"top":0.0,"width":0.04375,"height":0.03},"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"E","depth":4,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"label","depth":5,"bounds":{"left":0.0,"top":0.0,"width":0.04375,"height":0.03},"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"F","depth":4,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"description","depth":5,"bounds":{"left":0.0,"top":0.0,"width":0.04375,"height":0.03},"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"G","depth":4,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"type","depth":5,"bounds":{"left":0.0,"top":0.0,"width":0.04375,"height":0.03},"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"H","depth":4,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"length","depth":5,"bounds":{"left":0.0,"top":0.0,"width":0.04375,"height":0.03},"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"I","depth":4,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"default_value","depth":5,"bounds":{"left":0.0,"top":0.0,"width":0.04375,"height":0.03},"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"J","depth":4,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"object_type","depth":5,"bounds":{"left":0.0,"top":0.0,"width":0.04375,"height":0.03},"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"K","depth":4,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"is_selectable","depth":5,"bounds":{"left":0.0,"top":0.0,"width":0.04375,"height":0.03},"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"L","depth":4,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"is_mandatory","depth":5,"bounds":{"left":0.0,"top":0.0,"width":0.04375,"height":0.03},"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"M","depth":4,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"is_filterable","depth":5,"bounds":{"left":0.0,"top":0.0,"width":0.04375,"height":0.03},"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"N","depth":4,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"is_indexable","depth":5,"bounds":{"left":0.0,"top":0.0,"width":0.04375,"height":0.03},"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"O","depth":4,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"created_at","depth":5,"bounds":{"left":0.0,"top":0.0,"width":0.04375,"height":0.03},"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"P","depth":4,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"updated_at","depth":5,"bounds":{"left":0.0,"top":0.0,"width":0.04375,"height":0.03},"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"Q","depth":4,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"is_readonly","depth":5,"bounds":{"left":0.0,"top":0.0,"width":0.04375,"height":0.03},"on_screen":false,"role_description":"text"},{"role":"AXButton","text":"Select All","depth":4,"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXCell","text":"1885","depth":6,"on_screen":true,"role_description":"cell"},{"role":"AXStaticText","text":"1885","depth":7,"on_screen":true,"role_description":"text"},{"role":"AXTextArea","text":"39","depth":8,"bounds":{"left":0.0,"top":0.0,"width":0.16458334,"height":0.024444444},"on_screen":false,"value":"39","role_description":"text entry area","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXCell","text":"58a51d4d-0ca7-49f0-9b2c-e16027877cc5","depth":6,"on_screen":true,"role_description":"cell"},{"role":"AXStaticText","text":"58a51d4d-0ca7-49f0-9b2c-e16027877cc5","depth":7,"on_screen":true,"role_description":"text"},{"role":"AXTextArea","text":"picktestmulti__c","depth":8,"bounds":{"left":0.0,"top":0.0,"width":0.10486111,"height":0.024444444},"on_screen":false,"value":"picktestmulti__c","role_description":"text entry area","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXCell","text":"39","depth":6,"on_screen":true,"role_description":"cell"},{"role":"AXStaticText","text":"39","depth":7,"on_screen":true,"role_description":"text"},{"role":"AXTextArea","text":"39","depth":8,"bounds":{"left":0.0,"top":0.0,"width":0.16458334,"height":0.024444444},"on_screen":false,"value":"39","role_description":"text entry area","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXCell","text":"ReminderDateTime","depth":6,"on_screen":true,"role_description":"cell"},{"role":"AXStaticText","text":"ReminderDateTime","depth":7,"on_screen":true,"role_description":"text"},{"role":"AXTextArea","text":"picktestmulti__c","depth":8,"bounds":{"left":0.0,"top":0.0,"width":0.10486111,"height":0.024444444},"on_screen":false,"value":"picktestmulti__c","role_description":"text entry area","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXCell","text":"Reminder Date/Time","depth":6,"on_screen":true,"role_description":"cell"},{"role":"AXStaticText","text":"Reminder Date/Time","depth":7,"on_screen":true,"role_description":"text"},{"role":"AXTextArea","text":"picktestmulti__c","depth":8,"bounds":{"left":0.0,"top":0.0,"width":0.10486111,"height":0.024444444},"on_screen":false,"value":"picktestmulti__c","role_description":"text entry area","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXCell","text":"<null>","depth":6,"on_screen":true,"role_description":"cell"},{"role":"AXStaticText","text":"<null>","depth":7,"on_screen":true,"role_description":"text"},{"role":"AXTextArea","text":"picktestmulti__c","depth":8,"bounds":{"left":0.0,"top":0.0,"width":0.10486111,"height":0.024444444},"on_screen":false,"value":"picktestmulti__c","role_description":"text entry area","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXCell","text":"datetime","depth":6,"on_screen":true,"role_description":"cell"},{"role":"AXStaticText","text":"datetime","depth":7,"on_screen":true,"role_description":"text"},{"role":"AXTextArea","text":"picktestmulti__c","depth":8,"bounds":{"left":0.0,"top":0.0,"width":0.10486111,"height":0.024444444},"on_screen":false,"value":"picktestmulti__c","role_description":"text entry area","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXCell","text":"<null>","depth":6,"on_screen":true,"role_description":"cell"},{"role":"AXStaticText","text":"<null>","depth":7,"on_screen":true,"role_description":"text"},{"role":"AXTextArea","text":"39","depth":8,"bounds":{"left":0.0,"top":0.0,"width":0.16458334,"height":0.024444444},"on_screen":false,"value":"39","role_description":"text entry area","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXCell","text":"<null>","depth":6,"on_screen":true,"role_description":"cell"},{"role":"AXStaticText","text":"<null>","depth":7,"on_screen":true,"role_description":"text"},{"role":"AXTextArea","text":"picktestmulti__c","depth":8,"bounds":{"left":0.0,"top":0.0,"width":0.10486111,"height":0.024444444},"on_screen":false,"value":"picktestmulti__c","role_description":"text entry area","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXCell","text":"event","depth":6,"on_screen":true,"role_description":"cell"},{"role":"AXStaticText","text":"event","depth":7,"on_screen":true,"role_description":"text"},{"role":"AXTextArea","text":"picktestmulti__c","depth":8,"bounds":{"left":0.0,"top":0.0,"width":0.10486111,"height":0.024444444},"on_screen":false,"value":"picktestmulti__c","role_description":"text entry area","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXCell","text":"1","depth":6,"on_screen":false,"role_description":"cell"},{"role":"AXStaticText","text":"1","depth":7,"on_screen":false,"role_description":"text"},{"role":"AXTextArea","text":"39","depth":8,"bounds":{"left":0.0,"top":0.0,"width":0.16458334,"height":0.024444444},"on_screen":false,"value":"39","role_description":"text entry area","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXCell","text":"0","depth":6,"on_screen":false,"role_description":"cell"},{"role":"AXStaticText","text":"0","depth":7,"on_screen":false,"role_description":"text"},{"role":"AXTextArea","text":"39","depth":8,"bounds":{"left":0.0,"top":0.0,"width":0.16458334,"height":0.024444444},"on_screen":false,"value":"39","role_description":"text entry area","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXCell","text":"0","depth":6,"on_screen":false,"role_description":"cell"},{"role":"AXStaticText","text":"0","depth":7,"on_screen":false,"role_description":"text"},{"role":"AXTextArea","text":"39","depth":8,"bounds":{"left":0.0,"top":0.0,"width":0.16458334,"height":0.024444444},"on_screen":false,"value":"39","role_description":"text entry area","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXCell","text":"0","depth":6,"on_screen":false,"role_description":"cell"},{"role":"AXStaticText","text":"0","depth":7,"on_screen":false,"role_description":"text"},{"role":"AXTextArea","text":"39","depth":8,"bounds":{"left":0.0,"top":0.0,"width":0.16458334,"height":0.024444444},"on_screen":false,"value":"39","role_description":"text entry area","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXCell","text":"2022-12-15 14:53:05","depth":6,"on_screen":false,"role_description":"cell"},{"role":"AXStaticText","text":"2022-12-15 14:53:05","depth":7,"on_screen":false,"role_description":"text"},{"role":"AXTextArea","text":"picktestmulti__c","depth":8,"bounds":{"left":0.0,"top":0.0,"width":0.10486111,"height":0.024444444},"on_screen":false,"value":"picktestmulti__c","role_description":"text entry area","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXCell","text":"2025-09-29 11:00:32","depth":6,"on_screen":false,"role_description":"cell"},{"role":"AXStaticText","text":"2025-09-29 11:00:32","depth":7,"on_screen":false,"role_description":"text"},{"role":"AXTextArea","text":"picktestmulti__c","depth":8,"bounds":{"left":0.0,"top":0.0,"width":0.10486111,"height":0.024444444},"on_screen":false,"value":"picktestmulti__c","role_description":"text entry area","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXCell","text":"0","depth":6,"on_screen":false,"role_description":"cell"},{"role":"AXStaticText","text":"0","depth":7,"on_screen":false,"role_description":"text"},{"role":"AXTextArea","text":"39","depth":8,"bounds":{"left":0.0,"top":0.0,"width":0.16458334,"height":0.024444444},"on_screen":false,"value":"39","role_description":"text entry area","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXCell","text":"3014","depth":6,"on_screen":true,"role_description":"cell"},{"role":"AXStaticText","text":"3014","depth":7,"on_screen":true,"role_description":"text"},{"role":"AXTextArea","text":"39","depth":8,"bounds":{"left":0.0,"top":0.0,"width":0.16458334,"height":0.024444444},"on_screen":false,"value":"39","role_description":"text entry area","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXCell","text":"a3d3df5a-eaa1-43d0-b95e-1ff4bec8c428","depth":6,"on_screen":true,"role_description":"cell"},{"role":"AXStaticText","text":"a3d3df5a-eaa1-43d0-b95e-1ff4bec8c428","depth":7,"on_screen":true,"role_description":"text"},{"role":"AXTextArea","text":"picktestmulti__c","depth":8,"bounds":{"left":0.0,"top":0.0,"width":0.10486111,"height":0.024444444},"on_screen":false,"value":"picktestmulti__c","role_description":"text entry area","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXCell","text":"39","depth":6,"on_screen":true,"role_description":"cell"},{"role":"AXStaticText","text":"39","depth":7,"on_screen":true,"role_description":"text"},{"role":"AXTextArea","text":"39","depth":8,"bounds":{"left":0.0,"top":0.0,"width":0.16458334,"height":0.024444444},"on_screen":false,"value":"39","role_description":"text entry area","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXCell","text":"picktestmulti__c","depth":6,"on_screen":true,"role_description":"cell"},{"role":"AXStaticText","text":"picktestmulti__c","depth":7,"on_screen":true,"role_description":"text"},{"role":"AXTextArea","text":"picktestmulti__c","depth":8,"bounds":{"left":0.0,"top":0.0,"width":0.10486111,"height":0.024444444},"on_screen":false,"value":"picktestmulti__c","role_description":"text entry area","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXCell","text":"picktestmulti","depth":6,"on_screen":true,"role_description":"cell"},{"role":"AXStaticText","text":"picktestmulti","depth":7,"on_screen":true,"role_description":"text"},{"role":"AXTextArea","text":"picktestmulti__c","depth":8,"bounds":{"left":0.0,"top":0.0,"width":0.10486111,"height":0.024444444},"on_screen":false,"value":"picktestmulti__c","role_description":"text entry area","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXCell","text":"<null>","depth":6,"on_screen":true,"role_description":"cell"},{"role":"AXStaticText","text":"<null>","depth":7,"on_screen":true,"role_description":"text"},{"role":"AXTextArea","text":"picktestmulti__c","depth":8,"bounds":{"left":0.0,"top":0.0,"width":0.10486111,"height":0.024444444},"on_screen":false,"value":"picktestmulti__c","role_description":"text entry area","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXCell","text":"multi-picklist","depth":6,"on_screen":true,"role_description":"cell"},{"role":"AXStaticText","text":"multi-picklist","depth":7,"on_screen":true,"role_description":"text"},{"role":"AXTextArea","text":"picktestmulti__c","depth":8,"bounds":{"left":0.0,"top":0.0,"width":0.10486111,"height":0.024444444},"on_screen":false,"value":"picktestmulti__c","role_description":"text entry area","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXCell","text":"4099","depth":6,"on_screen":true,"role_description":"cell"},{"role":"AXStaticText","text":"4099","depth":7,"on_screen":true,"role_description":"text"},{"role":"AXTextArea","text":"39","depth":8,"bounds":{"left":0.0,"top":0.0,"width":0.16458334,"height":0.024444444},"on_screen":false,"value":"39","role_description":"text entry area","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXCell","text":"<null>","depth":6,"on_screen":true,"role_description":"cell"},{"role":"AXStaticText","text":"<null>","depth":7,"on_screen":true,"role_description":"text"},{"role":"AXTextArea","text":"picktestmulti__c","depth":8,"bounds":{"left":0.0,"top":0.0,"width":0.10486111,"height":0.024444444},"on_screen":false,"value":"picktestmulti__c","role_description":"text entry area","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXCell","text":"event","depth":6,"on_screen":true,"role_description":"cell"},{"role":"AXStaticText","text":"event","depth":7,"on_screen":true,"role_description":"text"}]...
|
3980101320715252308
|
442988178151127411
|
typing_pause
|
accessibility
|
NULL
|
Project: faVsco.js, menu
JY-20915-fix-missing-head Project: faVsco.js, menu
JY-20915-fix-missing-header-text-relay, menu
Start Listening for PHP Debug Connections
TextRelayServiceTest
Run 'TextRelayServiceTest'
Debug 'TextRelayServiceTest'
More Actions
JetBrains AI
Search Everywhere
IDE and Project Settings
Sync Changes
Hide This Notification
Code changed:
Hide
11
1
Previous Highlighted Error
Next Highlighted Error
<?php
namespace Jiminny\Http\Transformers;
use Jiminny\Models\Crm\Field;
use Jiminny\Models\Crm\Profile;
use League\Fractal\Resource\Collection;
use League\Fractal\TransformerAbstract;
class FieldTransformer extends TransformerAbstract
{
protected array $availableIncludes = [
'options',
];
private ?Profile $profile;
private bool $noDefault = false;
public function __construct(?Profile $profile = null)
{
$this->profile = $profile;
}
public function setNoDefault(bool $noDefault)
{
$this->noDefault = $noDefault;
}
public function transform(Field $field): array
{
$defaultValue = $field->default_value;
$type = $field->type;
if (\is_bool($defaultValue)) {
$defaultValue = (bool) $defaultValue;
}
return [
'id' => $field->id_string,
'objectType' => $field->object_type,
'label' => $field->label,
'fieldName' => $field->crm_provider_id,
'type' => $type,
'enabled' => $field->is_selectable,
'length' => $field->length,
'defaultValue' => $defaultValue,
];
}
public function includeOptions(Field $field): ?Collection
{
if ($field->isPicklist() && $values = $field->values) {
// if ($field->type === Field::TYPE_PICKLIST && $values = $field->values) {
// This gets a little complex. We need to check if this field has any record type constraints for the profile.
if (
$this->profile
&& ($recordType = $this->profile->{$field->object_type . 'RecordType'})
&& $recordType->fieldValues()->where('crm_field_id', $field->id)->exists()
) {
// Fetch the values specific for this record type.
$values = $recordType->fieldValues()->where('crm_field_id', $field->id)->get();
}
if ($this->noDefault) {
foreach ($values as $value) {
$value->is_default = false;
}
}
return $this->collection($values, new FieldValueTransformer());
}
return null;
}
}
A
id
B
uuid (UUID with time-low and time-high swapped)
C
crm_configuration_id
D
crm_provider_id
E
label
F
description
G
type
H
length
I
default_value
J
object_type
K
is_selectable
L
is_mandatory
M
is_filterable
N
is_indexable
O
created_at
P
updated_at
Q
is_readonly
Select All
1885
1885
39
58a51d4d-0ca7-49f0-9b2c-e16027877cc5
58a51d4d-0ca7-49f0-9b2c-e16027877cc5
picktestmulti__c
39
39
39
ReminderDateTime
ReminderDateTime
picktestmulti__c
Reminder Date/Time
Reminder Date/Time
picktestmulti__c
<null>
<null>
picktestmulti__c
datetime
datetime
picktestmulti__c
<null>
<null>
39
<null>
<null>
picktestmulti__c
event
event
picktestmulti__c
1
1
39
0
0
39
0
0
39
0
0
39
2022-12-15 14:53:05
2022-12-15 14:53:05
picktestmulti__c
2025-09-29 11:00:32
2025-09-29 11:00:32
picktestmulti__c
0
0
39
3014
3014
39
a3d3df5a-eaa1-43d0-b95e-1ff4bec8c428
a3d3df5a-eaa1-43d0-b95e-1ff4bec8c428
picktestmulti__c
39
39
39
picktestmulti__c
picktestmulti__c
picktestmulti__c
picktestmulti
picktestmulti
picktestmulti__c
<null>
<null>
picktestmulti__c
multi-picklist
multi-picklist
picktestmulti__c
4099
4099
39
<null>
<null>
picktestmulti__c
event
event...
|
NULL
|
NULL
|
NULL
|
NULL
|
|
79834
|
2791
|
78
|
2026-05-28T06:44:35.106074+00:00
|
/Users/lukas/.screenpipe/data/data/2026-05-28/1779 /Users/lukas/.screenpipe/data/data/2026-05-28/1779950675106_m2.jpg...
|
PhpStorm
|
faVsco.js – FieldTransformer.php
|
1
|
NULL
|
monitor_2
|
NULL
|
NULL
|
NULL
|
NULL
|
Project: faVsco.js, menu
JY-20915-fix-missing-head Project: faVsco.js, menu
JY-20915-fix-missing-header-text-relay, menu
Start Listening for PHP Debug Connections
TextRelayServiceTest
Run 'TextRelayServiceTest'
Debug 'TextRelayServiceTest'
More Actions
JetBrains AI
Search Everywhere
IDE and Project Settings
Sync Changes
Hide This Notification
Code changed:
Hide
11
1
Previous Highlighted Error
Next Highlighted Error
<?php
namespace Jiminny\Http\Transformers;
use Jiminny\Models\Crm\Field;
use Jiminny\Models\Crm\Profile;
use League\Fractal\Resource\Collection;
use League\Fractal\TransformerAbstract;
class FieldTransformer extends TransformerAbstract
{
protected array $availableIncludes = [
'options',
];
private ?Profile $profile;
private bool $noDefault = false;
public function __construct(?Profile $profile = null)
{
$this->profile = $profile;
}
public function setNoDefault(bool $noDefault)
{
$this->noDefault = $noDefault;
}
public function transform(Field $field): array
{
$defaultValue = $field->default_value;
$type = $field->type;
if (\is_bool($defaultValue)) {
$defaultValue = (bool) $defaultValue;
}
return [
'id' => $field->id_string,
'objectType' => $field->object_type,
'label' => $field->label,
'fieldName' => $field->crm_provider_id,
'type' => $type,
'enabled' => $field->is_selectable,
'length' => $field->length,
'defaultValue' => $defaultValue,
];
}
public function includeOptions(Field $field): ?Collection
{
if ($field->isPicklist() && $values = $field->values) {
// if ($field->type === Field::TYPE_PICKLIST && $values = $field->values) {
// This gets a little complex. We need to check if this field has any record type constraints for the profile.
if (
$this->profile
&& ($recordType = $this->profile->{$field->object_type . 'RecordType'})
&& $recordType->fieldValues()->where('crm_field_id', $field->id)->exists()
) {
// Fetch the values specific for this record type.
$values = $recordType->fieldValues()->where('crm_field_id', $field->id)->get();
}
if ($this->noDefault) {
foreach ($values as $value) {
$value->is_default = false;
}
}
return $this->collection($values, new FieldValueTransformer());
}
return null;
}
}
A
id
B
uuid (UUID with time-low and time-high swapped)
C
crm_configuration_id
D
crm_provider_id
E
label
F
description
G
type
H
length
I
default_value
J
object_type
K
is_selectable
L
is_mandatory
M
is_filterable
N
is_indexable
O
created_at
P
updated_at
Q
is_readonly
Select All
1885
1885
39...
|
[{"role":"AXButton","text" [{"role":"AXButton","text":"Project: faVsco.js, menu","depth":5,"bounds":{"left":0.025930852,"top":0.019952115,"width":0.03856383,"height":0.025538707},"on_screen":true,"help_text":"~/jiminny/app","role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"JY-20915-fix-missing-header-text-relay, menu","depth":5,"bounds":{"left":0.064494684,"top":0.019952115,"width":0.09740692,"height":0.025538707},"on_screen":true,"help_text":"Git Branch: JY-20915-fix-missing-header-text-relay","role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Start Listening for PHP Debug Connections","depth":5,"bounds":{"left":0.8374335,"top":0.019952115,"width":0.011303191,"height":0.025538707},"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"TextRelayServiceTest","depth":6,"bounds":{"left":0.85272604,"top":0.019952115,"width":0.062832445,"height":0.025538707},"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Run 'TextRelayServiceTest'","depth":6,"bounds":{"left":0.9155585,"top":0.019952115,"width":0.011303191,"height":0.025538707},"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Debug 'TextRelayServiceTest'","depth":6,"bounds":{"left":0.9268617,"top":0.019952115,"width":0.011303191,"height":0.025538707},"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"More Actions","depth":6,"bounds":{"left":0.9381649,"top":0.019952115,"width":0.011303191,"height":0.025538707},"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"JetBrains AI","depth":5,"bounds":{"left":0.96609044,"top":0.019952115,"width":0.011303191,"height":0.025538707},"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Search Everywhere","depth":5,"bounds":{"left":0.9773936,"top":0.019952115,"width":0.011303191,"height":0.025538707},"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"IDE and Project Settings","depth":5,"bounds":{"left":0.9886968,"top":0.019952115,"width":0.011303186,"height":0.025538707},"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Sync Changes","depth":4,"bounds":{"left":0.27027926,"top":1.0,"width":0.008643617,"height":0.0},"on_screen":false,"role_description":"button","is_enabled":false,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Hide This Notification","depth":4,"bounds":{"left":0.27027926,"top":1.0,"width":0.008643617,"height":0.0},"on_screen":false,"role_description":"button","is_enabled":false,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Code changed:","depth":4,"bounds":{"left":0.27027926,"top":1.0,"width":0.042220745,"height":0.0},"on_screen":false,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Hide","depth":4,"bounds":{"left":0.27027926,"top":1.0,"width":0.008643617,"height":0.0},"on_screen":false,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXStaticText","text":"11","depth":4,"bounds":{"left":0.37699467,"top":0.12529927,"width":0.008976064,"height":0.015163607},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"1","depth":4,"bounds":{"left":0.3879654,"top":0.12529927,"width":0.00731383,"height":0.015163607},"on_screen":true,"role_description":"text"},{"role":"AXButton","text":"Previous Highlighted Error","depth":4,"bounds":{"left":0.39694148,"top":0.123703115,"width":0.00731383,"height":0.018355945},"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Next Highlighted Error","depth":4,"bounds":{"left":0.40425533,"top":0.123703115,"width":0.006981383,"height":0.018355945},"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXTextArea","text":"<?php\n\nnamespace Jiminny\\Http\\Transformers;\n\nuse Jiminny\\Models\\Crm\\Field;\nuse Jiminny\\Models\\Crm\\Profile;\nuse League\\Fractal\\Resource\\Collection;\nuse League\\Fractal\\TransformerAbstract;\n\nclass FieldTransformer extends TransformerAbstract\n{\n protected array $availableIncludes = [\n 'options',\n ];\n private ?Profile $profile;\n\n private bool $noDefault = false;\n\n public function __construct(?Profile $profile = null)\n {\n $this->profile = $profile;\n }\n\n public function setNoDefault(bool $noDefault)\n {\n $this->noDefault = $noDefault;\n }\n\n public function transform(Field $field): array\n {\n $defaultValue = $field->default_value;\n $type = $field->type;\n\n if (\\is_bool($defaultValue)) {\n $defaultValue = (bool) $defaultValue;\n }\n\n return [\n 'id' => $field->id_string,\n 'objectType' => $field->object_type,\n 'label' => $field->label,\n 'fieldName' => $field->crm_provider_id,\n 'type' => $type,\n 'enabled' => $field->is_selectable,\n 'length' => $field->length,\n 'defaultValue' => $defaultValue,\n ];\n }\n\n public function includeOptions(Field $field): ?Collection\n {\n if ($field->isPicklist() && $values = $field->values) {\n// if ($field->type === Field::TYPE_PICKLIST && $values = $field->values) {\n // This gets a little complex. We need to check if this field has any record type constraints for the profile.\n if (\n $this->profile\n && ($recordType = $this->profile->{$field->object_type . 'RecordType'})\n && $recordType->fieldValues()->where('crm_field_id', $field->id)->exists()\n ) {\n // Fetch the values specific for this record type.\n $values = $recordType->fieldValues()->where('crm_field_id', $field->id)->get();\n }\n\n if ($this->noDefault) {\n foreach ($values as $value) {\n $value->is_default = false;\n }\n }\n\n return $this->collection($values, new FieldValueTransformer());\n }\n\n return null;\n }\n}","depth":4,"on_screen":true,"value":"<?php\n\nnamespace Jiminny\\Http\\Transformers;\n\nuse Jiminny\\Models\\Crm\\Field;\nuse Jiminny\\Models\\Crm\\Profile;\nuse League\\Fractal\\Resource\\Collection;\nuse League\\Fractal\\TransformerAbstract;\n\nclass FieldTransformer extends TransformerAbstract\n{\n protected array $availableIncludes = [\n 'options',\n ];\n private ?Profile $profile;\n\n private bool $noDefault = false;\n\n public function __construct(?Profile $profile = null)\n {\n $this->profile = $profile;\n }\n\n public function setNoDefault(bool $noDefault)\n {\n $this->noDefault = $noDefault;\n }\n\n public function transform(Field $field): array\n {\n $defaultValue = $field->default_value;\n $type = $field->type;\n\n if (\\is_bool($defaultValue)) {\n $defaultValue = (bool) $defaultValue;\n }\n\n return [\n 'id' => $field->id_string,\n 'objectType' => $field->object_type,\n 'label' => $field->label,\n 'fieldName' => $field->crm_provider_id,\n 'type' => $type,\n 'enabled' => $field->is_selectable,\n 'length' => $field->length,\n 'defaultValue' => $defaultValue,\n ];\n }\n\n public function includeOptions(Field $field): ?Collection\n {\n if ($field->isPicklist() && $values = $field->values) {\n// if ($field->type === Field::TYPE_PICKLIST && $values = $field->values) {\n // This gets a little complex. We need to check if this field has any record type constraints for the profile.\n if (\n $this->profile\n && ($recordType = $this->profile->{$field->object_type . 'RecordType'})\n && $recordType->fieldValues()->where('crm_field_id', $field->id)->exists()\n ) {\n // Fetch the values specific for this record type.\n $values = $recordType->fieldValues()->where('crm_field_id', $field->id)->get();\n }\n\n if ($this->noDefault) {\n foreach ($values as $value) {\n $value->is_default = false;\n }\n }\n\n return $this->collection($values, new FieldValueTransformer());\n }\n\n return null;\n }\n}","role_description":"text entry area","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXStaticText","text":"A","depth":4,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"id","depth":5,"bounds":{"left":0.27027926,"top":1.0,"width":0.020944148,"height":0.0},"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"B","depth":4,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"uuid (UUID with time-low and time-high swapped)","depth":5,"bounds":{"left":0.27027926,"top":1.0,"width":0.020944148,"height":0.0},"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"C","depth":4,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"crm_configuration_id","depth":5,"bounds":{"left":0.27027926,"top":1.0,"width":0.020944148,"height":0.0},"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"D","depth":4,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"crm_provider_id","depth":5,"bounds":{"left":0.27027926,"top":1.0,"width":0.020944148,"height":0.0},"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"E","depth":4,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"label","depth":5,"bounds":{"left":0.27027926,"top":1.0,"width":0.020944148,"height":0.0},"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"F","depth":4,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"description","depth":5,"bounds":{"left":0.27027926,"top":1.0,"width":0.020944148,"height":0.0},"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"G","depth":4,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"type","depth":5,"bounds":{"left":0.27027926,"top":1.0,"width":0.020944148,"height":0.0},"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"H","depth":4,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"length","depth":5,"bounds":{"left":0.27027926,"top":1.0,"width":0.020944148,"height":0.0},"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"I","depth":4,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"default_value","depth":5,"bounds":{"left":0.27027926,"top":1.0,"width":0.020944148,"height":0.0},"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"J","depth":4,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"object_type","depth":5,"bounds":{"left":0.27027926,"top":1.0,"width":0.020944148,"height":0.0},"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"K","depth":4,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"is_selectable","depth":5,"bounds":{"left":0.27027926,"top":1.0,"width":0.020944148,"height":0.0},"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"L","depth":4,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"is_mandatory","depth":5,"bounds":{"left":0.27027926,"top":1.0,"width":0.020944148,"height":0.0},"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"M","depth":4,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"is_filterable","depth":5,"bounds":{"left":0.27027926,"top":1.0,"width":0.020944148,"height":0.0},"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"N","depth":4,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"is_indexable","depth":5,"bounds":{"left":0.27027926,"top":1.0,"width":0.020944148,"height":0.0},"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"O","depth":4,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"created_at","depth":5,"bounds":{"left":0.27027926,"top":1.0,"width":0.020944148,"height":0.0},"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"P","depth":4,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"updated_at","depth":5,"bounds":{"left":0.27027926,"top":1.0,"width":0.020944148,"height":0.0},"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"Q","depth":4,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"is_readonly","depth":5,"bounds":{"left":0.27027926,"top":1.0,"width":0.020944148,"height":0.0},"on_screen":false,"role_description":"text"},{"role":"AXButton","text":"Select All","depth":4,"bounds":{"left":0.41156915,"top":0.14365523,"width":0.007978723,"height":0.0207502},"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXCell","text":"1885","depth":6,"bounds":{"left":0.41988033,"top":0.16520351,"width":0.034242023,"height":0.0207502},"on_screen":true,"role_description":"cell"},{"role":"AXStaticText","text":"1885","depth":7,"bounds":{"left":0.41988033,"top":0.16520351,"width":0.034242023,"height":0.0207502},"on_screen":true,"role_description":"text"},{"role":"AXTextArea","text":"39","depth":8,"bounds":{"left":0.27027926,"top":1.0,"width":0.0787899,"height":0.0},"on_screen":false,"value":"39","role_description":"text entry area","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false}]...
|
8056782752922170526
|
-7913405746134306381
|
visual_change
|
accessibility
|
NULL
|
Project: faVsco.js, menu
JY-20915-fix-missing-head Project: faVsco.js, menu
JY-20915-fix-missing-header-text-relay, menu
Start Listening for PHP Debug Connections
TextRelayServiceTest
Run 'TextRelayServiceTest'
Debug 'TextRelayServiceTest'
More Actions
JetBrains AI
Search Everywhere
IDE and Project Settings
Sync Changes
Hide This Notification
Code changed:
Hide
11
1
Previous Highlighted Error
Next Highlighted Error
<?php
namespace Jiminny\Http\Transformers;
use Jiminny\Models\Crm\Field;
use Jiminny\Models\Crm\Profile;
use League\Fractal\Resource\Collection;
use League\Fractal\TransformerAbstract;
class FieldTransformer extends TransformerAbstract
{
protected array $availableIncludes = [
'options',
];
private ?Profile $profile;
private bool $noDefault = false;
public function __construct(?Profile $profile = null)
{
$this->profile = $profile;
}
public function setNoDefault(bool $noDefault)
{
$this->noDefault = $noDefault;
}
public function transform(Field $field): array
{
$defaultValue = $field->default_value;
$type = $field->type;
if (\is_bool($defaultValue)) {
$defaultValue = (bool) $defaultValue;
}
return [
'id' => $field->id_string,
'objectType' => $field->object_type,
'label' => $field->label,
'fieldName' => $field->crm_provider_id,
'type' => $type,
'enabled' => $field->is_selectable,
'length' => $field->length,
'defaultValue' => $defaultValue,
];
}
public function includeOptions(Field $field): ?Collection
{
if ($field->isPicklist() && $values = $field->values) {
// if ($field->type === Field::TYPE_PICKLIST && $values = $field->values) {
// This gets a little complex. We need to check if this field has any record type constraints for the profile.
if (
$this->profile
&& ($recordType = $this->profile->{$field->object_type . 'RecordType'})
&& $recordType->fieldValues()->where('crm_field_id', $field->id)->exists()
) {
// Fetch the values specific for this record type.
$values = $recordType->fieldValues()->where('crm_field_id', $field->id)->get();
}
if ($this->noDefault) {
foreach ($values as $value) {
$value->is_default = false;
}
}
return $this->collection($values, new FieldValueTransformer());
}
return null;
}
}
A
id
B
uuid (UUID with time-low and time-high swapped)
C
crm_configuration_id
D
crm_provider_id
E
label
F
description
G
type
H
length
I
default_value
J
object_type
K
is_selectable
L
is_mandatory
M
is_filterable
N
is_indexable
O
created_at
P
updated_at
Q
is_readonly
Select All
1885
1885
39...
|
79832
|
NULL
|
NULL
|
NULL
|
|
79833
|
2790
|
51
|
2026-05-28T06:44:34.294959+00:00
|
/Users/lukas/.screenpipe/data/data/2026-05-28/1779 /Users/lukas/.screenpipe/data/data/2026-05-28/1779950674294_m1.jpg...
|
PhpStorm
|
faVsco.js – FieldTransformer.php
|
1
|
NULL
|
monitor_1
|
NULL
|
NULL
|
NULL
|
NULL
|
Project: faVsco.js, menu
JY-20915-fix-missing-head Project: faVsco.js, menu
JY-20915-fix-missing-header-text-relay, menu
Start Listening for PHP Debug Connections
TextRelayServiceTest
Run 'TextRelayServiceTest'
Debug 'TextRelayServiceTest'
More Actions
JetBrains AI
Search Everywhere
IDE and Project Settings
Sync Changes
Hide This Notification
Code changed:
Hide
11
1
Previous Highlighted Error
Next Highlighted Error
<?php
namespace Jiminny\Http\Transformers;
use Jiminny\Models\Crm\Field;
use Jiminny\Models\Crm\Profile;
use League\Fractal\Resource\Collection;
use League\Fractal\TransformerAbstract;
class FieldTransformer extends TransformerAbstract
{
protected array $availableIncludes = [
'options',
];
private ?Profile $profile;
private bool $noDefault = false;
public function __construct(?Profile $profile = null)
{
$this->profile = $profile;
}
public function setNoDefault(bool $noDefault)
{
$this->noDefault = $noDefault;
}
public function transform(Field $field): array
{
$defaultValue = $field->default_value;
$type = $field->type;
if (\is_bool($defaultValue)) {
$defaultValue = (bool) $defaultValue;
}
return [
'id' => $field->id_string,
'objectType' => $field->object_type,
'label' => $field->label,
'fieldName' => $field->crm_provider_id,
'type' => $type,
'enabled' => $field->is_selectable,
'length' => $field->length,
'defaultValue' => $defaultValue,
];
}
public function includeOptions(Field $field): ?Collection
{
if ($field->isPicklist() && $values = $field->values) {
// if ($field->type === Field::TYPE_PICKLIST && $values = $field->values) {
// This gets a little complex. We need to check if this field has any record type constraints for the profile.
if (
$this->profile
&& ($recordType = $this->profile->{$field->object_type . 'RecordType'})
&& $recordType->fieldValues()->where('crm_field_id', $field->id)->exists()
) {
// Fetch the values specific for this record type.
$values = $recordType->fieldValues()->where('crm_field_id', $field->id)->get();
}
if ($this->noDefault) {
foreach ($values as $value) {
$value->is_default = false;
}
}
return $this->collection($values, new FieldValueTransformer());
}
return null;
}
}
A
id
B
uuid (UUID with time-low and time-high swapped)
C
crm_configuration_id
D
crm_provider_id
E
label
F
description
G
type
H
length
I
default_value
J
object_type
K
is_selectable
L
is_mandatory
M
is_filterable
N
is_indexable
O
created_at
P
updated_at
Q
is_readonly
Select All
1885
1885
39
58a51d4d-0ca7-49f0-9b2c-e16027877cc5
58a51d4d-0ca7-49f0-9b2c-e16027877cc5
picktestmulti__c
39
39
39
ReminderDateTime
ReminderDateTime
picktestmulti__c
Reminder Date/Time
Reminder Date/Time
picktestmulti__c
<null>
<null>
picktestmulti__c
datetime
datetime
picktestmulti__c
<null>
<null>
39
<null>
<null>
picktestmulti__c
event
event
picktestmulti__c
1
1
39
0
0
39
0
0
39
0
0
39
2022-12-15 14:53:05
2022-12-15 14:53:05
picktestmulti__c
2025-09-29 11:00:32
2025-09-29 11:00:32
picktestmulti__c
0
0
39
3014
3014
39
a3d3df5a-eaa1-43d0-b95e-1ff4bec8c428
a3d3df5a-eaa1-43d0-b95e-1ff4bec8c428
picktestmulti__c
39
39
39
picktestmulti__c
picktestmulti__c
picktestmulti__c
picktestmulti
picktestmulti
picktestmulti__c
<null>
<null>
picktestmulti__c
multi-picklist
multi-picklist
picktestmulti__c
4099
4099
39
<null>
<null>
picktestmulti__c
event
event
picktestmulti__c
1
1
39
0
0
39
0
0
39
0
0
39
2023-07-25 01:00:23
2023-07-25 01:00:23
picktestmulti__c
2026-02-10 11:01:10
2026-02-10 11:01:10
picktestmulti__c
0
0
39
id IN (1885, 3014)
Editor
2 rows
Reload Page
Table Result Auto Refresh
Cancel Running Statements
Add Row
Delete Row
Revert Selected
Preview Pending Changes
Submit...
|
[{"role":"AXButton","text" [{"role":"AXButton","text":"Project: faVsco.js, menu","depth":5,"on_screen":true,"help_text":"~/jiminny/app","role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"JY-20915-fix-missing-header-text-relay, menu","depth":5,"on_screen":true,"help_text":"Git Branch: JY-20915-fix-missing-header-text-relay","role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Start Listening for PHP Debug Connections","depth":5,"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"TextRelayServiceTest","depth":6,"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Run 'TextRelayServiceTest'","depth":6,"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Debug 'TextRelayServiceTest'","depth":6,"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"More Actions","depth":6,"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"JetBrains AI","depth":5,"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Search Everywhere","depth":5,"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"IDE and Project Settings","depth":5,"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Sync Changes","depth":4,"bounds":{"left":0.0,"top":0.0,"width":0.018055556,"height":0.026666667},"on_screen":false,"role_description":"button","is_enabled":false,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Hide This Notification","depth":4,"bounds":{"left":0.0,"top":0.0,"width":0.018055556,"height":0.026666667},"on_screen":false,"role_description":"button","is_enabled":false,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Code changed:","depth":4,"bounds":{"left":0.0,"top":0.0,"width":0.088194445,"height":0.027777778},"on_screen":false,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Hide","depth":4,"bounds":{"left":0.0,"top":0.0,"width":0.018055556,"height":0.026666667},"on_screen":false,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXStaticText","text":"11","depth":4,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"1","depth":4,"on_screen":true,"role_description":"text"},{"role":"AXButton","text":"Previous Highlighted Error","depth":4,"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Next Highlighted Error","depth":4,"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXTextArea","text":"<?php\n\nnamespace Jiminny\\Http\\Transformers;\n\nuse Jiminny\\Models\\Crm\\Field;\nuse Jiminny\\Models\\Crm\\Profile;\nuse League\\Fractal\\Resource\\Collection;\nuse League\\Fractal\\TransformerAbstract;\n\nclass FieldTransformer extends TransformerAbstract\n{\n protected array $availableIncludes = [\n 'options',\n ];\n private ?Profile $profile;\n\n private bool $noDefault = false;\n\n public function __construct(?Profile $profile = null)\n {\n $this->profile = $profile;\n }\n\n public function setNoDefault(bool $noDefault)\n {\n $this->noDefault = $noDefault;\n }\n\n public function transform(Field $field): array\n {\n $defaultValue = $field->default_value;\n $type = $field->type;\n\n if (\\is_bool($defaultValue)) {\n $defaultValue = (bool) $defaultValue;\n }\n\n return [\n 'id' => $field->id_string,\n 'objectType' => $field->object_type,\n 'label' => $field->label,\n 'fieldName' => $field->crm_provider_id,\n 'type' => $type,\n 'enabled' => $field->is_selectable,\n 'length' => $field->length,\n 'defaultValue' => $defaultValue,\n ];\n }\n\n public function includeOptions(Field $field): ?Collection\n {\n if ($field->isPicklist() && $values = $field->values) {\n// if ($field->type === Field::TYPE_PICKLIST && $values = $field->values) {\n // This gets a little complex. We need to check if this field has any record type constraints for the profile.\n if (\n $this->profile\n && ($recordType = $this->profile->{$field->object_type . 'RecordType'})\n && $recordType->fieldValues()->where('crm_field_id', $field->id)->exists()\n ) {\n // Fetch the values specific for this record type.\n $values = $recordType->fieldValues()->where('crm_field_id', $field->id)->get();\n }\n\n if ($this->noDefault) {\n foreach ($values as $value) {\n $value->is_default = false;\n }\n }\n\n return $this->collection($values, new FieldValueTransformer());\n }\n\n return null;\n }\n}","depth":4,"on_screen":true,"value":"<?php\n\nnamespace Jiminny\\Http\\Transformers;\n\nuse Jiminny\\Models\\Crm\\Field;\nuse Jiminny\\Models\\Crm\\Profile;\nuse League\\Fractal\\Resource\\Collection;\nuse League\\Fractal\\TransformerAbstract;\n\nclass FieldTransformer extends TransformerAbstract\n{\n protected array $availableIncludes = [\n 'options',\n ];\n private ?Profile $profile;\n\n private bool $noDefault = false;\n\n public function __construct(?Profile $profile = null)\n {\n $this->profile = $profile;\n }\n\n public function setNoDefault(bool $noDefault)\n {\n $this->noDefault = $noDefault;\n }\n\n public function transform(Field $field): array\n {\n $defaultValue = $field->default_value;\n $type = $field->type;\n\n if (\\is_bool($defaultValue)) {\n $defaultValue = (bool) $defaultValue;\n }\n\n return [\n 'id' => $field->id_string,\n 'objectType' => $field->object_type,\n 'label' => $field->label,\n 'fieldName' => $field->crm_provider_id,\n 'type' => $type,\n 'enabled' => $field->is_selectable,\n 'length' => $field->length,\n 'defaultValue' => $defaultValue,\n ];\n }\n\n public function includeOptions(Field $field): ?Collection\n {\n if ($field->isPicklist() && $values = $field->values) {\n// if ($field->type === Field::TYPE_PICKLIST && $values = $field->values) {\n // This gets a little complex. We need to check if this field has any record type constraints for the profile.\n if (\n $this->profile\n && ($recordType = $this->profile->{$field->object_type . 'RecordType'})\n && $recordType->fieldValues()->where('crm_field_id', $field->id)->exists()\n ) {\n // Fetch the values specific for this record type.\n $values = $recordType->fieldValues()->where('crm_field_id', $field->id)->get();\n }\n\n if ($this->noDefault) {\n foreach ($values as $value) {\n $value->is_default = false;\n }\n }\n\n return $this->collection($values, new FieldValueTransformer());\n }\n\n return null;\n }\n}","role_description":"text entry area","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXStaticText","text":"A","depth":4,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"id","depth":5,"bounds":{"left":0.0,"top":0.0,"width":0.04375,"height":0.03},"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"B","depth":4,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"uuid (UUID with time-low and time-high swapped)","depth":5,"bounds":{"left":0.0,"top":0.0,"width":0.04375,"height":0.03},"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"C","depth":4,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"crm_configuration_id","depth":5,"bounds":{"left":0.0,"top":0.0,"width":0.04375,"height":0.03},"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"D","depth":4,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"crm_provider_id","depth":5,"bounds":{"left":0.0,"top":0.0,"width":0.04375,"height":0.03},"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"E","depth":4,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"label","depth":5,"bounds":{"left":0.0,"top":0.0,"width":0.04375,"height":0.03},"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"F","depth":4,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"description","depth":5,"bounds":{"left":0.0,"top":0.0,"width":0.04375,"height":0.03},"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"G","depth":4,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"type","depth":5,"bounds":{"left":0.0,"top":0.0,"width":0.04375,"height":0.03},"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"H","depth":4,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"length","depth":5,"bounds":{"left":0.0,"top":0.0,"width":0.04375,"height":0.03},"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"I","depth":4,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"default_value","depth":5,"bounds":{"left":0.0,"top":0.0,"width":0.04375,"height":0.03},"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"J","depth":4,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"object_type","depth":5,"bounds":{"left":0.0,"top":0.0,"width":0.04375,"height":0.03},"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"K","depth":4,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"is_selectable","depth":5,"bounds":{"left":0.0,"top":0.0,"width":0.04375,"height":0.03},"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"L","depth":4,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"is_mandatory","depth":5,"bounds":{"left":0.0,"top":0.0,"width":0.04375,"height":0.03},"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"M","depth":4,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"is_filterable","depth":5,"bounds":{"left":0.0,"top":0.0,"width":0.04375,"height":0.03},"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"N","depth":4,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"is_indexable","depth":5,"bounds":{"left":0.0,"top":0.0,"width":0.04375,"height":0.03},"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"O","depth":4,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"created_at","depth":5,"bounds":{"left":0.0,"top":0.0,"width":0.04375,"height":0.03},"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"P","depth":4,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"updated_at","depth":5,"bounds":{"left":0.0,"top":0.0,"width":0.04375,"height":0.03},"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"Q","depth":4,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"is_readonly","depth":5,"bounds":{"left":0.0,"top":0.0,"width":0.04375,"height":0.03},"on_screen":false,"role_description":"text"},{"role":"AXButton","text":"Select All","depth":4,"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXCell","text":"1885","depth":6,"on_screen":true,"role_description":"cell"},{"role":"AXStaticText","text":"1885","depth":7,"on_screen":true,"role_description":"text"},{"role":"AXTextArea","text":"39","depth":8,"bounds":{"left":0.0,"top":0.0,"width":0.16458334,"height":0.024444444},"on_screen":false,"value":"39","role_description":"text entry area","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXCell","text":"58a51d4d-0ca7-49f0-9b2c-e16027877cc5","depth":6,"on_screen":true,"role_description":"cell"},{"role":"AXStaticText","text":"58a51d4d-0ca7-49f0-9b2c-e16027877cc5","depth":7,"on_screen":true,"role_description":"text"},{"role":"AXTextArea","text":"picktestmulti__c","depth":8,"bounds":{"left":0.0,"top":0.0,"width":0.10486111,"height":0.024444444},"on_screen":false,"value":"picktestmulti__c","role_description":"text entry area","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXCell","text":"39","depth":6,"on_screen":true,"role_description":"cell"},{"role":"AXStaticText","text":"39","depth":7,"on_screen":true,"role_description":"text"},{"role":"AXTextArea","text":"39","depth":8,"bounds":{"left":0.0,"top":0.0,"width":0.16458334,"height":0.024444444},"on_screen":false,"value":"39","role_description":"text entry area","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXCell","text":"ReminderDateTime","depth":6,"on_screen":true,"role_description":"cell"},{"role":"AXStaticText","text":"ReminderDateTime","depth":7,"on_screen":true,"role_description":"text"},{"role":"AXTextArea","text":"picktestmulti__c","depth":8,"bounds":{"left":0.0,"top":0.0,"width":0.10486111,"height":0.024444444},"on_screen":false,"value":"picktestmulti__c","role_description":"text entry area","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXCell","text":"Reminder Date/Time","depth":6,"on_screen":true,"role_description":"cell"},{"role":"AXStaticText","text":"Reminder Date/Time","depth":7,"on_screen":true,"role_description":"text"},{"role":"AXTextArea","text":"picktestmulti__c","depth":8,"bounds":{"left":0.0,"top":0.0,"width":0.10486111,"height":0.024444444},"on_screen":false,"value":"picktestmulti__c","role_description":"text entry area","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXCell","text":"<null>","depth":6,"on_screen":true,"role_description":"cell"},{"role":"AXStaticText","text":"<null>","depth":7,"on_screen":true,"role_description":"text"},{"role":"AXTextArea","text":"picktestmulti__c","depth":8,"bounds":{"left":0.0,"top":0.0,"width":0.10486111,"height":0.024444444},"on_screen":false,"value":"picktestmulti__c","role_description":"text entry area","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXCell","text":"datetime","depth":6,"on_screen":true,"role_description":"cell"},{"role":"AXStaticText","text":"datetime","depth":7,"on_screen":true,"role_description":"text"},{"role":"AXTextArea","text":"picktestmulti__c","depth":8,"bounds":{"left":0.0,"top":0.0,"width":0.10486111,"height":0.024444444},"on_screen":false,"value":"picktestmulti__c","role_description":"text entry area","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXCell","text":"<null>","depth":6,"on_screen":true,"role_description":"cell"},{"role":"AXStaticText","text":"<null>","depth":7,"on_screen":true,"role_description":"text"},{"role":"AXTextArea","text":"39","depth":8,"bounds":{"left":0.0,"top":0.0,"width":0.16458334,"height":0.024444444},"on_screen":false,"value":"39","role_description":"text entry area","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXCell","text":"<null>","depth":6,"on_screen":true,"role_description":"cell"},{"role":"AXStaticText","text":"<null>","depth":7,"on_screen":true,"role_description":"text"},{"role":"AXTextArea","text":"picktestmulti__c","depth":8,"bounds":{"left":0.0,"top":0.0,"width":0.10486111,"height":0.024444444},"on_screen":false,"value":"picktestmulti__c","role_description":"text entry area","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXCell","text":"event","depth":6,"on_screen":true,"role_description":"cell"},{"role":"AXStaticText","text":"event","depth":7,"on_screen":true,"role_description":"text"},{"role":"AXTextArea","text":"picktestmulti__c","depth":8,"bounds":{"left":0.0,"top":0.0,"width":0.10486111,"height":0.024444444},"on_screen":false,"value":"picktestmulti__c","role_description":"text entry area","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXCell","text":"1","depth":6,"on_screen":false,"role_description":"cell"},{"role":"AXStaticText","text":"1","depth":7,"on_screen":false,"role_description":"text"},{"role":"AXTextArea","text":"39","depth":8,"bounds":{"left":0.0,"top":0.0,"width":0.16458334,"height":0.024444444},"on_screen":false,"value":"39","role_description":"text entry area","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXCell","text":"0","depth":6,"on_screen":false,"role_description":"cell"},{"role":"AXStaticText","text":"0","depth":7,"on_screen":false,"role_description":"text"},{"role":"AXTextArea","text":"39","depth":8,"bounds":{"left":0.0,"top":0.0,"width":0.16458334,"height":0.024444444},"on_screen":false,"value":"39","role_description":"text entry area","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXCell","text":"0","depth":6,"on_screen":false,"role_description":"cell"},{"role":"AXStaticText","text":"0","depth":7,"on_screen":false,"role_description":"text"},{"role":"AXTextArea","text":"39","depth":8,"bounds":{"left":0.0,"top":0.0,"width":0.16458334,"height":0.024444444},"on_screen":false,"value":"39","role_description":"text entry area","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXCell","text":"0","depth":6,"on_screen":false,"role_description":"cell"},{"role":"AXStaticText","text":"0","depth":7,"on_screen":false,"role_description":"text"},{"role":"AXTextArea","text":"39","depth":8,"bounds":{"left":0.0,"top":0.0,"width":0.16458334,"height":0.024444444},"on_screen":false,"value":"39","role_description":"text entry area","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXCell","text":"2022-12-15 14:53:05","depth":6,"on_screen":false,"role_description":"cell"},{"role":"AXStaticText","text":"2022-12-15 14:53:05","depth":7,"on_screen":false,"role_description":"text"},{"role":"AXTextArea","text":"picktestmulti__c","depth":8,"bounds":{"left":0.0,"top":0.0,"width":0.10486111,"height":0.024444444},"on_screen":false,"value":"picktestmulti__c","role_description":"text entry area","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXCell","text":"2025-09-29 11:00:32","depth":6,"on_screen":false,"role_description":"cell"},{"role":"AXStaticText","text":"2025-09-29 11:00:32","depth":7,"on_screen":false,"role_description":"text"},{"role":"AXTextArea","text":"picktestmulti__c","depth":8,"bounds":{"left":0.0,"top":0.0,"width":0.10486111,"height":0.024444444},"on_screen":false,"value":"picktestmulti__c","role_description":"text entry area","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXCell","text":"0","depth":6,"on_screen":false,"role_description":"cell"},{"role":"AXStaticText","text":"0","depth":7,"on_screen":false,"role_description":"text"},{"role":"AXTextArea","text":"39","depth":8,"bounds":{"left":0.0,"top":0.0,"width":0.16458334,"height":0.024444444},"on_screen":false,"value":"39","role_description":"text entry area","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXCell","text":"3014","depth":6,"on_screen":true,"role_description":"cell"},{"role":"AXStaticText","text":"3014","depth":7,"on_screen":true,"role_description":"text"},{"role":"AXTextArea","text":"39","depth":8,"bounds":{"left":0.0,"top":0.0,"width":0.16458334,"height":0.024444444},"on_screen":false,"value":"39","role_description":"text entry area","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXCell","text":"a3d3df5a-eaa1-43d0-b95e-1ff4bec8c428","depth":6,"on_screen":true,"role_description":"cell"},{"role":"AXStaticText","text":"a3d3df5a-eaa1-43d0-b95e-1ff4bec8c428","depth":7,"on_screen":true,"role_description":"text"},{"role":"AXTextArea","text":"picktestmulti__c","depth":8,"bounds":{"left":0.0,"top":0.0,"width":0.10486111,"height":0.024444444},"on_screen":false,"value":"picktestmulti__c","role_description":"text entry area","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXCell","text":"39","depth":6,"on_screen":true,"role_description":"cell"},{"role":"AXStaticText","text":"39","depth":7,"on_screen":true,"role_description":"text"},{"role":"AXTextArea","text":"39","depth":8,"bounds":{"left":0.0,"top":0.0,"width":0.16458334,"height":0.024444444},"on_screen":false,"value":"39","role_description":"text entry area","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXCell","text":"picktestmulti__c","depth":6,"on_screen":true,"role_description":"cell"},{"role":"AXStaticText","text":"picktestmulti__c","depth":7,"on_screen":true,"role_description":"text"},{"role":"AXTextArea","text":"picktestmulti__c","depth":8,"bounds":{"left":0.0,"top":0.0,"width":0.10486111,"height":0.024444444},"on_screen":false,"value":"picktestmulti__c","role_description":"text entry area","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXCell","text":"picktestmulti","depth":6,"on_screen":true,"role_description":"cell"},{"role":"AXStaticText","text":"picktestmulti","depth":7,"on_screen":true,"role_description":"text"},{"role":"AXTextArea","text":"picktestmulti__c","depth":8,"bounds":{"left":0.0,"top":0.0,"width":0.10486111,"height":0.024444444},"on_screen":false,"value":"picktestmulti__c","role_description":"text entry area","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXCell","text":"<null>","depth":6,"on_screen":true,"role_description":"cell"},{"role":"AXStaticText","text":"<null>","depth":7,"on_screen":true,"role_description":"text"},{"role":"AXTextArea","text":"picktestmulti__c","depth":8,"bounds":{"left":0.0,"top":0.0,"width":0.10486111,"height":0.024444444},"on_screen":false,"value":"picktestmulti__c","role_description":"text entry area","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXCell","text":"multi-picklist","depth":6,"on_screen":true,"role_description":"cell"},{"role":"AXStaticText","text":"multi-picklist","depth":7,"on_screen":true,"role_description":"text"},{"role":"AXTextArea","text":"picktestmulti__c","depth":8,"bounds":{"left":0.0,"top":0.0,"width":0.10486111,"height":0.024444444},"on_screen":false,"value":"picktestmulti__c","role_description":"text entry area","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXCell","text":"4099","depth":6,"on_screen":true,"role_description":"cell"},{"role":"AXStaticText","text":"4099","depth":7,"on_screen":true,"role_description":"text"},{"role":"AXTextArea","text":"39","depth":8,"bounds":{"left":0.0,"top":0.0,"width":0.16458334,"height":0.024444444},"on_screen":false,"value":"39","role_description":"text entry area","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXCell","text":"<null>","depth":6,"on_screen":true,"role_description":"cell"},{"role":"AXStaticText","text":"<null>","depth":7,"on_screen":true,"role_description":"text"},{"role":"AXTextArea","text":"picktestmulti__c","depth":8,"bounds":{"left":0.0,"top":0.0,"width":0.10486111,"height":0.024444444},"on_screen":false,"value":"picktestmulti__c","role_description":"text entry area","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXCell","text":"event","depth":6,"on_screen":true,"role_description":"cell"},{"role":"AXStaticText","text":"event","depth":7,"on_screen":true,"role_description":"text"},{"role":"AXTextArea","text":"picktestmulti__c","depth":8,"bounds":{"left":0.0,"top":0.0,"width":0.10486111,"height":0.024444444},"on_screen":false,"value":"picktestmulti__c","role_description":"text entry area","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXCell","text":"1","depth":6,"on_screen":false,"role_description":"cell"},{"role":"AXStaticText","text":"1","depth":7,"on_screen":false,"role_description":"text"},{"role":"AXTextArea","text":"39","depth":8,"bounds":{"left":0.0,"top":0.0,"width":0.16458334,"height":0.024444444},"on_screen":false,"value":"39","role_description":"text entry area","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXCell","text":"0","depth":6,"on_screen":false,"role_description":"cell"},{"role":"AXStaticText","text":"0","depth":7,"on_screen":false,"role_description":"text"},{"role":"AXTextArea","text":"39","depth":8,"bounds":{"left":0.0,"top":0.0,"width":0.16458334,"height":0.024444444},"on_screen":false,"value":"39","role_description":"text entry area","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXCell","text":"0","depth":6,"on_screen":false,"role_description":"cell"},{"role":"AXStaticText","text":"0","depth":7,"on_screen":false,"role_description":"text"},{"role":"AXTextArea","text":"39","depth":8,"bounds":{"left":0.0,"top":0.0,"width":0.16458334,"height":0.024444444},"on_screen":false,"value":"39","role_description":"text entry area","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXCell","text":"0","depth":6,"on_screen":false,"role_description":"cell"},{"role":"AXStaticText","text":"0","depth":7,"on_screen":false,"role_description":"text"},{"role":"AXTextArea","text":"39","depth":8,"bounds":{"left":0.0,"top":0.0,"width":0.16458334,"height":0.024444444},"on_screen":false,"value":"39","role_description":"text entry area","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXCell","text":"2023-07-25 01:00:23","depth":6,"on_screen":false,"role_description":"cell"},{"role":"AXStaticText","text":"2023-07-25 01:00:23","depth":7,"on_screen":false,"role_description":"text"},{"role":"AXTextArea","text":"picktestmulti__c","depth":8,"bounds":{"left":0.0,"top":0.0,"width":0.10486111,"height":0.024444444},"on_screen":false,"value":"picktestmulti__c","role_description":"text entry area","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXCell","text":"2026-02-10 11:01:10","depth":6,"on_screen":false,"role_description":"cell"},{"role":"AXStaticText","text":"2026-02-10 11:01:10","depth":7,"on_screen":false,"role_description":"text"},{"role":"AXTextArea","text":"picktestmulti__c","depth":8,"bounds":{"left":0.0,"top":0.0,"width":0.10486111,"height":0.024444444},"on_screen":false,"value":"picktestmulti__c","role_description":"text entry area","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXCell","text":"0","depth":6,"on_screen":false,"role_description":"cell"},{"role":"AXStaticText","text":"0","depth":7,"on_screen":false,"role_description":"text"},{"role":"AXTextArea","text":"39","depth":8,"bounds":{"left":0.0,"top":0.0,"width":0.16458334,"height":0.024444444},"on_screen":false,"value":"39","role_description":"text entry area","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXTextArea","text":"id IN (1885, 3014)","depth":4,"on_screen":true,"value":"id IN (1885, 3014)","role_description":"text entry area","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXTextArea","text":"Editor","depth":4,"on_screen":true,"role_description":"text entry area","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"2 rows","depth":4,"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Reload Page","depth":4,"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Table Result Auto Refresh","depth":4,"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Cancel Running Statements","depth":4,"on_screen":true,"role_description":"button","is_enabled":false,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Add Row","depth":4,"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Delete Row","depth":4,"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Revert Selected","depth":4,"on_screen":true,"role_description":"button","is_enabled":false,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Preview Pending Changes","depth":4,"on_screen":true,"role_description":"button","is_enabled":false,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Submit","depth":4,"on_screen":true,"role_description":"button","is_enabled":false,"is_focused":false,"is_selected":false,"is_expanded":false}]...
|
-1513418032147481386
|
447368636905371763
|
click
|
accessibility
|
NULL
|
Project: faVsco.js, menu
JY-20915-fix-missing-head Project: faVsco.js, menu
JY-20915-fix-missing-header-text-relay, menu
Start Listening for PHP Debug Connections
TextRelayServiceTest
Run 'TextRelayServiceTest'
Debug 'TextRelayServiceTest'
More Actions
JetBrains AI
Search Everywhere
IDE and Project Settings
Sync Changes
Hide This Notification
Code changed:
Hide
11
1
Previous Highlighted Error
Next Highlighted Error
<?php
namespace Jiminny\Http\Transformers;
use Jiminny\Models\Crm\Field;
use Jiminny\Models\Crm\Profile;
use League\Fractal\Resource\Collection;
use League\Fractal\TransformerAbstract;
class FieldTransformer extends TransformerAbstract
{
protected array $availableIncludes = [
'options',
];
private ?Profile $profile;
private bool $noDefault = false;
public function __construct(?Profile $profile = null)
{
$this->profile = $profile;
}
public function setNoDefault(bool $noDefault)
{
$this->noDefault = $noDefault;
}
public function transform(Field $field): array
{
$defaultValue = $field->default_value;
$type = $field->type;
if (\is_bool($defaultValue)) {
$defaultValue = (bool) $defaultValue;
}
return [
'id' => $field->id_string,
'objectType' => $field->object_type,
'label' => $field->label,
'fieldName' => $field->crm_provider_id,
'type' => $type,
'enabled' => $field->is_selectable,
'length' => $field->length,
'defaultValue' => $defaultValue,
];
}
public function includeOptions(Field $field): ?Collection
{
if ($field->isPicklist() && $values = $field->values) {
// if ($field->type === Field::TYPE_PICKLIST && $values = $field->values) {
// This gets a little complex. We need to check if this field has any record type constraints for the profile.
if (
$this->profile
&& ($recordType = $this->profile->{$field->object_type . 'RecordType'})
&& $recordType->fieldValues()->where('crm_field_id', $field->id)->exists()
) {
// Fetch the values specific for this record type.
$values = $recordType->fieldValues()->where('crm_field_id', $field->id)->get();
}
if ($this->noDefault) {
foreach ($values as $value) {
$value->is_default = false;
}
}
return $this->collection($values, new FieldValueTransformer());
}
return null;
}
}
A
id
B
uuid (UUID with time-low and time-high swapped)
C
crm_configuration_id
D
crm_provider_id
E
label
F
description
G
type
H
length
I
default_value
J
object_type
K
is_selectable
L
is_mandatory
M
is_filterable
N
is_indexable
O
created_at
P
updated_at
Q
is_readonly
Select All
1885
1885
39
58a51d4d-0ca7-49f0-9b2c-e16027877cc5
58a51d4d-0ca7-49f0-9b2c-e16027877cc5
picktestmulti__c
39
39
39
ReminderDateTime
ReminderDateTime
picktestmulti__c
Reminder Date/Time
Reminder Date/Time
picktestmulti__c
<null>
<null>
picktestmulti__c
datetime
datetime
picktestmulti__c
<null>
<null>
39
<null>
<null>
picktestmulti__c
event
event
picktestmulti__c
1
1
39
0
0
39
0
0
39
0
0
39
2022-12-15 14:53:05
2022-12-15 14:53:05
picktestmulti__c
2025-09-29 11:00:32
2025-09-29 11:00:32
picktestmulti__c
0
0
39
3014
3014
39
a3d3df5a-eaa1-43d0-b95e-1ff4bec8c428
a3d3df5a-eaa1-43d0-b95e-1ff4bec8c428
picktestmulti__c
39
39
39
picktestmulti__c
picktestmulti__c
picktestmulti__c
picktestmulti
picktestmulti
picktestmulti__c
<null>
<null>
picktestmulti__c
multi-picklist
multi-picklist
picktestmulti__c
4099
4099
39
<null>
<null>
picktestmulti__c
event
event
picktestmulti__c
1
1
39
0
0
39
0
0
39
0
0
39
2023-07-25 01:00:23
2023-07-25 01:00:23
picktestmulti__c
2026-02-10 11:01:10
2026-02-10 11:01:10
picktestmulti__c
0
0
39
id IN (1885, 3014)
Editor
2 rows
Reload Page
Table Result Auto Refresh
Cancel Running Statements
Add Row
Delete Row
Revert Selected
Preview Pending Changes
Submit...
|
79831
|
NULL
|
NULL
|
NULL
|
|
79832
|
2791
|
77
|
2026-05-28T06:44:33.206766+00:00
|
/Users/lukas/.screenpipe/data/data/2026-05-28/1779 /Users/lukas/.screenpipe/data/data/2026-05-28/1779950673206_m2.jpg...
|
PhpStorm
|
faVsco.js – FieldTransformer.php
|
1
|
NULL
|
monitor_2
|
NULL
|
NULL
|
NULL
|
NULL
|
Project: faVsco.js, menu
JY-20915-fix-missing-head Project: faVsco.js, menu
JY-20915-fix-missing-header-text-relay, menu
Start Listening for PHP Debug Connections
TextRelayServiceTest
Run 'TextRelayServiceTest'
Debug 'TextRelayServiceTest'
More Actions
JetBrains AI
Search Everywhere
IDE and Project Settings
Sync Changes
Hide This Notification
Code changed:
Hide
11
1
Previous Highlighted Error
Next Highlighted Error
<?php
namespace Jiminny\Http\Transformers;
use Jiminny\Models\Crm\Field;
use Jiminny\Models\Crm\Profile;
use League\Fractal\Resource\Collection;
use League\Fractal\TransformerAbstract;
class FieldTransformer extends TransformerAbstract
{
protected array $availableIncludes = [
'options',
];
private ?Profile $profile;
private bool $noDefault = false;
public function __construct(?Profile $profile = null)
{
$this->profile = $profile;
}
public function setNoDefault(bool $noDefault)
{
$this->noDefault = $noDefault;
}
public function transform(Field $field): array
{
$defaultValue = $field->default_value;
$type = $field->type;
if (\is_bool($defaultValue)) {
$defaultValue = (bool) $defaultValue;
}
return [
'id' => $field->id_string,
'objectType' => $field->object_type,
'label' => $field->label,
'fieldName' => $field->crm_provider_id,
'type' => $type,
'enabled' => $field->is_selectable,
'length' => $field->length,
'defaultValue' => $defaultValue,
];
}
public function includeOptions(Field $field): ?Collection
{
if ($field->isPicklist() && $values = $field->values) {
// if ($field->type === Field::TYPE_PICKLIST && $values = $field->values) {
// This gets a little complex. We need to check if this field has any record type constraints for the profile.
if (
$this->profile
&& ($recordType = $this->profile->{$field->object_type . 'RecordType'})
&& $recordType->fieldValues()->where('crm_field_id', $field->id)->exists()
) {
// Fetch the values specific for this record type.
$values = $recordType->fieldValues()->where('crm_field_id', $field->id)->get();
}
if ($this->noDefault) {
foreach ($values as $value) {
$value->is_default = false;
}
}
return $this->collection($values, new FieldValueTransformer());
}
return null;
}
}
A
id
B
uuid (UUID with time-low and time-high swapped)
C
crm_configuration_id
D
crm_provider_id
E
label
F
description
G
type
H
length
I
default_value
J
object_type
K
is_selectable
L
is_mandatory
M
is_filterable...
|
[{"role":"AXButton","text" [{"role":"AXButton","text":"Project: faVsco.js, menu","depth":5,"bounds":{"left":0.025930852,"top":0.019952115,"width":0.03856383,"height":0.025538707},"on_screen":true,"help_text":"~/jiminny/app","role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"JY-20915-fix-missing-header-text-relay, menu","depth":5,"bounds":{"left":0.064494684,"top":0.019952115,"width":0.09740692,"height":0.025538707},"on_screen":true,"help_text":"Git Branch: JY-20915-fix-missing-header-text-relay","role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Start Listening for PHP Debug Connections","depth":5,"bounds":{"left":0.8374335,"top":0.019952115,"width":0.011303191,"height":0.025538707},"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"TextRelayServiceTest","depth":6,"bounds":{"left":0.85272604,"top":0.019952115,"width":0.062832445,"height":0.025538707},"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Run 'TextRelayServiceTest'","depth":6,"bounds":{"left":0.9155585,"top":0.019952115,"width":0.011303191,"height":0.025538707},"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Debug 'TextRelayServiceTest'","depth":6,"bounds":{"left":0.9268617,"top":0.019952115,"width":0.011303191,"height":0.025538707},"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"More Actions","depth":6,"bounds":{"left":0.9381649,"top":0.019952115,"width":0.011303191,"height":0.025538707},"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"JetBrains AI","depth":5,"bounds":{"left":0.96609044,"top":0.019952115,"width":0.011303191,"height":0.025538707},"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Search Everywhere","depth":5,"bounds":{"left":0.9773936,"top":0.019952115,"width":0.011303191,"height":0.025538707},"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"IDE and Project Settings","depth":5,"bounds":{"left":0.9886968,"top":0.019952115,"width":0.011303186,"height":0.025538707},"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Sync Changes","depth":4,"bounds":{"left":0.27027926,"top":1.0,"width":0.008643617,"height":0.0},"on_screen":false,"role_description":"button","is_enabled":false,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Hide This Notification","depth":4,"bounds":{"left":0.27027926,"top":1.0,"width":0.008643617,"height":0.0},"on_screen":false,"role_description":"button","is_enabled":false,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Code changed:","depth":4,"bounds":{"left":0.27027926,"top":1.0,"width":0.042220745,"height":0.0},"on_screen":false,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Hide","depth":4,"bounds":{"left":0.27027926,"top":1.0,"width":0.008643617,"height":0.0},"on_screen":false,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXStaticText","text":"11","depth":4,"bounds":{"left":0.37699467,"top":0.12529927,"width":0.008976064,"height":0.015163607},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"1","depth":4,"bounds":{"left":0.3879654,"top":0.12529927,"width":0.00731383,"height":0.015163607},"on_screen":true,"role_description":"text"},{"role":"AXButton","text":"Previous Highlighted Error","depth":4,"bounds":{"left":0.39694148,"top":0.123703115,"width":0.00731383,"height":0.018355945},"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Next Highlighted Error","depth":4,"bounds":{"left":0.40425533,"top":0.123703115,"width":0.006981383,"height":0.018355945},"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXTextArea","text":"<?php\n\nnamespace Jiminny\\Http\\Transformers;\n\nuse Jiminny\\Models\\Crm\\Field;\nuse Jiminny\\Models\\Crm\\Profile;\nuse League\\Fractal\\Resource\\Collection;\nuse League\\Fractal\\TransformerAbstract;\n\nclass FieldTransformer extends TransformerAbstract\n{\n protected array $availableIncludes = [\n 'options',\n ];\n private ?Profile $profile;\n\n private bool $noDefault = false;\n\n public function __construct(?Profile $profile = null)\n {\n $this->profile = $profile;\n }\n\n public function setNoDefault(bool $noDefault)\n {\n $this->noDefault = $noDefault;\n }\n\n public function transform(Field $field): array\n {\n $defaultValue = $field->default_value;\n $type = $field->type;\n\n if (\\is_bool($defaultValue)) {\n $defaultValue = (bool) $defaultValue;\n }\n\n return [\n 'id' => $field->id_string,\n 'objectType' => $field->object_type,\n 'label' => $field->label,\n 'fieldName' => $field->crm_provider_id,\n 'type' => $type,\n 'enabled' => $field->is_selectable,\n 'length' => $field->length,\n 'defaultValue' => $defaultValue,\n ];\n }\n\n public function includeOptions(Field $field): ?Collection\n {\n if ($field->isPicklist() && $values = $field->values) {\n// if ($field->type === Field::TYPE_PICKLIST && $values = $field->values) {\n // This gets a little complex. We need to check if this field has any record type constraints for the profile.\n if (\n $this->profile\n && ($recordType = $this->profile->{$field->object_type . 'RecordType'})\n && $recordType->fieldValues()->where('crm_field_id', $field->id)->exists()\n ) {\n // Fetch the values specific for this record type.\n $values = $recordType->fieldValues()->where('crm_field_id', $field->id)->get();\n }\n\n if ($this->noDefault) {\n foreach ($values as $value) {\n $value->is_default = false;\n }\n }\n\n return $this->collection($values, new FieldValueTransformer());\n }\n\n return null;\n }\n}","depth":4,"on_screen":true,"value":"<?php\n\nnamespace Jiminny\\Http\\Transformers;\n\nuse Jiminny\\Models\\Crm\\Field;\nuse Jiminny\\Models\\Crm\\Profile;\nuse League\\Fractal\\Resource\\Collection;\nuse League\\Fractal\\TransformerAbstract;\n\nclass FieldTransformer extends TransformerAbstract\n{\n protected array $availableIncludes = [\n 'options',\n ];\n private ?Profile $profile;\n\n private bool $noDefault = false;\n\n public function __construct(?Profile $profile = null)\n {\n $this->profile = $profile;\n }\n\n public function setNoDefault(bool $noDefault)\n {\n $this->noDefault = $noDefault;\n }\n\n public function transform(Field $field): array\n {\n $defaultValue = $field->default_value;\n $type = $field->type;\n\n if (\\is_bool($defaultValue)) {\n $defaultValue = (bool) $defaultValue;\n }\n\n return [\n 'id' => $field->id_string,\n 'objectType' => $field->object_type,\n 'label' => $field->label,\n 'fieldName' => $field->crm_provider_id,\n 'type' => $type,\n 'enabled' => $field->is_selectable,\n 'length' => $field->length,\n 'defaultValue' => $defaultValue,\n ];\n }\n\n public function includeOptions(Field $field): ?Collection\n {\n if ($field->isPicklist() && $values = $field->values) {\n// if ($field->type === Field::TYPE_PICKLIST && $values = $field->values) {\n // This gets a little complex. We need to check if this field has any record type constraints for the profile.\n if (\n $this->profile\n && ($recordType = $this->profile->{$field->object_type . 'RecordType'})\n && $recordType->fieldValues()->where('crm_field_id', $field->id)->exists()\n ) {\n // Fetch the values specific for this record type.\n $values = $recordType->fieldValues()->where('crm_field_id', $field->id)->get();\n }\n\n if ($this->noDefault) {\n foreach ($values as $value) {\n $value->is_default = false;\n }\n }\n\n return $this->collection($values, new FieldValueTransformer());\n }\n\n return null;\n }\n}","role_description":"text entry area","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXStaticText","text":"A","depth":4,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"id","depth":5,"bounds":{"left":0.27027926,"top":1.0,"width":0.020944148,"height":0.0},"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"B","depth":4,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"uuid (UUID with time-low and time-high swapped)","depth":5,"bounds":{"left":0.27027926,"top":1.0,"width":0.020944148,"height":0.0},"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"C","depth":4,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"crm_configuration_id","depth":5,"bounds":{"left":0.27027926,"top":1.0,"width":0.020944148,"height":0.0},"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"D","depth":4,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"crm_provider_id","depth":5,"bounds":{"left":0.27027926,"top":1.0,"width":0.020944148,"height":0.0},"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"E","depth":4,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"label","depth":5,"bounds":{"left":0.27027926,"top":1.0,"width":0.020944148,"height":0.0},"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"F","depth":4,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"description","depth":5,"bounds":{"left":0.27027926,"top":1.0,"width":0.020944148,"height":0.0},"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"G","depth":4,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"type","depth":5,"bounds":{"left":0.27027926,"top":1.0,"width":0.020944148,"height":0.0},"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"H","depth":4,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"length","depth":5,"bounds":{"left":0.27027926,"top":1.0,"width":0.020944148,"height":0.0},"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"I","depth":4,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"default_value","depth":5,"bounds":{"left":0.27027926,"top":1.0,"width":0.020944148,"height":0.0},"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"J","depth":4,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"object_type","depth":5,"bounds":{"left":0.27027926,"top":1.0,"width":0.020944148,"height":0.0},"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"K","depth":4,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"is_selectable","depth":5,"bounds":{"left":0.27027926,"top":1.0,"width":0.020944148,"height":0.0},"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"L","depth":4,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"is_mandatory","depth":5,"bounds":{"left":0.27027926,"top":1.0,"width":0.020944148,"height":0.0},"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"M","depth":4,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"is_filterable","depth":5,"bounds":{"left":0.27027926,"top":1.0,"width":0.020944148,"height":0.0},"on_screen":false,"role_description":"text"}]...
|
2249414736037618283
|
-7769009083081739853
|
click
|
accessibility
|
NULL
|
Project: faVsco.js, menu
JY-20915-fix-missing-head Project: faVsco.js, menu
JY-20915-fix-missing-header-text-relay, menu
Start Listening for PHP Debug Connections
TextRelayServiceTest
Run 'TextRelayServiceTest'
Debug 'TextRelayServiceTest'
More Actions
JetBrains AI
Search Everywhere
IDE and Project Settings
Sync Changes
Hide This Notification
Code changed:
Hide
11
1
Previous Highlighted Error
Next Highlighted Error
<?php
namespace Jiminny\Http\Transformers;
use Jiminny\Models\Crm\Field;
use Jiminny\Models\Crm\Profile;
use League\Fractal\Resource\Collection;
use League\Fractal\TransformerAbstract;
class FieldTransformer extends TransformerAbstract
{
protected array $availableIncludes = [
'options',
];
private ?Profile $profile;
private bool $noDefault = false;
public function __construct(?Profile $profile = null)
{
$this->profile = $profile;
}
public function setNoDefault(bool $noDefault)
{
$this->noDefault = $noDefault;
}
public function transform(Field $field): array
{
$defaultValue = $field->default_value;
$type = $field->type;
if (\is_bool($defaultValue)) {
$defaultValue = (bool) $defaultValue;
}
return [
'id' => $field->id_string,
'objectType' => $field->object_type,
'label' => $field->label,
'fieldName' => $field->crm_provider_id,
'type' => $type,
'enabled' => $field->is_selectable,
'length' => $field->length,
'defaultValue' => $defaultValue,
];
}
public function includeOptions(Field $field): ?Collection
{
if ($field->isPicklist() && $values = $field->values) {
// if ($field->type === Field::TYPE_PICKLIST && $values = $field->values) {
// This gets a little complex. We need to check if this field has any record type constraints for the profile.
if (
$this->profile
&& ($recordType = $this->profile->{$field->object_type . 'RecordType'})
&& $recordType->fieldValues()->where('crm_field_id', $field->id)->exists()
) {
// Fetch the values specific for this record type.
$values = $recordType->fieldValues()->where('crm_field_id', $field->id)->get();
}
if ($this->noDefault) {
foreach ($values as $value) {
$value->is_default = false;
}
}
return $this->collection($values, new FieldValueTransformer());
}
return null;
}
}
A
id
B
uuid (UUID with time-low and time-high swapped)
C
crm_configuration_id
D
crm_provider_id
E
label
F
description
G
type
H
length
I
default_value
J
object_type
K
is_selectable
L
is_mandatory
M
is_filterable...
|
NULL
|
NULL
|
NULL
|
NULL
|
|
79831
|
2790
|
50
|
2026-05-28T06:44:32.562361+00:00
|
/Users/lukas/.screenpipe/data/data/2026-05-28/1779 /Users/lukas/.screenpipe/data/data/2026-05-28/1779950672562_m1.jpg...
|
PhpStorm
|
faVsco.js – FieldTransformer.php
|
1
|
NULL
|
monitor_1
|
NULL
|
NULL
|
NULL
|
NULL
|
Project: faVsco.js, menu
JY-20915-fix-missing-head Project: faVsco.js, menu
JY-20915-fix-missing-header-text-relay, menu
Start Listening for PHP Debug Connections
TextRelayServiceTest
Run 'TextRelayServiceTest'
Debug 'TextRelayServiceTest'
More Actions
JetBrains AI
Search Everywhere
IDE and Project Settings
Sync Changes
Hide This Notification
Code changed:
Hide
11
1
Previous Highlighted Error
Next Highlighted Error
<?php
namespace Jiminny\Http\Transformers;
use Jiminny\Models\Crm\Field;
use Jiminny\Models\Crm\Profile;
use League\Fractal\Resource\Collection;
use League\Fractal\TransformerAbstract;
class FieldTransformer extends TransformerAbstract
{
protected array $availableIncludes = [
'options',
];
private ?Profile $profile;
private bool $noDefault = false;
public function __construct(?Profile $profile = null)
{
$this->profile = $profile;
}
public function setNoDefault(bool $noDefault)
{
$this->noDefault = $noDefault;
}
public function transform(Field $field): array
{
$defaultValue = $field->default_value;
$type = $field->type;
if (\is_bool($defaultValue)) {
$defaultValue = (bool) $defaultValue;
}
return [
'id' => $field->id_string,
'objectType' => $field->object_type,
'label' => $field->label,
'fieldName' => $field->crm_provider_id,
'type' => $type,
'enabled' => $field->is_selectable,
'length' => $field->length,
'defaultValue' => $defaultValue,
];
}
public function includeOptions(Field $field): ?Collection
{
if ($field->isPicklist() && $values = $field->values) {
// if ($field->type === Field::TYPE_PICKLIST && $values = $field->values) {
// This gets a little complex. We need to check if this field has any record type constraints for the profile.
if (
$this->profile
&& ($recordType = $this->profile->{$field->object_type . 'RecordType'})
&& $recordType->fieldValues()->where('crm_field_id', $field->id)->exists()
) {
// Fetch the values specific for this record type.
$values = $recordType->fieldValues()->where('crm_field_id', $field->id)->get();
}
if ($this->noDefault) {
foreach ($values as $value) {
$value->is_default = false;
}
}
return $this->collection($values, new FieldValueTransformer());
}
return null;
}
}
A
id
B
uuid (UUID with time-low and time-high swapped)
C
crm_configuration_id
D...
|
[{"role":"AXButton","text" [{"role":"AXButton","text":"Project: faVsco.js, menu","depth":5,"on_screen":true,"help_text":"~/jiminny/app","role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"JY-20915-fix-missing-header-text-relay, menu","depth":5,"on_screen":true,"help_text":"Git Branch: JY-20915-fix-missing-header-text-relay","role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Start Listening for PHP Debug Connections","depth":5,"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"TextRelayServiceTest","depth":6,"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Run 'TextRelayServiceTest'","depth":6,"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Debug 'TextRelayServiceTest'","depth":6,"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"More Actions","depth":6,"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"JetBrains AI","depth":5,"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Search Everywhere","depth":5,"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"IDE and Project Settings","depth":5,"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Sync Changes","depth":4,"bounds":{"left":0.0,"top":0.0,"width":0.018055556,"height":0.026666667},"on_screen":false,"role_description":"button","is_enabled":false,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Hide This Notification","depth":4,"bounds":{"left":0.0,"top":0.0,"width":0.018055556,"height":0.026666667},"on_screen":false,"role_description":"button","is_enabled":false,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Code changed:","depth":4,"bounds":{"left":0.0,"top":0.0,"width":0.088194445,"height":0.027777778},"on_screen":false,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Hide","depth":4,"bounds":{"left":0.0,"top":0.0,"width":0.018055556,"height":0.026666667},"on_screen":false,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXStaticText","text":"11","depth":4,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"1","depth":4,"on_screen":true,"role_description":"text"},{"role":"AXButton","text":"Previous Highlighted Error","depth":4,"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Next Highlighted Error","depth":4,"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXTextArea","text":"<?php\n\nnamespace Jiminny\\Http\\Transformers;\n\nuse Jiminny\\Models\\Crm\\Field;\nuse Jiminny\\Models\\Crm\\Profile;\nuse League\\Fractal\\Resource\\Collection;\nuse League\\Fractal\\TransformerAbstract;\n\nclass FieldTransformer extends TransformerAbstract\n{\n protected array $availableIncludes = [\n 'options',\n ];\n private ?Profile $profile;\n\n private bool $noDefault = false;\n\n public function __construct(?Profile $profile = null)\n {\n $this->profile = $profile;\n }\n\n public function setNoDefault(bool $noDefault)\n {\n $this->noDefault = $noDefault;\n }\n\n public function transform(Field $field): array\n {\n $defaultValue = $field->default_value;\n $type = $field->type;\n\n if (\\is_bool($defaultValue)) {\n $defaultValue = (bool) $defaultValue;\n }\n\n return [\n 'id' => $field->id_string,\n 'objectType' => $field->object_type,\n 'label' => $field->label,\n 'fieldName' => $field->crm_provider_id,\n 'type' => $type,\n 'enabled' => $field->is_selectable,\n 'length' => $field->length,\n 'defaultValue' => $defaultValue,\n ];\n }\n\n public function includeOptions(Field $field): ?Collection\n {\n if ($field->isPicklist() && $values = $field->values) {\n// if ($field->type === Field::TYPE_PICKLIST && $values = $field->values) {\n // This gets a little complex. We need to check if this field has any record type constraints for the profile.\n if (\n $this->profile\n && ($recordType = $this->profile->{$field->object_type . 'RecordType'})\n && $recordType->fieldValues()->where('crm_field_id', $field->id)->exists()\n ) {\n // Fetch the values specific for this record type.\n $values = $recordType->fieldValues()->where('crm_field_id', $field->id)->get();\n }\n\n if ($this->noDefault) {\n foreach ($values as $value) {\n $value->is_default = false;\n }\n }\n\n return $this->collection($values, new FieldValueTransformer());\n }\n\n return null;\n }\n}","depth":4,"on_screen":true,"value":"<?php\n\nnamespace Jiminny\\Http\\Transformers;\n\nuse Jiminny\\Models\\Crm\\Field;\nuse Jiminny\\Models\\Crm\\Profile;\nuse League\\Fractal\\Resource\\Collection;\nuse League\\Fractal\\TransformerAbstract;\n\nclass FieldTransformer extends TransformerAbstract\n{\n protected array $availableIncludes = [\n 'options',\n ];\n private ?Profile $profile;\n\n private bool $noDefault = false;\n\n public function __construct(?Profile $profile = null)\n {\n $this->profile = $profile;\n }\n\n public function setNoDefault(bool $noDefault)\n {\n $this->noDefault = $noDefault;\n }\n\n public function transform(Field $field): array\n {\n $defaultValue = $field->default_value;\n $type = $field->type;\n\n if (\\is_bool($defaultValue)) {\n $defaultValue = (bool) $defaultValue;\n }\n\n return [\n 'id' => $field->id_string,\n 'objectType' => $field->object_type,\n 'label' => $field->label,\n 'fieldName' => $field->crm_provider_id,\n 'type' => $type,\n 'enabled' => $field->is_selectable,\n 'length' => $field->length,\n 'defaultValue' => $defaultValue,\n ];\n }\n\n public function includeOptions(Field $field): ?Collection\n {\n if ($field->isPicklist() && $values = $field->values) {\n// if ($field->type === Field::TYPE_PICKLIST && $values = $field->values) {\n // This gets a little complex. We need to check if this field has any record type constraints for the profile.\n if (\n $this->profile\n && ($recordType = $this->profile->{$field->object_type . 'RecordType'})\n && $recordType->fieldValues()->where('crm_field_id', $field->id)->exists()\n ) {\n // Fetch the values specific for this record type.\n $values = $recordType->fieldValues()->where('crm_field_id', $field->id)->get();\n }\n\n if ($this->noDefault) {\n foreach ($values as $value) {\n $value->is_default = false;\n }\n }\n\n return $this->collection($values, new FieldValueTransformer());\n }\n\n return null;\n }\n}","role_description":"text entry area","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXStaticText","text":"A","depth":4,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"id","depth":5,"bounds":{"left":0.0,"top":0.0,"width":0.04375,"height":0.03},"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"B","depth":4,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"uuid (UUID with time-low and time-high swapped)","depth":5,"bounds":{"left":0.0,"top":0.0,"width":0.04375,"height":0.03},"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"C","depth":4,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"crm_configuration_id","depth":5,"bounds":{"left":0.0,"top":0.0,"width":0.04375,"height":0.03},"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"D","depth":4,"on_screen":false,"role_description":"text"}]...
|
-7631727060809594619
|
1453791207727641011
|
click
|
accessibility
|
NULL
|
Project: faVsco.js, menu
JY-20915-fix-missing-head Project: faVsco.js, menu
JY-20915-fix-missing-header-text-relay, menu
Start Listening for PHP Debug Connections
TextRelayServiceTest
Run 'TextRelayServiceTest'
Debug 'TextRelayServiceTest'
More Actions
JetBrains AI
Search Everywhere
IDE and Project Settings
Sync Changes
Hide This Notification
Code changed:
Hide
11
1
Previous Highlighted Error
Next Highlighted Error
<?php
namespace Jiminny\Http\Transformers;
use Jiminny\Models\Crm\Field;
use Jiminny\Models\Crm\Profile;
use League\Fractal\Resource\Collection;
use League\Fractal\TransformerAbstract;
class FieldTransformer extends TransformerAbstract
{
protected array $availableIncludes = [
'options',
];
private ?Profile $profile;
private bool $noDefault = false;
public function __construct(?Profile $profile = null)
{
$this->profile = $profile;
}
public function setNoDefault(bool $noDefault)
{
$this->noDefault = $noDefault;
}
public function transform(Field $field): array
{
$defaultValue = $field->default_value;
$type = $field->type;
if (\is_bool($defaultValue)) {
$defaultValue = (bool) $defaultValue;
}
return [
'id' => $field->id_string,
'objectType' => $field->object_type,
'label' => $field->label,
'fieldName' => $field->crm_provider_id,
'type' => $type,
'enabled' => $field->is_selectable,
'length' => $field->length,
'defaultValue' => $defaultValue,
];
}
public function includeOptions(Field $field): ?Collection
{
if ($field->isPicklist() && $values = $field->values) {
// if ($field->type === Field::TYPE_PICKLIST && $values = $field->values) {
// This gets a little complex. We need to check if this field has any record type constraints for the profile.
if (
$this->profile
&& ($recordType = $this->profile->{$field->object_type . 'RecordType'})
&& $recordType->fieldValues()->where('crm_field_id', $field->id)->exists()
) {
// Fetch the values specific for this record type.
$values = $recordType->fieldValues()->where('crm_field_id', $field->id)->get();
}
if ($this->noDefault) {
foreach ($values as $value) {
$value->is_default = false;
}
}
return $this->collection($values, new FieldValueTransformer());
}
return null;
}
}
A
id
B
uuid (UUID with time-low and time-high swapped)
C
crm_configuration_id
D...
|
NULL
|
NULL
|
NULL
|
NULL
|
|
79830
|
2791
|
76
|
2026-05-28T06:44:32.131486+00:00
|
/Users/lukas/.screenpipe/data/data/2026-05-28/1779 /Users/lukas/.screenpipe/data/data/2026-05-28/1779950672131_m2.jpg...
|
PhpStorm
|
faVsco.js – FieldTransformer.php
|
1
|
NULL
|
monitor_2
|
NULL
|
NULL
|
NULL
|
NULL
|
Project: faVsco.js, menu
JY-20915-fix-missing-head Project: faVsco.js, menu
JY-20915-fix-missing-header-text-relay, menu
Start Listening for PHP Debug Connections
TextRelayServiceTest
Run 'TextRelayServiceTest'
Debug 'TextRelayServiceTest'
More Actions
JetBrains AI
Search Everywhere
IDE and Project Settings
Sync Changes
Hide This Notification
Code changed:
Hide
11
1
Previous Highlighted Error
Next Highlighted Error
<?php
namespace Jiminny\Http\Transformers;
use Jiminny\Models\Crm\Field;
use Jiminny\Models\Crm\Profile;
use League\Fractal\Resource\Collection;
use League\Fractal\TransformerAbstract;
class FieldTransformer extends TransformerAbstract
{
protected array $availableIncludes = [
'options',
];
private ?Profile $profile;
private bool $noDefault = false;
public function __construct(?Profile $profile = null)
{
$this->profile = $profile;
}
public function setNoDefault(bool $noDefault)
{
$this->noDefault = $noDefault;
}
public function transform(Field $field): array
{
$defaultValue = $field->default_value;
$type = $field->type;
if (\is_bool($defaultValue)) {
$defaultValue = (bool) $defaultValue;
}
return [
'id' => $field->id_string,
'objectType' => $field->object_type,
'label' => $field->label,
'fieldName' => $field->crm_provider_id,
'type' => $type,
'enabled' => $field->is_selectable,
'length' => $field->length,
'defaultValue' => $defaultValue,
];
}
public function includeOptions(Field $field): ?Collection
{
if ($field->isPicklist() && $values = $field->values) {
// if ($field->type === Field::TYPE_PICKLIST && $values = $field->values) {
// This gets a little complex. We need to check if this field has any record type constraints for the profile.
if (
$this->profile
&& ($recordType = $this->profile->{$field->object_type . 'RecordType'})
&& $recordType->fieldValues()->where('crm_field_id', $field->id)->exists()
) {
// Fetch the values specific for this record type.
$values = $recordType->fieldValues()->where('crm_field_id', $field->id)->get();
}
if ($this->noDefault) {
foreach ($values as $value) {
$value->is_default = false;
}
}
return $this->collection($values, new FieldValueTransformer());
}
return null;
}
}
A
id
B
uuid (UUID with time-low and time-high swapped)
C
crm_configuration_id
D
crm_provider_id
E
label
F
description
G
type
H
length
I
default_value
J
object_type
K
is_selectable
L
is_mandatory
M
is_filterable
N
is_indexable
O
created_at
P
updated_at
Q
is_readonly
Select All
1885
1885
39
58a51d4d-0ca7-49f0-9b2c-e16027877cc5
58a51d4d-0ca7-49f0-9b2c-e16027877cc5
picktestmulti__c
39
39
39
ReminderDateTime
ReminderDateTime
picktestmulti__c
Reminder Date/Time
Reminder Date/Time
picktestmulti__c
<null>
<null>
picktestmulti__c
datetime
datetime
picktestmulti__c
<null>
<null>
39
<null>
<null>
picktestmulti__c
event
event
picktestmulti__c
1
1
39
0
0
39
0
0
39
0
0...
|
[{"role":"AXButton","text" [{"role":"AXButton","text":"Project: faVsco.js, menu","depth":5,"bounds":{"left":0.025930852,"top":0.019952115,"width":0.03856383,"height":0.025538707},"on_screen":true,"help_text":"~/jiminny/app","role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"JY-20915-fix-missing-header-text-relay, menu","depth":5,"bounds":{"left":0.064494684,"top":0.019952115,"width":0.09740692,"height":0.025538707},"on_screen":true,"help_text":"Git Branch: JY-20915-fix-missing-header-text-relay","role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Start Listening for PHP Debug Connections","depth":5,"bounds":{"left":0.8374335,"top":0.019952115,"width":0.011303191,"height":0.025538707},"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"TextRelayServiceTest","depth":6,"bounds":{"left":0.85272604,"top":0.019952115,"width":0.062832445,"height":0.025538707},"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Run 'TextRelayServiceTest'","depth":6,"bounds":{"left":0.9155585,"top":0.019952115,"width":0.011303191,"height":0.025538707},"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Debug 'TextRelayServiceTest'","depth":6,"bounds":{"left":0.9268617,"top":0.019952115,"width":0.011303191,"height":0.025538707},"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"More Actions","depth":6,"bounds":{"left":0.9381649,"top":0.019952115,"width":0.011303191,"height":0.025538707},"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"JetBrains AI","depth":5,"bounds":{"left":0.96609044,"top":0.019952115,"width":0.011303191,"height":0.025538707},"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Search Everywhere","depth":5,"bounds":{"left":0.9773936,"top":0.019952115,"width":0.011303191,"height":0.025538707},"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"IDE and Project Settings","depth":5,"bounds":{"left":0.9886968,"top":0.019952115,"width":0.011303186,"height":0.025538707},"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Sync Changes","depth":4,"bounds":{"left":0.27027926,"top":1.0,"width":0.008643617,"height":0.0},"on_screen":false,"role_description":"button","is_enabled":false,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Hide This Notification","depth":4,"bounds":{"left":0.27027926,"top":1.0,"width":0.008643617,"height":0.0},"on_screen":false,"role_description":"button","is_enabled":false,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Code changed:","depth":4,"bounds":{"left":0.27027926,"top":1.0,"width":0.042220745,"height":0.0},"on_screen":false,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Hide","depth":4,"bounds":{"left":0.27027926,"top":1.0,"width":0.008643617,"height":0.0},"on_screen":false,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXStaticText","text":"11","depth":4,"bounds":{"left":0.37699467,"top":0.12529927,"width":0.008976064,"height":0.015163607},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"1","depth":4,"bounds":{"left":0.3879654,"top":0.12529927,"width":0.00731383,"height":0.015163607},"on_screen":true,"role_description":"text"},{"role":"AXButton","text":"Previous Highlighted Error","depth":4,"bounds":{"left":0.39694148,"top":0.123703115,"width":0.00731383,"height":0.018355945},"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Next Highlighted Error","depth":4,"bounds":{"left":0.40425533,"top":0.123703115,"width":0.006981383,"height":0.018355945},"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXTextArea","text":"<?php\n\nnamespace Jiminny\\Http\\Transformers;\n\nuse Jiminny\\Models\\Crm\\Field;\nuse Jiminny\\Models\\Crm\\Profile;\nuse League\\Fractal\\Resource\\Collection;\nuse League\\Fractal\\TransformerAbstract;\n\nclass FieldTransformer extends TransformerAbstract\n{\n protected array $availableIncludes = [\n 'options',\n ];\n private ?Profile $profile;\n\n private bool $noDefault = false;\n\n public function __construct(?Profile $profile = null)\n {\n $this->profile = $profile;\n }\n\n public function setNoDefault(bool $noDefault)\n {\n $this->noDefault = $noDefault;\n }\n\n public function transform(Field $field): array\n {\n $defaultValue = $field->default_value;\n $type = $field->type;\n\n if (\\is_bool($defaultValue)) {\n $defaultValue = (bool) $defaultValue;\n }\n\n return [\n 'id' => $field->id_string,\n 'objectType' => $field->object_type,\n 'label' => $field->label,\n 'fieldName' => $field->crm_provider_id,\n 'type' => $type,\n 'enabled' => $field->is_selectable,\n 'length' => $field->length,\n 'defaultValue' => $defaultValue,\n ];\n }\n\n public function includeOptions(Field $field): ?Collection\n {\n if ($field->isPicklist() && $values = $field->values) {\n// if ($field->type === Field::TYPE_PICKLIST && $values = $field->values) {\n // This gets a little complex. We need to check if this field has any record type constraints for the profile.\n if (\n $this->profile\n && ($recordType = $this->profile->{$field->object_type . 'RecordType'})\n && $recordType->fieldValues()->where('crm_field_id', $field->id)->exists()\n ) {\n // Fetch the values specific for this record type.\n $values = $recordType->fieldValues()->where('crm_field_id', $field->id)->get();\n }\n\n if ($this->noDefault) {\n foreach ($values as $value) {\n $value->is_default = false;\n }\n }\n\n return $this->collection($values, new FieldValueTransformer());\n }\n\n return null;\n }\n}","depth":4,"on_screen":true,"value":"<?php\n\nnamespace Jiminny\\Http\\Transformers;\n\nuse Jiminny\\Models\\Crm\\Field;\nuse Jiminny\\Models\\Crm\\Profile;\nuse League\\Fractal\\Resource\\Collection;\nuse League\\Fractal\\TransformerAbstract;\n\nclass FieldTransformer extends TransformerAbstract\n{\n protected array $availableIncludes = [\n 'options',\n ];\n private ?Profile $profile;\n\n private bool $noDefault = false;\n\n public function __construct(?Profile $profile = null)\n {\n $this->profile = $profile;\n }\n\n public function setNoDefault(bool $noDefault)\n {\n $this->noDefault = $noDefault;\n }\n\n public function transform(Field $field): array\n {\n $defaultValue = $field->default_value;\n $type = $field->type;\n\n if (\\is_bool($defaultValue)) {\n $defaultValue = (bool) $defaultValue;\n }\n\n return [\n 'id' => $field->id_string,\n 'objectType' => $field->object_type,\n 'label' => $field->label,\n 'fieldName' => $field->crm_provider_id,\n 'type' => $type,\n 'enabled' => $field->is_selectable,\n 'length' => $field->length,\n 'defaultValue' => $defaultValue,\n ];\n }\n\n public function includeOptions(Field $field): ?Collection\n {\n if ($field->isPicklist() && $values = $field->values) {\n// if ($field->type === Field::TYPE_PICKLIST && $values = $field->values) {\n // This gets a little complex. We need to check if this field has any record type constraints for the profile.\n if (\n $this->profile\n && ($recordType = $this->profile->{$field->object_type . 'RecordType'})\n && $recordType->fieldValues()->where('crm_field_id', $field->id)->exists()\n ) {\n // Fetch the values specific for this record type.\n $values = $recordType->fieldValues()->where('crm_field_id', $field->id)->get();\n }\n\n if ($this->noDefault) {\n foreach ($values as $value) {\n $value->is_default = false;\n }\n }\n\n return $this->collection($values, new FieldValueTransformer());\n }\n\n return null;\n }\n}","role_description":"text entry area","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXStaticText","text":"A","depth":4,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"id","depth":5,"bounds":{"left":0.27027926,"top":1.0,"width":0.020944148,"height":0.0},"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"B","depth":4,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"uuid (UUID with time-low and time-high swapped)","depth":5,"bounds":{"left":0.27027926,"top":1.0,"width":0.020944148,"height":0.0},"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"C","depth":4,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"crm_configuration_id","depth":5,"bounds":{"left":0.27027926,"top":1.0,"width":0.020944148,"height":0.0},"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"D","depth":4,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"crm_provider_id","depth":5,"bounds":{"left":0.27027926,"top":1.0,"width":0.020944148,"height":0.0},"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"E","depth":4,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"label","depth":5,"bounds":{"left":0.27027926,"top":1.0,"width":0.020944148,"height":0.0},"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"F","depth":4,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"description","depth":5,"bounds":{"left":0.27027926,"top":1.0,"width":0.020944148,"height":0.0},"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"G","depth":4,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"type","depth":5,"bounds":{"left":0.27027926,"top":1.0,"width":0.020944148,"height":0.0},"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"H","depth":4,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"length","depth":5,"bounds":{"left":0.27027926,"top":1.0,"width":0.020944148,"height":0.0},"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"I","depth":4,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"default_value","depth":5,"bounds":{"left":0.27027926,"top":1.0,"width":0.020944148,"height":0.0},"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"J","depth":4,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"object_type","depth":5,"bounds":{"left":0.27027926,"top":1.0,"width":0.020944148,"height":0.0},"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"K","depth":4,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"is_selectable","depth":5,"bounds":{"left":0.27027926,"top":1.0,"width":0.020944148,"height":0.0},"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"L","depth":4,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"is_mandatory","depth":5,"bounds":{"left":0.27027926,"top":1.0,"width":0.020944148,"height":0.0},"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"M","depth":4,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"is_filterable","depth":5,"bounds":{"left":0.27027926,"top":1.0,"width":0.020944148,"height":0.0},"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"N","depth":4,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"is_indexable","depth":5,"bounds":{"left":0.27027926,"top":1.0,"width":0.020944148,"height":0.0},"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"O","depth":4,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"created_at","depth":5,"bounds":{"left":0.27027926,"top":1.0,"width":0.020944148,"height":0.0},"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"P","depth":4,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"updated_at","depth":5,"bounds":{"left":0.27027926,"top":1.0,"width":0.020944148,"height":0.0},"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"Q","depth":4,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"is_readonly","depth":5,"bounds":{"left":0.27027926,"top":1.0,"width":0.020944148,"height":0.0},"on_screen":false,"role_description":"text"},{"role":"AXButton","text":"Select All","depth":4,"bounds":{"left":0.41156915,"top":0.14365523,"width":0.007978723,"height":0.0207502},"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXCell","text":"1885","depth":6,"bounds":{"left":0.41988033,"top":0.16520351,"width":0.034242023,"height":0.0207502},"on_screen":true,"role_description":"cell"},{"role":"AXStaticText","text":"1885","depth":7,"bounds":{"left":0.41988033,"top":0.16520351,"width":0.034242023,"height":0.0207502},"on_screen":true,"role_description":"text"},{"role":"AXTextArea","text":"39","depth":8,"bounds":{"left":0.27027926,"top":1.0,"width":0.0787899,"height":0.0},"on_screen":false,"value":"39","role_description":"text entry area","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXCell","text":"58a51d4d-0ca7-49f0-9b2c-e16027877cc5","depth":6,"bounds":{"left":0.45445478,"top":0.16520351,"width":0.10073138,"height":0.0207502},"on_screen":true,"role_description":"cell"},{"role":"AXStaticText","text":"58a51d4d-0ca7-49f0-9b2c-e16027877cc5","depth":7,"bounds":{"left":0.45445478,"top":0.16520351,"width":0.10073138,"height":0.0207502},"on_screen":true,"role_description":"text"},{"role":"AXTextArea","text":"picktestmulti__c","depth":8,"bounds":{"left":0.27027926,"top":1.0,"width":0.050199468,"height":0.0},"on_screen":false,"value":"picktestmulti__c","role_description":"text entry area","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXCell","text":"39","depth":6,"bounds":{"left":0.5555186,"top":0.16520351,"width":0.080784574,"height":0.0207502},"on_screen":true,"role_description":"cell"},{"role":"AXStaticText","text":"39","depth":7,"bounds":{"left":0.5555186,"top":0.16520351,"width":0.080784574,"height":0.0207502},"on_screen":true,"role_description":"text"},{"role":"AXTextArea","text":"39","depth":8,"bounds":{"left":0.27027926,"top":1.0,"width":0.0787899,"height":0.0},"on_screen":false,"value":"39","role_description":"text entry area","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXCell","text":"ReminderDateTime","depth":6,"bounds":{"left":0.63663566,"top":0.16520351,"width":0.06781915,"height":0.0207502},"on_screen":true,"role_description":"cell"},{"role":"AXStaticText","text":"ReminderDateTime","depth":7,"bounds":{"left":0.63663566,"top":0.16520351,"width":0.06781915,"height":0.0207502},"on_screen":true,"role_description":"text"},{"role":"AXTextArea","text":"picktestmulti__c","depth":8,"bounds":{"left":0.27027926,"top":1.0,"width":0.050199468,"height":0.0},"on_screen":false,"value":"picktestmulti__c","role_description":"text entry area","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXCell","text":"Reminder Date/Time","depth":6,"bounds":{"left":0.70478725,"top":0.16520351,"width":0.05219415,"height":0.0207502},"on_screen":true,"role_description":"cell"},{"role":"AXStaticText","text":"Reminder Date/Time","depth":7,"bounds":{"left":0.70478725,"top":0.16520351,"width":0.05219415,"height":0.0207502},"on_screen":true,"role_description":"text"},{"role":"AXTextArea","text":"picktestmulti__c","depth":8,"bounds":{"left":0.27027926,"top":1.0,"width":0.050199468,"height":0.0},"on_screen":false,"value":"picktestmulti__c","role_description":"text entry area","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXCell","text":"<null>","depth":6,"bounds":{"left":0.75731385,"top":0.16520351,"width":0.057513297,"height":0.0207502},"on_screen":true,"role_description":"cell"},{"role":"AXStaticText","text":"<null>","depth":7,"bounds":{"left":0.75731385,"top":0.16520351,"width":0.057513297,"height":0.0207502},"on_screen":true,"role_description":"text"},{"role":"AXTextArea","text":"picktestmulti__c","depth":8,"bounds":{"left":0.27027926,"top":1.0,"width":0.050199468,"height":0.0},"on_screen":false,"value":"picktestmulti__c","role_description":"text entry area","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXCell","text":"datetime","depth":6,"bounds":{"left":0.81515956,"top":0.16520351,"width":0.04155585,"height":0.0207502},"on_screen":true,"role_description":"cell"},{"role":"AXStaticText","text":"datetime","depth":7,"bounds":{"left":0.81515956,"top":0.16520351,"width":0.04155585,"height":0.0207502},"on_screen":true,"role_description":"text"},{"role":"AXTextArea","text":"picktestmulti__c","depth":8,"bounds":{"left":0.27027926,"top":1.0,"width":0.050199468,"height":0.0},"on_screen":false,"value":"picktestmulti__c","role_description":"text entry area","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXCell","text":"<null>","depth":6,"bounds":{"left":0.85704786,"top":0.16520351,"width":0.04454787,"height":0.0207502},"on_screen":true,"role_description":"cell"},{"role":"AXStaticText","text":"<null>","depth":7,"bounds":{"left":0.85704786,"top":0.16520351,"width":0.04454787,"height":0.0207502},"on_screen":true,"role_description":"text"},{"role":"AXTextArea","text":"39","depth":8,"bounds":{"left":0.27027926,"top":1.0,"width":0.0787899,"height":0.0},"on_screen":false,"value":"39","role_description":"text entry area","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXCell","text":"<null>","depth":6,"bounds":{"left":0.9019282,"top":0.16520351,"width":0.0625,"height":0.0207502},"on_screen":true,"role_description":"cell"},{"role":"AXStaticText","text":"<null>","depth":7,"bounds":{"left":0.9019282,"top":0.16520351,"width":0.0625,"height":0.0207502},"on_screen":true,"role_description":"text"},{"role":"AXTextArea","text":"picktestmulti__c","depth":8,"bounds":{"left":0.27027926,"top":1.0,"width":0.050199468,"height":0.0},"on_screen":false,"value":"picktestmulti__c","role_description":"text entry area","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXCell","text":"event","depth":6,"bounds":{"left":0.96476066,"top":0.16520351,"width":0.03523934,"height":0.0207502},"on_screen":true,"role_description":"cell"},{"role":"AXStaticText","text":"event","depth":7,"bounds":{"left":0.96476066,"top":0.16520351,"width":0.03523934,"height":0.0207502},"on_screen":true,"role_description":"text"},{"role":"AXTextArea","text":"picktestmulti__c","depth":8,"bounds":{"left":0.27027926,"top":1.0,"width":0.050199468,"height":0.0},"on_screen":false,"value":"picktestmulti__c","role_description":"text entry area","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXCell","text":"1","depth":6,"bounds":{"left":1.0,"top":0.16520351,"width":-0.022606373,"height":0.0207502},"on_screen":false,"role_description":"cell"},{"role":"AXStaticText","text":"1","depth":7,"bounds":{"left":1.0,"top":0.16520351,"width":-0.022606373,"height":0.0207502},"on_screen":false,"role_description":"text"},{"role":"AXTextArea","text":"39","depth":8,"bounds":{"left":0.27027926,"top":1.0,"width":0.0787899,"height":0.0},"on_screen":false,"value":"39","role_description":"text entry area","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXCell","text":"0","depth":6,"bounds":{"left":1.0,"top":0.16520351,"width":-0.08543885,"height":0.0207502},"on_screen":false,"role_description":"cell"},{"role":"AXStaticText","text":"0","depth":7,"bounds":{"left":1.0,"top":0.16520351,"width":-0.08543885,"height":0.0207502},"on_screen":false,"role_description":"text"},{"role":"AXTextArea","text":"39","depth":8,"bounds":{"left":0.27027926,"top":1.0,"width":0.0787899,"height":0.0},"on_screen":false,"value":"39","role_description":"text entry area","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXCell","text":"0","depth":6,"on_screen":false,"role_description":"cell"},{"role":"AXStaticText","text":"0","depth":7,"on_screen":false,"role_description":"text"},{"role":"AXTextArea","text":"39","depth":8,"bounds":{"left":0.27027926,"top":1.0,"width":0.0787899,"height":0.0},"on_screen":false,"value":"39","role_description":"text entry area","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXCell","text":"0","depth":6,"on_screen":false,"role_description":"cell"},{"role":"AXStaticText","text":"0","depth":7,"on_screen":false,"role_description":"text"}]...
|
1085778024381197211
|
1598161551224025395
|
typing_pause
|
accessibility
|
NULL
|
Project: faVsco.js, menu
JY-20915-fix-missing-head Project: faVsco.js, menu
JY-20915-fix-missing-header-text-relay, menu
Start Listening for PHP Debug Connections
TextRelayServiceTest
Run 'TextRelayServiceTest'
Debug 'TextRelayServiceTest'
More Actions
JetBrains AI
Search Everywhere
IDE and Project Settings
Sync Changes
Hide This Notification
Code changed:
Hide
11
1
Previous Highlighted Error
Next Highlighted Error
<?php
namespace Jiminny\Http\Transformers;
use Jiminny\Models\Crm\Field;
use Jiminny\Models\Crm\Profile;
use League\Fractal\Resource\Collection;
use League\Fractal\TransformerAbstract;
class FieldTransformer extends TransformerAbstract
{
protected array $availableIncludes = [
'options',
];
private ?Profile $profile;
private bool $noDefault = false;
public function __construct(?Profile $profile = null)
{
$this->profile = $profile;
}
public function setNoDefault(bool $noDefault)
{
$this->noDefault = $noDefault;
}
public function transform(Field $field): array
{
$defaultValue = $field->default_value;
$type = $field->type;
if (\is_bool($defaultValue)) {
$defaultValue = (bool) $defaultValue;
}
return [
'id' => $field->id_string,
'objectType' => $field->object_type,
'label' => $field->label,
'fieldName' => $field->crm_provider_id,
'type' => $type,
'enabled' => $field->is_selectable,
'length' => $field->length,
'defaultValue' => $defaultValue,
];
}
public function includeOptions(Field $field): ?Collection
{
if ($field->isPicklist() && $values = $field->values) {
// if ($field->type === Field::TYPE_PICKLIST && $values = $field->values) {
// This gets a little complex. We need to check if this field has any record type constraints for the profile.
if (
$this->profile
&& ($recordType = $this->profile->{$field->object_type . 'RecordType'})
&& $recordType->fieldValues()->where('crm_field_id', $field->id)->exists()
) {
// Fetch the values specific for this record type.
$values = $recordType->fieldValues()->where('crm_field_id', $field->id)->get();
}
if ($this->noDefault) {
foreach ($values as $value) {
$value->is_default = false;
}
}
return $this->collection($values, new FieldValueTransformer());
}
return null;
}
}
A
id
B
uuid (UUID with time-low and time-high swapped)
C
crm_configuration_id
D
crm_provider_id
E
label
F
description
G
type
H
length
I
default_value
J
object_type
K
is_selectable
L
is_mandatory
M
is_filterable
N
is_indexable
O
created_at
P
updated_at
Q
is_readonly
Select All
1885
1885
39
58a51d4d-0ca7-49f0-9b2c-e16027877cc5
58a51d4d-0ca7-49f0-9b2c-e16027877cc5
picktestmulti__c
39
39
39
ReminderDateTime
ReminderDateTime
picktestmulti__c
Reminder Date/Time
Reminder Date/Time
picktestmulti__c
<null>
<null>
picktestmulti__c
datetime
datetime
picktestmulti__c
<null>
<null>
39
<null>
<null>
picktestmulti__c
event
event
picktestmulti__c
1
1
39
0
0
39
0
0
39
0
0...
|
79828
|
NULL
|
NULL
|
NULL
|
|
79829
|
2790
|
49
|
2026-05-28T06:44:32.027137+00:00
|
/Users/lukas/.screenpipe/data/data/2026-05-28/1779 /Users/lukas/.screenpipe/data/data/2026-05-28/1779950672027_m1.jpg...
|
PhpStorm
|
faVsco.js – FieldTransformer.php
|
1
|
NULL
|
monitor_1
|
NULL
|
NULL
|
NULL
|
NULL
|
Project: faVsco.js, menu
JY-20915-fix-missing-head Project: faVsco.js, menu
JY-20915-fix-missing-header-text-relay, menu
Start Listening for PHP Debug Connections
TextRelayServiceTest
Run 'TextRelayServiceTest'
Debug 'TextRelayServiceTest'
More Actions
JetBrains AI
Search Everywhere
IDE and Project Settings
Sync Changes
Hide This Notification
Code changed:
Hide
11
1
Previous Highlighted Error
Next Highlighted Error
<?php
namespace Jiminny\Http\Transformers;
use Jiminny\Models\Crm\Field;
use Jiminny\Models\Crm\Profile;
use League\Fractal\Resource\Collection;
use League\Fractal\TransformerAbstract;
class FieldTransformer extends TransformerAbstract
{
protected array $availableIncludes = [
'options',
];
private ?Profile $profile;
private bool $noDefault = false;
public function __construct(?Profile $profile = null)
{
$this->profile = $profile;
}
public function setNoDefault(bool $noDefault)
{
$this->noDefault = $noDefault;
}
public function transform(Field $field): array
{
$defaultValue = $field->default_value;
$type = $field->type;
if (\is_bool($defaultValue)) {
$defaultValue = (bool) $defaultValue;
}
return [
'id' => $field->id_string,
'objectType' => $field->object_type,
'label' => $field->label,
'fieldName' => $field->crm_provider_id,
'type' => $type,
'enabled' => $field->is_selectable,
'length' => $field->length,
'defaultValue' => $defaultValue,
];
}
public function includeOptions(Field $field): ?Collection
{
if ($field->isPicklist() && $values = $field->values) {
// if ($field->type === Field::TYPE_PICKLIST && $values = $field->values) {
// This gets a little complex. We need to check if this field has any record type constraints for the profile.
if (
$this->profile
&& ($recordType = $this->profile->{$field->object_type . 'RecordType'})
&& $recordType->fieldValues()->where('crm_field_id', $field->id)->exists()
) {
// Fetch the values specific for this record type.
$values = $recordType->fieldValues()->where('crm_field_id', $field->id)->get();
}
if ($this->noDefault) {
foreach ($values as $value) {
$value->is_default = false;
}
}
return $this->collection($values, new FieldValueTransformer());
}
return null;
}
}
A
id
B
uuid (UUID with time-low and time-high swapped)
C
crm_configuration_id
D
crm_provider_id
E
label
F
description
G
type
H
length
I
default_value
J
object_type
K
is_selectable
L
is_mandatory
M
is_filterable
N
is_indexable
O
created_at
P
updated_at
Q
is_readonly
Select All
1885
1885
39
58a51d4d-0ca7-49f0-9b2c-e16027877cc5
58a51d4d-0ca7-49f0-9b2c-e16027877cc5
picktestmulti__c
39
39
39
ReminderDateTime
ReminderDateTime
picktestmulti__c
Reminder Date/Time
Reminder Date/Time
picktestmulti__c
<null>
<null>
picktestmulti__c
datetime
datetime
picktestmulti__c
<null>
<null>
39
<null>
<null>
picktestmulti__c
event
event
picktestmulti__c
1
1
39
0
0
39
0
0
39
0
0
39
2022-12-15 14:53:05
2022-12-15 14:53:05...
|
[{"role":"AXButton","text" [{"role":"AXButton","text":"Project: faVsco.js, menu","depth":5,"on_screen":true,"help_text":"~/jiminny/app","role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"JY-20915-fix-missing-header-text-relay, menu","depth":5,"on_screen":true,"help_text":"Git Branch: JY-20915-fix-missing-header-text-relay","role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Start Listening for PHP Debug Connections","depth":5,"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"TextRelayServiceTest","depth":6,"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Run 'TextRelayServiceTest'","depth":6,"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Debug 'TextRelayServiceTest'","depth":6,"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"More Actions","depth":6,"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"JetBrains AI","depth":5,"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Search Everywhere","depth":5,"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"IDE and Project Settings","depth":5,"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Sync Changes","depth":4,"bounds":{"left":0.0,"top":0.0,"width":0.018055556,"height":0.026666667},"on_screen":false,"role_description":"button","is_enabled":false,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Hide This Notification","depth":4,"bounds":{"left":0.0,"top":0.0,"width":0.018055556,"height":0.026666667},"on_screen":false,"role_description":"button","is_enabled":false,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Code changed:","depth":4,"bounds":{"left":0.0,"top":0.0,"width":0.088194445,"height":0.027777778},"on_screen":false,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Hide","depth":4,"bounds":{"left":0.0,"top":0.0,"width":0.018055556,"height":0.026666667},"on_screen":false,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXStaticText","text":"11","depth":4,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"1","depth":4,"on_screen":true,"role_description":"text"},{"role":"AXButton","text":"Previous Highlighted Error","depth":4,"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Next Highlighted Error","depth":4,"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXTextArea","text":"<?php\n\nnamespace Jiminny\\Http\\Transformers;\n\nuse Jiminny\\Models\\Crm\\Field;\nuse Jiminny\\Models\\Crm\\Profile;\nuse League\\Fractal\\Resource\\Collection;\nuse League\\Fractal\\TransformerAbstract;\n\nclass FieldTransformer extends TransformerAbstract\n{\n protected array $availableIncludes = [\n 'options',\n ];\n private ?Profile $profile;\n\n private bool $noDefault = false;\n\n public function __construct(?Profile $profile = null)\n {\n $this->profile = $profile;\n }\n\n public function setNoDefault(bool $noDefault)\n {\n $this->noDefault = $noDefault;\n }\n\n public function transform(Field $field): array\n {\n $defaultValue = $field->default_value;\n $type = $field->type;\n\n if (\\is_bool($defaultValue)) {\n $defaultValue = (bool) $defaultValue;\n }\n\n return [\n 'id' => $field->id_string,\n 'objectType' => $field->object_type,\n 'label' => $field->label,\n 'fieldName' => $field->crm_provider_id,\n 'type' => $type,\n 'enabled' => $field->is_selectable,\n 'length' => $field->length,\n 'defaultValue' => $defaultValue,\n ];\n }\n\n public function includeOptions(Field $field): ?Collection\n {\n if ($field->isPicklist() && $values = $field->values) {\n// if ($field->type === Field::TYPE_PICKLIST && $values = $field->values) {\n // This gets a little complex. We need to check if this field has any record type constraints for the profile.\n if (\n $this->profile\n && ($recordType = $this->profile->{$field->object_type . 'RecordType'})\n && $recordType->fieldValues()->where('crm_field_id', $field->id)->exists()\n ) {\n // Fetch the values specific for this record type.\n $values = $recordType->fieldValues()->where('crm_field_id', $field->id)->get();\n }\n\n if ($this->noDefault) {\n foreach ($values as $value) {\n $value->is_default = false;\n }\n }\n\n return $this->collection($values, new FieldValueTransformer());\n }\n\n return null;\n }\n}","depth":4,"on_screen":true,"value":"<?php\n\nnamespace Jiminny\\Http\\Transformers;\n\nuse Jiminny\\Models\\Crm\\Field;\nuse Jiminny\\Models\\Crm\\Profile;\nuse League\\Fractal\\Resource\\Collection;\nuse League\\Fractal\\TransformerAbstract;\n\nclass FieldTransformer extends TransformerAbstract\n{\n protected array $availableIncludes = [\n 'options',\n ];\n private ?Profile $profile;\n\n private bool $noDefault = false;\n\n public function __construct(?Profile $profile = null)\n {\n $this->profile = $profile;\n }\n\n public function setNoDefault(bool $noDefault)\n {\n $this->noDefault = $noDefault;\n }\n\n public function transform(Field $field): array\n {\n $defaultValue = $field->default_value;\n $type = $field->type;\n\n if (\\is_bool($defaultValue)) {\n $defaultValue = (bool) $defaultValue;\n }\n\n return [\n 'id' => $field->id_string,\n 'objectType' => $field->object_type,\n 'label' => $field->label,\n 'fieldName' => $field->crm_provider_id,\n 'type' => $type,\n 'enabled' => $field->is_selectable,\n 'length' => $field->length,\n 'defaultValue' => $defaultValue,\n ];\n }\n\n public function includeOptions(Field $field): ?Collection\n {\n if ($field->isPicklist() && $values = $field->values) {\n// if ($field->type === Field::TYPE_PICKLIST && $values = $field->values) {\n // This gets a little complex. We need to check if this field has any record type constraints for the profile.\n if (\n $this->profile\n && ($recordType = $this->profile->{$field->object_type . 'RecordType'})\n && $recordType->fieldValues()->where('crm_field_id', $field->id)->exists()\n ) {\n // Fetch the values specific for this record type.\n $values = $recordType->fieldValues()->where('crm_field_id', $field->id)->get();\n }\n\n if ($this->noDefault) {\n foreach ($values as $value) {\n $value->is_default = false;\n }\n }\n\n return $this->collection($values, new FieldValueTransformer());\n }\n\n return null;\n }\n}","role_description":"text entry area","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXStaticText","text":"A","depth":4,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"id","depth":5,"bounds":{"left":0.0,"top":0.0,"width":0.04375,"height":0.03},"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"B","depth":4,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"uuid (UUID with time-low and time-high swapped)","depth":5,"bounds":{"left":0.0,"top":0.0,"width":0.04375,"height":0.03},"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"C","depth":4,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"crm_configuration_id","depth":5,"bounds":{"left":0.0,"top":0.0,"width":0.04375,"height":0.03},"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"D","depth":4,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"crm_provider_id","depth":5,"bounds":{"left":0.0,"top":0.0,"width":0.04375,"height":0.03},"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"E","depth":4,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"label","depth":5,"bounds":{"left":0.0,"top":0.0,"width":0.04375,"height":0.03},"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"F","depth":4,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"description","depth":5,"bounds":{"left":0.0,"top":0.0,"width":0.04375,"height":0.03},"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"G","depth":4,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"type","depth":5,"bounds":{"left":0.0,"top":0.0,"width":0.04375,"height":0.03},"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"H","depth":4,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"length","depth":5,"bounds":{"left":0.0,"top":0.0,"width":0.04375,"height":0.03},"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"I","depth":4,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"default_value","depth":5,"bounds":{"left":0.0,"top":0.0,"width":0.04375,"height":0.03},"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"J","depth":4,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"object_type","depth":5,"bounds":{"left":0.0,"top":0.0,"width":0.04375,"height":0.03},"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"K","depth":4,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"is_selectable","depth":5,"bounds":{"left":0.0,"top":0.0,"width":0.04375,"height":0.03},"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"L","depth":4,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"is_mandatory","depth":5,"bounds":{"left":0.0,"top":0.0,"width":0.04375,"height":0.03},"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"M","depth":4,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"is_filterable","depth":5,"bounds":{"left":0.0,"top":0.0,"width":0.04375,"height":0.03},"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"N","depth":4,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"is_indexable","depth":5,"bounds":{"left":0.0,"top":0.0,"width":0.04375,"height":0.03},"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"O","depth":4,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"created_at","depth":5,"bounds":{"left":0.0,"top":0.0,"width":0.04375,"height":0.03},"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"P","depth":4,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"updated_at","depth":5,"bounds":{"left":0.0,"top":0.0,"width":0.04375,"height":0.03},"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"Q","depth":4,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"is_readonly","depth":5,"bounds":{"left":0.0,"top":0.0,"width":0.04375,"height":0.03},"on_screen":false,"role_description":"text"},{"role":"AXButton","text":"Select All","depth":4,"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXCell","text":"1885","depth":6,"on_screen":true,"role_description":"cell"},{"role":"AXStaticText","text":"1885","depth":7,"on_screen":true,"role_description":"text"},{"role":"AXTextArea","text":"39","depth":8,"bounds":{"left":0.0,"top":0.0,"width":0.16458334,"height":0.024444444},"on_screen":false,"value":"39","role_description":"text entry area","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXCell","text":"58a51d4d-0ca7-49f0-9b2c-e16027877cc5","depth":6,"on_screen":true,"role_description":"cell"},{"role":"AXStaticText","text":"58a51d4d-0ca7-49f0-9b2c-e16027877cc5","depth":7,"on_screen":true,"role_description":"text"},{"role":"AXTextArea","text":"picktestmulti__c","depth":8,"bounds":{"left":0.0,"top":0.0,"width":0.10486111,"height":0.024444444},"on_screen":false,"value":"picktestmulti__c","role_description":"text entry area","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXCell","text":"39","depth":6,"on_screen":true,"role_description":"cell"},{"role":"AXStaticText","text":"39","depth":7,"on_screen":true,"role_description":"text"},{"role":"AXTextArea","text":"39","depth":8,"bounds":{"left":0.0,"top":0.0,"width":0.16458334,"height":0.024444444},"on_screen":false,"value":"39","role_description":"text entry area","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXCell","text":"ReminderDateTime","depth":6,"on_screen":true,"role_description":"cell"},{"role":"AXStaticText","text":"ReminderDateTime","depth":7,"on_screen":true,"role_description":"text"},{"role":"AXTextArea","text":"picktestmulti__c","depth":8,"bounds":{"left":0.0,"top":0.0,"width":0.10486111,"height":0.024444444},"on_screen":false,"value":"picktestmulti__c","role_description":"text entry area","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXCell","text":"Reminder Date/Time","depth":6,"on_screen":true,"role_description":"cell"},{"role":"AXStaticText","text":"Reminder Date/Time","depth":7,"on_screen":true,"role_description":"text"},{"role":"AXTextArea","text":"picktestmulti__c","depth":8,"bounds":{"left":0.0,"top":0.0,"width":0.10486111,"height":0.024444444},"on_screen":false,"value":"picktestmulti__c","role_description":"text entry area","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXCell","text":"<null>","depth":6,"on_screen":true,"role_description":"cell"},{"role":"AXStaticText","text":"<null>","depth":7,"on_screen":true,"role_description":"text"},{"role":"AXTextArea","text":"picktestmulti__c","depth":8,"bounds":{"left":0.0,"top":0.0,"width":0.10486111,"height":0.024444444},"on_screen":false,"value":"picktestmulti__c","role_description":"text entry area","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXCell","text":"datetime","depth":6,"on_screen":true,"role_description":"cell"},{"role":"AXStaticText","text":"datetime","depth":7,"on_screen":true,"role_description":"text"},{"role":"AXTextArea","text":"picktestmulti__c","depth":8,"bounds":{"left":0.0,"top":0.0,"width":0.10486111,"height":0.024444444},"on_screen":false,"value":"picktestmulti__c","role_description":"text entry area","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXCell","text":"<null>","depth":6,"on_screen":true,"role_description":"cell"},{"role":"AXStaticText","text":"<null>","depth":7,"on_screen":true,"role_description":"text"},{"role":"AXTextArea","text":"39","depth":8,"bounds":{"left":0.0,"top":0.0,"width":0.16458334,"height":0.024444444},"on_screen":false,"value":"39","role_description":"text entry area","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXCell","text":"<null>","depth":6,"on_screen":true,"role_description":"cell"},{"role":"AXStaticText","text":"<null>","depth":7,"on_screen":true,"role_description":"text"},{"role":"AXTextArea","text":"picktestmulti__c","depth":8,"bounds":{"left":0.0,"top":0.0,"width":0.10486111,"height":0.024444444},"on_screen":false,"value":"picktestmulti__c","role_description":"text entry area","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXCell","text":"event","depth":6,"on_screen":true,"role_description":"cell"},{"role":"AXStaticText","text":"event","depth":7,"on_screen":true,"role_description":"text"},{"role":"AXTextArea","text":"picktestmulti__c","depth":8,"bounds":{"left":0.0,"top":0.0,"width":0.10486111,"height":0.024444444},"on_screen":false,"value":"picktestmulti__c","role_description":"text entry area","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXCell","text":"1","depth":6,"on_screen":false,"role_description":"cell"},{"role":"AXStaticText","text":"1","depth":7,"on_screen":false,"role_description":"text"},{"role":"AXTextArea","text":"39","depth":8,"bounds":{"left":0.0,"top":0.0,"width":0.16458334,"height":0.024444444},"on_screen":false,"value":"39","role_description":"text entry area","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXCell","text":"0","depth":6,"on_screen":false,"role_description":"cell"},{"role":"AXStaticText","text":"0","depth":7,"on_screen":false,"role_description":"text"},{"role":"AXTextArea","text":"39","depth":8,"bounds":{"left":0.0,"top":0.0,"width":0.16458334,"height":0.024444444},"on_screen":false,"value":"39","role_description":"text entry area","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXCell","text":"0","depth":6,"on_screen":false,"role_description":"cell"},{"role":"AXStaticText","text":"0","depth":7,"on_screen":false,"role_description":"text"},{"role":"AXTextArea","text":"39","depth":8,"bounds":{"left":0.0,"top":0.0,"width":0.16458334,"height":0.024444444},"on_screen":false,"value":"39","role_description":"text entry area","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXCell","text":"0","depth":6,"on_screen":false,"role_description":"cell"},{"role":"AXStaticText","text":"0","depth":7,"on_screen":false,"role_description":"text"},{"role":"AXTextArea","text":"39","depth":8,"bounds":{"left":0.0,"top":0.0,"width":0.16458334,"height":0.024444444},"on_screen":false,"value":"39","role_description":"text entry area","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXCell","text":"2022-12-15 14:53:05","depth":6,"on_screen":false,"role_description":"cell"},{"role":"AXStaticText","text":"2022-12-15 14:53:05","depth":7,"on_screen":false,"role_description":"text"}]...
|
8304871512096304984
|
1595909751477451123
|
typing_pause
|
accessibility
|
NULL
|
Project: faVsco.js, menu
JY-20915-fix-missing-head Project: faVsco.js, menu
JY-20915-fix-missing-header-text-relay, menu
Start Listening for PHP Debug Connections
TextRelayServiceTest
Run 'TextRelayServiceTest'
Debug 'TextRelayServiceTest'
More Actions
JetBrains AI
Search Everywhere
IDE and Project Settings
Sync Changes
Hide This Notification
Code changed:
Hide
11
1
Previous Highlighted Error
Next Highlighted Error
<?php
namespace Jiminny\Http\Transformers;
use Jiminny\Models\Crm\Field;
use Jiminny\Models\Crm\Profile;
use League\Fractal\Resource\Collection;
use League\Fractal\TransformerAbstract;
class FieldTransformer extends TransformerAbstract
{
protected array $availableIncludes = [
'options',
];
private ?Profile $profile;
private bool $noDefault = false;
public function __construct(?Profile $profile = null)
{
$this->profile = $profile;
}
public function setNoDefault(bool $noDefault)
{
$this->noDefault = $noDefault;
}
public function transform(Field $field): array
{
$defaultValue = $field->default_value;
$type = $field->type;
if (\is_bool($defaultValue)) {
$defaultValue = (bool) $defaultValue;
}
return [
'id' => $field->id_string,
'objectType' => $field->object_type,
'label' => $field->label,
'fieldName' => $field->crm_provider_id,
'type' => $type,
'enabled' => $field->is_selectable,
'length' => $field->length,
'defaultValue' => $defaultValue,
];
}
public function includeOptions(Field $field): ?Collection
{
if ($field->isPicklist() && $values = $field->values) {
// if ($field->type === Field::TYPE_PICKLIST && $values = $field->values) {
// This gets a little complex. We need to check if this field has any record type constraints for the profile.
if (
$this->profile
&& ($recordType = $this->profile->{$field->object_type . 'RecordType'})
&& $recordType->fieldValues()->where('crm_field_id', $field->id)->exists()
) {
// Fetch the values specific for this record type.
$values = $recordType->fieldValues()->where('crm_field_id', $field->id)->get();
}
if ($this->noDefault) {
foreach ($values as $value) {
$value->is_default = false;
}
}
return $this->collection($values, new FieldValueTransformer());
}
return null;
}
}
A
id
B
uuid (UUID with time-low and time-high swapped)
C
crm_configuration_id
D
crm_provider_id
E
label
F
description
G
type
H
length
I
default_value
J
object_type
K
is_selectable
L
is_mandatory
M
is_filterable
N
is_indexable
O
created_at
P
updated_at
Q
is_readonly
Select All
1885
1885
39
58a51d4d-0ca7-49f0-9b2c-e16027877cc5
58a51d4d-0ca7-49f0-9b2c-e16027877cc5
picktestmulti__c
39
39
39
ReminderDateTime
ReminderDateTime
picktestmulti__c
Reminder Date/Time
Reminder Date/Time
picktestmulti__c
<null>
<null>
picktestmulti__c
datetime
datetime
picktestmulti__c
<null>
<null>
39
<null>
<null>
picktestmulti__c
event
event
picktestmulti__c
1
1
39
0
0
39
0
0
39
0
0
39
2022-12-15 14:53:05
2022-12-15 14:53:05...
|
79827
|
NULL
|
NULL
|
NULL
|
|
79828
|
2791
|
75
|
2026-05-28T06:44:31.078841+00:00
|
/Users/lukas/.screenpipe/data/data/2026-05-28/1779 /Users/lukas/.screenpipe/data/data/2026-05-28/1779950671078_m2.jpg...
|
PhpStorm
|
faVsco.js – FieldTransformer.php
|
1
|
NULL
|
monitor_2
|
NULL
|
NULL
|
NULL
|
NULL
|
Project: faVsco.js, menu
JY-20915-fix-missing-head Project: faVsco.js, menu
JY-20915-fix-missing-header-text-relay, menu
Start Listening for PHP Debug Connections
TextRelayServiceTest
Run 'TextRelayServiceTest'
Debug 'TextRelayServiceTest'
More Actions
JetBrains AI
Search Everywhere
IDE and Project Settings
Sync Changes
Hide This Notification
Code changed:
Hide
11
1
Previous Highlighted Error
Next Highlighted Error
<?php
namespace Jiminny\Http\Transformers;
use Jiminny\Models\Crm\Field;
use Jiminny\Models\Crm\Profile;
use League\Fractal\Resource\Collection;
use League\Fractal\TransformerAbstract;
class FieldTransformer extends TransformerAbstract
{
protected array $availableIncludes = [
'options',
];
private ?Profile $profile;
private bool $noDefault = false;
public function __construct(?Profile $profile = null)
{
$this->profile = $profile;
}
public function setNoDefault(bool $noDefault)
{
$this->noDefault = $noDefault;
}
public function transform(Field $field): array
{
$defaultValue = $field->default_value;
$type = $field->type;
if (\is_bool($defaultValue)) {
$defaultValue = (bool) $defaultValue;
}
return [
'id' => $field->id_string,
'objectType' => $field->object_type,
'label' => $field->label,
'fieldName' => $field->crm_provider_id,
'type' => $type,
'enabled' => $field->is_selectable,
'length' => $field->length,
'defaultValue' => $defaultValue,
];
}
public function includeOptions(Field $field): ?Collection
{
if ($field->isPicklist() && $values = $field->values) {
// if ($field->type === Field::TYPE_PICKLIST && $values = $field->values) {
// This gets a little complex. We need to check if this field has any record type constraints for the profile.
if (
$this->profile
&& ($recordType = $this->profile->{$field->object_type . 'RecordType'})
&& $recordType->fieldValues()->where('crm_field_id', $field->id)->exists()
) {
// Fetch the values specific for this record type.
$values = $recordType->fieldValues()->where('crm_field_id', $field->id)->get();
}
if ($this->noDefault) {
foreach ($values as $value) {
$value->is_default = false;
}
}
return $this->collection($values, new FieldValueTransformer());
}
return null;
}
}
A
id
B
uuid (UUID with time-low and time-high swapped)
C
crm_configuration_id
D
crm_provider_id
E
label
F
description
G
type
H
length
I
default_value
J
object_type
K
is_selectable
L
is_mandatory
M
is_filterable
N
is_indexable
O
created_at
P
updated_at
Q
is_readonly
Select All
1885
1885
39
58a51d4d-0ca7-49f0-9b2c-e16027877cc5
58a51d4d-0ca7-49f0-9b2c-e16027877cc5
picktestmulti__c
39
39
39
ReminderDateTime
ReminderDateTime
picktestmulti__c
Reminder Date/Time
Reminder Date/Time
picktestmulti__c
<null>
<null>
picktestmulti__c
datetime
datetime
picktestmulti__c
<null>
<null>
39
<null>
<null>
picktestmulti__c
event
event
picktestmulti__c
1
1
39
0
0
39...
|
[{"role":"AXButton","text" [{"role":"AXButton","text":"Project: faVsco.js, menu","depth":5,"bounds":{"left":0.025930852,"top":0.019952115,"width":0.03856383,"height":0.025538707},"on_screen":true,"help_text":"~/jiminny/app","role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"JY-20915-fix-missing-header-text-relay, menu","depth":5,"bounds":{"left":0.064494684,"top":0.019952115,"width":0.09740692,"height":0.025538707},"on_screen":true,"help_text":"Git Branch: JY-20915-fix-missing-header-text-relay","role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Start Listening for PHP Debug Connections","depth":5,"bounds":{"left":0.8374335,"top":0.019952115,"width":0.011303191,"height":0.025538707},"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"TextRelayServiceTest","depth":6,"bounds":{"left":0.85272604,"top":0.019952115,"width":0.062832445,"height":0.025538707},"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Run 'TextRelayServiceTest'","depth":6,"bounds":{"left":0.9155585,"top":0.019952115,"width":0.011303191,"height":0.025538707},"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Debug 'TextRelayServiceTest'","depth":6,"bounds":{"left":0.9268617,"top":0.019952115,"width":0.011303191,"height":0.025538707},"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"More Actions","depth":6,"bounds":{"left":0.9381649,"top":0.019952115,"width":0.011303191,"height":0.025538707},"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"JetBrains AI","depth":5,"bounds":{"left":0.96609044,"top":0.019952115,"width":0.011303191,"height":0.025538707},"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Search Everywhere","depth":5,"bounds":{"left":0.9773936,"top":0.019952115,"width":0.011303191,"height":0.025538707},"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"IDE and Project Settings","depth":5,"bounds":{"left":0.9886968,"top":0.019952115,"width":0.011303186,"height":0.025538707},"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Sync Changes","depth":4,"bounds":{"left":0.27027926,"top":1.0,"width":0.008643617,"height":0.0},"on_screen":false,"role_description":"button","is_enabled":false,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Hide This Notification","depth":4,"bounds":{"left":0.27027926,"top":1.0,"width":0.008643617,"height":0.0},"on_screen":false,"role_description":"button","is_enabled":false,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Code changed:","depth":4,"bounds":{"left":0.27027926,"top":1.0,"width":0.042220745,"height":0.0},"on_screen":false,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Hide","depth":4,"bounds":{"left":0.27027926,"top":1.0,"width":0.008643617,"height":0.0},"on_screen":false,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXStaticText","text":"11","depth":4,"bounds":{"left":0.37699467,"top":0.12529927,"width":0.008976064,"height":0.015163607},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"1","depth":4,"bounds":{"left":0.3879654,"top":0.12529927,"width":0.00731383,"height":0.015163607},"on_screen":true,"role_description":"text"},{"role":"AXButton","text":"Previous Highlighted Error","depth":4,"bounds":{"left":0.39694148,"top":0.123703115,"width":0.00731383,"height":0.018355945},"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Next Highlighted Error","depth":4,"bounds":{"left":0.40425533,"top":0.123703115,"width":0.006981383,"height":0.018355945},"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXTextArea","text":"<?php\n\nnamespace Jiminny\\Http\\Transformers;\n\nuse Jiminny\\Models\\Crm\\Field;\nuse Jiminny\\Models\\Crm\\Profile;\nuse League\\Fractal\\Resource\\Collection;\nuse League\\Fractal\\TransformerAbstract;\n\nclass FieldTransformer extends TransformerAbstract\n{\n protected array $availableIncludes = [\n 'options',\n ];\n private ?Profile $profile;\n\n private bool $noDefault = false;\n\n public function __construct(?Profile $profile = null)\n {\n $this->profile = $profile;\n }\n\n public function setNoDefault(bool $noDefault)\n {\n $this->noDefault = $noDefault;\n }\n\n public function transform(Field $field): array\n {\n $defaultValue = $field->default_value;\n $type = $field->type;\n\n if (\\is_bool($defaultValue)) {\n $defaultValue = (bool) $defaultValue;\n }\n\n return [\n 'id' => $field->id_string,\n 'objectType' => $field->object_type,\n 'label' => $field->label,\n 'fieldName' => $field->crm_provider_id,\n 'type' => $type,\n 'enabled' => $field->is_selectable,\n 'length' => $field->length,\n 'defaultValue' => $defaultValue,\n ];\n }\n\n public function includeOptions(Field $field): ?Collection\n {\n if ($field->isPicklist() && $values = $field->values) {\n// if ($field->type === Field::TYPE_PICKLIST && $values = $field->values) {\n // This gets a little complex. We need to check if this field has any record type constraints for the profile.\n if (\n $this->profile\n && ($recordType = $this->profile->{$field->object_type . 'RecordType'})\n && $recordType->fieldValues()->where('crm_field_id', $field->id)->exists()\n ) {\n // Fetch the values specific for this record type.\n $values = $recordType->fieldValues()->where('crm_field_id', $field->id)->get();\n }\n\n if ($this->noDefault) {\n foreach ($values as $value) {\n $value->is_default = false;\n }\n }\n\n return $this->collection($values, new FieldValueTransformer());\n }\n\n return null;\n }\n}","depth":4,"on_screen":true,"value":"<?php\n\nnamespace Jiminny\\Http\\Transformers;\n\nuse Jiminny\\Models\\Crm\\Field;\nuse Jiminny\\Models\\Crm\\Profile;\nuse League\\Fractal\\Resource\\Collection;\nuse League\\Fractal\\TransformerAbstract;\n\nclass FieldTransformer extends TransformerAbstract\n{\n protected array $availableIncludes = [\n 'options',\n ];\n private ?Profile $profile;\n\n private bool $noDefault = false;\n\n public function __construct(?Profile $profile = null)\n {\n $this->profile = $profile;\n }\n\n public function setNoDefault(bool $noDefault)\n {\n $this->noDefault = $noDefault;\n }\n\n public function transform(Field $field): array\n {\n $defaultValue = $field->default_value;\n $type = $field->type;\n\n if (\\is_bool($defaultValue)) {\n $defaultValue = (bool) $defaultValue;\n }\n\n return [\n 'id' => $field->id_string,\n 'objectType' => $field->object_type,\n 'label' => $field->label,\n 'fieldName' => $field->crm_provider_id,\n 'type' => $type,\n 'enabled' => $field->is_selectable,\n 'length' => $field->length,\n 'defaultValue' => $defaultValue,\n ];\n }\n\n public function includeOptions(Field $field): ?Collection\n {\n if ($field->isPicklist() && $values = $field->values) {\n// if ($field->type === Field::TYPE_PICKLIST && $values = $field->values) {\n // This gets a little complex. We need to check if this field has any record type constraints for the profile.\n if (\n $this->profile\n && ($recordType = $this->profile->{$field->object_type . 'RecordType'})\n && $recordType->fieldValues()->where('crm_field_id', $field->id)->exists()\n ) {\n // Fetch the values specific for this record type.\n $values = $recordType->fieldValues()->where('crm_field_id', $field->id)->get();\n }\n\n if ($this->noDefault) {\n foreach ($values as $value) {\n $value->is_default = false;\n }\n }\n\n return $this->collection($values, new FieldValueTransformer());\n }\n\n return null;\n }\n}","role_description":"text entry area","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXStaticText","text":"A","depth":4,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"id","depth":5,"bounds":{"left":0.27027926,"top":1.0,"width":0.020944148,"height":0.0},"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"B","depth":4,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"uuid (UUID with time-low and time-high swapped)","depth":5,"bounds":{"left":0.27027926,"top":1.0,"width":0.020944148,"height":0.0},"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"C","depth":4,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"crm_configuration_id","depth":5,"bounds":{"left":0.27027926,"top":1.0,"width":0.020944148,"height":0.0},"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"D","depth":4,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"crm_provider_id","depth":5,"bounds":{"left":0.27027926,"top":1.0,"width":0.020944148,"height":0.0},"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"E","depth":4,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"label","depth":5,"bounds":{"left":0.27027926,"top":1.0,"width":0.020944148,"height":0.0},"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"F","depth":4,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"description","depth":5,"bounds":{"left":0.27027926,"top":1.0,"width":0.020944148,"height":0.0},"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"G","depth":4,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"type","depth":5,"bounds":{"left":0.27027926,"top":1.0,"width":0.020944148,"height":0.0},"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"H","depth":4,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"length","depth":5,"bounds":{"left":0.27027926,"top":1.0,"width":0.020944148,"height":0.0},"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"I","depth":4,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"default_value","depth":5,"bounds":{"left":0.27027926,"top":1.0,"width":0.020944148,"height":0.0},"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"J","depth":4,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"object_type","depth":5,"bounds":{"left":0.27027926,"top":1.0,"width":0.020944148,"height":0.0},"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"K","depth":4,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"is_selectable","depth":5,"bounds":{"left":0.27027926,"top":1.0,"width":0.020944148,"height":0.0},"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"L","depth":4,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"is_mandatory","depth":5,"bounds":{"left":0.27027926,"top":1.0,"width":0.020944148,"height":0.0},"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"M","depth":4,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"is_filterable","depth":5,"bounds":{"left":0.27027926,"top":1.0,"width":0.020944148,"height":0.0},"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"N","depth":4,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"is_indexable","depth":5,"bounds":{"left":0.27027926,"top":1.0,"width":0.020944148,"height":0.0},"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"O","depth":4,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"created_at","depth":5,"bounds":{"left":0.27027926,"top":1.0,"width":0.020944148,"height":0.0},"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"P","depth":4,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"updated_at","depth":5,"bounds":{"left":0.27027926,"top":1.0,"width":0.020944148,"height":0.0},"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"Q","depth":4,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"is_readonly","depth":5,"bounds":{"left":0.27027926,"top":1.0,"width":0.020944148,"height":0.0},"on_screen":false,"role_description":"text"},{"role":"AXButton","text":"Select All","depth":4,"bounds":{"left":0.41156915,"top":0.14365523,"width":0.007978723,"height":0.0207502},"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXCell","text":"1885","depth":6,"bounds":{"left":0.41988033,"top":0.16520351,"width":0.034242023,"height":0.0207502},"on_screen":true,"role_description":"cell"},{"role":"AXStaticText","text":"1885","depth":7,"bounds":{"left":0.41988033,"top":0.16520351,"width":0.034242023,"height":0.0207502},"on_screen":true,"role_description":"text"},{"role":"AXTextArea","text":"39","depth":8,"bounds":{"left":0.27027926,"top":1.0,"width":0.0787899,"height":0.0},"on_screen":false,"value":"39","role_description":"text entry area","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXCell","text":"58a51d4d-0ca7-49f0-9b2c-e16027877cc5","depth":6,"bounds":{"left":0.45445478,"top":0.16520351,"width":0.10073138,"height":0.0207502},"on_screen":true,"role_description":"cell"},{"role":"AXStaticText","text":"58a51d4d-0ca7-49f0-9b2c-e16027877cc5","depth":7,"bounds":{"left":0.45445478,"top":0.16520351,"width":0.10073138,"height":0.0207502},"on_screen":true,"role_description":"text"},{"role":"AXTextArea","text":"picktestmulti__c","depth":8,"bounds":{"left":0.27027926,"top":1.0,"width":0.050199468,"height":0.0},"on_screen":false,"value":"picktestmulti__c","role_description":"text entry area","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXCell","text":"39","depth":6,"bounds":{"left":0.5555186,"top":0.16520351,"width":0.080784574,"height":0.0207502},"on_screen":true,"role_description":"cell"},{"role":"AXStaticText","text":"39","depth":7,"bounds":{"left":0.5555186,"top":0.16520351,"width":0.080784574,"height":0.0207502},"on_screen":true,"role_description":"text"},{"role":"AXTextArea","text":"39","depth":8,"bounds":{"left":0.27027926,"top":1.0,"width":0.0787899,"height":0.0},"on_screen":false,"value":"39","role_description":"text entry area","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXCell","text":"ReminderDateTime","depth":6,"bounds":{"left":0.63663566,"top":0.16520351,"width":0.06781915,"height":0.0207502},"on_screen":true,"role_description":"cell"},{"role":"AXStaticText","text":"ReminderDateTime","depth":7,"bounds":{"left":0.63663566,"top":0.16520351,"width":0.06781915,"height":0.0207502},"on_screen":true,"role_description":"text"},{"role":"AXTextArea","text":"picktestmulti__c","depth":8,"bounds":{"left":0.27027926,"top":1.0,"width":0.050199468,"height":0.0},"on_screen":false,"value":"picktestmulti__c","role_description":"text entry area","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXCell","text":"Reminder Date/Time","depth":6,"bounds":{"left":0.70478725,"top":0.16520351,"width":0.05219415,"height":0.0207502},"on_screen":true,"role_description":"cell"},{"role":"AXStaticText","text":"Reminder Date/Time","depth":7,"bounds":{"left":0.70478725,"top":0.16520351,"width":0.05219415,"height":0.0207502},"on_screen":true,"role_description":"text"},{"role":"AXTextArea","text":"picktestmulti__c","depth":8,"bounds":{"left":0.27027926,"top":1.0,"width":0.050199468,"height":0.0},"on_screen":false,"value":"picktestmulti__c","role_description":"text entry area","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXCell","text":"<null>","depth":6,"bounds":{"left":0.75731385,"top":0.16520351,"width":0.057513297,"height":0.0207502},"on_screen":true,"role_description":"cell"},{"role":"AXStaticText","text":"<null>","depth":7,"bounds":{"left":0.75731385,"top":0.16520351,"width":0.057513297,"height":0.0207502},"on_screen":true,"role_description":"text"},{"role":"AXTextArea","text":"picktestmulti__c","depth":8,"bounds":{"left":0.27027926,"top":1.0,"width":0.050199468,"height":0.0},"on_screen":false,"value":"picktestmulti__c","role_description":"text entry area","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXCell","text":"datetime","depth":6,"bounds":{"left":0.81515956,"top":0.16520351,"width":0.04155585,"height":0.0207502},"on_screen":true,"role_description":"cell"},{"role":"AXStaticText","text":"datetime","depth":7,"bounds":{"left":0.81515956,"top":0.16520351,"width":0.04155585,"height":0.0207502},"on_screen":true,"role_description":"text"},{"role":"AXTextArea","text":"picktestmulti__c","depth":8,"bounds":{"left":0.27027926,"top":1.0,"width":0.050199468,"height":0.0},"on_screen":false,"value":"picktestmulti__c","role_description":"text entry area","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXCell","text":"<null>","depth":6,"bounds":{"left":0.85704786,"top":0.16520351,"width":0.04454787,"height":0.0207502},"on_screen":true,"role_description":"cell"},{"role":"AXStaticText","text":"<null>","depth":7,"bounds":{"left":0.85704786,"top":0.16520351,"width":0.04454787,"height":0.0207502},"on_screen":true,"role_description":"text"},{"role":"AXTextArea","text":"39","depth":8,"bounds":{"left":0.27027926,"top":1.0,"width":0.0787899,"height":0.0},"on_screen":false,"value":"39","role_description":"text entry area","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXCell","text":"<null>","depth":6,"bounds":{"left":0.9019282,"top":0.16520351,"width":0.0625,"height":0.0207502},"on_screen":true,"role_description":"cell"},{"role":"AXStaticText","text":"<null>","depth":7,"bounds":{"left":0.9019282,"top":0.16520351,"width":0.0625,"height":0.0207502},"on_screen":true,"role_description":"text"},{"role":"AXTextArea","text":"picktestmulti__c","depth":8,"bounds":{"left":0.27027926,"top":1.0,"width":0.050199468,"height":0.0},"on_screen":false,"value":"picktestmulti__c","role_description":"text entry area","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXCell","text":"event","depth":6,"bounds":{"left":0.96476066,"top":0.16520351,"width":0.03523934,"height":0.0207502},"on_screen":true,"role_description":"cell"},{"role":"AXStaticText","text":"event","depth":7,"bounds":{"left":0.96476066,"top":0.16520351,"width":0.03523934,"height":0.0207502},"on_screen":true,"role_description":"text"},{"role":"AXTextArea","text":"picktestmulti__c","depth":8,"bounds":{"left":0.27027926,"top":1.0,"width":0.050199468,"height":0.0},"on_screen":false,"value":"picktestmulti__c","role_description":"text entry area","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXCell","text":"1","depth":6,"bounds":{"left":1.0,"top":0.16520351,"width":-0.022606373,"height":0.0207502},"on_screen":false,"role_description":"cell"},{"role":"AXStaticText","text":"1","depth":7,"bounds":{"left":1.0,"top":0.16520351,"width":-0.022606373,"height":0.0207502},"on_screen":false,"role_description":"text"},{"role":"AXTextArea","text":"39","depth":8,"bounds":{"left":0.27027926,"top":1.0,"width":0.0787899,"height":0.0},"on_screen":false,"value":"39","role_description":"text entry area","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXCell","text":"0","depth":6,"bounds":{"left":1.0,"top":0.16520351,"width":-0.08543885,"height":0.0207502},"on_screen":false,"role_description":"cell"},{"role":"AXStaticText","text":"0","depth":7,"bounds":{"left":1.0,"top":0.16520351,"width":-0.08543885,"height":0.0207502},"on_screen":false,"role_description":"text"},{"role":"AXTextArea","text":"39","depth":8,"bounds":{"left":0.27027926,"top":1.0,"width":0.0787899,"height":0.0},"on_screen":false,"value":"39","role_description":"text entry area","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false}]...
|
-2928994116121448033
|
-7625210485634944717
|
typing_pause
|
accessibility
|
NULL
|
Project: faVsco.js, menu
JY-20915-fix-missing-head Project: faVsco.js, menu
JY-20915-fix-missing-header-text-relay, menu
Start Listening for PHP Debug Connections
TextRelayServiceTest
Run 'TextRelayServiceTest'
Debug 'TextRelayServiceTest'
More Actions
JetBrains AI
Search Everywhere
IDE and Project Settings
Sync Changes
Hide This Notification
Code changed:
Hide
11
1
Previous Highlighted Error
Next Highlighted Error
<?php
namespace Jiminny\Http\Transformers;
use Jiminny\Models\Crm\Field;
use Jiminny\Models\Crm\Profile;
use League\Fractal\Resource\Collection;
use League\Fractal\TransformerAbstract;
class FieldTransformer extends TransformerAbstract
{
protected array $availableIncludes = [
'options',
];
private ?Profile $profile;
private bool $noDefault = false;
public function __construct(?Profile $profile = null)
{
$this->profile = $profile;
}
public function setNoDefault(bool $noDefault)
{
$this->noDefault = $noDefault;
}
public function transform(Field $field): array
{
$defaultValue = $field->default_value;
$type = $field->type;
if (\is_bool($defaultValue)) {
$defaultValue = (bool) $defaultValue;
}
return [
'id' => $field->id_string,
'objectType' => $field->object_type,
'label' => $field->label,
'fieldName' => $field->crm_provider_id,
'type' => $type,
'enabled' => $field->is_selectable,
'length' => $field->length,
'defaultValue' => $defaultValue,
];
}
public function includeOptions(Field $field): ?Collection
{
if ($field->isPicklist() && $values = $field->values) {
// if ($field->type === Field::TYPE_PICKLIST && $values = $field->values) {
// This gets a little complex. We need to check if this field has any record type constraints for the profile.
if (
$this->profile
&& ($recordType = $this->profile->{$field->object_type . 'RecordType'})
&& $recordType->fieldValues()->where('crm_field_id', $field->id)->exists()
) {
// Fetch the values specific for this record type.
$values = $recordType->fieldValues()->where('crm_field_id', $field->id)->get();
}
if ($this->noDefault) {
foreach ($values as $value) {
$value->is_default = false;
}
}
return $this->collection($values, new FieldValueTransformer());
}
return null;
}
}
A
id
B
uuid (UUID with time-low and time-high swapped)
C
crm_configuration_id
D
crm_provider_id
E
label
F
description
G
type
H
length
I
default_value
J
object_type
K
is_selectable
L
is_mandatory
M
is_filterable
N
is_indexable
O
created_at
P
updated_at
Q
is_readonly
Select All
1885
1885
39
58a51d4d-0ca7-49f0-9b2c-e16027877cc5
58a51d4d-0ca7-49f0-9b2c-e16027877cc5
picktestmulti__c
39
39
39
ReminderDateTime
ReminderDateTime
picktestmulti__c
Reminder Date/Time
Reminder Date/Time
picktestmulti__c
<null>
<null>
picktestmulti__c
datetime
datetime
picktestmulti__c
<null>
<null>
39
<null>
<null>
picktestmulti__c
event
event
picktestmulti__c
1
1
39
0
0
39...
|
NULL
|
NULL
|
NULL
|
NULL
|
|
79827
|
2790
|
48
|
2026-05-28T06:44:30.973773+00:00
|
/Users/lukas/.screenpipe/data/data/2026-05-28/1779 /Users/lukas/.screenpipe/data/data/2026-05-28/1779950670973_m1.jpg...
|
PhpStorm
|
faVsco.js – FieldTransformer.php
|
1
|
NULL
|
monitor_1
|
NULL
|
NULL
|
NULL
|
NULL
|
Project: faVsco.js, menu
JY-20915-fix-missing-head Project: faVsco.js, menu
JY-20915-fix-missing-header-text-relay, menu
Start Listening for PHP Debug Connections
TextRelayServiceTest
Run 'TextRelayServiceTest'
Debug 'TextRelayServiceTest'
More Actions
JetBrains AI
Search Everywhere
IDE and Project Settings
Sync Changes
Hide This Notification
Code changed:
Hide
11
1
Previous Highlighted Error
Next Highlighted Error
<?php
namespace Jiminny\Http\Transformers;
use Jiminny\Models\Crm\Field;
use Jiminny\Models\Crm\Profile;
use League\Fractal\Resource\Collection;
use League\Fractal\TransformerAbstract;
class FieldTransformer extends TransformerAbstract
{
protected array $availableIncludes = [
'options',
];
private ?Profile $profile;
private bool $noDefault = false;
public function __construct(?Profile $profile = null)
{
$this->profile = $profile;
}
public function setNoDefault(bool $noDefault)
{
$this->noDefault = $noDefault;
}
public function transform(Field $field): array
{
$defaultValue = $field->default_value;
$type = $field->type;
if (\is_bool($defaultValue)) {
$defaultValue = (bool) $defaultValue;
}
return [
'id' => $field->id_string,
'objectType' => $field->object_type,
'label' => $field->label,
'fieldName' => $field->crm_provider_id,
'type' => $type,
'enabled' => $field->is_selectable,
'length' => $field->length,
'defaultValue' => $defaultValue,
];
}
public function includeOptions(Field $field): ?Collection
{
if ($field->isPicklist() && $values = $field->values) {
// if ($field->type === Field::TYPE_PICKLIST && $values = $field->values) {
// This gets a little complex. We need to check if this field has any record type constraints for the profile.
if (
$this->profile
&& ($recordType = $this->profile->{$field->object_type . 'RecordType'})
&& $recordType->fieldValues()->where('crm_field_id', $field->id)->exists()
) {
// Fetch the values specific for this record type.
$values = $recordType->fieldValues()->where('crm_field_id', $field->id)->get();
}
if ($this->noDefault) {
foreach ($values as $value) {
$value->is_default = false;
}
}
return $this->collection($values, new FieldValueTransformer());
}
return null;
}
}
A
id
B
uuid (UUID with time-low and time-high swapped)
C
crm_configuration_id
D
crm_provider_id
E
label
F
description
G
type
H
length
I
default_value
J
object_type
K
is_selectable
L
is_mandatory
M
is_filterable
N
is_indexable
O
created_at
P
updated_at
Q
is_readonly
Select All
1885
1885
39
58a51d4d-0ca7-49f0-9b2c-e16027877cc5
58a51d4d-0ca7-49f0-9b2c-e16027877cc5
picktestmulti__c
39
39
39
ReminderDateTime
ReminderDateTime
picktestmulti__c
Reminder Date/Time
Reminder Date/Time
picktestmulti__c
<null>
<null>
picktestmulti__c
datetime
datetime
picktestmulti__c
<null>
<null>
39
<null>
<null>
picktestmulti__c
event
event
picktestmulti__c
1
1
39
0
0
39
0
0
39
0
0
39
2022-12-15 14:53:05
2022-12-15 14:53:05
picktestmulti__c
2025-09-29 11:00:32
2025-09-29 11:00:32
picktestmulti__c
0
0
39
3014
3014
39
a3d3df5a-eaa1-43d0-b95e-1ff4bec8c428
a3d3df5a-eaa1-43d0-b95e-1ff4bec8c428...
|
[{"role":"AXButton","text" [{"role":"AXButton","text":"Project: faVsco.js, menu","depth":5,"on_screen":true,"help_text":"~/jiminny/app","role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"JY-20915-fix-missing-header-text-relay, menu","depth":5,"on_screen":true,"help_text":"Git Branch: JY-20915-fix-missing-header-text-relay","role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Start Listening for PHP Debug Connections","depth":5,"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"TextRelayServiceTest","depth":6,"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Run 'TextRelayServiceTest'","depth":6,"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Debug 'TextRelayServiceTest'","depth":6,"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"More Actions","depth":6,"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"JetBrains AI","depth":5,"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Search Everywhere","depth":5,"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"IDE and Project Settings","depth":5,"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Sync Changes","depth":4,"bounds":{"left":0.0,"top":0.0,"width":0.018055556,"height":0.026666667},"on_screen":false,"role_description":"button","is_enabled":false,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Hide This Notification","depth":4,"bounds":{"left":0.0,"top":0.0,"width":0.018055556,"height":0.026666667},"on_screen":false,"role_description":"button","is_enabled":false,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Code changed:","depth":4,"bounds":{"left":0.0,"top":0.0,"width":0.088194445,"height":0.027777778},"on_screen":false,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Hide","depth":4,"bounds":{"left":0.0,"top":0.0,"width":0.018055556,"height":0.026666667},"on_screen":false,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXStaticText","text":"11","depth":4,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"1","depth":4,"on_screen":true,"role_description":"text"},{"role":"AXButton","text":"Previous Highlighted Error","depth":4,"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Next Highlighted Error","depth":4,"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXTextArea","text":"<?php\n\nnamespace Jiminny\\Http\\Transformers;\n\nuse Jiminny\\Models\\Crm\\Field;\nuse Jiminny\\Models\\Crm\\Profile;\nuse League\\Fractal\\Resource\\Collection;\nuse League\\Fractal\\TransformerAbstract;\n\nclass FieldTransformer extends TransformerAbstract\n{\n protected array $availableIncludes = [\n 'options',\n ];\n private ?Profile $profile;\n\n private bool $noDefault = false;\n\n public function __construct(?Profile $profile = null)\n {\n $this->profile = $profile;\n }\n\n public function setNoDefault(bool $noDefault)\n {\n $this->noDefault = $noDefault;\n }\n\n public function transform(Field $field): array\n {\n $defaultValue = $field->default_value;\n $type = $field->type;\n\n if (\\is_bool($defaultValue)) {\n $defaultValue = (bool) $defaultValue;\n }\n\n return [\n 'id' => $field->id_string,\n 'objectType' => $field->object_type,\n 'label' => $field->label,\n 'fieldName' => $field->crm_provider_id,\n 'type' => $type,\n 'enabled' => $field->is_selectable,\n 'length' => $field->length,\n 'defaultValue' => $defaultValue,\n ];\n }\n\n public function includeOptions(Field $field): ?Collection\n {\n if ($field->isPicklist() && $values = $field->values) {\n// if ($field->type === Field::TYPE_PICKLIST && $values = $field->values) {\n // This gets a little complex. We need to check if this field has any record type constraints for the profile.\n if (\n $this->profile\n && ($recordType = $this->profile->{$field->object_type . 'RecordType'})\n && $recordType->fieldValues()->where('crm_field_id', $field->id)->exists()\n ) {\n // Fetch the values specific for this record type.\n $values = $recordType->fieldValues()->where('crm_field_id', $field->id)->get();\n }\n\n if ($this->noDefault) {\n foreach ($values as $value) {\n $value->is_default = false;\n }\n }\n\n return $this->collection($values, new FieldValueTransformer());\n }\n\n return null;\n }\n}","depth":4,"on_screen":true,"value":"<?php\n\nnamespace Jiminny\\Http\\Transformers;\n\nuse Jiminny\\Models\\Crm\\Field;\nuse Jiminny\\Models\\Crm\\Profile;\nuse League\\Fractal\\Resource\\Collection;\nuse League\\Fractal\\TransformerAbstract;\n\nclass FieldTransformer extends TransformerAbstract\n{\n protected array $availableIncludes = [\n 'options',\n ];\n private ?Profile $profile;\n\n private bool $noDefault = false;\n\n public function __construct(?Profile $profile = null)\n {\n $this->profile = $profile;\n }\n\n public function setNoDefault(bool $noDefault)\n {\n $this->noDefault = $noDefault;\n }\n\n public function transform(Field $field): array\n {\n $defaultValue = $field->default_value;\n $type = $field->type;\n\n if (\\is_bool($defaultValue)) {\n $defaultValue = (bool) $defaultValue;\n }\n\n return [\n 'id' => $field->id_string,\n 'objectType' => $field->object_type,\n 'label' => $field->label,\n 'fieldName' => $field->crm_provider_id,\n 'type' => $type,\n 'enabled' => $field->is_selectable,\n 'length' => $field->length,\n 'defaultValue' => $defaultValue,\n ];\n }\n\n public function includeOptions(Field $field): ?Collection\n {\n if ($field->isPicklist() && $values = $field->values) {\n// if ($field->type === Field::TYPE_PICKLIST && $values = $field->values) {\n // This gets a little complex. We need to check if this field has any record type constraints for the profile.\n if (\n $this->profile\n && ($recordType = $this->profile->{$field->object_type . 'RecordType'})\n && $recordType->fieldValues()->where('crm_field_id', $field->id)->exists()\n ) {\n // Fetch the values specific for this record type.\n $values = $recordType->fieldValues()->where('crm_field_id', $field->id)->get();\n }\n\n if ($this->noDefault) {\n foreach ($values as $value) {\n $value->is_default = false;\n }\n }\n\n return $this->collection($values, new FieldValueTransformer());\n }\n\n return null;\n }\n}","role_description":"text entry area","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXStaticText","text":"A","depth":4,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"id","depth":5,"bounds":{"left":0.0,"top":0.0,"width":0.04375,"height":0.03},"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"B","depth":4,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"uuid (UUID with time-low and time-high swapped)","depth":5,"bounds":{"left":0.0,"top":0.0,"width":0.04375,"height":0.03},"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"C","depth":4,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"crm_configuration_id","depth":5,"bounds":{"left":0.0,"top":0.0,"width":0.04375,"height":0.03},"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"D","depth":4,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"crm_provider_id","depth":5,"bounds":{"left":0.0,"top":0.0,"width":0.04375,"height":0.03},"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"E","depth":4,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"label","depth":5,"bounds":{"left":0.0,"top":0.0,"width":0.04375,"height":0.03},"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"F","depth":4,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"description","depth":5,"bounds":{"left":0.0,"top":0.0,"width":0.04375,"height":0.03},"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"G","depth":4,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"type","depth":5,"bounds":{"left":0.0,"top":0.0,"width":0.04375,"height":0.03},"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"H","depth":4,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"length","depth":5,"bounds":{"left":0.0,"top":0.0,"width":0.04375,"height":0.03},"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"I","depth":4,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"default_value","depth":5,"bounds":{"left":0.0,"top":0.0,"width":0.04375,"height":0.03},"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"J","depth":4,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"object_type","depth":5,"bounds":{"left":0.0,"top":0.0,"width":0.04375,"height":0.03},"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"K","depth":4,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"is_selectable","depth":5,"bounds":{"left":0.0,"top":0.0,"width":0.04375,"height":0.03},"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"L","depth":4,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"is_mandatory","depth":5,"bounds":{"left":0.0,"top":0.0,"width":0.04375,"height":0.03},"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"M","depth":4,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"is_filterable","depth":5,"bounds":{"left":0.0,"top":0.0,"width":0.04375,"height":0.03},"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"N","depth":4,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"is_indexable","depth":5,"bounds":{"left":0.0,"top":0.0,"width":0.04375,"height":0.03},"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"O","depth":4,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"created_at","depth":5,"bounds":{"left":0.0,"top":0.0,"width":0.04375,"height":0.03},"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"P","depth":4,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"updated_at","depth":5,"bounds":{"left":0.0,"top":0.0,"width":0.04375,"height":0.03},"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"Q","depth":4,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"is_readonly","depth":5,"bounds":{"left":0.0,"top":0.0,"width":0.04375,"height":0.03},"on_screen":false,"role_description":"text"},{"role":"AXButton","text":"Select All","depth":4,"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXCell","text":"1885","depth":6,"on_screen":true,"role_description":"cell"},{"role":"AXStaticText","text":"1885","depth":7,"on_screen":true,"role_description":"text"},{"role":"AXTextArea","text":"39","depth":8,"bounds":{"left":0.0,"top":0.0,"width":0.16458334,"height":0.024444444},"on_screen":false,"value":"39","role_description":"text entry area","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXCell","text":"58a51d4d-0ca7-49f0-9b2c-e16027877cc5","depth":6,"on_screen":true,"role_description":"cell"},{"role":"AXStaticText","text":"58a51d4d-0ca7-49f0-9b2c-e16027877cc5","depth":7,"on_screen":true,"role_description":"text"},{"role":"AXTextArea","text":"picktestmulti__c","depth":8,"bounds":{"left":0.0,"top":0.0,"width":0.10486111,"height":0.024444444},"on_screen":false,"value":"picktestmulti__c","role_description":"text entry area","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXCell","text":"39","depth":6,"on_screen":true,"role_description":"cell"},{"role":"AXStaticText","text":"39","depth":7,"on_screen":true,"role_description":"text"},{"role":"AXTextArea","text":"39","depth":8,"bounds":{"left":0.0,"top":0.0,"width":0.16458334,"height":0.024444444},"on_screen":false,"value":"39","role_description":"text entry area","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXCell","text":"ReminderDateTime","depth":6,"on_screen":true,"role_description":"cell"},{"role":"AXStaticText","text":"ReminderDateTime","depth":7,"on_screen":true,"role_description":"text"},{"role":"AXTextArea","text":"picktestmulti__c","depth":8,"bounds":{"left":0.0,"top":0.0,"width":0.10486111,"height":0.024444444},"on_screen":false,"value":"picktestmulti__c","role_description":"text entry area","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXCell","text":"Reminder Date/Time","depth":6,"on_screen":true,"role_description":"cell"},{"role":"AXStaticText","text":"Reminder Date/Time","depth":7,"on_screen":true,"role_description":"text"},{"role":"AXTextArea","text":"picktestmulti__c","depth":8,"bounds":{"left":0.0,"top":0.0,"width":0.10486111,"height":0.024444444},"on_screen":false,"value":"picktestmulti__c","role_description":"text entry area","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXCell","text":"<null>","depth":6,"on_screen":true,"role_description":"cell"},{"role":"AXStaticText","text":"<null>","depth":7,"on_screen":true,"role_description":"text"},{"role":"AXTextArea","text":"picktestmulti__c","depth":8,"bounds":{"left":0.0,"top":0.0,"width":0.10486111,"height":0.024444444},"on_screen":false,"value":"picktestmulti__c","role_description":"text entry area","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXCell","text":"datetime","depth":6,"on_screen":true,"role_description":"cell"},{"role":"AXStaticText","text":"datetime","depth":7,"on_screen":true,"role_description":"text"},{"role":"AXTextArea","text":"picktestmulti__c","depth":8,"bounds":{"left":0.0,"top":0.0,"width":0.10486111,"height":0.024444444},"on_screen":false,"value":"picktestmulti__c","role_description":"text entry area","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXCell","text":"<null>","depth":6,"on_screen":true,"role_description":"cell"},{"role":"AXStaticText","text":"<null>","depth":7,"on_screen":true,"role_description":"text"},{"role":"AXTextArea","text":"39","depth":8,"bounds":{"left":0.0,"top":0.0,"width":0.16458334,"height":0.024444444},"on_screen":false,"value":"39","role_description":"text entry area","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXCell","text":"<null>","depth":6,"on_screen":true,"role_description":"cell"},{"role":"AXStaticText","text":"<null>","depth":7,"on_screen":true,"role_description":"text"},{"role":"AXTextArea","text":"picktestmulti__c","depth":8,"bounds":{"left":0.0,"top":0.0,"width":0.10486111,"height":0.024444444},"on_screen":false,"value":"picktestmulti__c","role_description":"text entry area","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXCell","text":"event","depth":6,"on_screen":true,"role_description":"cell"},{"role":"AXStaticText","text":"event","depth":7,"on_screen":true,"role_description":"text"},{"role":"AXTextArea","text":"picktestmulti__c","depth":8,"bounds":{"left":0.0,"top":0.0,"width":0.10486111,"height":0.024444444},"on_screen":false,"value":"picktestmulti__c","role_description":"text entry area","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXCell","text":"1","depth":6,"on_screen":false,"role_description":"cell"},{"role":"AXStaticText","text":"1","depth":7,"on_screen":false,"role_description":"text"},{"role":"AXTextArea","text":"39","depth":8,"bounds":{"left":0.0,"top":0.0,"width":0.16458334,"height":0.024444444},"on_screen":false,"value":"39","role_description":"text entry area","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXCell","text":"0","depth":6,"on_screen":false,"role_description":"cell"},{"role":"AXStaticText","text":"0","depth":7,"on_screen":false,"role_description":"text"},{"role":"AXTextArea","text":"39","depth":8,"bounds":{"left":0.0,"top":0.0,"width":0.16458334,"height":0.024444444},"on_screen":false,"value":"39","role_description":"text entry area","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXCell","text":"0","depth":6,"on_screen":false,"role_description":"cell"},{"role":"AXStaticText","text":"0","depth":7,"on_screen":false,"role_description":"text"},{"role":"AXTextArea","text":"39","depth":8,"bounds":{"left":0.0,"top":0.0,"width":0.16458334,"height":0.024444444},"on_screen":false,"value":"39","role_description":"text entry area","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXCell","text":"0","depth":6,"on_screen":false,"role_description":"cell"},{"role":"AXStaticText","text":"0","depth":7,"on_screen":false,"role_description":"text"},{"role":"AXTextArea","text":"39","depth":8,"bounds":{"left":0.0,"top":0.0,"width":0.16458334,"height":0.024444444},"on_screen":false,"value":"39","role_description":"text entry area","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXCell","text":"2022-12-15 14:53:05","depth":6,"on_screen":false,"role_description":"cell"},{"role":"AXStaticText","text":"2022-12-15 14:53:05","depth":7,"on_screen":false,"role_description":"text"},{"role":"AXTextArea","text":"picktestmulti__c","depth":8,"bounds":{"left":0.0,"top":0.0,"width":0.10486111,"height":0.024444444},"on_screen":false,"value":"picktestmulti__c","role_description":"text entry area","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXCell","text":"2025-09-29 11:00:32","depth":6,"on_screen":false,"role_description":"cell"},{"role":"AXStaticText","text":"2025-09-29 11:00:32","depth":7,"on_screen":false,"role_description":"text"},{"role":"AXTextArea","text":"picktestmulti__c","depth":8,"bounds":{"left":0.0,"top":0.0,"width":0.10486111,"height":0.024444444},"on_screen":false,"value":"picktestmulti__c","role_description":"text entry area","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXCell","text":"0","depth":6,"on_screen":false,"role_description":"cell"},{"role":"AXStaticText","text":"0","depth":7,"on_screen":false,"role_description":"text"},{"role":"AXTextArea","text":"39","depth":8,"bounds":{"left":0.0,"top":0.0,"width":0.16458334,"height":0.024444444},"on_screen":false,"value":"39","role_description":"text entry area","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXCell","text":"3014","depth":6,"on_screen":true,"role_description":"cell"},{"role":"AXStaticText","text":"3014","depth":7,"on_screen":true,"role_description":"text"},{"role":"AXTextArea","text":"39","depth":8,"bounds":{"left":0.0,"top":0.0,"width":0.16458334,"height":0.024444444},"on_screen":false,"value":"39","role_description":"text entry area","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXCell","text":"a3d3df5a-eaa1-43d0-b95e-1ff4bec8c428","depth":6,"on_screen":true,"role_description":"cell"},{"role":"AXStaticText","text":"a3d3df5a-eaa1-43d0-b95e-1ff4bec8c428","depth":7,"on_screen":true,"role_description":"text"}]...
|
-2100066260855180182
|
1595909682757974387
|
typing_pause
|
accessibility
|
NULL
|
Project: faVsco.js, menu
JY-20915-fix-missing-head Project: faVsco.js, menu
JY-20915-fix-missing-header-text-relay, menu
Start Listening for PHP Debug Connections
TextRelayServiceTest
Run 'TextRelayServiceTest'
Debug 'TextRelayServiceTest'
More Actions
JetBrains AI
Search Everywhere
IDE and Project Settings
Sync Changes
Hide This Notification
Code changed:
Hide
11
1
Previous Highlighted Error
Next Highlighted Error
<?php
namespace Jiminny\Http\Transformers;
use Jiminny\Models\Crm\Field;
use Jiminny\Models\Crm\Profile;
use League\Fractal\Resource\Collection;
use League\Fractal\TransformerAbstract;
class FieldTransformer extends TransformerAbstract
{
protected array $availableIncludes = [
'options',
];
private ?Profile $profile;
private bool $noDefault = false;
public function __construct(?Profile $profile = null)
{
$this->profile = $profile;
}
public function setNoDefault(bool $noDefault)
{
$this->noDefault = $noDefault;
}
public function transform(Field $field): array
{
$defaultValue = $field->default_value;
$type = $field->type;
if (\is_bool($defaultValue)) {
$defaultValue = (bool) $defaultValue;
}
return [
'id' => $field->id_string,
'objectType' => $field->object_type,
'label' => $field->label,
'fieldName' => $field->crm_provider_id,
'type' => $type,
'enabled' => $field->is_selectable,
'length' => $field->length,
'defaultValue' => $defaultValue,
];
}
public function includeOptions(Field $field): ?Collection
{
if ($field->isPicklist() && $values = $field->values) {
// if ($field->type === Field::TYPE_PICKLIST && $values = $field->values) {
// This gets a little complex. We need to check if this field has any record type constraints for the profile.
if (
$this->profile
&& ($recordType = $this->profile->{$field->object_type . 'RecordType'})
&& $recordType->fieldValues()->where('crm_field_id', $field->id)->exists()
) {
// Fetch the values specific for this record type.
$values = $recordType->fieldValues()->where('crm_field_id', $field->id)->get();
}
if ($this->noDefault) {
foreach ($values as $value) {
$value->is_default = false;
}
}
return $this->collection($values, new FieldValueTransformer());
}
return null;
}
}
A
id
B
uuid (UUID with time-low and time-high swapped)
C
crm_configuration_id
D
crm_provider_id
E
label
F
description
G
type
H
length
I
default_value
J
object_type
K
is_selectable
L
is_mandatory
M
is_filterable
N
is_indexable
O
created_at
P
updated_at
Q
is_readonly
Select All
1885
1885
39
58a51d4d-0ca7-49f0-9b2c-e16027877cc5
58a51d4d-0ca7-49f0-9b2c-e16027877cc5
picktestmulti__c
39
39
39
ReminderDateTime
ReminderDateTime
picktestmulti__c
Reminder Date/Time
Reminder Date/Time
picktestmulti__c
<null>
<null>
picktestmulti__c
datetime
datetime
picktestmulti__c
<null>
<null>
39
<null>
<null>
picktestmulti__c
event
event
picktestmulti__c
1
1
39
0
0
39
0
0
39
0
0
39
2022-12-15 14:53:05
2022-12-15 14:53:05
picktestmulti__c
2025-09-29 11:00:32
2025-09-29 11:00:32
picktestmulti__c
0
0
39
3014
3014
39
a3d3df5a-eaa1-43d0-b95e-1ff4bec8c428
a3d3df5a-eaa1-43d0-b95e-1ff4bec8c428...
|
NULL
|
NULL
|
NULL
|
NULL
|
|
79826
|
2790
|
47
|
2026-05-28T06:44:28.544399+00:00
|
/Users/lukas/.screenpipe/data/data/2026-05-28/1779 /Users/lukas/.screenpipe/data/data/2026-05-28/1779950668544_m1.jpg...
|
PhpStorm
|
faVsco.js – FieldTransformer.php
|
1
|
NULL
|
monitor_1
|
NULL
|
NULL
|
NULL
|
NULL
|
Project: faVsco.js, menu
JY-20915-fix-missing-head Project: faVsco.js, menu
JY-20915-fix-missing-header-text-relay, menu
Start Listening for PHP Debug Connections
TextRelayServiceTest
Run 'TextRelayServiceTest'
Debug 'TextRelayServiceTest'
More Actions
JetBrains AI
Search Everywhere
IDE and Project Settings
Sync Changes
Hide This Notification
Code changed:
Hide
11
1
Previous Highlighted Error
Next Highlighted Error
<?php
namespace Jiminny\Http\Transformers;
use Jiminny\Models\Crm\Field;
use Jiminny\Models\Crm\Profile;
use League\Fractal\Resource\Collection;
use League\Fractal\TransformerAbstract;
class FieldTransformer extends TransformerAbstract
{
protected array $availableIncludes = [
'options',
];
private ?Profile $profile;
private bool $noDefault = false;
public function __construct(?Profile $profile = null)
{
$this->profile = $profile;
}
public function setNoDefault(bool $noDefault)
{
$this->noDefault = $noDefault;
}
public function transform(Field $field): array
{
$defaultValue = $field->default_value;
$type = $field->type;
if (\is_bool($defaultValue)) {
$defaultValue = (bool) $defaultValue;
}
return [
'id' => $field->id_string,
'objectType' => $field->object_type,
'label' => $field->label,
'fieldName' => $field->crm_provider_id,
'type' => $type,
'enabled' => $field->is_selectable,
'length' => $field->length,
'defaultValue' => $defaultValue,
];
}
public function includeOptions(Field $field): ?Collection
{
if ($field->isPicklist() && $values = $field->values) {
// if ($field->type === Field::TYPE_PICKLIST && $values = $field->values) {
// This gets a little complex. We need to check if this field has any record type constraints for the profile.
if (
$this->profile
&& ($recordType = $this->profile->{$field->object_type . 'RecordType'})
&& $recordType->fieldValues()->where('crm_field_id', $field->id)->exists()
) {
// Fetch the values specific for this record type.
$values = $recordType->fieldValues()->where('crm_field_id', $field->id)->get();
}
if ($this->noDefault) {
foreach ($values as $value) {
$value->is_default = false;
}
}
return $this->collection($values, new FieldValueTransformer());
}
return null;
}
}
A
id
B
uuid (UUID with time-low and time-high swapped)
C
crm_configuration_id
D
crm_provider_id
E
label
F
description
G
type
H
length
I
default_value
J
object_type
K
is_selectable
L
is_mandatory
M
is_filterable
N
is_indexable
O
created_at
P
updated_at
Q
is_readonly
Select All
1885
1885
39
58a51d4d-0ca7-49f0-9b2c-e16027877cc5
58a51d4d-0ca7-49f0-9b2c-e16027877cc5
picktestmulti__c
39
39
39
ReminderDateTime
ReminderDateTime
picktestmulti__c
Reminder Date/Time
Reminder Date/Time
picktestmulti__c
<null>
<null>
picktestmulti__c
datetime
datetime
picktestmulti__c
<null>
<null>
39
<null>
<null>
picktestmulti__c
event
event
picktestmulti__c
1
1
39
0
0
39
0
0
39...
|
[{"role":"AXButton","text" [{"role":"AXButton","text":"Project: faVsco.js, menu","depth":5,"on_screen":true,"help_text":"~/jiminny/app","role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"JY-20915-fix-missing-header-text-relay, menu","depth":5,"on_screen":true,"help_text":"Git Branch: JY-20915-fix-missing-header-text-relay","role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Start Listening for PHP Debug Connections","depth":5,"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"TextRelayServiceTest","depth":6,"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Run 'TextRelayServiceTest'","depth":6,"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Debug 'TextRelayServiceTest'","depth":6,"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"More Actions","depth":6,"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"JetBrains AI","depth":5,"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Search Everywhere","depth":5,"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"IDE and Project Settings","depth":5,"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Sync Changes","depth":4,"bounds":{"left":0.0,"top":0.0,"width":0.018055556,"height":0.026666667},"on_screen":false,"role_description":"button","is_enabled":false,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Hide This Notification","depth":4,"bounds":{"left":0.0,"top":0.0,"width":0.018055556,"height":0.026666667},"on_screen":false,"role_description":"button","is_enabled":false,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Code changed:","depth":4,"bounds":{"left":0.0,"top":0.0,"width":0.088194445,"height":0.027777778},"on_screen":false,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Hide","depth":4,"bounds":{"left":0.0,"top":0.0,"width":0.018055556,"height":0.026666667},"on_screen":false,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXStaticText","text":"11","depth":4,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"1","depth":4,"on_screen":true,"role_description":"text"},{"role":"AXButton","text":"Previous Highlighted Error","depth":4,"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Next Highlighted Error","depth":4,"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXTextArea","text":"<?php\n\nnamespace Jiminny\\Http\\Transformers;\n\nuse Jiminny\\Models\\Crm\\Field;\nuse Jiminny\\Models\\Crm\\Profile;\nuse League\\Fractal\\Resource\\Collection;\nuse League\\Fractal\\TransformerAbstract;\n\nclass FieldTransformer extends TransformerAbstract\n{\n protected array $availableIncludes = [\n 'options',\n ];\n private ?Profile $profile;\n\n private bool $noDefault = false;\n\n public function __construct(?Profile $profile = null)\n {\n $this->profile = $profile;\n }\n\n public function setNoDefault(bool $noDefault)\n {\n $this->noDefault = $noDefault;\n }\n\n public function transform(Field $field): array\n {\n $defaultValue = $field->default_value;\n $type = $field->type;\n\n if (\\is_bool($defaultValue)) {\n $defaultValue = (bool) $defaultValue;\n }\n\n return [\n 'id' => $field->id_string,\n 'objectType' => $field->object_type,\n 'label' => $field->label,\n 'fieldName' => $field->crm_provider_id,\n 'type' => $type,\n 'enabled' => $field->is_selectable,\n 'length' => $field->length,\n 'defaultValue' => $defaultValue,\n ];\n }\n\n public function includeOptions(Field $field): ?Collection\n {\n if ($field->isPicklist() && $values = $field->values) {\n// if ($field->type === Field::TYPE_PICKLIST && $values = $field->values) {\n // This gets a little complex. We need to check if this field has any record type constraints for the profile.\n if (\n $this->profile\n && ($recordType = $this->profile->{$field->object_type . 'RecordType'})\n && $recordType->fieldValues()->where('crm_field_id', $field->id)->exists()\n ) {\n // Fetch the values specific for this record type.\n $values = $recordType->fieldValues()->where('crm_field_id', $field->id)->get();\n }\n\n if ($this->noDefault) {\n foreach ($values as $value) {\n $value->is_default = false;\n }\n }\n\n return $this->collection($values, new FieldValueTransformer());\n }\n\n return null;\n }\n}","depth":4,"on_screen":true,"value":"<?php\n\nnamespace Jiminny\\Http\\Transformers;\n\nuse Jiminny\\Models\\Crm\\Field;\nuse Jiminny\\Models\\Crm\\Profile;\nuse League\\Fractal\\Resource\\Collection;\nuse League\\Fractal\\TransformerAbstract;\n\nclass FieldTransformer extends TransformerAbstract\n{\n protected array $availableIncludes = [\n 'options',\n ];\n private ?Profile $profile;\n\n private bool $noDefault = false;\n\n public function __construct(?Profile $profile = null)\n {\n $this->profile = $profile;\n }\n\n public function setNoDefault(bool $noDefault)\n {\n $this->noDefault = $noDefault;\n }\n\n public function transform(Field $field): array\n {\n $defaultValue = $field->default_value;\n $type = $field->type;\n\n if (\\is_bool($defaultValue)) {\n $defaultValue = (bool) $defaultValue;\n }\n\n return [\n 'id' => $field->id_string,\n 'objectType' => $field->object_type,\n 'label' => $field->label,\n 'fieldName' => $field->crm_provider_id,\n 'type' => $type,\n 'enabled' => $field->is_selectable,\n 'length' => $field->length,\n 'defaultValue' => $defaultValue,\n ];\n }\n\n public function includeOptions(Field $field): ?Collection\n {\n if ($field->isPicklist() && $values = $field->values) {\n// if ($field->type === Field::TYPE_PICKLIST && $values = $field->values) {\n // This gets a little complex. We need to check if this field has any record type constraints for the profile.\n if (\n $this->profile\n && ($recordType = $this->profile->{$field->object_type . 'RecordType'})\n && $recordType->fieldValues()->where('crm_field_id', $field->id)->exists()\n ) {\n // Fetch the values specific for this record type.\n $values = $recordType->fieldValues()->where('crm_field_id', $field->id)->get();\n }\n\n if ($this->noDefault) {\n foreach ($values as $value) {\n $value->is_default = false;\n }\n }\n\n return $this->collection($values, new FieldValueTransformer());\n }\n\n return null;\n }\n}","role_description":"text entry area","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXStaticText","text":"A","depth":4,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"id","depth":5,"bounds":{"left":0.0,"top":0.0,"width":0.04375,"height":0.03},"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"B","depth":4,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"uuid (UUID with time-low and time-high swapped)","depth":5,"bounds":{"left":0.0,"top":0.0,"width":0.04375,"height":0.03},"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"C","depth":4,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"crm_configuration_id","depth":5,"bounds":{"left":0.0,"top":0.0,"width":0.04375,"height":0.03},"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"D","depth":4,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"crm_provider_id","depth":5,"bounds":{"left":0.0,"top":0.0,"width":0.04375,"height":0.03},"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"E","depth":4,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"label","depth":5,"bounds":{"left":0.0,"top":0.0,"width":0.04375,"height":0.03},"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"F","depth":4,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"description","depth":5,"bounds":{"left":0.0,"top":0.0,"width":0.04375,"height":0.03},"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"G","depth":4,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"type","depth":5,"bounds":{"left":0.0,"top":0.0,"width":0.04375,"height":0.03},"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"H","depth":4,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"length","depth":5,"bounds":{"left":0.0,"top":0.0,"width":0.04375,"height":0.03},"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"I","depth":4,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"default_value","depth":5,"bounds":{"left":0.0,"top":0.0,"width":0.04375,"height":0.03},"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"J","depth":4,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"object_type","depth":5,"bounds":{"left":0.0,"top":0.0,"width":0.04375,"height":0.03},"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"K","depth":4,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"is_selectable","depth":5,"bounds":{"left":0.0,"top":0.0,"width":0.04375,"height":0.03},"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"L","depth":4,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"is_mandatory","depth":5,"bounds":{"left":0.0,"top":0.0,"width":0.04375,"height":0.03},"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"M","depth":4,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"is_filterable","depth":5,"bounds":{"left":0.0,"top":0.0,"width":0.04375,"height":0.03},"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"N","depth":4,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"is_indexable","depth":5,"bounds":{"left":0.0,"top":0.0,"width":0.04375,"height":0.03},"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"O","depth":4,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"created_at","depth":5,"bounds":{"left":0.0,"top":0.0,"width":0.04375,"height":0.03},"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"P","depth":4,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"updated_at","depth":5,"bounds":{"left":0.0,"top":0.0,"width":0.04375,"height":0.03},"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"Q","depth":4,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"is_readonly","depth":5,"bounds":{"left":0.0,"top":0.0,"width":0.04375,"height":0.03},"on_screen":false,"role_description":"text"},{"role":"AXButton","text":"Select All","depth":4,"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXCell","text":"1885","depth":6,"on_screen":true,"role_description":"cell"},{"role":"AXStaticText","text":"1885","depth":7,"on_screen":true,"role_description":"text"},{"role":"AXTextArea","text":"39","depth":8,"bounds":{"left":0.0,"top":0.0,"width":0.16458334,"height":0.024444444},"on_screen":false,"value":"39","role_description":"text entry area","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXCell","text":"58a51d4d-0ca7-49f0-9b2c-e16027877cc5","depth":6,"on_screen":true,"role_description":"cell"},{"role":"AXStaticText","text":"58a51d4d-0ca7-49f0-9b2c-e16027877cc5","depth":7,"on_screen":true,"role_description":"text"},{"role":"AXTextArea","text":"picktestmulti__c","depth":8,"bounds":{"left":0.0,"top":0.0,"width":0.10486111,"height":0.024444444},"on_screen":false,"value":"picktestmulti__c","role_description":"text entry area","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXCell","text":"39","depth":6,"on_screen":true,"role_description":"cell"},{"role":"AXStaticText","text":"39","depth":7,"on_screen":true,"role_description":"text"},{"role":"AXTextArea","text":"39","depth":8,"bounds":{"left":0.0,"top":0.0,"width":0.16458334,"height":0.024444444},"on_screen":false,"value":"39","role_description":"text entry area","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXCell","text":"ReminderDateTime","depth":6,"on_screen":true,"role_description":"cell"},{"role":"AXStaticText","text":"ReminderDateTime","depth":7,"on_screen":true,"role_description":"text"},{"role":"AXTextArea","text":"picktestmulti__c","depth":8,"bounds":{"left":0.0,"top":0.0,"width":0.10486111,"height":0.024444444},"on_screen":false,"value":"picktestmulti__c","role_description":"text entry area","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXCell","text":"Reminder Date/Time","depth":6,"on_screen":true,"role_description":"cell"},{"role":"AXStaticText","text":"Reminder Date/Time","depth":7,"on_screen":true,"role_description":"text"},{"role":"AXTextArea","text":"picktestmulti__c","depth":8,"bounds":{"left":0.0,"top":0.0,"width":0.10486111,"height":0.024444444},"on_screen":false,"value":"picktestmulti__c","role_description":"text entry area","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXCell","text":"<null>","depth":6,"on_screen":true,"role_description":"cell"},{"role":"AXStaticText","text":"<null>","depth":7,"on_screen":true,"role_description":"text"},{"role":"AXTextArea","text":"picktestmulti__c","depth":8,"bounds":{"left":0.0,"top":0.0,"width":0.10486111,"height":0.024444444},"on_screen":false,"value":"picktestmulti__c","role_description":"text entry area","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXCell","text":"datetime","depth":6,"on_screen":true,"role_description":"cell"},{"role":"AXStaticText","text":"datetime","depth":7,"on_screen":true,"role_description":"text"},{"role":"AXTextArea","text":"picktestmulti__c","depth":8,"bounds":{"left":0.0,"top":0.0,"width":0.10486111,"height":0.024444444},"on_screen":false,"value":"picktestmulti__c","role_description":"text entry area","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXCell","text":"<null>","depth":6,"on_screen":true,"role_description":"cell"},{"role":"AXStaticText","text":"<null>","depth":7,"on_screen":true,"role_description":"text"},{"role":"AXTextArea","text":"39","depth":8,"bounds":{"left":0.0,"top":0.0,"width":0.16458334,"height":0.024444444},"on_screen":false,"value":"39","role_description":"text entry area","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXCell","text":"<null>","depth":6,"on_screen":true,"role_description":"cell"},{"role":"AXStaticText","text":"<null>","depth":7,"on_screen":true,"role_description":"text"},{"role":"AXTextArea","text":"picktestmulti__c","depth":8,"bounds":{"left":0.0,"top":0.0,"width":0.10486111,"height":0.024444444},"on_screen":false,"value":"picktestmulti__c","role_description":"text entry area","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXCell","text":"event","depth":6,"on_screen":true,"role_description":"cell"},{"role":"AXStaticText","text":"event","depth":7,"on_screen":true,"role_description":"text"},{"role":"AXTextArea","text":"picktestmulti__c","depth":8,"bounds":{"left":0.0,"top":0.0,"width":0.10486111,"height":0.024444444},"on_screen":false,"value":"picktestmulti__c","role_description":"text entry area","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXCell","text":"1","depth":6,"on_screen":false,"role_description":"cell"},{"role":"AXStaticText","text":"1","depth":7,"on_screen":false,"role_description":"text"},{"role":"AXTextArea","text":"39","depth":8,"bounds":{"left":0.0,"top":0.0,"width":0.16458334,"height":0.024444444},"on_screen":false,"value":"39","role_description":"text entry area","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXCell","text":"0","depth":6,"on_screen":false,"role_description":"cell"},{"role":"AXStaticText","text":"0","depth":7,"on_screen":false,"role_description":"text"},{"role":"AXTextArea","text":"39","depth":8,"bounds":{"left":0.0,"top":0.0,"width":0.16458334,"height":0.024444444},"on_screen":false,"value":"39","role_description":"text entry area","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXCell","text":"0","depth":6,"on_screen":false,"role_description":"cell"},{"role":"AXStaticText","text":"0","depth":7,"on_screen":false,"role_description":"text"},{"role":"AXTextArea","text":"39","depth":8,"bounds":{"left":0.0,"top":0.0,"width":0.16458334,"height":0.024444444},"on_screen":false,"value":"39","role_description":"text entry area","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false}]...
|
-4885177809184544944
|
1598161551224025395
|
typing_pause
|
accessibility
|
NULL
|
Project: faVsco.js, menu
JY-20915-fix-missing-head Project: faVsco.js, menu
JY-20915-fix-missing-header-text-relay, menu
Start Listening for PHP Debug Connections
TextRelayServiceTest
Run 'TextRelayServiceTest'
Debug 'TextRelayServiceTest'
More Actions
JetBrains AI
Search Everywhere
IDE and Project Settings
Sync Changes
Hide This Notification
Code changed:
Hide
11
1
Previous Highlighted Error
Next Highlighted Error
<?php
namespace Jiminny\Http\Transformers;
use Jiminny\Models\Crm\Field;
use Jiminny\Models\Crm\Profile;
use League\Fractal\Resource\Collection;
use League\Fractal\TransformerAbstract;
class FieldTransformer extends TransformerAbstract
{
protected array $availableIncludes = [
'options',
];
private ?Profile $profile;
private bool $noDefault = false;
public function __construct(?Profile $profile = null)
{
$this->profile = $profile;
}
public function setNoDefault(bool $noDefault)
{
$this->noDefault = $noDefault;
}
public function transform(Field $field): array
{
$defaultValue = $field->default_value;
$type = $field->type;
if (\is_bool($defaultValue)) {
$defaultValue = (bool) $defaultValue;
}
return [
'id' => $field->id_string,
'objectType' => $field->object_type,
'label' => $field->label,
'fieldName' => $field->crm_provider_id,
'type' => $type,
'enabled' => $field->is_selectable,
'length' => $field->length,
'defaultValue' => $defaultValue,
];
}
public function includeOptions(Field $field): ?Collection
{
if ($field->isPicklist() && $values = $field->values) {
// if ($field->type === Field::TYPE_PICKLIST && $values = $field->values) {
// This gets a little complex. We need to check if this field has any record type constraints for the profile.
if (
$this->profile
&& ($recordType = $this->profile->{$field->object_type . 'RecordType'})
&& $recordType->fieldValues()->where('crm_field_id', $field->id)->exists()
) {
// Fetch the values specific for this record type.
$values = $recordType->fieldValues()->where('crm_field_id', $field->id)->get();
}
if ($this->noDefault) {
foreach ($values as $value) {
$value->is_default = false;
}
}
return $this->collection($values, new FieldValueTransformer());
}
return null;
}
}
A
id
B
uuid (UUID with time-low and time-high swapped)
C
crm_configuration_id
D
crm_provider_id
E
label
F
description
G
type
H
length
I
default_value
J
object_type
K
is_selectable
L
is_mandatory
M
is_filterable
N
is_indexable
O
created_at
P
updated_at
Q
is_readonly
Select All
1885
1885
39
58a51d4d-0ca7-49f0-9b2c-e16027877cc5
58a51d4d-0ca7-49f0-9b2c-e16027877cc5
picktestmulti__c
39
39
39
ReminderDateTime
ReminderDateTime
picktestmulti__c
Reminder Date/Time
Reminder Date/Time
picktestmulti__c
<null>
<null>
picktestmulti__c
datetime
datetime
picktestmulti__c
<null>
<null>
39
<null>
<null>
picktestmulti__c
event
event
picktestmulti__c
1
1
39
0
0
39
0
0
39...
|
79824
|
NULL
|
NULL
|
NULL
|
|
79825
|
2791
|
74
|
2026-05-28T06:44:25.722984+00:00
|
/Users/lukas/.screenpipe/data/data/2026-05-28/1779 /Users/lukas/.screenpipe/data/data/2026-05-28/1779950665722_m2.jpg...
|
PhpStorm
|
faVsco.js – FieldTransformer.php
|
1
|
NULL
|
monitor_2
|
NULL
|
NULL
|
NULL
|
NULL
|
rnpstomFV faVsco.|s ~$ JY-20915-fix-missProinet v© rnpstomFV faVsco.|s ~$ JY-20915-fix-missProinet v© DealStageTransformer.phpresture ronstonmer.onoridld tonstotmer.ondorielovalelon omeone© GroupTransformer.ohooneoaononoieroncJoo eanouneonC LanquageDialect TransformeCLavout Enttviranstormer choC Lavout Transformer.ohoC) Lesdtranstormer.oho© MessageTransformer oho)CMomentitranstormer.onoCNotetiranstormer.onoCNotrestontttans ormer.onocenoorur eommsodtodecennodur ithaeomat ocoarcinsottihne omatooc Paroheiane tmanooipem isronlttnohmorot(© PlaybackPageTransformer.p(© PlaybookTransformer.pho© PlaybookTreeTransformer.phPlaylistActivityTransformer.plPlaylistSharesTransformer.phPlaylistTransformer.phprrospectsfanstoner.oneoQueston lfanstommer.ohoc Kolellansouneen© ScorecardRuleTiransformer.olCoocecrmcontrober.orcomposer.ison• Dockerfilecustom.iosravelloSF (iminny@localhost)un crm fields jiminnytalocalhost) x# HS Jocal jiminny@tocalhost# consolel poonA console (EU]A console [STAGING)Ty:AlrowDLQwEOgMCSrLL+OeANYAV7- WHERE id IN (1885, 3014)=•OROER 81 wuid (UULD with tine-low a-:ae con_configuration_id v* Bcrn_provider_id UJ8 labelM1885 S8a51d4d-8ca7-49f0-9b2c-e16027877ccS39 ReninderDateTimeReminder Date/Tine3814 a3d3dfSa-eaa1-43d0-b95e-1ff4bec8c42839 picktestmulti cpicktestnult5&9public function setNolefault(bool SnobefauLe)l...public function transform(Field Sfield): arraySdefaultValue = Sfield->derault_value:Stype = Sfield->type:it (is_bool(SdefaultValue)) 4Cootantvallua = Thoah Coatan tuaima:return"id' => Sfield->id string.'objectType' => Sfield->obiect type.Label u> StreldesladelTrelonane s> Streldescrn provzderzo"cype suyoe'enabled' => Sfield-sis selectablelenounsseles enoun"defaultValue' => SdefaultValue.C Sess ontirans ormer.onoc Sacetirans omer.onoc sactrans ormec.ondf TeamDomainTransformec.ohe8) Teamintcaration Transformer8) Team Transtormec ohoc) Themetirand ormes.choc)Tooic transtormer onoc)Tooic troced trane ormer.oheerealrne nrmor nhre Wolcodcroeehlind Mmornhrc Korol ahrpublze tuncczon anctudeupcions(hrela stieto): pcolleccionif (Sfield->isPicklist() && Svalues = $field->values) 4StSfteldos voe sas Sieldiatpe prkasiss Syalues = Steld->values)// This gets a little complex. We need to check if this field has any record type constraintaSthis-sorofileScecondivne & Sthiisosorothoystieldrobsiecttyoe"Recordi voc".)se ScecordTvne-sSieldValuesOeshere("eon Siold sd" Ssieldesid)-sexicte/ Fetch the values specific for this record type.Svalues = Srecordtype->fieldValues-›where("crn field id', Sfield->id)-›geto:if (Sthis->noDefault) €foreach (Svalues as Svalue)Svalue->is default = false:return Sthis->collection(Svalues, new FieldValueTransfornerO)lanausoas lvesterdav 15:4400%LX• Thu 28 May 9:44:25TextRelayServiceTest+0.rner hensewietwtlerekevouteSearched class CrmController in -/jiminny/apgRead CrmController.php and 2 other filesSearched TYPE MULTI in -fiminny/appPasdSiwldnho. aocllltwouttanetormar.obdwstoon.myna.wsis.multt-oickistielosarecurtentynoror.cumocn000inavoulsooc@use.nene1oransformer:: includeOpt ions () method only handies TYPE PICKLIST and excludes TYPE MULTIPICKLISTw/spp/http/ranstomers/Btclotiranstomer.oho.fos 57aphe1f (Sfield→>type =a= Field::TYPE PICKLIST 66 Svalues = Sfield-»values) 4Tinis con.tion.onwinciloesob.ionstocteouaroick.selorino.mu.t-otckinhCAlTtAn.oahte the cond tion to ind ude woth dckik wongpheteldescpickTstd cs svalues Steld-walues)The Field::isPicklist() method (line 357-360 in Field.php) already checks for both types:boh.return in_array(sthis=>getType(), [self::TYPE_ PICKLIST, self::TYPE_MULTIPICKLIST] ):Additional Context• The Fiield model detines TYPt MuLTiP ouiSt= "etcoickttr" out marksas "Not ver supported" (uine87-88• The lavouts endpoint at /ao Vem/ Iavouts uses avout Transtorser → avoutEnt tytranstomer → Blelo.rnctornar chal.the transtormer.inc toos. enttet.chdren.tchoottontline5570lermeootrollernhoWould you like me to implement this fix to enable multi-picklist field options in layouts?Ask anything Xol@ Code swioThyRhwiiros*4 space...
|
NULL
|
9188451052079098117
|
NULL
|
click
|
ocr
|
NULL
|
rnpstomFV faVsco.|s ~$ JY-20915-fix-missProinet v© rnpstomFV faVsco.|s ~$ JY-20915-fix-missProinet v© DealStageTransformer.phpresture ronstonmer.onoridld tonstotmer.ondorielovalelon omeone© GroupTransformer.ohooneoaononoieroncJoo eanouneonC LanquageDialect TransformeCLavout Enttviranstormer choC Lavout Transformer.ohoC) Lesdtranstormer.oho© MessageTransformer oho)CMomentitranstormer.onoCNotetiranstormer.onoCNotrestontttans ormer.onocenoorur eommsodtodecennodur ithaeomat ocoarcinsottihne omatooc Paroheiane tmanooipem isronlttnohmorot(© PlaybackPageTransformer.p(© PlaybookTransformer.pho© PlaybookTreeTransformer.phPlaylistActivityTransformer.plPlaylistSharesTransformer.phPlaylistTransformer.phprrospectsfanstoner.oneoQueston lfanstommer.ohoc Kolellansouneen© ScorecardRuleTiransformer.olCoocecrmcontrober.orcomposer.ison• Dockerfilecustom.iosravelloSF (iminny@localhost)un crm fields jiminnytalocalhost) x# HS Jocal jiminny@tocalhost# consolel poonA console (EU]A console [STAGING)Ty:AlrowDLQwEOgMCSrLL+OeANYAV7- WHERE id IN (1885, 3014)=•OROER 81 wuid (UULD with tine-low a-:ae con_configuration_id v* Bcrn_provider_id UJ8 labelM1885 S8a51d4d-8ca7-49f0-9b2c-e16027877ccS39 ReninderDateTimeReminder Date/Tine3814 a3d3dfSa-eaa1-43d0-b95e-1ff4bec8c42839 picktestmulti cpicktestnult5&9public function setNolefault(bool SnobefauLe)l...public function transform(Field Sfield): arraySdefaultValue = Sfield->derault_value:Stype = Sfield->type:it (is_bool(SdefaultValue)) 4Cootantvallua = Thoah Coatan tuaima:return"id' => Sfield->id string.'objectType' => Sfield->obiect type.Label u> StreldesladelTrelonane s> Streldescrn provzderzo"cype suyoe'enabled' => Sfield-sis selectablelenounsseles enoun"defaultValue' => SdefaultValue.C Sess ontirans ormer.onoc Sacetirans omer.onoc sactrans ormec.ondf TeamDomainTransformec.ohe8) Teamintcaration Transformer8) Team Transtormec ohoc) Themetirand ormes.choc)Tooic transtormer onoc)Tooic troced trane ormer.oheerealrne nrmor nhre Wolcodcroeehlind Mmornhrc Korol ahrpublze tuncczon anctudeupcions(hrela stieto): pcolleccionif (Sfield->isPicklist() && Svalues = $field->values) 4StSfteldos voe sas Sieldiatpe prkasiss Syalues = Steld->values)// This gets a little complex. We need to check if this field has any record type constraintaSthis-sorofileScecondivne & Sthiisosorothoystieldrobsiecttyoe"Recordi voc".)se ScecordTvne-sSieldValuesOeshere("eon Siold sd" Ssieldesid)-sexicte/ Fetch the values specific for this record type.Svalues = Srecordtype->fieldValues-›where("crn field id', Sfield->id)-›geto:if (Sthis->noDefault) €foreach (Svalues as Svalue)Svalue->is default = false:return Sthis->collection(Svalues, new FieldValueTransfornerO)lanausoas lvesterdav 15:4400%LX• Thu 28 May 9:44:25TextRelayServiceTest+0.rner hensewietwtlerekevouteSearched class CrmController in -/jiminny/apgRead CrmController.php and 2 other filesSearched TYPE MULTI in -fiminny/appPasdSiwldnho. aocllltwouttanetormar.obdwstoon.myna.wsis.multt-oickistielosarecurtentynoror.cumocn000inavoulsooc@use.nene1oransformer:: includeOpt ions () method only handies TYPE PICKLIST and excludes TYPE MULTIPICKLISTw/spp/http/ranstomers/Btclotiranstomer.oho.fos 57aphe1f (Sfield→>type =a= Field::TYPE PICKLIST 66 Svalues = Sfield-»values) 4Tinis con.tion.onwinciloesob.ionstocteouaroick.selorino.mu.t-otckinhCAlTtAn.oahte the cond tion to ind ude woth dckik wongpheteldescpickTstd cs svalues Steld-walues)The Field::isPicklist() method (line 357-360 in Field.php) already checks for both types:boh.return in_array(sthis=>getType(), [self::TYPE_ PICKLIST, self::TYPE_MULTIPICKLIST] ):Additional Context• The Fiield model detines TYPt MuLTiP ouiSt= "etcoickttr" out marksas "Not ver supported" (uine87-88• The lavouts endpoint at /ao Vem/ Iavouts uses avout Transtorser → avoutEnt tytranstomer → Blelo.rnctornar chal.the transtormer.inc toos. enttet.chdren.tchoottontline5570lermeootrollernhoWould you like me to implement this fix to enable multi-picklist field options in layouts?Ask anything Xol@ Code swioThyRhwiiros*4 space...
|
79822
|
NULL
|
NULL
|
NULL
|
|
79824
|
2790
|
46
|
2026-05-28T06:44:25.804019+00:00
|
/Users/lukas/.screenpipe/data/data/2026-05-28/1779 /Users/lukas/.screenpipe/data/data/2026-05-28/1779950665804_m1.jpg...
|
PhpStorm
|
faVsco.js – FieldTransformer.php
|
1
|
NULL
|
monitor_1
|
NULL
|
NULL
|
NULL
|
NULL
|
iTerm2ShellEditViewSessionScriptsProfilesWindowHel iTerm2ShellEditViewSessionScriptsProfilesWindowHelp•DOCKER₴81DEV (docker)-zsh*3configcachecompiledeventsroutesviewsjiminny-worker-processing-1:jiminny-worker-processing-1_00: stoppedjiminny-worker-processing-2:jiminny-worker-processing-2_00:stoppedjiminny-worker-processing-3:jiminny-worker-processing-3_00: stoppedjiminny-worker-processing-4:jiminny-worker-processing-4_00: stoppedjiminny-worker-processing-5:jiminny-worker-processing-5_00:stoppedjiminny-worker-processing-delayed: jiminny-worker-processing-delayed_00: stoppedworker-analytics:worker-analytics_00: stoppedworker-crm-update:worker-crm-update_00: stoppedworker-download:worker-download_00: stoppedworker-nudges:worker-nudges_00: stoppedworker:worker_00: stoppedworker-audio:worker-audio_00: stoppedworker-calendar:worker-calendar_00:stoppedworker-conferences:worker-conferences_00: stoppedworker-crm-sync:worker-crm-sync_00: stoppedworker-emails:worker-emails_00: stoppedworker-es-update:worker-es-update_00: stoppedartisan-schedule:artisan-schedule_00: stoppedartisan-schedule:artisan-schedule_00: startedjiminny-worker-processing-1:jiminny-worker-processing-1_00: startedjiminny-worker-processing-2:jiminny-worker-processing-2_00: startedjiminny-worker-processing-3:jiminny-worker-processing-3_00: startedjiminny-worker-processing-4:jiminny-worker-processing-4_00: startedjiminny-worker-processing-5:jiminny-worker-processing-5_00: startedjiminny-worker-processing-delayed:jiminny-worker-processing-delayed_00:startedworker:worker_00: startedworker-analytics:worker-analytics_00: startedworker-audio:worker-audio_00: startedworker-calendar:worker-calendar_00: startedworker-conferences:worker-conferences_00: startedworker-crm-sync:worker-crm-sync_00: startedworker-crm-update:worker-crm-update_00:startedworker-download:worker-download_00:startedworker-emails:worker-emails_00: startedworker-es-update:worker-es-update_00: startedworker-nudges:worker-nudges_00:startedroot@docker_lamp_1:/home/jiminny# l100% C47 8• Thu 28 May 9:44:25DEV (docker)ffmpeg84-zshDaily - Platformin 1m - 9:45-10:05 AM66.75ms DONE3.76ms DONE3.74ms DONE2.01ms DONE26.78ms DONECi Join Google MeetDEV...
|
NULL
|
921858029753463400
|
NULL
|
click
|
ocr
|
NULL
|
iTerm2ShellEditViewSessionScriptsProfilesWindowHel iTerm2ShellEditViewSessionScriptsProfilesWindowHelp•DOCKER₴81DEV (docker)-zsh*3configcachecompiledeventsroutesviewsjiminny-worker-processing-1:jiminny-worker-processing-1_00: stoppedjiminny-worker-processing-2:jiminny-worker-processing-2_00:stoppedjiminny-worker-processing-3:jiminny-worker-processing-3_00: stoppedjiminny-worker-processing-4:jiminny-worker-processing-4_00: stoppedjiminny-worker-processing-5:jiminny-worker-processing-5_00:stoppedjiminny-worker-processing-delayed: jiminny-worker-processing-delayed_00: stoppedworker-analytics:worker-analytics_00: stoppedworker-crm-update:worker-crm-update_00: stoppedworker-download:worker-download_00: stoppedworker-nudges:worker-nudges_00: stoppedworker:worker_00: stoppedworker-audio:worker-audio_00: stoppedworker-calendar:worker-calendar_00:stoppedworker-conferences:worker-conferences_00: stoppedworker-crm-sync:worker-crm-sync_00: stoppedworker-emails:worker-emails_00: stoppedworker-es-update:worker-es-update_00: stoppedartisan-schedule:artisan-schedule_00: stoppedartisan-schedule:artisan-schedule_00: startedjiminny-worker-processing-1:jiminny-worker-processing-1_00: startedjiminny-worker-processing-2:jiminny-worker-processing-2_00: startedjiminny-worker-processing-3:jiminny-worker-processing-3_00: startedjiminny-worker-processing-4:jiminny-worker-processing-4_00: startedjiminny-worker-processing-5:jiminny-worker-processing-5_00: startedjiminny-worker-processing-delayed:jiminny-worker-processing-delayed_00:startedworker:worker_00: startedworker-analytics:worker-analytics_00: startedworker-audio:worker-audio_00: startedworker-calendar:worker-calendar_00: startedworker-conferences:worker-conferences_00: startedworker-crm-sync:worker-crm-sync_00: startedworker-crm-update:worker-crm-update_00:startedworker-download:worker-download_00:startedworker-emails:worker-emails_00: startedworker-es-update:worker-es-update_00: startedworker-nudges:worker-nudges_00:startedroot@docker_lamp_1:/home/jiminny# l100% C47 8• Thu 28 May 9:44:25DEV (docker)ffmpeg84-zshDaily - Platformin 1m - 9:45-10:05 AM66.75ms DONE3.76ms DONE3.74ms DONE2.01ms DONE26.78ms DONECi Join Google MeetDEV...
|
NULL
|
NULL
|
NULL
|
NULL
|
|
79798
|
2790
|
33
|
2026-05-28T06:43:40.881846+00:00
|
/Users/lukas/.screenpipe/data/data/2026-05-28/1779 /Users/lukas/.screenpipe/data/data/2026-05-28/1779950620881_m1.jpg...
|
PhpStorm
|
faVsco.js – FieldTransformer.php
|
1
|
NULL
|
monitor_1
|
NULL
|
NULL
|
NULL
|
NULL
|
Project: faVsco.js, menu
JY-20915-fix-missing-head Project: faVsco.js, menu
JY-20915-fix-missing-header-text-relay, menu
Start Listening for PHP Debug Connections
TextRelayServiceTest
Run 'TextRelayServiceTest'
Debug 'TextRelayServiceTest'
More Actions
JetBrains AI
Search Everywhere
IDE and Project Settings
Sync Changes
Hide This Notification
Code changed:
Hide
11
1
Previous Highlighted Error
Next Highlighted Error
<?php
namespace Jiminny\Http\Transformers;
use Jiminny\Models\Crm\Field;
use Jiminny\Models\Crm\Profile;
use League\Fractal\Resource\Collection;
use League\Fractal\TransformerAbstract;
class FieldTransformer extends TransformerAbstract
{
protected array $availableIncludes = [
'options',
];
private ?Profile $profile;
private bool $noDefault = false;
public function __construct(?Profile $profile = null)
{
$this->profile = $profile;
}
public function setNoDefault(bool $noDefault)
{
$this->noDefault = $noDefault;
}
public function transform(Field $field): array
{
$defaultValue = $field->default_value;
$type = $field->type;
if (\is_bool($defaultValue)) {
$defaultValue = (bool) $defaultValue;
}
return [
'id' => $field->id_string,
'objectType' => $field->object_type,
'label' => $field->label,
'fieldName' => $field->crm_provider_id,
'type' => $type,
'enabled' => $field->is_selectable,
'length' => $field->length,
'defaultValue' => $defaultValue,
];
}
public function includeOptions(Field $field): ?Collection
{
if ($field->isPicklist() && $values = $field->values) {
// if ($field->type === Field::TYPE_PICKLIST && $values = $field->values) {
// This gets a little complex. We need to check if this field has any record type constraints for the profile.
if (
$this->profile
&& ($recordType = $this->profile->{$field->object_type . 'RecordType'})
&& $recordType->fieldValues()->where('crm_field_id', $field->id)->exists()
) {
// Fetch the values specific for this record type.
$values = $recordType->fieldValues()->where('crm_field_id', $field->id)->get();
}
if ($this->noDefault) {
foreach ($values as $value) {
$value->is_default = false;
}
}
return $this->collection($values, new FieldValueTransformer());
}
return null;
}
}
A
id
B
uuid (UUID with time-low and time-high swapped)
C
crm_configuration_id
D
crm_provider_id
E
label
F
description
G
type
H
length
I
default_value
J
object_type
K
is_selectable
L
is_mandatory
M
is_filterable
N
is_indexable
O
created_at
P
updated_at
Q
is_readonly
Select All
1885
1885
39
58a51d4d-0ca7-49f0-9b2c-e16027877cc5
58a51d4d-0ca7-49f0-9b2c-e16027877cc5
picktestmulti__c
39
39
39
ReminderDateTime
ReminderDateTime
picktestmulti__c
Reminder Date/Time
Reminder Date/Time
picktestmulti__c
<null>
<null>
picktestmulti__c
datetime
datetime
picktestmulti__c
<null>
<null>
39
<null>
<null>
picktestmulti__c
event
event
picktestmulti__c
1
1
39
0
0
39
0
0
39
0
0
39
2022-12-15 14:53:05
2022-12-15 14:53:05
picktestmulti__c
2025-09-29 11:00:32
2025-09-29 11:00:32
picktestmulti__c
0
0
39
3014
3014
39
a3d3df5a-eaa1-43d0-b95e-1ff4bec8c428
a3d3df5a-eaa1-43d0-b95e-1ff4bec8c428
picktestmulti__c
39
39
39
picktestmulti__c
picktestmulti__c
picktestmulti__c
picktestmulti
picktestmulti
picktestmulti__c
<null>
<null>
picktestmulti__c
multi-picklist
multi-picklist
picktestmulti__c
4099
4099
39
<null>
<null>
picktestmulti__c
event
event
picktestmulti__c
1
1
39
0
0
39
0
0
39
0
0
39
2023-07-25 01:00:23
2023-07-25 01:00:23
picktestmulti__c
2026-02-10 11:01:10
2026-02-10 11:01:10
picktestmulti__c
0
0
39
id IN (1885, 3014)
Editor
2 rows
Reload Page
Table Result Auto Refresh
Cancel Running Statements
Add Row
Delete Row
Revert Selected
Preview Pending Changes
Submit
Tx: Auto
DDL
Find on Current Page
Table Result Local Filter
Record View
Table Coloring Options
Show Geo Viewer
Show Chart
CSV
Export Data…
Copy to Database…
Compare Data
View as
Show Options Menu
Project
Project
New File or Directory…...
|
[{"role":"AXButton","text" [{"role":"AXButton","text":"Project: faVsco.js, menu","depth":5,"on_screen":true,"help_text":"~/jiminny/app","role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"JY-20915-fix-missing-header-text-relay, menu","depth":5,"on_screen":true,"help_text":"Git Branch: JY-20915-fix-missing-header-text-relay","role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Start Listening for PHP Debug Connections","depth":5,"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"TextRelayServiceTest","depth":6,"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Run 'TextRelayServiceTest'","depth":6,"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Debug 'TextRelayServiceTest'","depth":6,"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"More Actions","depth":6,"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"JetBrains AI","depth":5,"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Search Everywhere","depth":5,"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"IDE and Project Settings","depth":5,"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Sync Changes","depth":4,"bounds":{"left":0.0,"top":0.0,"width":0.018055556,"height":0.026666667},"on_screen":false,"role_description":"button","is_enabled":false,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Hide This Notification","depth":4,"bounds":{"left":0.0,"top":0.0,"width":0.018055556,"height":0.026666667},"on_screen":false,"role_description":"button","is_enabled":false,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Code changed:","depth":4,"bounds":{"left":0.0,"top":0.0,"width":0.088194445,"height":0.027777778},"on_screen":false,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Hide","depth":4,"bounds":{"left":0.0,"top":0.0,"width":0.018055556,"height":0.026666667},"on_screen":false,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXStaticText","text":"11","depth":4,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"1","depth":4,"on_screen":true,"role_description":"text"},{"role":"AXButton","text":"Previous Highlighted Error","depth":4,"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Next Highlighted Error","depth":4,"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXTextArea","text":"<?php\n\nnamespace Jiminny\\Http\\Transformers;\n\nuse Jiminny\\Models\\Crm\\Field;\nuse Jiminny\\Models\\Crm\\Profile;\nuse League\\Fractal\\Resource\\Collection;\nuse League\\Fractal\\TransformerAbstract;\n\nclass FieldTransformer extends TransformerAbstract\n{\n protected array $availableIncludes = [\n 'options',\n ];\n private ?Profile $profile;\n\n private bool $noDefault = false;\n\n public function __construct(?Profile $profile = null)\n {\n $this->profile = $profile;\n }\n\n public function setNoDefault(bool $noDefault)\n {\n $this->noDefault = $noDefault;\n }\n\n public function transform(Field $field): array\n {\n $defaultValue = $field->default_value;\n $type = $field->type;\n\n if (\\is_bool($defaultValue)) {\n $defaultValue = (bool) $defaultValue;\n }\n\n return [\n 'id' => $field->id_string,\n 'objectType' => $field->object_type,\n 'label' => $field->label,\n 'fieldName' => $field->crm_provider_id,\n 'type' => $type,\n 'enabled' => $field->is_selectable,\n 'length' => $field->length,\n 'defaultValue' => $defaultValue,\n ];\n }\n\n public function includeOptions(Field $field): ?Collection\n {\n if ($field->isPicklist() && $values = $field->values) {\n// if ($field->type === Field::TYPE_PICKLIST && $values = $field->values) {\n // This gets a little complex. We need to check if this field has any record type constraints for the profile.\n if (\n $this->profile\n && ($recordType = $this->profile->{$field->object_type . 'RecordType'})\n && $recordType->fieldValues()->where('crm_field_id', $field->id)->exists()\n ) {\n // Fetch the values specific for this record type.\n $values = $recordType->fieldValues()->where('crm_field_id', $field->id)->get();\n }\n\n if ($this->noDefault) {\n foreach ($values as $value) {\n $value->is_default = false;\n }\n }\n\n return $this->collection($values, new FieldValueTransformer());\n }\n\n return null;\n }\n}","depth":4,"on_screen":true,"value":"<?php\n\nnamespace Jiminny\\Http\\Transformers;\n\nuse Jiminny\\Models\\Crm\\Field;\nuse Jiminny\\Models\\Crm\\Profile;\nuse League\\Fractal\\Resource\\Collection;\nuse League\\Fractal\\TransformerAbstract;\n\nclass FieldTransformer extends TransformerAbstract\n{\n protected array $availableIncludes = [\n 'options',\n ];\n private ?Profile $profile;\n\n private bool $noDefault = false;\n\n public function __construct(?Profile $profile = null)\n {\n $this->profile = $profile;\n }\n\n public function setNoDefault(bool $noDefault)\n {\n $this->noDefault = $noDefault;\n }\n\n public function transform(Field $field): array\n {\n $defaultValue = $field->default_value;\n $type = $field->type;\n\n if (\\is_bool($defaultValue)) {\n $defaultValue = (bool) $defaultValue;\n }\n\n return [\n 'id' => $field->id_string,\n 'objectType' => $field->object_type,\n 'label' => $field->label,\n 'fieldName' => $field->crm_provider_id,\n 'type' => $type,\n 'enabled' => $field->is_selectable,\n 'length' => $field->length,\n 'defaultValue' => $defaultValue,\n ];\n }\n\n public function includeOptions(Field $field): ?Collection\n {\n if ($field->isPicklist() && $values = $field->values) {\n// if ($field->type === Field::TYPE_PICKLIST && $values = $field->values) {\n // This gets a little complex. We need to check if this field has any record type constraints for the profile.\n if (\n $this->profile\n && ($recordType = $this->profile->{$field->object_type . 'RecordType'})\n && $recordType->fieldValues()->where('crm_field_id', $field->id)->exists()\n ) {\n // Fetch the values specific for this record type.\n $values = $recordType->fieldValues()->where('crm_field_id', $field->id)->get();\n }\n\n if ($this->noDefault) {\n foreach ($values as $value) {\n $value->is_default = false;\n }\n }\n\n return $this->collection($values, new FieldValueTransformer());\n }\n\n return null;\n }\n}","role_description":"text entry area","is_enabled":true,"is_focused":true,"is_selected":false,"is_expanded":false},{"role":"AXStaticText","text":"A","depth":4,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"id","depth":5,"bounds":{"left":0.0,"top":0.0,"width":0.04375,"height":0.03},"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"B","depth":4,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"uuid (UUID with time-low and time-high swapped)","depth":5,"bounds":{"left":0.0,"top":0.0,"width":0.04375,"height":0.03},"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"C","depth":4,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"crm_configuration_id","depth":5,"bounds":{"left":0.0,"top":0.0,"width":0.04375,"height":0.03},"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"D","depth":4,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"crm_provider_id","depth":5,"bounds":{"left":0.0,"top":0.0,"width":0.04375,"height":0.03},"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"E","depth":4,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"label","depth":5,"bounds":{"left":0.0,"top":0.0,"width":0.04375,"height":0.03},"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"F","depth":4,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"description","depth":5,"bounds":{"left":0.0,"top":0.0,"width":0.04375,"height":0.03},"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"G","depth":4,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"type","depth":5,"bounds":{"left":0.0,"top":0.0,"width":0.04375,"height":0.03},"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"H","depth":4,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"length","depth":5,"bounds":{"left":0.0,"top":0.0,"width":0.04375,"height":0.03},"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"I","depth":4,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"default_value","depth":5,"bounds":{"left":0.0,"top":0.0,"width":0.04375,"height":0.03},"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"J","depth":4,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"object_type","depth":5,"bounds":{"left":0.0,"top":0.0,"width":0.04375,"height":0.03},"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"K","depth":4,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"is_selectable","depth":5,"bounds":{"left":0.0,"top":0.0,"width":0.04375,"height":0.03},"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"L","depth":4,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"is_mandatory","depth":5,"bounds":{"left":0.0,"top":0.0,"width":0.04375,"height":0.03},"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"M","depth":4,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"is_filterable","depth":5,"bounds":{"left":0.0,"top":0.0,"width":0.04375,"height":0.03},"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"N","depth":4,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"is_indexable","depth":5,"bounds":{"left":0.0,"top":0.0,"width":0.04375,"height":0.03},"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"O","depth":4,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"created_at","depth":5,"bounds":{"left":0.0,"top":0.0,"width":0.04375,"height":0.03},"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"P","depth":4,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"updated_at","depth":5,"bounds":{"left":0.0,"top":0.0,"width":0.04375,"height":0.03},"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"Q","depth":4,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"is_readonly","depth":5,"bounds":{"left":0.0,"top":0.0,"width":0.04375,"height":0.03},"on_screen":false,"role_description":"text"},{"role":"AXButton","text":"Select All","depth":4,"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXCell","text":"1885","depth":6,"on_screen":true,"role_description":"cell"},{"role":"AXStaticText","text":"1885","depth":7,"on_screen":true,"role_description":"text"},{"role":"AXTextArea","text":"39","depth":8,"bounds":{"left":0.0,"top":0.0,"width":0.16458334,"height":0.024444444},"on_screen":false,"value":"39","role_description":"text entry area","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXCell","text":"58a51d4d-0ca7-49f0-9b2c-e16027877cc5","depth":6,"on_screen":true,"role_description":"cell"},{"role":"AXStaticText","text":"58a51d4d-0ca7-49f0-9b2c-e16027877cc5","depth":7,"on_screen":true,"role_description":"text"},{"role":"AXTextArea","text":"picktestmulti__c","depth":8,"bounds":{"left":0.0,"top":0.0,"width":0.10486111,"height":0.024444444},"on_screen":false,"value":"picktestmulti__c","role_description":"text entry area","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXCell","text":"39","depth":6,"on_screen":true,"role_description":"cell"},{"role":"AXStaticText","text":"39","depth":7,"on_screen":true,"role_description":"text"},{"role":"AXTextArea","text":"39","depth":8,"bounds":{"left":0.0,"top":0.0,"width":0.16458334,"height":0.024444444},"on_screen":false,"value":"39","role_description":"text entry area","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXCell","text":"ReminderDateTime","depth":6,"on_screen":true,"role_description":"cell"},{"role":"AXStaticText","text":"ReminderDateTime","depth":7,"on_screen":true,"role_description":"text"},{"role":"AXTextArea","text":"picktestmulti__c","depth":8,"bounds":{"left":0.0,"top":0.0,"width":0.10486111,"height":0.024444444},"on_screen":false,"value":"picktestmulti__c","role_description":"text entry area","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXCell","text":"Reminder Date/Time","depth":6,"on_screen":true,"role_description":"cell"},{"role":"AXStaticText","text":"Reminder Date/Time","depth":7,"on_screen":true,"role_description":"text"},{"role":"AXTextArea","text":"picktestmulti__c","depth":8,"bounds":{"left":0.0,"top":0.0,"width":0.10486111,"height":0.024444444},"on_screen":false,"value":"picktestmulti__c","role_description":"text entry area","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXCell","text":"<null>","depth":6,"on_screen":true,"role_description":"cell"},{"role":"AXStaticText","text":"<null>","depth":7,"on_screen":true,"role_description":"text"},{"role":"AXTextArea","text":"picktestmulti__c","depth":8,"bounds":{"left":0.0,"top":0.0,"width":0.10486111,"height":0.024444444},"on_screen":false,"value":"picktestmulti__c","role_description":"text entry area","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXCell","text":"datetime","depth":6,"on_screen":true,"role_description":"cell"},{"role":"AXStaticText","text":"datetime","depth":7,"on_screen":true,"role_description":"text"},{"role":"AXTextArea","text":"picktestmulti__c","depth":8,"bounds":{"left":0.0,"top":0.0,"width":0.10486111,"height":0.024444444},"on_screen":false,"value":"picktestmulti__c","role_description":"text entry area","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXCell","text":"<null>","depth":6,"on_screen":true,"role_description":"cell"},{"role":"AXStaticText","text":"<null>","depth":7,"on_screen":true,"role_description":"text"},{"role":"AXTextArea","text":"39","depth":8,"bounds":{"left":0.0,"top":0.0,"width":0.16458334,"height":0.024444444},"on_screen":false,"value":"39","role_description":"text entry area","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXCell","text":"<null>","depth":6,"on_screen":true,"role_description":"cell"},{"role":"AXStaticText","text":"<null>","depth":7,"on_screen":true,"role_description":"text"},{"role":"AXTextArea","text":"picktestmulti__c","depth":8,"bounds":{"left":0.0,"top":0.0,"width":0.10486111,"height":0.024444444},"on_screen":false,"value":"picktestmulti__c","role_description":"text entry area","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXCell","text":"event","depth":6,"on_screen":true,"role_description":"cell"},{"role":"AXStaticText","text":"event","depth":7,"on_screen":true,"role_description":"text"},{"role":"AXTextArea","text":"picktestmulti__c","depth":8,"bounds":{"left":0.0,"top":0.0,"width":0.10486111,"height":0.024444444},"on_screen":false,"value":"picktestmulti__c","role_description":"text entry area","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXCell","text":"1","depth":6,"on_screen":false,"role_description":"cell"},{"role":"AXStaticText","text":"1","depth":7,"on_screen":false,"role_description":"text"},{"role":"AXTextArea","text":"39","depth":8,"bounds":{"left":0.0,"top":0.0,"width":0.16458334,"height":0.024444444},"on_screen":false,"value":"39","role_description":"text entry area","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXCell","text":"0","depth":6,"on_screen":false,"role_description":"cell"},{"role":"AXStaticText","text":"0","depth":7,"on_screen":false,"role_description":"text"},{"role":"AXTextArea","text":"39","depth":8,"bounds":{"left":0.0,"top":0.0,"width":0.16458334,"height":0.024444444},"on_screen":false,"value":"39","role_description":"text entry area","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXCell","text":"0","depth":6,"on_screen":false,"role_description":"cell"},{"role":"AXStaticText","text":"0","depth":7,"on_screen":false,"role_description":"text"},{"role":"AXTextArea","text":"39","depth":8,"bounds":{"left":0.0,"top":0.0,"width":0.16458334,"height":0.024444444},"on_screen":false,"value":"39","role_description":"text entry area","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXCell","text":"0","depth":6,"on_screen":false,"role_description":"cell"},{"role":"AXStaticText","text":"0","depth":7,"on_screen":false,"role_description":"text"},{"role":"AXTextArea","text":"39","depth":8,"bounds":{"left":0.0,"top":0.0,"width":0.16458334,"height":0.024444444},"on_screen":false,"value":"39","role_description":"text entry area","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXCell","text":"2022-12-15 14:53:05","depth":6,"on_screen":false,"role_description":"cell"},{"role":"AXStaticText","text":"2022-12-15 14:53:05","depth":7,"on_screen":false,"role_description":"text"},{"role":"AXTextArea","text":"picktestmulti__c","depth":8,"bounds":{"left":0.0,"top":0.0,"width":0.10486111,"height":0.024444444},"on_screen":false,"value":"picktestmulti__c","role_description":"text entry area","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXCell","text":"2025-09-29 11:00:32","depth":6,"on_screen":false,"role_description":"cell"},{"role":"AXStaticText","text":"2025-09-29 11:00:32","depth":7,"on_screen":false,"role_description":"text"},{"role":"AXTextArea","text":"picktestmulti__c","depth":8,"bounds":{"left":0.0,"top":0.0,"width":0.10486111,"height":0.024444444},"on_screen":false,"value":"picktestmulti__c","role_description":"text entry area","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXCell","text":"0","depth":6,"on_screen":false,"role_description":"cell"},{"role":"AXStaticText","text":"0","depth":7,"on_screen":false,"role_description":"text"},{"role":"AXTextArea","text":"39","depth":8,"bounds":{"left":0.0,"top":0.0,"width":0.16458334,"height":0.024444444},"on_screen":false,"value":"39","role_description":"text entry area","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXCell","text":"3014","depth":6,"on_screen":true,"role_description":"cell"},{"role":"AXStaticText","text":"3014","depth":7,"on_screen":true,"role_description":"text"},{"role":"AXTextArea","text":"39","depth":8,"bounds":{"left":0.0,"top":0.0,"width":0.16458334,"height":0.024444444},"on_screen":false,"value":"39","role_description":"text entry area","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXCell","text":"a3d3df5a-eaa1-43d0-b95e-1ff4bec8c428","depth":6,"on_screen":true,"role_description":"cell"},{"role":"AXStaticText","text":"a3d3df5a-eaa1-43d0-b95e-1ff4bec8c428","depth":7,"on_screen":true,"role_description":"text"},{"role":"AXTextArea","text":"picktestmulti__c","depth":8,"bounds":{"left":0.0,"top":0.0,"width":0.10486111,"height":0.024444444},"on_screen":false,"value":"picktestmulti__c","role_description":"text entry area","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXCell","text":"39","depth":6,"on_screen":true,"role_description":"cell"},{"role":"AXStaticText","text":"39","depth":7,"on_screen":true,"role_description":"text"},{"role":"AXTextArea","text":"39","depth":8,"bounds":{"left":0.0,"top":0.0,"width":0.16458334,"height":0.024444444},"on_screen":false,"value":"39","role_description":"text entry area","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXCell","text":"picktestmulti__c","depth":6,"on_screen":true,"role_description":"cell"},{"role":"AXStaticText","text":"picktestmulti__c","depth":7,"on_screen":true,"role_description":"text"},{"role":"AXTextArea","text":"picktestmulti__c","depth":8,"bounds":{"left":0.0,"top":0.0,"width":0.10486111,"height":0.024444444},"on_screen":false,"value":"picktestmulti__c","role_description":"text entry area","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXCell","text":"picktestmulti","depth":6,"on_screen":true,"role_description":"cell"},{"role":"AXStaticText","text":"picktestmulti","depth":7,"on_screen":true,"role_description":"text"},{"role":"AXTextArea","text":"picktestmulti__c","depth":8,"bounds":{"left":0.0,"top":0.0,"width":0.10486111,"height":0.024444444},"on_screen":false,"value":"picktestmulti__c","role_description":"text entry area","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXCell","text":"<null>","depth":6,"on_screen":true,"role_description":"cell"},{"role":"AXStaticText","text":"<null>","depth":7,"on_screen":true,"role_description":"text"},{"role":"AXTextArea","text":"picktestmulti__c","depth":8,"bounds":{"left":0.0,"top":0.0,"width":0.10486111,"height":0.024444444},"on_screen":false,"value":"picktestmulti__c","role_description":"text entry area","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXCell","text":"multi-picklist","depth":6,"on_screen":true,"role_description":"cell"},{"role":"AXStaticText","text":"multi-picklist","depth":7,"on_screen":true,"role_description":"text"},{"role":"AXTextArea","text":"picktestmulti__c","depth":8,"bounds":{"left":0.0,"top":0.0,"width":0.10486111,"height":0.024444444},"on_screen":false,"value":"picktestmulti__c","role_description":"text entry area","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXCell","text":"4099","depth":6,"on_screen":true,"role_description":"cell"},{"role":"AXStaticText","text":"4099","depth":7,"on_screen":true,"role_description":"text"},{"role":"AXTextArea","text":"39","depth":8,"bounds":{"left":0.0,"top":0.0,"width":0.16458334,"height":0.024444444},"on_screen":false,"value":"39","role_description":"text entry area","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXCell","text":"<null>","depth":6,"on_screen":true,"role_description":"cell"},{"role":"AXStaticText","text":"<null>","depth":7,"on_screen":true,"role_description":"text"},{"role":"AXTextArea","text":"picktestmulti__c","depth":8,"bounds":{"left":0.0,"top":0.0,"width":0.10486111,"height":0.024444444},"on_screen":false,"value":"picktestmulti__c","role_description":"text entry area","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXCell","text":"event","depth":6,"on_screen":true,"role_description":"cell"},{"role":"AXStaticText","text":"event","depth":7,"on_screen":true,"role_description":"text"},{"role":"AXTextArea","text":"picktestmulti__c","depth":8,"bounds":{"left":0.0,"top":0.0,"width":0.10486111,"height":0.024444444},"on_screen":false,"value":"picktestmulti__c","role_description":"text entry area","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXCell","text":"1","depth":6,"on_screen":false,"role_description":"cell"},{"role":"AXStaticText","text":"1","depth":7,"on_screen":false,"role_description":"text"},{"role":"AXTextArea","text":"39","depth":8,"bounds":{"left":0.0,"top":0.0,"width":0.16458334,"height":0.024444444},"on_screen":false,"value":"39","role_description":"text entry area","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXCell","text":"0","depth":6,"on_screen":false,"role_description":"cell"},{"role":"AXStaticText","text":"0","depth":7,"on_screen":false,"role_description":"text"},{"role":"AXTextArea","text":"39","depth":8,"bounds":{"left":0.0,"top":0.0,"width":0.16458334,"height":0.024444444},"on_screen":false,"value":"39","role_description":"text entry area","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXCell","text":"0","depth":6,"on_screen":false,"role_description":"cell"},{"role":"AXStaticText","text":"0","depth":7,"on_screen":false,"role_description":"text"},{"role":"AXTextArea","text":"39","depth":8,"bounds":{"left":0.0,"top":0.0,"width":0.16458334,"height":0.024444444},"on_screen":false,"value":"39","role_description":"text entry area","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXCell","text":"0","depth":6,"on_screen":false,"role_description":"cell"},{"role":"AXStaticText","text":"0","depth":7,"on_screen":false,"role_description":"text"},{"role":"AXTextArea","text":"39","depth":8,"bounds":{"left":0.0,"top":0.0,"width":0.16458334,"height":0.024444444},"on_screen":false,"value":"39","role_description":"text entry area","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXCell","text":"2023-07-25 01:00:23","depth":6,"on_screen":false,"role_description":"cell"},{"role":"AXStaticText","text":"2023-07-25 01:00:23","depth":7,"on_screen":false,"role_description":"text"},{"role":"AXTextArea","text":"picktestmulti__c","depth":8,"bounds":{"left":0.0,"top":0.0,"width":0.10486111,"height":0.024444444},"on_screen":false,"value":"picktestmulti__c","role_description":"text entry area","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXCell","text":"2026-02-10 11:01:10","depth":6,"on_screen":false,"role_description":"cell"},{"role":"AXStaticText","text":"2026-02-10 11:01:10","depth":7,"on_screen":false,"role_description":"text"},{"role":"AXTextArea","text":"picktestmulti__c","depth":8,"bounds":{"left":0.0,"top":0.0,"width":0.10486111,"height":0.024444444},"on_screen":false,"value":"picktestmulti__c","role_description":"text entry area","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXCell","text":"0","depth":6,"on_screen":false,"role_description":"cell"},{"role":"AXStaticText","text":"0","depth":7,"on_screen":false,"role_description":"text"},{"role":"AXTextArea","text":"39","depth":8,"bounds":{"left":0.0,"top":0.0,"width":0.16458334,"height":0.024444444},"on_screen":false,"value":"39","role_description":"text entry area","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXTextArea","text":"id IN (1885, 3014)","depth":4,"on_screen":true,"value":"id IN (1885, 3014)","role_description":"text entry area","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXTextArea","text":"Editor","depth":4,"on_screen":true,"role_description":"text entry area","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"2 rows","depth":4,"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Reload Page","depth":4,"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Table Result Auto Refresh","depth":4,"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Cancel Running Statements","depth":4,"on_screen":true,"role_description":"button","is_enabled":false,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Add Row","depth":4,"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Delete Row","depth":4,"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Revert Selected","depth":4,"on_screen":true,"role_description":"button","is_enabled":false,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Preview Pending Changes","depth":4,"on_screen":true,"role_description":"button","is_enabled":false,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Submit","depth":4,"on_screen":true,"role_description":"button","is_enabled":false,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Tx: Auto","depth":4,"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"DDL","depth":4,"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Find on Current Page","depth":4,"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Table Result Local Filter","depth":4,"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Record View","depth":4,"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Table Coloring Options","depth":4,"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Show Geo Viewer","depth":4,"on_screen":true,"role_description":"button","is_enabled":false,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Show Chart","depth":4,"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"CSV","depth":4,"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Export Data…","depth":4,"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Copy to Database…","depth":4,"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Compare Data","depth":4,"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"View as","depth":4,"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Show Options Menu","depth":4,"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXStaticText","text":"Project","depth":3,"on_screen":false,"role_description":"text"},{"role":"AXButton","text":"Project","depth":3,"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"New File or Directory…","depth":4,"bounds":{"left":0.0,"top":0.0,"width":0.018055556,"height":0.026666667},"on_screen":false,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false}]...
|
1813676571019893544
|
447210307230971987
|
idle
|
accessibility
|
NULL
|
Project: faVsco.js, menu
JY-20915-fix-missing-head Project: faVsco.js, menu
JY-20915-fix-missing-header-text-relay, menu
Start Listening for PHP Debug Connections
TextRelayServiceTest
Run 'TextRelayServiceTest'
Debug 'TextRelayServiceTest'
More Actions
JetBrains AI
Search Everywhere
IDE and Project Settings
Sync Changes
Hide This Notification
Code changed:
Hide
11
1
Previous Highlighted Error
Next Highlighted Error
<?php
namespace Jiminny\Http\Transformers;
use Jiminny\Models\Crm\Field;
use Jiminny\Models\Crm\Profile;
use League\Fractal\Resource\Collection;
use League\Fractal\TransformerAbstract;
class FieldTransformer extends TransformerAbstract
{
protected array $availableIncludes = [
'options',
];
private ?Profile $profile;
private bool $noDefault = false;
public function __construct(?Profile $profile = null)
{
$this->profile = $profile;
}
public function setNoDefault(bool $noDefault)
{
$this->noDefault = $noDefault;
}
public function transform(Field $field): array
{
$defaultValue = $field->default_value;
$type = $field->type;
if (\is_bool($defaultValue)) {
$defaultValue = (bool) $defaultValue;
}
return [
'id' => $field->id_string,
'objectType' => $field->object_type,
'label' => $field->label,
'fieldName' => $field->crm_provider_id,
'type' => $type,
'enabled' => $field->is_selectable,
'length' => $field->length,
'defaultValue' => $defaultValue,
];
}
public function includeOptions(Field $field): ?Collection
{
if ($field->isPicklist() && $values = $field->values) {
// if ($field->type === Field::TYPE_PICKLIST && $values = $field->values) {
// This gets a little complex. We need to check if this field has any record type constraints for the profile.
if (
$this->profile
&& ($recordType = $this->profile->{$field->object_type . 'RecordType'})
&& $recordType->fieldValues()->where('crm_field_id', $field->id)->exists()
) {
// Fetch the values specific for this record type.
$values = $recordType->fieldValues()->where('crm_field_id', $field->id)->get();
}
if ($this->noDefault) {
foreach ($values as $value) {
$value->is_default = false;
}
}
return $this->collection($values, new FieldValueTransformer());
}
return null;
}
}
A
id
B
uuid (UUID with time-low and time-high swapped)
C
crm_configuration_id
D
crm_provider_id
E
label
F
description
G
type
H
length
I
default_value
J
object_type
K
is_selectable
L
is_mandatory
M
is_filterable
N
is_indexable
O
created_at
P
updated_at
Q
is_readonly
Select All
1885
1885
39
58a51d4d-0ca7-49f0-9b2c-e16027877cc5
58a51d4d-0ca7-49f0-9b2c-e16027877cc5
picktestmulti__c
39
39
39
ReminderDateTime
ReminderDateTime
picktestmulti__c
Reminder Date/Time
Reminder Date/Time
picktestmulti__c
<null>
<null>
picktestmulti__c
datetime
datetime
picktestmulti__c
<null>
<null>
39
<null>
<null>
picktestmulti__c
event
event
picktestmulti__c
1
1
39
0
0
39
0
0
39
0
0
39
2022-12-15 14:53:05
2022-12-15 14:53:05
picktestmulti__c
2025-09-29 11:00:32
2025-09-29 11:00:32
picktestmulti__c
0
0
39
3014
3014
39
a3d3df5a-eaa1-43d0-b95e-1ff4bec8c428
a3d3df5a-eaa1-43d0-b95e-1ff4bec8c428
picktestmulti__c
39
39
39
picktestmulti__c
picktestmulti__c
picktestmulti__c
picktestmulti
picktestmulti
picktestmulti__c
<null>
<null>
picktestmulti__c
multi-picklist
multi-picklist
picktestmulti__c
4099
4099
39
<null>
<null>
picktestmulti__c
event
event
picktestmulti__c
1
1
39
0
0
39
0
0
39
0
0
39
2023-07-25 01:00:23
2023-07-25 01:00:23
picktestmulti__c
2026-02-10 11:01:10
2026-02-10 11:01:10
picktestmulti__c
0
0
39
id IN (1885, 3014)
Editor
2 rows
Reload Page
Table Result Auto Refresh
Cancel Running Statements
Add Row
Delete Row
Revert Selected
Preview Pending Changes
Submit
Tx: Auto
DDL
Find on Current Page
Table Result Local Filter
Record View
Table Coloring Options
Show Geo Viewer
Show Chart
CSV
Export Data…
Copy to Database…
Compare Data
View as
Show Options Menu
Project
Project
New File or Directory…...
|
79795
|
NULL
|
NULL
|
NULL
|
|
79797
|
2791
|
60
|
2026-05-28T06:43:17.299619+00:00
|
/Users/lukas/.screenpipe/data/data/2026-05-28/1779 /Users/lukas/.screenpipe/data/data/2026-05-28/1779950597299_m2.jpg...
|
PhpStorm
|
faVsco.js – FieldTransformer.php
|
1
|
NULL
|
monitor_2
|
NULL
|
NULL
|
NULL
|
NULL
|
Project: faVsco.js, menu
JY-20915-fix-missing-head Project: faVsco.js, menu
JY-20915-fix-missing-header-text-relay, menu
Start Listening for PHP Debug Connections
TextRelayServiceTest
Run 'TextRelayServiceTest'
Debug 'TextRelayServiceTest'
More Actions
JetBrains AI
Search Everywhere
IDE and Project Settings
Sync Changes
Hide This Notification
Code changed:
Hide
11
1
Previous Highlighted Error
Next Highlighted Error
<?php
namespace Jiminny\Http\Transformers;
use Jiminny\Models\Crm\Field;
use Jiminny\Models\Crm\Profile;
use League\Fractal\Resource\Collection;
use League\Fractal\TransformerAbstract;
class FieldTransformer extends TransformerAbstract
{
protected array $availableIncludes = [
'options',
];
private ?Profile $profile;
private bool $noDefault = false;
public function __construct(?Profile $profile = null)
{
$this->profile = $profile;
}
public function setNoDefault(bool $noDefault)
{
$this->noDefault = $noDefault;
}
public function transform(Field $field): array
{
$defaultValue = $field->default_value;
$type = $field->type;
if (\is_bool($defaultValue)) {
$defaultValue = (bool) $defaultValue;
}
return [
'id' => $field->id_string,
'objectType' => $field->object_type,
'label' => $field->label,
'fieldName' => $field->crm_provider_id,
'type' => $type,
'enabled' => $field->is_selectable,
'length' => $field->length,
'defaultValue' => $defaultValue,
];
}
public function includeOptions(Field $field): ?Collection
{
if ($field->isPicklist() && $values = $field->values) {
// if ($field->type === Field::TYPE_PICKLIST && $values = $field->values) {
// This gets a little complex. We need to check if this field has any record type constraints for the profile.
if (
$this->profile
&& ($recordType = $this->profile->{$field->object_type . 'RecordType'})
&& $recordType->fieldValues()->where('crm_field_id', $field->id)->exists()
) {
// Fetch the values specific for this record type.
$values = $recordType->fieldValues()->where('crm_field_id', $field->id)->get();
}
if ($this->noDefault) {
foreach ($values as $value) {
$value->is_default = false;
}
}
return $this->collection($values, new FieldValueTransformer());
}
return null;
}
}
A
id
B
uuid (UUID with time-low and time-high swapped)
C
crm_configuration_id
D
crm_provider_id
E
label
F
description
G
type
H
length
I
default_value
J
object_type
K...
|
[{"role":"AXButton","text" [{"role":"AXButton","text":"Project: faVsco.js, menu","depth":5,"bounds":{"left":0.025930852,"top":0.019952115,"width":0.03856383,"height":0.025538707},"on_screen":true,"help_text":"~/jiminny/app","role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"JY-20915-fix-missing-header-text-relay, menu","depth":5,"bounds":{"left":0.064494684,"top":0.019952115,"width":0.09740692,"height":0.025538707},"on_screen":true,"help_text":"Git Branch: JY-20915-fix-missing-header-text-relay","role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Start Listening for PHP Debug Connections","depth":5,"bounds":{"left":0.8374335,"top":0.019952115,"width":0.011303191,"height":0.025538707},"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"TextRelayServiceTest","depth":6,"bounds":{"left":0.85272604,"top":0.019952115,"width":0.062832445,"height":0.025538707},"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Run 'TextRelayServiceTest'","depth":6,"bounds":{"left":0.9155585,"top":0.019952115,"width":0.011303191,"height":0.025538707},"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Debug 'TextRelayServiceTest'","depth":6,"bounds":{"left":0.9268617,"top":0.019952115,"width":0.011303191,"height":0.025538707},"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"More Actions","depth":6,"bounds":{"left":0.9381649,"top":0.019952115,"width":0.011303191,"height":0.025538707},"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"JetBrains AI","depth":5,"bounds":{"left":0.96609044,"top":0.019952115,"width":0.011303191,"height":0.025538707},"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Search Everywhere","depth":5,"bounds":{"left":0.9773936,"top":0.019952115,"width":0.011303191,"height":0.025538707},"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"IDE and Project Settings","depth":5,"bounds":{"left":0.9886968,"top":0.019952115,"width":0.011303186,"height":0.025538707},"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Sync Changes","depth":4,"bounds":{"left":0.27027926,"top":1.0,"width":0.008643617,"height":0.0},"on_screen":false,"role_description":"button","is_enabled":false,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Hide This Notification","depth":4,"bounds":{"left":0.27027926,"top":1.0,"width":0.008643617,"height":0.0},"on_screen":false,"role_description":"button","is_enabled":false,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Code changed:","depth":4,"bounds":{"left":0.27027926,"top":1.0,"width":0.042220745,"height":0.0},"on_screen":false,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Hide","depth":4,"bounds":{"left":0.27027926,"top":1.0,"width":0.008643617,"height":0.0},"on_screen":false,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXStaticText","text":"11","depth":4,"bounds":{"left":0.37699467,"top":0.12529927,"width":0.008976064,"height":0.015163607},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"1","depth":4,"bounds":{"left":0.3879654,"top":0.12529927,"width":0.00731383,"height":0.015163607},"on_screen":true,"role_description":"text"},{"role":"AXButton","text":"Previous Highlighted Error","depth":4,"bounds":{"left":0.39694148,"top":0.123703115,"width":0.00731383,"height":0.018355945},"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Next Highlighted Error","depth":4,"bounds":{"left":0.40425533,"top":0.123703115,"width":0.006981383,"height":0.018355945},"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXTextArea","text":"<?php\n\nnamespace Jiminny\\Http\\Transformers;\n\nuse Jiminny\\Models\\Crm\\Field;\nuse Jiminny\\Models\\Crm\\Profile;\nuse League\\Fractal\\Resource\\Collection;\nuse League\\Fractal\\TransformerAbstract;\n\nclass FieldTransformer extends TransformerAbstract\n{\n protected array $availableIncludes = [\n 'options',\n ];\n private ?Profile $profile;\n\n private bool $noDefault = false;\n\n public function __construct(?Profile $profile = null)\n {\n $this->profile = $profile;\n }\n\n public function setNoDefault(bool $noDefault)\n {\n $this->noDefault = $noDefault;\n }\n\n public function transform(Field $field): array\n {\n $defaultValue = $field->default_value;\n $type = $field->type;\n\n if (\\is_bool($defaultValue)) {\n $defaultValue = (bool) $defaultValue;\n }\n\n return [\n 'id' => $field->id_string,\n 'objectType' => $field->object_type,\n 'label' => $field->label,\n 'fieldName' => $field->crm_provider_id,\n 'type' => $type,\n 'enabled' => $field->is_selectable,\n 'length' => $field->length,\n 'defaultValue' => $defaultValue,\n ];\n }\n\n public function includeOptions(Field $field): ?Collection\n {\n if ($field->isPicklist() && $values = $field->values) {\n// if ($field->type === Field::TYPE_PICKLIST && $values = $field->values) {\n // This gets a little complex. We need to check if this field has any record type constraints for the profile.\n if (\n $this->profile\n && ($recordType = $this->profile->{$field->object_type . 'RecordType'})\n && $recordType->fieldValues()->where('crm_field_id', $field->id)->exists()\n ) {\n // Fetch the values specific for this record type.\n $values = $recordType->fieldValues()->where('crm_field_id', $field->id)->get();\n }\n\n if ($this->noDefault) {\n foreach ($values as $value) {\n $value->is_default = false;\n }\n }\n\n return $this->collection($values, new FieldValueTransformer());\n }\n\n return null;\n }\n}","depth":4,"on_screen":true,"value":"<?php\n\nnamespace Jiminny\\Http\\Transformers;\n\nuse Jiminny\\Models\\Crm\\Field;\nuse Jiminny\\Models\\Crm\\Profile;\nuse League\\Fractal\\Resource\\Collection;\nuse League\\Fractal\\TransformerAbstract;\n\nclass FieldTransformer extends TransformerAbstract\n{\n protected array $availableIncludes = [\n 'options',\n ];\n private ?Profile $profile;\n\n private bool $noDefault = false;\n\n public function __construct(?Profile $profile = null)\n {\n $this->profile = $profile;\n }\n\n public function setNoDefault(bool $noDefault)\n {\n $this->noDefault = $noDefault;\n }\n\n public function transform(Field $field): array\n {\n $defaultValue = $field->default_value;\n $type = $field->type;\n\n if (\\is_bool($defaultValue)) {\n $defaultValue = (bool) $defaultValue;\n }\n\n return [\n 'id' => $field->id_string,\n 'objectType' => $field->object_type,\n 'label' => $field->label,\n 'fieldName' => $field->crm_provider_id,\n 'type' => $type,\n 'enabled' => $field->is_selectable,\n 'length' => $field->length,\n 'defaultValue' => $defaultValue,\n ];\n }\n\n public function includeOptions(Field $field): ?Collection\n {\n if ($field->isPicklist() && $values = $field->values) {\n// if ($field->type === Field::TYPE_PICKLIST && $values = $field->values) {\n // This gets a little complex. We need to check if this field has any record type constraints for the profile.\n if (\n $this->profile\n && ($recordType = $this->profile->{$field->object_type . 'RecordType'})\n && $recordType->fieldValues()->where('crm_field_id', $field->id)->exists()\n ) {\n // Fetch the values specific for this record type.\n $values = $recordType->fieldValues()->where('crm_field_id', $field->id)->get();\n }\n\n if ($this->noDefault) {\n foreach ($values as $value) {\n $value->is_default = false;\n }\n }\n\n return $this->collection($values, new FieldValueTransformer());\n }\n\n return null;\n }\n}","role_description":"text entry area","is_enabled":true,"is_focused":true,"is_selected":false,"is_expanded":false},{"role":"AXStaticText","text":"A","depth":4,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"id","depth":5,"bounds":{"left":0.27027926,"top":1.0,"width":0.020944148,"height":0.0},"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"B","depth":4,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"uuid (UUID with time-low and time-high swapped)","depth":5,"bounds":{"left":0.27027926,"top":1.0,"width":0.020944148,"height":0.0},"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"C","depth":4,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"crm_configuration_id","depth":5,"bounds":{"left":0.27027926,"top":1.0,"width":0.020944148,"height":0.0},"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"D","depth":4,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"crm_provider_id","depth":5,"bounds":{"left":0.27027926,"top":1.0,"width":0.020944148,"height":0.0},"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"E","depth":4,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"label","depth":5,"bounds":{"left":0.27027926,"top":1.0,"width":0.020944148,"height":0.0},"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"F","depth":4,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"description","depth":5,"bounds":{"left":0.27027926,"top":1.0,"width":0.020944148,"height":0.0},"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"G","depth":4,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"type","depth":5,"bounds":{"left":0.27027926,"top":1.0,"width":0.020944148,"height":0.0},"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"H","depth":4,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"length","depth":5,"bounds":{"left":0.27027926,"top":1.0,"width":0.020944148,"height":0.0},"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"I","depth":4,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"default_value","depth":5,"bounds":{"left":0.27027926,"top":1.0,"width":0.020944148,"height":0.0},"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"J","depth":4,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"object_type","depth":5,"bounds":{"left":0.27027926,"top":1.0,"width":0.020944148,"height":0.0},"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"K","depth":4,"on_screen":false,"role_description":"text"}]...
|
-8122398310849236392
|
-8057802409186872909
|
visual_change
|
accessibility
|
NULL
|
Project: faVsco.js, menu
JY-20915-fix-missing-head Project: faVsco.js, menu
JY-20915-fix-missing-header-text-relay, menu
Start Listening for PHP Debug Connections
TextRelayServiceTest
Run 'TextRelayServiceTest'
Debug 'TextRelayServiceTest'
More Actions
JetBrains AI
Search Everywhere
IDE and Project Settings
Sync Changes
Hide This Notification
Code changed:
Hide
11
1
Previous Highlighted Error
Next Highlighted Error
<?php
namespace Jiminny\Http\Transformers;
use Jiminny\Models\Crm\Field;
use Jiminny\Models\Crm\Profile;
use League\Fractal\Resource\Collection;
use League\Fractal\TransformerAbstract;
class FieldTransformer extends TransformerAbstract
{
protected array $availableIncludes = [
'options',
];
private ?Profile $profile;
private bool $noDefault = false;
public function __construct(?Profile $profile = null)
{
$this->profile = $profile;
}
public function setNoDefault(bool $noDefault)
{
$this->noDefault = $noDefault;
}
public function transform(Field $field): array
{
$defaultValue = $field->default_value;
$type = $field->type;
if (\is_bool($defaultValue)) {
$defaultValue = (bool) $defaultValue;
}
return [
'id' => $field->id_string,
'objectType' => $field->object_type,
'label' => $field->label,
'fieldName' => $field->crm_provider_id,
'type' => $type,
'enabled' => $field->is_selectable,
'length' => $field->length,
'defaultValue' => $defaultValue,
];
}
public function includeOptions(Field $field): ?Collection
{
if ($field->isPicklist() && $values = $field->values) {
// if ($field->type === Field::TYPE_PICKLIST && $values = $field->values) {
// This gets a little complex. We need to check if this field has any record type constraints for the profile.
if (
$this->profile
&& ($recordType = $this->profile->{$field->object_type . 'RecordType'})
&& $recordType->fieldValues()->where('crm_field_id', $field->id)->exists()
) {
// Fetch the values specific for this record type.
$values = $recordType->fieldValues()->where('crm_field_id', $field->id)->get();
}
if ($this->noDefault) {
foreach ($values as $value) {
$value->is_default = false;
}
}
return $this->collection($values, new FieldValueTransformer());
}
return null;
}
}
A
id
B
uuid (UUID with time-low and time-high swapped)
C
crm_configuration_id
D
crm_provider_id
E
label
F
description
G
type
H
length
I
default_value
J
object_type
K...
|
79796
|
NULL
|
NULL
|
NULL
|
|
79756
|
2790
|
19
|
2026-05-28T06:41:44.388401+00:00
|
/Users/lukas/.screenpipe/data/data/2026-05-28/1779 /Users/lukas/.screenpipe/data/data/2026-05-28/1779950504388_m1.jpg...
|
PhpStorm
|
faVsco.js – FieldTransformer.php
|
1
|
NULL
|
monitor_1
|
NULL
|
NULL
|
NULL
|
NULL
|
Project: faVsco.js, menu
JY-20915-fix-missing-head Project: faVsco.js, menu
JY-20915-fix-missing-header-text-relay, menu
Start Listening for PHP Debug Connections
TextRelayServiceTest
Run 'TextRelayServiceTest'
Debug 'TextRelayServiceTest'
More Actions
JetBrains AI
Search Everywhere
IDE and Project Settings
Sync Changes
Hide This Notification
Code changed:
Hide
11
1
Previous Highlighted Error
Next Highlighted Error
<?php
namespace Jiminny\Http\Transformers;
use Jiminny\Models\Crm\Field;
use Jiminny\Models\Crm\Profile;
use League\Fractal\Resource\Collection;
use League\Fractal\TransformerAbstract;
class FieldTransformer extends TransformerAbstract
{
protected array $availableIncludes = [
'options',
];
private ?Profile $profile;
private bool $noDefault = false;
public function __construct(?Profile $profile = null)
{
$this->profile = $profile;
}
public function setNoDefault(bool $noDefault)
{
$this->noDefault = $noDefault;
}
public function transform(Field $field): array
{
$defaultValue = $field->default_value;
$type = $field->type;
if (\is_bool($defaultValue)) {
$defaultValue = (bool) $defaultValue;
}
return [
'id' => $field->id_string,
'objectType' => $field->object_type,
'label' => $field->label,
'fieldName' => $field->crm_provider_id,
'type' => $type,
'enabled' => $field->is_selectable,
'length' => $field->length,
'defaultValue' => $defaultValue,
];
}
public function includeOptions(Field $field): ?Collection
{
if ($field->isPicklist() && $values = $field->values) {
// if ($field->type === Field::TYPE_PICKLIST && $values = $field->values) {
// This gets a little complex. We need to check if this field has any record type constraints for the profile.
if (
$this->profile
&& ($recordType = $this->profile->{$field->object_type . 'RecordType'})
&& $recordType->fieldValues()->where('crm_field_id', $field->id)->exists()
) {
// Fetch the values specific for this record type.
$values = $recordType->fieldValues()->where('crm_field_id', $field->id)->get();
}
if ($this->noDefault) {
foreach ($values as $value) {
$value->is_default = false;
}
}
return $this->collection($values, new FieldValueTransformer());
}
return null;
}
}
A
id
B
uuid (UUID with time-low and time-high swapped)
C
crm_configuration_id
D
crm_provider_id
E
label
F
description
G
type
H
length
I
default_value
J
object_type
K
is_selectable
L
is_mandatory
M
is_filterable
N
is_indexable
O
created_at
P
updated_at
Q
is_readonly
Select All
1885
1885
39
58a51d4d-0ca7-49f0-9b2c-e16027877cc5
58a51d4d-0ca7-49f0-9b2c-e16027877cc5
picktestmulti__c
39
39
39
ReminderDateTime
ReminderDateTime
picktestmulti__c
Reminder Date/Time
Reminder Date/Time
picktestmulti__c
<null>
<null>
picktestmulti__c
datetime
datetime
picktestmulti__c
<null>
<null>
39
<null>
<null>
picktestmulti__c
event
event
picktestmulti__c
1
1
39
0
0
39
0
0
39
0
0
39
2022-12-15 14:53:05
2022-12-15 14:53:05
picktestmulti__c
2025-09-29 11:00:32
2025-09-29 11:00:32
picktestmulti__c
0
0
39
3014
3014
39
a3d3df5a-eaa1-43d0-b95e-1ff4bec8c428
a3d3df5a-eaa1-43d0-b95e-1ff4bec8c428
picktestmulti__c
39
39
39
picktestmulti__c...
|
[{"role":"AXButton","text" [{"role":"AXButton","text":"Project: faVsco.js, menu","depth":5,"on_screen":true,"help_text":"~/jiminny/app","role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"JY-20915-fix-missing-header-text-relay, menu","depth":5,"on_screen":true,"help_text":"Git Branch: JY-20915-fix-missing-header-text-relay","role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Start Listening for PHP Debug Connections","depth":5,"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"TextRelayServiceTest","depth":6,"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Run 'TextRelayServiceTest'","depth":6,"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Debug 'TextRelayServiceTest'","depth":6,"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"More Actions","depth":6,"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"JetBrains AI","depth":5,"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Search Everywhere","depth":5,"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"IDE and Project Settings","depth":5,"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Sync Changes","depth":4,"bounds":{"left":0.0,"top":0.0,"width":0.018055556,"height":0.026666667},"on_screen":false,"role_description":"button","is_enabled":false,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Hide This Notification","depth":4,"bounds":{"left":0.0,"top":0.0,"width":0.018055556,"height":0.026666667},"on_screen":false,"role_description":"button","is_enabled":false,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Code changed:","depth":4,"bounds":{"left":0.0,"top":0.0,"width":0.088194445,"height":0.027777778},"on_screen":false,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Hide","depth":4,"bounds":{"left":0.0,"top":0.0,"width":0.018055556,"height":0.026666667},"on_screen":false,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXStaticText","text":"11","depth":4,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"1","depth":4,"on_screen":true,"role_description":"text"},{"role":"AXButton","text":"Previous Highlighted Error","depth":4,"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Next Highlighted Error","depth":4,"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXTextArea","text":"<?php\n\nnamespace Jiminny\\Http\\Transformers;\n\nuse Jiminny\\Models\\Crm\\Field;\nuse Jiminny\\Models\\Crm\\Profile;\nuse League\\Fractal\\Resource\\Collection;\nuse League\\Fractal\\TransformerAbstract;\n\nclass FieldTransformer extends TransformerAbstract\n{\n protected array $availableIncludes = [\n 'options',\n ];\n private ?Profile $profile;\n\n private bool $noDefault = false;\n\n public function __construct(?Profile $profile = null)\n {\n $this->profile = $profile;\n }\n\n public function setNoDefault(bool $noDefault)\n {\n $this->noDefault = $noDefault;\n }\n\n public function transform(Field $field): array\n {\n $defaultValue = $field->default_value;\n $type = $field->type;\n\n if (\\is_bool($defaultValue)) {\n $defaultValue = (bool) $defaultValue;\n }\n\n return [\n 'id' => $field->id_string,\n 'objectType' => $field->object_type,\n 'label' => $field->label,\n 'fieldName' => $field->crm_provider_id,\n 'type' => $type,\n 'enabled' => $field->is_selectable,\n 'length' => $field->length,\n 'defaultValue' => $defaultValue,\n ];\n }\n\n public function includeOptions(Field $field): ?Collection\n {\n if ($field->isPicklist() && $values = $field->values) {\n// if ($field->type === Field::TYPE_PICKLIST && $values = $field->values) {\n // This gets a little complex. We need to check if this field has any record type constraints for the profile.\n if (\n $this->profile\n && ($recordType = $this->profile->{$field->object_type . 'RecordType'})\n && $recordType->fieldValues()->where('crm_field_id', $field->id)->exists()\n ) {\n // Fetch the values specific for this record type.\n $values = $recordType->fieldValues()->where('crm_field_id', $field->id)->get();\n }\n\n if ($this->noDefault) {\n foreach ($values as $value) {\n $value->is_default = false;\n }\n }\n\n return $this->collection($values, new FieldValueTransformer());\n }\n\n return null;\n }\n}","depth":4,"on_screen":true,"value":"<?php\n\nnamespace Jiminny\\Http\\Transformers;\n\nuse Jiminny\\Models\\Crm\\Field;\nuse Jiminny\\Models\\Crm\\Profile;\nuse League\\Fractal\\Resource\\Collection;\nuse League\\Fractal\\TransformerAbstract;\n\nclass FieldTransformer extends TransformerAbstract\n{\n protected array $availableIncludes = [\n 'options',\n ];\n private ?Profile $profile;\n\n private bool $noDefault = false;\n\n public function __construct(?Profile $profile = null)\n {\n $this->profile = $profile;\n }\n\n public function setNoDefault(bool $noDefault)\n {\n $this->noDefault = $noDefault;\n }\n\n public function transform(Field $field): array\n {\n $defaultValue = $field->default_value;\n $type = $field->type;\n\n if (\\is_bool($defaultValue)) {\n $defaultValue = (bool) $defaultValue;\n }\n\n return [\n 'id' => $field->id_string,\n 'objectType' => $field->object_type,\n 'label' => $field->label,\n 'fieldName' => $field->crm_provider_id,\n 'type' => $type,\n 'enabled' => $field->is_selectable,\n 'length' => $field->length,\n 'defaultValue' => $defaultValue,\n ];\n }\n\n public function includeOptions(Field $field): ?Collection\n {\n if ($field->isPicklist() && $values = $field->values) {\n// if ($field->type === Field::TYPE_PICKLIST && $values = $field->values) {\n // This gets a little complex. We need to check if this field has any record type constraints for the profile.\n if (\n $this->profile\n && ($recordType = $this->profile->{$field->object_type . 'RecordType'})\n && $recordType->fieldValues()->where('crm_field_id', $field->id)->exists()\n ) {\n // Fetch the values specific for this record type.\n $values = $recordType->fieldValues()->where('crm_field_id', $field->id)->get();\n }\n\n if ($this->noDefault) {\n foreach ($values as $value) {\n $value->is_default = false;\n }\n }\n\n return $this->collection($values, new FieldValueTransformer());\n }\n\n return null;\n }\n}","role_description":"text entry area","is_enabled":true,"is_focused":true,"is_selected":false,"is_expanded":false},{"role":"AXStaticText","text":"A","depth":4,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"id","depth":5,"bounds":{"left":0.0,"top":0.0,"width":0.04375,"height":0.03},"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"B","depth":4,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"uuid (UUID with time-low and time-high swapped)","depth":5,"bounds":{"left":0.0,"top":0.0,"width":0.04375,"height":0.03},"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"C","depth":4,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"crm_configuration_id","depth":5,"bounds":{"left":0.0,"top":0.0,"width":0.04375,"height":0.03},"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"D","depth":4,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"crm_provider_id","depth":5,"bounds":{"left":0.0,"top":0.0,"width":0.04375,"height":0.03},"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"E","depth":4,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"label","depth":5,"bounds":{"left":0.0,"top":0.0,"width":0.04375,"height":0.03},"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"F","depth":4,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"description","depth":5,"bounds":{"left":0.0,"top":0.0,"width":0.04375,"height":0.03},"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"G","depth":4,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"type","depth":5,"bounds":{"left":0.0,"top":0.0,"width":0.04375,"height":0.03},"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"H","depth":4,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"length","depth":5,"bounds":{"left":0.0,"top":0.0,"width":0.04375,"height":0.03},"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"I","depth":4,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"default_value","depth":5,"bounds":{"left":0.0,"top":0.0,"width":0.04375,"height":0.03},"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"J","depth":4,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"object_type","depth":5,"bounds":{"left":0.0,"top":0.0,"width":0.04375,"height":0.03},"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"K","depth":4,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"is_selectable","depth":5,"bounds":{"left":0.0,"top":0.0,"width":0.04375,"height":0.03},"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"L","depth":4,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"is_mandatory","depth":5,"bounds":{"left":0.0,"top":0.0,"width":0.04375,"height":0.03},"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"M","depth":4,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"is_filterable","depth":5,"bounds":{"left":0.0,"top":0.0,"width":0.04375,"height":0.03},"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"N","depth":4,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"is_indexable","depth":5,"bounds":{"left":0.0,"top":0.0,"width":0.04375,"height":0.03},"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"O","depth":4,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"created_at","depth":5,"bounds":{"left":0.0,"top":0.0,"width":0.04375,"height":0.03},"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"P","depth":4,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"updated_at","depth":5,"bounds":{"left":0.0,"top":0.0,"width":0.04375,"height":0.03},"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"Q","depth":4,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"is_readonly","depth":5,"bounds":{"left":0.0,"top":0.0,"width":0.04375,"height":0.03},"on_screen":false,"role_description":"text"},{"role":"AXButton","text":"Select All","depth":4,"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXCell","text":"1885","depth":6,"on_screen":true,"role_description":"cell"},{"role":"AXStaticText","text":"1885","depth":7,"on_screen":true,"role_description":"text"},{"role":"AXTextArea","text":"39","depth":8,"bounds":{"left":0.0,"top":0.0,"width":0.16458334,"height":0.024444444},"on_screen":false,"value":"39","role_description":"text entry area","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXCell","text":"58a51d4d-0ca7-49f0-9b2c-e16027877cc5","depth":6,"on_screen":true,"role_description":"cell"},{"role":"AXStaticText","text":"58a51d4d-0ca7-49f0-9b2c-e16027877cc5","depth":7,"on_screen":true,"role_description":"text"},{"role":"AXTextArea","text":"picktestmulti__c","depth":8,"bounds":{"left":0.0,"top":0.0,"width":0.10486111,"height":0.024444444},"on_screen":false,"value":"picktestmulti__c","role_description":"text entry area","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXCell","text":"39","depth":6,"on_screen":true,"role_description":"cell"},{"role":"AXStaticText","text":"39","depth":7,"on_screen":true,"role_description":"text"},{"role":"AXTextArea","text":"39","depth":8,"bounds":{"left":0.0,"top":0.0,"width":0.16458334,"height":0.024444444},"on_screen":false,"value":"39","role_description":"text entry area","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXCell","text":"ReminderDateTime","depth":6,"on_screen":true,"role_description":"cell"},{"role":"AXStaticText","text":"ReminderDateTime","depth":7,"on_screen":true,"role_description":"text"},{"role":"AXTextArea","text":"picktestmulti__c","depth":8,"bounds":{"left":0.0,"top":0.0,"width":0.10486111,"height":0.024444444},"on_screen":false,"value":"picktestmulti__c","role_description":"text entry area","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXCell","text":"Reminder Date/Time","depth":6,"on_screen":true,"role_description":"cell"},{"role":"AXStaticText","text":"Reminder Date/Time","depth":7,"on_screen":true,"role_description":"text"},{"role":"AXTextArea","text":"picktestmulti__c","depth":8,"bounds":{"left":0.0,"top":0.0,"width":0.10486111,"height":0.024444444},"on_screen":false,"value":"picktestmulti__c","role_description":"text entry area","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXCell","text":"<null>","depth":6,"on_screen":true,"role_description":"cell"},{"role":"AXStaticText","text":"<null>","depth":7,"on_screen":true,"role_description":"text"},{"role":"AXTextArea","text":"picktestmulti__c","depth":8,"bounds":{"left":0.0,"top":0.0,"width":0.10486111,"height":0.024444444},"on_screen":false,"value":"picktestmulti__c","role_description":"text entry area","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXCell","text":"datetime","depth":6,"on_screen":true,"role_description":"cell"},{"role":"AXStaticText","text":"datetime","depth":7,"on_screen":true,"role_description":"text"},{"role":"AXTextArea","text":"picktestmulti__c","depth":8,"bounds":{"left":0.0,"top":0.0,"width":0.10486111,"height":0.024444444},"on_screen":false,"value":"picktestmulti__c","role_description":"text entry area","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXCell","text":"<null>","depth":6,"on_screen":true,"role_description":"cell"},{"role":"AXStaticText","text":"<null>","depth":7,"on_screen":true,"role_description":"text"},{"role":"AXTextArea","text":"39","depth":8,"bounds":{"left":0.0,"top":0.0,"width":0.16458334,"height":0.024444444},"on_screen":false,"value":"39","role_description":"text entry area","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXCell","text":"<null>","depth":6,"on_screen":true,"role_description":"cell"},{"role":"AXStaticText","text":"<null>","depth":7,"on_screen":true,"role_description":"text"},{"role":"AXTextArea","text":"picktestmulti__c","depth":8,"bounds":{"left":0.0,"top":0.0,"width":0.10486111,"height":0.024444444},"on_screen":false,"value":"picktestmulti__c","role_description":"text entry area","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXCell","text":"event","depth":6,"on_screen":true,"role_description":"cell"},{"role":"AXStaticText","text":"event","depth":7,"on_screen":true,"role_description":"text"},{"role":"AXTextArea","text":"picktestmulti__c","depth":8,"bounds":{"left":0.0,"top":0.0,"width":0.10486111,"height":0.024444444},"on_screen":false,"value":"picktestmulti__c","role_description":"text entry area","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXCell","text":"1","depth":6,"on_screen":false,"role_description":"cell"},{"role":"AXStaticText","text":"1","depth":7,"on_screen":false,"role_description":"text"},{"role":"AXTextArea","text":"39","depth":8,"bounds":{"left":0.0,"top":0.0,"width":0.16458334,"height":0.024444444},"on_screen":false,"value":"39","role_description":"text entry area","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXCell","text":"0","depth":6,"on_screen":false,"role_description":"cell"},{"role":"AXStaticText","text":"0","depth":7,"on_screen":false,"role_description":"text"},{"role":"AXTextArea","text":"39","depth":8,"bounds":{"left":0.0,"top":0.0,"width":0.16458334,"height":0.024444444},"on_screen":false,"value":"39","role_description":"text entry area","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXCell","text":"0","depth":6,"on_screen":false,"role_description":"cell"},{"role":"AXStaticText","text":"0","depth":7,"on_screen":false,"role_description":"text"},{"role":"AXTextArea","text":"39","depth":8,"bounds":{"left":0.0,"top":0.0,"width":0.16458334,"height":0.024444444},"on_screen":false,"value":"39","role_description":"text entry area","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXCell","text":"0","depth":6,"on_screen":false,"role_description":"cell"},{"role":"AXStaticText","text":"0","depth":7,"on_screen":false,"role_description":"text"},{"role":"AXTextArea","text":"39","depth":8,"bounds":{"left":0.0,"top":0.0,"width":0.16458334,"height":0.024444444},"on_screen":false,"value":"39","role_description":"text entry area","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXCell","text":"2022-12-15 14:53:05","depth":6,"on_screen":false,"role_description":"cell"},{"role":"AXStaticText","text":"2022-12-15 14:53:05","depth":7,"on_screen":false,"role_description":"text"},{"role":"AXTextArea","text":"picktestmulti__c","depth":8,"bounds":{"left":0.0,"top":0.0,"width":0.10486111,"height":0.024444444},"on_screen":false,"value":"picktestmulti__c","role_description":"text entry area","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXCell","text":"2025-09-29 11:00:32","depth":6,"on_screen":false,"role_description":"cell"},{"role":"AXStaticText","text":"2025-09-29 11:00:32","depth":7,"on_screen":false,"role_description":"text"},{"role":"AXTextArea","text":"picktestmulti__c","depth":8,"bounds":{"left":0.0,"top":0.0,"width":0.10486111,"height":0.024444444},"on_screen":false,"value":"picktestmulti__c","role_description":"text entry area","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXCell","text":"0","depth":6,"on_screen":false,"role_description":"cell"},{"role":"AXStaticText","text":"0","depth":7,"on_screen":false,"role_description":"text"},{"role":"AXTextArea","text":"39","depth":8,"bounds":{"left":0.0,"top":0.0,"width":0.16458334,"height":0.024444444},"on_screen":false,"value":"39","role_description":"text entry area","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXCell","text":"3014","depth":6,"on_screen":true,"role_description":"cell"},{"role":"AXStaticText","text":"3014","depth":7,"on_screen":true,"role_description":"text"},{"role":"AXTextArea","text":"39","depth":8,"bounds":{"left":0.0,"top":0.0,"width":0.16458334,"height":0.024444444},"on_screen":false,"value":"39","role_description":"text entry area","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXCell","text":"a3d3df5a-eaa1-43d0-b95e-1ff4bec8c428","depth":6,"on_screen":true,"role_description":"cell"},{"role":"AXStaticText","text":"a3d3df5a-eaa1-43d0-b95e-1ff4bec8c428","depth":7,"on_screen":true,"role_description":"text"},{"role":"AXTextArea","text":"picktestmulti__c","depth":8,"bounds":{"left":0.0,"top":0.0,"width":0.10486111,"height":0.024444444},"on_screen":false,"value":"picktestmulti__c","role_description":"text entry area","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXCell","text":"39","depth":6,"on_screen":true,"role_description":"cell"},{"role":"AXStaticText","text":"39","depth":7,"on_screen":true,"role_description":"text"},{"role":"AXTextArea","text":"39","depth":8,"bounds":{"left":0.0,"top":0.0,"width":0.16458334,"height":0.024444444},"on_screen":false,"value":"39","role_description":"text entry area","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXCell","text":"picktestmulti__c","depth":6,"on_screen":true,"role_description":"cell"}]...
|
-691517112347820057
|
442988178151125363
|
visual_change
|
accessibility
|
NULL
|
Project: faVsco.js, menu
JY-20915-fix-missing-head Project: faVsco.js, menu
JY-20915-fix-missing-header-text-relay, menu
Start Listening for PHP Debug Connections
TextRelayServiceTest
Run 'TextRelayServiceTest'
Debug 'TextRelayServiceTest'
More Actions
JetBrains AI
Search Everywhere
IDE and Project Settings
Sync Changes
Hide This Notification
Code changed:
Hide
11
1
Previous Highlighted Error
Next Highlighted Error
<?php
namespace Jiminny\Http\Transformers;
use Jiminny\Models\Crm\Field;
use Jiminny\Models\Crm\Profile;
use League\Fractal\Resource\Collection;
use League\Fractal\TransformerAbstract;
class FieldTransformer extends TransformerAbstract
{
protected array $availableIncludes = [
'options',
];
private ?Profile $profile;
private bool $noDefault = false;
public function __construct(?Profile $profile = null)
{
$this->profile = $profile;
}
public function setNoDefault(bool $noDefault)
{
$this->noDefault = $noDefault;
}
public function transform(Field $field): array
{
$defaultValue = $field->default_value;
$type = $field->type;
if (\is_bool($defaultValue)) {
$defaultValue = (bool) $defaultValue;
}
return [
'id' => $field->id_string,
'objectType' => $field->object_type,
'label' => $field->label,
'fieldName' => $field->crm_provider_id,
'type' => $type,
'enabled' => $field->is_selectable,
'length' => $field->length,
'defaultValue' => $defaultValue,
];
}
public function includeOptions(Field $field): ?Collection
{
if ($field->isPicklist() && $values = $field->values) {
// if ($field->type === Field::TYPE_PICKLIST && $values = $field->values) {
// This gets a little complex. We need to check if this field has any record type constraints for the profile.
if (
$this->profile
&& ($recordType = $this->profile->{$field->object_type . 'RecordType'})
&& $recordType->fieldValues()->where('crm_field_id', $field->id)->exists()
) {
// Fetch the values specific for this record type.
$values = $recordType->fieldValues()->where('crm_field_id', $field->id)->get();
}
if ($this->noDefault) {
foreach ($values as $value) {
$value->is_default = false;
}
}
return $this->collection($values, new FieldValueTransformer());
}
return null;
}
}
A
id
B
uuid (UUID with time-low and time-high swapped)
C
crm_configuration_id
D
crm_provider_id
E
label
F
description
G
type
H
length
I
default_value
J
object_type
K
is_selectable
L
is_mandatory
M
is_filterable
N
is_indexable
O
created_at
P
updated_at
Q
is_readonly
Select All
1885
1885
39
58a51d4d-0ca7-49f0-9b2c-e16027877cc5
58a51d4d-0ca7-49f0-9b2c-e16027877cc5
picktestmulti__c
39
39
39
ReminderDateTime
ReminderDateTime
picktestmulti__c
Reminder Date/Time
Reminder Date/Time
picktestmulti__c
<null>
<null>
picktestmulti__c
datetime
datetime
picktestmulti__c
<null>
<null>
39
<null>
<null>
picktestmulti__c
event
event
picktestmulti__c
1
1
39
0
0
39
0
0
39
0
0
39
2022-12-15 14:53:05
2022-12-15 14:53:05
picktestmulti__c
2025-09-29 11:00:32
2025-09-29 11:00:32
picktestmulti__c
0
0
39
3014
3014
39
a3d3df5a-eaa1-43d0-b95e-1ff4bec8c428
a3d3df5a-eaa1-43d0-b95e-1ff4bec8c428
picktestmulti__c
39
39
39
picktestmulti__c...
|
79754
|
NULL
|
NULL
|
NULL
|
|
79753
|
2791
|
31
|
2026-05-28T06:41:20.791377+00:00
|
/Users/lukas/.screenpipe/data/data/2026-05-28/1779 /Users/lukas/.screenpipe/data/data/2026-05-28/1779950480791_m2.jpg...
|
PhpStorm
|
faVsco.js – FieldTransformer.php
|
1
|
NULL
|
monitor_2
|
NULL
|
NULL
|
NULL
|
NULL
|
Project: faVsco.js, menu
JY-20915-fix-missing-head Project: faVsco.js, menu
JY-20915-fix-missing-header-text-relay, menu
Start Listening for PHP Debug Connections
TextRelayServiceTest
Run 'TextRelayServiceTest'
Debug 'TextRelayServiceTest'
More Actions
JetBrains AI
Search Everywhere
IDE and Project Settings
Sync Changes
Hide This Notification
Code changed:
Hide
12
1
Previous Highlighted Error
Next Highlighted Error
<?php
namespace Jiminny\Http\Transformers;
use Jiminny\Models\Crm\Field;
use Jiminny\Models\Crm\Profile;
use League\Fractal\Resource\Collection;
use League\Fractal\TransformerAbstract;
class FieldTransformer extends TransformerAbstract
{
protected array $availableIncludes = [
'options',
];
private ?Profile $profile;
private bool $noDefault = false;
public function __construct(?Profile $profile = null)
{
$this->profile = $profile;
}
public function setNoDefault(bool $noDefault)
{
$this->noDefault = $noDefault;
}
public function transform(Field $field): array
{
$defaultValue = $field->default_value;
$type = $field->type;
if (\is_bool($defaultValue)) {
$defaultValue = (bool) $defaultValue;
}
return [
'id' => $field->id_string,
'objectType' => $field->object_type,
'label' => $field->label,
'fieldName' => $field->crm_provider_id,
'type' => $type,
'enabled' => $field->is_selectable,
'length' => $field->length,
'defaultValue' => $defaultValue,
];
}
public function includeOptions(Field $field): ?Collection
{
if ($field->type === Field::TYPE_PICKLIST && $values = $field->values) {
// if ($field->type === Field::TYPE_PICKLIST && $values = $field->values) {
// This gets a little complex. We need to check if this field has any record type constraints for the profile.
if (
$this->profile
&& ($recordType = $this->profile->{$field->object_type . 'RecordType'})
&& $recordType->fieldValues()->where('crm_field_id', $field->id)->exists()
) {
// Fetch the values specific for this record type.
$values = $recordType->fieldValues()->where('crm_field_id', $field->id)->get();
}
if ($this->noDefault) {
foreach ($values as $value) {
$value->is_default = false;
}
}
return $this->collection($values, new FieldValueTransformer());
}
return null;
}
}...
|
[{"role":"AXButton","text" [{"role":"AXButton","text":"Project: faVsco.js, menu","depth":5,"bounds":{"left":0.025930852,"top":0.019952115,"width":0.03856383,"height":0.025538707},"on_screen":true,"help_text":"~/jiminny/app","role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"JY-20915-fix-missing-header-text-relay, menu","depth":5,"bounds":{"left":0.064494684,"top":0.019952115,"width":0.09740692,"height":0.025538707},"on_screen":true,"help_text":"Git Branch: JY-20915-fix-missing-header-text-relay","role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Start Listening for PHP Debug Connections","depth":5,"bounds":{"left":0.8374335,"top":0.019952115,"width":0.011303191,"height":0.025538707},"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"TextRelayServiceTest","depth":6,"bounds":{"left":0.85272604,"top":0.019952115,"width":0.062832445,"height":0.025538707},"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Run 'TextRelayServiceTest'","depth":6,"bounds":{"left":0.9155585,"top":0.019952115,"width":0.011303191,"height":0.025538707},"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Debug 'TextRelayServiceTest'","depth":6,"bounds":{"left":0.9268617,"top":0.019952115,"width":0.011303191,"height":0.025538707},"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"More Actions","depth":6,"bounds":{"left":0.9381649,"top":0.019952115,"width":0.011303191,"height":0.025538707},"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"JetBrains AI","depth":5,"bounds":{"left":0.96609044,"top":0.019952115,"width":0.011303191,"height":0.025538707},"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Search Everywhere","depth":5,"bounds":{"left":0.9773936,"top":0.019952115,"width":0.011303191,"height":0.025538707},"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"IDE and Project Settings","depth":5,"bounds":{"left":0.9886968,"top":0.019952115,"width":0.011303186,"height":0.025538707},"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Sync Changes","depth":4,"bounds":{"left":0.27027926,"top":1.0,"width":0.008643617,"height":0.0},"on_screen":false,"role_description":"button","is_enabled":false,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Hide This Notification","depth":4,"bounds":{"left":0.27027926,"top":1.0,"width":0.008643617,"height":0.0},"on_screen":false,"role_description":"button","is_enabled":false,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Code changed:","depth":4,"bounds":{"left":0.27027926,"top":1.0,"width":0.042220745,"height":0.0},"on_screen":false,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Hide","depth":4,"bounds":{"left":0.27027926,"top":1.0,"width":0.008643617,"height":0.0},"on_screen":false,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXStaticText","text":"12","depth":4,"bounds":{"left":0.37632978,"top":0.12529927,"width":0.009640957,"height":0.015163607},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"1","depth":4,"bounds":{"left":0.3879654,"top":0.12529927,"width":0.00731383,"height":0.015163607},"on_screen":true,"role_description":"text"},{"role":"AXButton","text":"Previous Highlighted Error","depth":4,"bounds":{"left":0.39694148,"top":0.123703115,"width":0.00731383,"height":0.018355945},"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Next Highlighted Error","depth":4,"bounds":{"left":0.40425533,"top":0.123703115,"width":0.006981383,"height":0.018355945},"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXTextArea","text":"<?php\n\nnamespace Jiminny\\Http\\Transformers;\n\nuse Jiminny\\Models\\Crm\\Field;\nuse Jiminny\\Models\\Crm\\Profile;\nuse League\\Fractal\\Resource\\Collection;\nuse League\\Fractal\\TransformerAbstract;\n\nclass FieldTransformer extends TransformerAbstract\n{\n protected array $availableIncludes = [\n 'options',\n ];\n private ?Profile $profile;\n\n private bool $noDefault = false;\n\n public function __construct(?Profile $profile = null)\n {\n $this->profile = $profile;\n }\n\n public function setNoDefault(bool $noDefault)\n {\n $this->noDefault = $noDefault;\n }\n\n public function transform(Field $field): array\n {\n $defaultValue = $field->default_value;\n $type = $field->type;\n\n if (\\is_bool($defaultValue)) {\n $defaultValue = (bool) $defaultValue;\n }\n\n return [\n 'id' => $field->id_string,\n 'objectType' => $field->object_type,\n 'label' => $field->label,\n 'fieldName' => $field->crm_provider_id,\n 'type' => $type,\n 'enabled' => $field->is_selectable,\n 'length' => $field->length,\n 'defaultValue' => $defaultValue,\n ];\n }\n\n public function includeOptions(Field $field): ?Collection\n {\n if ($field->type === Field::TYPE_PICKLIST && $values = $field->values) {\n// if ($field->type === Field::TYPE_PICKLIST && $values = $field->values) {\n // This gets a little complex. We need to check if this field has any record type constraints for the profile.\n if (\n $this->profile\n && ($recordType = $this->profile->{$field->object_type . 'RecordType'})\n && $recordType->fieldValues()->where('crm_field_id', $field->id)->exists()\n ) {\n // Fetch the values specific for this record type.\n $values = $recordType->fieldValues()->where('crm_field_id', $field->id)->get();\n }\n\n if ($this->noDefault) {\n foreach ($values as $value) {\n $value->is_default = false;\n }\n }\n\n return $this->collection($values, new FieldValueTransformer());\n }\n\n return null;\n }\n}","depth":4,"on_screen":true,"value":"<?php\n\nnamespace Jiminny\\Http\\Transformers;\n\nuse Jiminny\\Models\\Crm\\Field;\nuse Jiminny\\Models\\Crm\\Profile;\nuse League\\Fractal\\Resource\\Collection;\nuse League\\Fractal\\TransformerAbstract;\n\nclass FieldTransformer extends TransformerAbstract\n{\n protected array $availableIncludes = [\n 'options',\n ];\n private ?Profile $profile;\n\n private bool $noDefault = false;\n\n public function __construct(?Profile $profile = null)\n {\n $this->profile = $profile;\n }\n\n public function setNoDefault(bool $noDefault)\n {\n $this->noDefault = $noDefault;\n }\n\n public function transform(Field $field): array\n {\n $defaultValue = $field->default_value;\n $type = $field->type;\n\n if (\\is_bool($defaultValue)) {\n $defaultValue = (bool) $defaultValue;\n }\n\n return [\n 'id' => $field->id_string,\n 'objectType' => $field->object_type,\n 'label' => $field->label,\n 'fieldName' => $field->crm_provider_id,\n 'type' => $type,\n 'enabled' => $field->is_selectable,\n 'length' => $field->length,\n 'defaultValue' => $defaultValue,\n ];\n }\n\n public function includeOptions(Field $field): ?Collection\n {\n if ($field->type === Field::TYPE_PICKLIST && $values = $field->values) {\n// if ($field->type === Field::TYPE_PICKLIST && $values = $field->values) {\n // This gets a little complex. We need to check if this field has any record type constraints for the profile.\n if (\n $this->profile\n && ($recordType = $this->profile->{$field->object_type . 'RecordType'})\n && $recordType->fieldValues()->where('crm_field_id', $field->id)->exists()\n ) {\n // Fetch the values specific for this record type.\n $values = $recordType->fieldValues()->where('crm_field_id', $field->id)->get();\n }\n\n if ($this->noDefault) {\n foreach ($values as $value) {\n $value->is_default = false;\n }\n }\n\n return $this->collection($values, new FieldValueTransformer());\n }\n\n return null;\n }\n}","role_description":"text entry area","is_enabled":true,"is_focused":true,"is_selected":false,"is_expanded":false}]...
|
-2227023714408738033
|
-7051283076841655887
|
click
|
accessibility
|
NULL
|
Project: faVsco.js, menu
JY-20915-fix-missing-head Project: faVsco.js, menu
JY-20915-fix-missing-header-text-relay, menu
Start Listening for PHP Debug Connections
TextRelayServiceTest
Run 'TextRelayServiceTest'
Debug 'TextRelayServiceTest'
More Actions
JetBrains AI
Search Everywhere
IDE and Project Settings
Sync Changes
Hide This Notification
Code changed:
Hide
12
1
Previous Highlighted Error
Next Highlighted Error
<?php
namespace Jiminny\Http\Transformers;
use Jiminny\Models\Crm\Field;
use Jiminny\Models\Crm\Profile;
use League\Fractal\Resource\Collection;
use League\Fractal\TransformerAbstract;
class FieldTransformer extends TransformerAbstract
{
protected array $availableIncludes = [
'options',
];
private ?Profile $profile;
private bool $noDefault = false;
public function __construct(?Profile $profile = null)
{
$this->profile = $profile;
}
public function setNoDefault(bool $noDefault)
{
$this->noDefault = $noDefault;
}
public function transform(Field $field): array
{
$defaultValue = $field->default_value;
$type = $field->type;
if (\is_bool($defaultValue)) {
$defaultValue = (bool) $defaultValue;
}
return [
'id' => $field->id_string,
'objectType' => $field->object_type,
'label' => $field->label,
'fieldName' => $field->crm_provider_id,
'type' => $type,
'enabled' => $field->is_selectable,
'length' => $field->length,
'defaultValue' => $defaultValue,
];
}
public function includeOptions(Field $field): ?Collection
{
if ($field->type === Field::TYPE_PICKLIST && $values = $field->values) {
// if ($field->type === Field::TYPE_PICKLIST && $values = $field->values) {
// This gets a little complex. We need to check if this field has any record type constraints for the profile.
if (
$this->profile
&& ($recordType = $this->profile->{$field->object_type . 'RecordType'})
&& $recordType->fieldValues()->where('crm_field_id', $field->id)->exists()
) {
// Fetch the values specific for this record type.
$values = $recordType->fieldValues()->where('crm_field_id', $field->id)->get();
}
if ($this->noDefault) {
foreach ($values as $value) {
$value->is_default = false;
}
}
return $this->collection($values, new FieldValueTransformer());
}
return null;
}
}...
|
NULL
|
NULL
|
NULL
|
NULL
|
|
79752
|
2791
|
30
|
2026-05-28T06:41:19.697359+00:00
|
/Users/lukas/.screenpipe/data/data/2026-05-28/1779 /Users/lukas/.screenpipe/data/data/2026-05-28/1779950479697_m2.jpg...
|
PhpStorm
|
faVsco.js – FieldTransformer.php
|
1
|
NULL
|
monitor_2
|
NULL
|
NULL
|
NULL
|
NULL
|
Project: faVsco.js, menu
JY-20915-fix-missing-head Project: faVsco.js, menu
JY-20915-fix-missing-header-text-relay, menu
Start Listening for PHP Debug Connections
TextRelayServiceTest
Run 'TextRelayServiceTest'
Debug 'TextRelayServiceTest'
More Actions
JetBrains AI
Search Everywhere
IDE and Project Settings
Sync Changes
Hide This Notification
Code changed:
Hide
12
1
Previous Highlighted Error
Next Highlighted Error
<?php
namespace Jiminny\Http\Transformers;
use Jiminny\Models\Crm\Field;
use Jiminny\Models\Crm\Profile;
use League\Fractal\Resource\Collection;
use League\Fractal\TransformerAbstract;
class FieldTransformer extends TransformerAbstract
{
protected array $availableIncludes = [
'options',
];
private ?Profile $profile;
private bool $noDefault = false;
public function __construct(?Profile $profile = null)
{
$this->profile = $profile;
}
public function setNoDefault(bool $noDefault)
{
$this->noDefault = $noDefault;
}
public function transform(Field $field): array
{
$defaultValue = $field->default_value;
$type = $field->type;
if (\is_bool($defaultValue)) {
$defaultValue = (bool) $defaultValue;
}
return [
'id' => $field->id_string,
'objectType' => $field->object_type,
'label' => $field->label,
'fieldName' => $field->crm_provider_id,
'type' => $type,
'enabled' => $field->is_selectable,
'length' => $field->length,
'defaultValue' => $defaultValue,
];
}
public function includeOptions(Field $field): ?Collection
{
if ($field->type === Field::TYPE_PICKLIST && $values = $field->values) {
// if ($field->type === Field::TYPE_PICKLIST && $values = $field->values) {
// This gets a little complex. We need to check if this field has any record type constraints for the profile.
if (
$this->profile
&& ($recordType = $this->profile->{$field->object_type . 'RecordType'})
&& $recordType->fieldValues()->where('crm_field_id', $field->id)->exists()
) {
// Fetch the values specific for this record type.
$values = $recordType->fieldValues()->where('crm_field_id', $field->id)->get();
}
if ($this->noDefault) {
foreach ($values as $value) {
$value->is_default = false;
}
}
return $this->collection($values, new FieldValueTransformer());
}
return null;
}
}
A
crm_provider_id
B
uuid (UUID with time-low and time-high swapped)
C
crm_configuration_id
D
crm_provider_id...
|
[{"role":"AXButton","text" [{"role":"AXButton","text":"Project: faVsco.js, menu","depth":5,"bounds":{"left":0.025930852,"top":0.019952115,"width":0.03856383,"height":0.025538707},"on_screen":true,"help_text":"~/jiminny/app","role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"JY-20915-fix-missing-header-text-relay, menu","depth":5,"bounds":{"left":0.064494684,"top":0.019952115,"width":0.09740692,"height":0.025538707},"on_screen":true,"help_text":"Git Branch: JY-20915-fix-missing-header-text-relay","role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Start Listening for PHP Debug Connections","depth":5,"bounds":{"left":0.8374335,"top":0.019952115,"width":0.011303191,"height":0.025538707},"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"TextRelayServiceTest","depth":6,"bounds":{"left":0.85272604,"top":0.019952115,"width":0.062832445,"height":0.025538707},"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Run 'TextRelayServiceTest'","depth":6,"bounds":{"left":0.9155585,"top":0.019952115,"width":0.011303191,"height":0.025538707},"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Debug 'TextRelayServiceTest'","depth":6,"bounds":{"left":0.9268617,"top":0.019952115,"width":0.011303191,"height":0.025538707},"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"More Actions","depth":6,"bounds":{"left":0.9381649,"top":0.019952115,"width":0.011303191,"height":0.025538707},"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"JetBrains AI","depth":5,"bounds":{"left":0.96609044,"top":0.019952115,"width":0.011303191,"height":0.025538707},"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Search Everywhere","depth":5,"bounds":{"left":0.9773936,"top":0.019952115,"width":0.011303191,"height":0.025538707},"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"IDE and Project Settings","depth":5,"bounds":{"left":0.9886968,"top":0.019952115,"width":0.011303186,"height":0.025538707},"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Sync Changes","depth":4,"bounds":{"left":0.27027926,"top":1.0,"width":0.008643617,"height":0.0},"on_screen":false,"role_description":"button","is_enabled":false,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Hide This Notification","depth":4,"bounds":{"left":0.27027926,"top":1.0,"width":0.008643617,"height":0.0},"on_screen":false,"role_description":"button","is_enabled":false,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Code changed:","depth":4,"bounds":{"left":0.27027926,"top":1.0,"width":0.042220745,"height":0.0},"on_screen":false,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Hide","depth":4,"bounds":{"left":0.27027926,"top":1.0,"width":0.008643617,"height":0.0},"on_screen":false,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXStaticText","text":"12","depth":4,"bounds":{"left":0.37632978,"top":0.12529927,"width":0.009640957,"height":0.015163607},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"1","depth":4,"bounds":{"left":0.3879654,"top":0.12529927,"width":0.00731383,"height":0.015163607},"on_screen":true,"role_description":"text"},{"role":"AXButton","text":"Previous Highlighted Error","depth":4,"bounds":{"left":0.39694148,"top":0.123703115,"width":0.00731383,"height":0.018355945},"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Next Highlighted Error","depth":4,"bounds":{"left":0.40425533,"top":0.123703115,"width":0.006981383,"height":0.018355945},"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXTextArea","text":"<?php\n\nnamespace Jiminny\\Http\\Transformers;\n\nuse Jiminny\\Models\\Crm\\Field;\nuse Jiminny\\Models\\Crm\\Profile;\nuse League\\Fractal\\Resource\\Collection;\nuse League\\Fractal\\TransformerAbstract;\n\nclass FieldTransformer extends TransformerAbstract\n{\n protected array $availableIncludes = [\n 'options',\n ];\n private ?Profile $profile;\n\n private bool $noDefault = false;\n\n public function __construct(?Profile $profile = null)\n {\n $this->profile = $profile;\n }\n\n public function setNoDefault(bool $noDefault)\n {\n $this->noDefault = $noDefault;\n }\n\n public function transform(Field $field): array\n {\n $defaultValue = $field->default_value;\n $type = $field->type;\n\n if (\\is_bool($defaultValue)) {\n $defaultValue = (bool) $defaultValue;\n }\n\n return [\n 'id' => $field->id_string,\n 'objectType' => $field->object_type,\n 'label' => $field->label,\n 'fieldName' => $field->crm_provider_id,\n 'type' => $type,\n 'enabled' => $field->is_selectable,\n 'length' => $field->length,\n 'defaultValue' => $defaultValue,\n ];\n }\n\n public function includeOptions(Field $field): ?Collection\n {\n if ($field->type === Field::TYPE_PICKLIST && $values = $field->values) {\n// if ($field->type === Field::TYPE_PICKLIST && $values = $field->values) {\n // This gets a little complex. We need to check if this field has any record type constraints for the profile.\n if (\n $this->profile\n && ($recordType = $this->profile->{$field->object_type . 'RecordType'})\n && $recordType->fieldValues()->where('crm_field_id', $field->id)->exists()\n ) {\n // Fetch the values specific for this record type.\n $values = $recordType->fieldValues()->where('crm_field_id', $field->id)->get();\n }\n\n if ($this->noDefault) {\n foreach ($values as $value) {\n $value->is_default = false;\n }\n }\n\n return $this->collection($values, new FieldValueTransformer());\n }\n\n return null;\n }\n}","depth":4,"on_screen":true,"value":"<?php\n\nnamespace Jiminny\\Http\\Transformers;\n\nuse Jiminny\\Models\\Crm\\Field;\nuse Jiminny\\Models\\Crm\\Profile;\nuse League\\Fractal\\Resource\\Collection;\nuse League\\Fractal\\TransformerAbstract;\n\nclass FieldTransformer extends TransformerAbstract\n{\n protected array $availableIncludes = [\n 'options',\n ];\n private ?Profile $profile;\n\n private bool $noDefault = false;\n\n public function __construct(?Profile $profile = null)\n {\n $this->profile = $profile;\n }\n\n public function setNoDefault(bool $noDefault)\n {\n $this->noDefault = $noDefault;\n }\n\n public function transform(Field $field): array\n {\n $defaultValue = $field->default_value;\n $type = $field->type;\n\n if (\\is_bool($defaultValue)) {\n $defaultValue = (bool) $defaultValue;\n }\n\n return [\n 'id' => $field->id_string,\n 'objectType' => $field->object_type,\n 'label' => $field->label,\n 'fieldName' => $field->crm_provider_id,\n 'type' => $type,\n 'enabled' => $field->is_selectable,\n 'length' => $field->length,\n 'defaultValue' => $defaultValue,\n ];\n }\n\n public function includeOptions(Field $field): ?Collection\n {\n if ($field->type === Field::TYPE_PICKLIST && $values = $field->values) {\n// if ($field->type === Field::TYPE_PICKLIST && $values = $field->values) {\n // This gets a little complex. We need to check if this field has any record type constraints for the profile.\n if (\n $this->profile\n && ($recordType = $this->profile->{$field->object_type . 'RecordType'})\n && $recordType->fieldValues()->where('crm_field_id', $field->id)->exists()\n ) {\n // Fetch the values specific for this record type.\n $values = $recordType->fieldValues()->where('crm_field_id', $field->id)->get();\n }\n\n if ($this->noDefault) {\n foreach ($values as $value) {\n $value->is_default = false;\n }\n }\n\n return $this->collection($values, new FieldValueTransformer());\n }\n\n return null;\n }\n}","role_description":"text entry area","is_enabled":true,"is_focused":true,"is_selected":false,"is_expanded":false},{"role":"AXStaticText","text":"A","depth":4,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"crm_provider_id","depth":5,"bounds":{"left":0.27027926,"top":1.0,"width":0.020944148,"height":0.0},"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"B","depth":4,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"uuid (UUID with time-low and time-high swapped)","depth":5,"bounds":{"left":0.27027926,"top":1.0,"width":0.020944148,"height":0.0},"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"C","depth":4,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"crm_configuration_id","depth":5,"bounds":{"left":0.27027926,"top":1.0,"width":0.020944148,"height":0.0},"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"D","depth":4,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"crm_provider_id","depth":5,"bounds":{"left":0.27027926,"top":1.0,"width":0.020944148,"height":0.0},"on_screen":false,"role_description":"text"}]...
|
-5766770888979018778
|
-7769607217406201421
|
click
|
accessibility
|
NULL
|
Project: faVsco.js, menu
JY-20915-fix-missing-head Project: faVsco.js, menu
JY-20915-fix-missing-header-text-relay, menu
Start Listening for PHP Debug Connections
TextRelayServiceTest
Run 'TextRelayServiceTest'
Debug 'TextRelayServiceTest'
More Actions
JetBrains AI
Search Everywhere
IDE and Project Settings
Sync Changes
Hide This Notification
Code changed:
Hide
12
1
Previous Highlighted Error
Next Highlighted Error
<?php
namespace Jiminny\Http\Transformers;
use Jiminny\Models\Crm\Field;
use Jiminny\Models\Crm\Profile;
use League\Fractal\Resource\Collection;
use League\Fractal\TransformerAbstract;
class FieldTransformer extends TransformerAbstract
{
protected array $availableIncludes = [
'options',
];
private ?Profile $profile;
private bool $noDefault = false;
public function __construct(?Profile $profile = null)
{
$this->profile = $profile;
}
public function setNoDefault(bool $noDefault)
{
$this->noDefault = $noDefault;
}
public function transform(Field $field): array
{
$defaultValue = $field->default_value;
$type = $field->type;
if (\is_bool($defaultValue)) {
$defaultValue = (bool) $defaultValue;
}
return [
'id' => $field->id_string,
'objectType' => $field->object_type,
'label' => $field->label,
'fieldName' => $field->crm_provider_id,
'type' => $type,
'enabled' => $field->is_selectable,
'length' => $field->length,
'defaultValue' => $defaultValue,
];
}
public function includeOptions(Field $field): ?Collection
{
if ($field->type === Field::TYPE_PICKLIST && $values = $field->values) {
// if ($field->type === Field::TYPE_PICKLIST && $values = $field->values) {
// This gets a little complex. We need to check if this field has any record type constraints for the profile.
if (
$this->profile
&& ($recordType = $this->profile->{$field->object_type . 'RecordType'})
&& $recordType->fieldValues()->where('crm_field_id', $field->id)->exists()
) {
// Fetch the values specific for this record type.
$values = $recordType->fieldValues()->where('crm_field_id', $field->id)->get();
}
if ($this->noDefault) {
foreach ($values as $value) {
$value->is_default = false;
}
}
return $this->collection($values, new FieldValueTransformer());
}
return null;
}
}
A
crm_provider_id
B
uuid (UUID with time-low and time-high swapped)
C
crm_configuration_id
D
crm_provider_id...
|
79750
|
NULL
|
NULL
|
NULL
|
|
79751
|
2790
|
17
|
2026-05-28T06:41:19.595628+00:00
|
/Users/lukas/.screenpipe/data/data/2026-05-28/1779 /Users/lukas/.screenpipe/data/data/2026-05-28/1779950479595_m1.jpg...
|
PhpStorm
|
faVsco.js – FieldTransformer.php
|
1
|
NULL
|
monitor_1
|
NULL
|
NULL
|
NULL
|
NULL
|
Project: faVsco.js, menu
JY-20915-fix-missing-head Project: faVsco.js, menu
JY-20915-fix-missing-header-text-relay, menu
Start Listening for PHP Debug Connections
TextRelayServiceTest
Run 'TextRelayServiceTest'
Debug 'TextRelayServiceTest'
More Actions
JetBrains AI
Search Everywhere
IDE and Project Settings
Sync Changes
Hide This Notification
Code changed:
Hide
12
1
Previous Highlighted Error
Next Highlighted Error
<?php
namespace Jiminny\Http\Transformers;
use Jiminny\Models\Crm\Field;
use Jiminny\Models\Crm\Profile;
use League\Fractal\Resource\Collection;
use League\Fractal\TransformerAbstract;
class FieldTransformer extends TransformerAbstract
{
protected array $availableIncludes = [
'options',
];
private ?Profile $profile;
private bool $noDefault = false;
public function __construct(?Profile $profile = null)
{
$this->profile = $profile;
}
public function setNoDefault(bool $noDefault)
{
$this->noDefault = $noDefault;
}
public function transform(Field $field): array
{
$defaultValue = $field->default_value;
$type = $field->type;
if (\is_bool($defaultValue)) {
$defaultValue = (bool) $defaultValue;
}
return [
'id' => $field->id_string,
'objectType' => $field->object_type,
'label' => $field->label,
'fieldName' => $field->crm_provider_id,
'type' => $type,
'enabled' => $field->is_selectable,
'length' => $field->length,
'defaultValue' => $defaultValue,
];
}
public function includeOptions(Field $field): ?Collection
{
if ($field->type === Field::TYPE_PICKLIST && $values = $field->values) {
// if ($field->type === Field::TYPE_PICKLIST && $values = $field->values) {
// This gets a little complex. We need to check if this field has any record type constraints for the profile.
if (
$this->profile
&& ($recordType = $this->profile->{$field->object_type . 'RecordType'})
&& $recordType->fieldValues()->where('crm_field_id', $field->id)->exists()
) {
// Fetch the values specific for this record type.
$values = $recordType->fieldValues()->where('crm_field_id', $field->id)->get();
}
if ($this->noDefault) {
foreach ($values as $value) {
$value->is_default = false;
}
}
return $this->collection($values, new FieldValueTransformer());
}
return null;
}
}
A
id
B
uuid (UUID with time-low and time-high swapped)
C
crm_configuration_id
D
crm_provider_id...
|
[{"role":"AXButton","text" [{"role":"AXButton","text":"Project: faVsco.js, menu","depth":5,"on_screen":true,"help_text":"~/jiminny/app","role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"JY-20915-fix-missing-header-text-relay, menu","depth":5,"on_screen":true,"help_text":"Git Branch: JY-20915-fix-missing-header-text-relay","role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Start Listening for PHP Debug Connections","depth":5,"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"TextRelayServiceTest","depth":6,"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Run 'TextRelayServiceTest'","depth":6,"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Debug 'TextRelayServiceTest'","depth":6,"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"More Actions","depth":6,"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"JetBrains AI","depth":5,"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Search Everywhere","depth":5,"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"IDE and Project Settings","depth":5,"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Sync Changes","depth":4,"bounds":{"left":0.0,"top":0.0,"width":0.018055556,"height":0.026666667},"on_screen":false,"role_description":"button","is_enabled":false,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Hide This Notification","depth":4,"bounds":{"left":0.0,"top":0.0,"width":0.018055556,"height":0.026666667},"on_screen":false,"role_description":"button","is_enabled":false,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Code changed:","depth":4,"bounds":{"left":0.0,"top":0.0,"width":0.088194445,"height":0.027777778},"on_screen":false,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Hide","depth":4,"bounds":{"left":0.0,"top":0.0,"width":0.018055556,"height":0.026666667},"on_screen":false,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXStaticText","text":"12","depth":4,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"1","depth":4,"on_screen":true,"role_description":"text"},{"role":"AXButton","text":"Previous Highlighted Error","depth":4,"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Next Highlighted Error","depth":4,"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXTextArea","text":"<?php\n\nnamespace Jiminny\\Http\\Transformers;\n\nuse Jiminny\\Models\\Crm\\Field;\nuse Jiminny\\Models\\Crm\\Profile;\nuse League\\Fractal\\Resource\\Collection;\nuse League\\Fractal\\TransformerAbstract;\n\nclass FieldTransformer extends TransformerAbstract\n{\n protected array $availableIncludes = [\n 'options',\n ];\n private ?Profile $profile;\n\n private bool $noDefault = false;\n\n public function __construct(?Profile $profile = null)\n {\n $this->profile = $profile;\n }\n\n public function setNoDefault(bool $noDefault)\n {\n $this->noDefault = $noDefault;\n }\n\n public function transform(Field $field): array\n {\n $defaultValue = $field->default_value;\n $type = $field->type;\n\n if (\\is_bool($defaultValue)) {\n $defaultValue = (bool) $defaultValue;\n }\n\n return [\n 'id' => $field->id_string,\n 'objectType' => $field->object_type,\n 'label' => $field->label,\n 'fieldName' => $field->crm_provider_id,\n 'type' => $type,\n 'enabled' => $field->is_selectable,\n 'length' => $field->length,\n 'defaultValue' => $defaultValue,\n ];\n }\n\n public function includeOptions(Field $field): ?Collection\n {\n if ($field->type === Field::TYPE_PICKLIST && $values = $field->values) {\n// if ($field->type === Field::TYPE_PICKLIST && $values = $field->values) {\n // This gets a little complex. We need to check if this field has any record type constraints for the profile.\n if (\n $this->profile\n && ($recordType = $this->profile->{$field->object_type . 'RecordType'})\n && $recordType->fieldValues()->where('crm_field_id', $field->id)->exists()\n ) {\n // Fetch the values specific for this record type.\n $values = $recordType->fieldValues()->where('crm_field_id', $field->id)->get();\n }\n\n if ($this->noDefault) {\n foreach ($values as $value) {\n $value->is_default = false;\n }\n }\n\n return $this->collection($values, new FieldValueTransformer());\n }\n\n return null;\n }\n}","depth":4,"on_screen":true,"value":"<?php\n\nnamespace Jiminny\\Http\\Transformers;\n\nuse Jiminny\\Models\\Crm\\Field;\nuse Jiminny\\Models\\Crm\\Profile;\nuse League\\Fractal\\Resource\\Collection;\nuse League\\Fractal\\TransformerAbstract;\n\nclass FieldTransformer extends TransformerAbstract\n{\n protected array $availableIncludes = [\n 'options',\n ];\n private ?Profile $profile;\n\n private bool $noDefault = false;\n\n public function __construct(?Profile $profile = null)\n {\n $this->profile = $profile;\n }\n\n public function setNoDefault(bool $noDefault)\n {\n $this->noDefault = $noDefault;\n }\n\n public function transform(Field $field): array\n {\n $defaultValue = $field->default_value;\n $type = $field->type;\n\n if (\\is_bool($defaultValue)) {\n $defaultValue = (bool) $defaultValue;\n }\n\n return [\n 'id' => $field->id_string,\n 'objectType' => $field->object_type,\n 'label' => $field->label,\n 'fieldName' => $field->crm_provider_id,\n 'type' => $type,\n 'enabled' => $field->is_selectable,\n 'length' => $field->length,\n 'defaultValue' => $defaultValue,\n ];\n }\n\n public function includeOptions(Field $field): ?Collection\n {\n if ($field->type === Field::TYPE_PICKLIST && $values = $field->values) {\n// if ($field->type === Field::TYPE_PICKLIST && $values = $field->values) {\n // This gets a little complex. We need to check if this field has any record type constraints for the profile.\n if (\n $this->profile\n && ($recordType = $this->profile->{$field->object_type . 'RecordType'})\n && $recordType->fieldValues()->where('crm_field_id', $field->id)->exists()\n ) {\n // Fetch the values specific for this record type.\n $values = $recordType->fieldValues()->where('crm_field_id', $field->id)->get();\n }\n\n if ($this->noDefault) {\n foreach ($values as $value) {\n $value->is_default = false;\n }\n }\n\n return $this->collection($values, new FieldValueTransformer());\n }\n\n return null;\n }\n}","role_description":"text entry area","is_enabled":true,"is_focused":true,"is_selected":false,"is_expanded":false},{"role":"AXStaticText","text":"A","depth":4,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"id","depth":5,"bounds":{"left":0.0,"top":0.0,"width":0.04375,"height":0.03},"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"B","depth":4,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"uuid (UUID with time-low and time-high swapped)","depth":5,"bounds":{"left":0.0,"top":0.0,"width":0.04375,"height":0.03},"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"C","depth":4,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"crm_configuration_id","depth":5,"bounds":{"left":0.0,"top":0.0,"width":0.04375,"height":0.03},"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"D","depth":4,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"crm_provider_id","depth":5,"bounds":{"left":0.0,"top":0.0,"width":0.04375,"height":0.03},"on_screen":false,"role_description":"text"}]...
|
-4399590067387133593
|
-7769607217406201421
|
click
|
accessibility
|
NULL
|
Project: faVsco.js, menu
JY-20915-fix-missing-head Project: faVsco.js, menu
JY-20915-fix-missing-header-text-relay, menu
Start Listening for PHP Debug Connections
TextRelayServiceTest
Run 'TextRelayServiceTest'
Debug 'TextRelayServiceTest'
More Actions
JetBrains AI
Search Everywhere
IDE and Project Settings
Sync Changes
Hide This Notification
Code changed:
Hide
12
1
Previous Highlighted Error
Next Highlighted Error
<?php
namespace Jiminny\Http\Transformers;
use Jiminny\Models\Crm\Field;
use Jiminny\Models\Crm\Profile;
use League\Fractal\Resource\Collection;
use League\Fractal\TransformerAbstract;
class FieldTransformer extends TransformerAbstract
{
protected array $availableIncludes = [
'options',
];
private ?Profile $profile;
private bool $noDefault = false;
public function __construct(?Profile $profile = null)
{
$this->profile = $profile;
}
public function setNoDefault(bool $noDefault)
{
$this->noDefault = $noDefault;
}
public function transform(Field $field): array
{
$defaultValue = $field->default_value;
$type = $field->type;
if (\is_bool($defaultValue)) {
$defaultValue = (bool) $defaultValue;
}
return [
'id' => $field->id_string,
'objectType' => $field->object_type,
'label' => $field->label,
'fieldName' => $field->crm_provider_id,
'type' => $type,
'enabled' => $field->is_selectable,
'length' => $field->length,
'defaultValue' => $defaultValue,
];
}
public function includeOptions(Field $field): ?Collection
{
if ($field->type === Field::TYPE_PICKLIST && $values = $field->values) {
// if ($field->type === Field::TYPE_PICKLIST && $values = $field->values) {
// This gets a little complex. We need to check if this field has any record type constraints for the profile.
if (
$this->profile
&& ($recordType = $this->profile->{$field->object_type . 'RecordType'})
&& $recordType->fieldValues()->where('crm_field_id', $field->id)->exists()
) {
// Fetch the values specific for this record type.
$values = $recordType->fieldValues()->where('crm_field_id', $field->id)->get();
}
if ($this->noDefault) {
foreach ($values as $value) {
$value->is_default = false;
}
}
return $this->collection($values, new FieldValueTransformer());
}
return null;
}
}
A
id
B
uuid (UUID with time-low and time-high swapped)
C
crm_configuration_id
D
crm_provider_id...
|
79749
|
NULL
|
NULL
|
NULL
|
|
79750
|
2791
|
29
|
2026-05-28T06:41:18.450213+00:00
|
/Users/lukas/.screenpipe/data/data/2026-05-28/1779 /Users/lukas/.screenpipe/data/data/2026-05-28/1779950478450_m2.jpg...
|
PhpStorm
|
faVsco.js – FieldTransformer.php
|
1
|
NULL
|
monitor_2
|
NULL
|
NULL
|
NULL
|
NULL
|
Project: faVsco.js, menu
JY-20915-fix-missing-head Project: faVsco.js, menu
JY-20915-fix-missing-header-text-relay, menu
Start Listening for PHP Debug Connections
TextRelayServiceTest
Run 'TextRelayServiceTest'
Debug 'TextRelayServiceTest'
More Actions
JetBrains AI
Search Everywhere
IDE and Project Settings
Sync Changes
Hide This Notification
Code changed:
Hide
12
1
Previous Highlighted Error
Next Highlighted Error
<?php
namespace Jiminny\Http\Transformers;
use Jiminny\Models\Crm\Field;
use Jiminny\Models\Crm\Profile;
use League\Fractal\Resource\Collection;
use League\Fractal\TransformerAbstract;
class FieldTransformer extends TransformerAbstract
{
protected array $availableIncludes = [
'options',
];
private ?Profile $profile;
private bool $noDefault = false;
public function __construct(?Profile $profile = null)
{
$this->profile = $profile;
}
public function setNoDefault(bool $noDefault)
{
$this->noDefault = $noDefault;
}
public function transform(Field $field): array
{
$defaultValue = $field->default_value;
$type = $field->type;
if (\is_bool($defaultValue)) {
$defaultValue = (bool) $defaultValue;
}
return [
'id' => $field->id_string,
'objectType' => $field->object_type,
'label' => $field->label,
'fieldName' => $field->crm_provider_id,
'type' => $type,
'enabled' => $field->is_selectable,
'length' => $field->length,
'defaultValue' => $defaultValue,
];
}
public function includeOptions(Field $field): ?Collection
{
if ($field->type === Field::TYPE_PICKLIST && $values = $field->values) {
// if ($field->type === Field::TYPE_PICKLIST && $values = $field->values) {
// This gets a little complex. We need to check if this field has any record type constraints for the profile.
if (
$this->profile
&& ($recordType = $this->profile->{$field->object_type . 'RecordType'})
&& $recordType->fieldValues()->where('crm_field_id', $field->id)->exists()
) {
// Fetch the values specific for this record type.
$values = $recordType->fieldValues()->where('crm_field_id', $field->id)->get();
}
if ($this->noDefault) {
foreach ($values as $value) {
$value->is_default = false;
}
}
return $this->collection($values, new FieldValueTransformer());
}
return null;
}
}
A
id
B
uuid (UUID with time-low and time-high swapped)
C
crm_configuration_id
D
crm_provider_id
E
label
F
description
G
type
H
length
I
default_value
J
object_type
K
is_selectable
L...
|
[{"role":"AXButton","text" [{"role":"AXButton","text":"Project: faVsco.js, menu","depth":5,"bounds":{"left":0.025930852,"top":0.019952115,"width":0.03856383,"height":0.025538707},"on_screen":true,"help_text":"~/jiminny/app","role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"JY-20915-fix-missing-header-text-relay, menu","depth":5,"bounds":{"left":0.064494684,"top":0.019952115,"width":0.09740692,"height":0.025538707},"on_screen":true,"help_text":"Git Branch: JY-20915-fix-missing-header-text-relay","role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Start Listening for PHP Debug Connections","depth":5,"bounds":{"left":0.8374335,"top":0.019952115,"width":0.011303191,"height":0.025538707},"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"TextRelayServiceTest","depth":6,"bounds":{"left":0.85272604,"top":0.019952115,"width":0.062832445,"height":0.025538707},"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Run 'TextRelayServiceTest'","depth":6,"bounds":{"left":0.9155585,"top":0.019952115,"width":0.011303191,"height":0.025538707},"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Debug 'TextRelayServiceTest'","depth":6,"bounds":{"left":0.9268617,"top":0.019952115,"width":0.011303191,"height":0.025538707},"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"More Actions","depth":6,"bounds":{"left":0.9381649,"top":0.019952115,"width":0.011303191,"height":0.025538707},"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"JetBrains AI","depth":5,"bounds":{"left":0.96609044,"top":0.019952115,"width":0.011303191,"height":0.025538707},"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Search Everywhere","depth":5,"bounds":{"left":0.9773936,"top":0.019952115,"width":0.011303191,"height":0.025538707},"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"IDE and Project Settings","depth":5,"bounds":{"left":0.9886968,"top":0.019952115,"width":0.011303186,"height":0.025538707},"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Sync Changes","depth":4,"bounds":{"left":0.27027926,"top":1.0,"width":0.008643617,"height":0.0},"on_screen":false,"role_description":"button","is_enabled":false,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Hide This Notification","depth":4,"bounds":{"left":0.27027926,"top":1.0,"width":0.008643617,"height":0.0},"on_screen":false,"role_description":"button","is_enabled":false,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Code changed:","depth":4,"bounds":{"left":0.27027926,"top":1.0,"width":0.042220745,"height":0.0},"on_screen":false,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Hide","depth":4,"bounds":{"left":0.27027926,"top":1.0,"width":0.008643617,"height":0.0},"on_screen":false,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXStaticText","text":"12","depth":4,"bounds":{"left":0.37632978,"top":0.12529927,"width":0.009640957,"height":0.015163607},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"1","depth":4,"bounds":{"left":0.3879654,"top":0.12529927,"width":0.00731383,"height":0.015163607},"on_screen":true,"role_description":"text"},{"role":"AXButton","text":"Previous Highlighted Error","depth":4,"bounds":{"left":0.39694148,"top":0.123703115,"width":0.00731383,"height":0.018355945},"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Next Highlighted Error","depth":4,"bounds":{"left":0.40425533,"top":0.123703115,"width":0.006981383,"height":0.018355945},"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXTextArea","text":"<?php\n\nnamespace Jiminny\\Http\\Transformers;\n\nuse Jiminny\\Models\\Crm\\Field;\nuse Jiminny\\Models\\Crm\\Profile;\nuse League\\Fractal\\Resource\\Collection;\nuse League\\Fractal\\TransformerAbstract;\n\nclass FieldTransformer extends TransformerAbstract\n{\n protected array $availableIncludes = [\n 'options',\n ];\n private ?Profile $profile;\n\n private bool $noDefault = false;\n\n public function __construct(?Profile $profile = null)\n {\n $this->profile = $profile;\n }\n\n public function setNoDefault(bool $noDefault)\n {\n $this->noDefault = $noDefault;\n }\n\n public function transform(Field $field): array\n {\n $defaultValue = $field->default_value;\n $type = $field->type;\n\n if (\\is_bool($defaultValue)) {\n $defaultValue = (bool) $defaultValue;\n }\n\n return [\n 'id' => $field->id_string,\n 'objectType' => $field->object_type,\n 'label' => $field->label,\n 'fieldName' => $field->crm_provider_id,\n 'type' => $type,\n 'enabled' => $field->is_selectable,\n 'length' => $field->length,\n 'defaultValue' => $defaultValue,\n ];\n }\n\n public function includeOptions(Field $field): ?Collection\n {\n if ($field->type === Field::TYPE_PICKLIST && $values = $field->values) {\n// if ($field->type === Field::TYPE_PICKLIST && $values = $field->values) {\n // This gets a little complex. We need to check if this field has any record type constraints for the profile.\n if (\n $this->profile\n && ($recordType = $this->profile->{$field->object_type . 'RecordType'})\n && $recordType->fieldValues()->where('crm_field_id', $field->id)->exists()\n ) {\n // Fetch the values specific for this record type.\n $values = $recordType->fieldValues()->where('crm_field_id', $field->id)->get();\n }\n\n if ($this->noDefault) {\n foreach ($values as $value) {\n $value->is_default = false;\n }\n }\n\n return $this->collection($values, new FieldValueTransformer());\n }\n\n return null;\n }\n}","depth":4,"on_screen":true,"value":"<?php\n\nnamespace Jiminny\\Http\\Transformers;\n\nuse Jiminny\\Models\\Crm\\Field;\nuse Jiminny\\Models\\Crm\\Profile;\nuse League\\Fractal\\Resource\\Collection;\nuse League\\Fractal\\TransformerAbstract;\n\nclass FieldTransformer extends TransformerAbstract\n{\n protected array $availableIncludes = [\n 'options',\n ];\n private ?Profile $profile;\n\n private bool $noDefault = false;\n\n public function __construct(?Profile $profile = null)\n {\n $this->profile = $profile;\n }\n\n public function setNoDefault(bool $noDefault)\n {\n $this->noDefault = $noDefault;\n }\n\n public function transform(Field $field): array\n {\n $defaultValue = $field->default_value;\n $type = $field->type;\n\n if (\\is_bool($defaultValue)) {\n $defaultValue = (bool) $defaultValue;\n }\n\n return [\n 'id' => $field->id_string,\n 'objectType' => $field->object_type,\n 'label' => $field->label,\n 'fieldName' => $field->crm_provider_id,\n 'type' => $type,\n 'enabled' => $field->is_selectable,\n 'length' => $field->length,\n 'defaultValue' => $defaultValue,\n ];\n }\n\n public function includeOptions(Field $field): ?Collection\n {\n if ($field->type === Field::TYPE_PICKLIST && $values = $field->values) {\n// if ($field->type === Field::TYPE_PICKLIST && $values = $field->values) {\n // This gets a little complex. We need to check if this field has any record type constraints for the profile.\n if (\n $this->profile\n && ($recordType = $this->profile->{$field->object_type . 'RecordType'})\n && $recordType->fieldValues()->where('crm_field_id', $field->id)->exists()\n ) {\n // Fetch the values specific for this record type.\n $values = $recordType->fieldValues()->where('crm_field_id', $field->id)->get();\n }\n\n if ($this->noDefault) {\n foreach ($values as $value) {\n $value->is_default = false;\n }\n }\n\n return $this->collection($values, new FieldValueTransformer());\n }\n\n return null;\n }\n}","role_description":"text entry area","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXStaticText","text":"A","depth":4,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"id","depth":5,"bounds":{"left":0.27027926,"top":1.0,"width":0.020944148,"height":0.0},"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"B","depth":4,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"uuid (UUID with time-low and time-high swapped)","depth":5,"bounds":{"left":0.27027926,"top":1.0,"width":0.020944148,"height":0.0},"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"C","depth":4,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"crm_configuration_id","depth":5,"bounds":{"left":0.27027926,"top":1.0,"width":0.020944148,"height":0.0},"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"D","depth":4,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"crm_provider_id","depth":5,"bounds":{"left":0.27027926,"top":1.0,"width":0.020944148,"height":0.0},"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"E","depth":4,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"label","depth":5,"bounds":{"left":0.27027926,"top":1.0,"width":0.020944148,"height":0.0},"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"F","depth":4,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"description","depth":5,"bounds":{"left":0.27027926,"top":1.0,"width":0.020944148,"height":0.0},"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"G","depth":4,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"type","depth":5,"bounds":{"left":0.27027926,"top":1.0,"width":0.020944148,"height":0.0},"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"H","depth":4,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"length","depth":5,"bounds":{"left":0.27027926,"top":1.0,"width":0.020944148,"height":0.0},"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"I","depth":4,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"default_value","depth":5,"bounds":{"left":0.27027926,"top":1.0,"width":0.020944148,"height":0.0},"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"J","depth":4,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"object_type","depth":5,"bounds":{"left":0.27027926,"top":1.0,"width":0.020944148,"height":0.0},"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"K","depth":4,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"is_selectable","depth":5,"bounds":{"left":0.27027926,"top":1.0,"width":0.020944148,"height":0.0},"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"L","depth":4,"on_screen":false,"role_description":"text"}]...
|
-3730784919049630103
|
-7589463232312430157
|
click
|
accessibility
|
NULL
|
Project: faVsco.js, menu
JY-20915-fix-missing-head Project: faVsco.js, menu
JY-20915-fix-missing-header-text-relay, menu
Start Listening for PHP Debug Connections
TextRelayServiceTest
Run 'TextRelayServiceTest'
Debug 'TextRelayServiceTest'
More Actions
JetBrains AI
Search Everywhere
IDE and Project Settings
Sync Changes
Hide This Notification
Code changed:
Hide
12
1
Previous Highlighted Error
Next Highlighted Error
<?php
namespace Jiminny\Http\Transformers;
use Jiminny\Models\Crm\Field;
use Jiminny\Models\Crm\Profile;
use League\Fractal\Resource\Collection;
use League\Fractal\TransformerAbstract;
class FieldTransformer extends TransformerAbstract
{
protected array $availableIncludes = [
'options',
];
private ?Profile $profile;
private bool $noDefault = false;
public function __construct(?Profile $profile = null)
{
$this->profile = $profile;
}
public function setNoDefault(bool $noDefault)
{
$this->noDefault = $noDefault;
}
public function transform(Field $field): array
{
$defaultValue = $field->default_value;
$type = $field->type;
if (\is_bool($defaultValue)) {
$defaultValue = (bool) $defaultValue;
}
return [
'id' => $field->id_string,
'objectType' => $field->object_type,
'label' => $field->label,
'fieldName' => $field->crm_provider_id,
'type' => $type,
'enabled' => $field->is_selectable,
'length' => $field->length,
'defaultValue' => $defaultValue,
];
}
public function includeOptions(Field $field): ?Collection
{
if ($field->type === Field::TYPE_PICKLIST && $values = $field->values) {
// if ($field->type === Field::TYPE_PICKLIST && $values = $field->values) {
// This gets a little complex. We need to check if this field has any record type constraints for the profile.
if (
$this->profile
&& ($recordType = $this->profile->{$field->object_type . 'RecordType'})
&& $recordType->fieldValues()->where('crm_field_id', $field->id)->exists()
) {
// Fetch the values specific for this record type.
$values = $recordType->fieldValues()->where('crm_field_id', $field->id)->get();
}
if ($this->noDefault) {
foreach ($values as $value) {
$value->is_default = false;
}
}
return $this->collection($values, new FieldValueTransformer());
}
return null;
}
}
A
id
B
uuid (UUID with time-low and time-high swapped)
C
crm_configuration_id
D
crm_provider_id
E
label
F
description
G
type
H
length
I
default_value
J
object_type
K
is_selectable
L...
|
NULL
|
NULL
|
NULL
|
NULL
|
|
79749
|
2790
|
16
|
2026-05-28T06:41:18.346473+00:00
|
/Users/lukas/.screenpipe/data/data/2026-05-28/1779 /Users/lukas/.screenpipe/data/data/2026-05-28/1779950478346_m1.jpg...
|
PhpStorm
|
faVsco.js – FieldTransformer.php
|
1
|
NULL
|
monitor_1
|
NULL
|
NULL
|
NULL
|
NULL
|
Project: faVsco.js, menu
JY-20915-fix-missing-head Project: faVsco.js, menu
JY-20915-fix-missing-header-text-relay, menu
Start Listening for PHP Debug Connections
TextRelayServiceTest
Run 'TextRelayServiceTest'
Debug 'TextRelayServiceTest'
More Actions
JetBrains AI
Search Everywhere
IDE and Project Settings
Sync Changes
Hide This Notification
Code changed:
Hide
12
1
Previous Highlighted Error
Next Highlighted Error
<?php
namespace Jiminny\Http\Transformers;
use Jiminny\Models\Crm\Field;
use Jiminny\Models\Crm\Profile;
use League\Fractal\Resource\Collection;
use League\Fractal\TransformerAbstract;
class FieldTransformer extends TransformerAbstract
{
protected array $availableIncludes = [
'options',
];
private ?Profile $profile;
private bool $noDefault = false;
public function __construct(?Profile $profile = null)
{
$this->profile = $profile;
}
public function setNoDefault(bool $noDefault)
{
$this->noDefault = $noDefault;
}
public function transform(Field $field): array
{
$defaultValue = $field->default_value;
$type = $field->type;
if (\is_bool($defaultValue)) {
$defaultValue = (bool) $defaultValue;
}
return [
'id' => $field->id_string,
'objectType' => $field->object_type,
'label' => $field->label,
'fieldName' => $field->crm_provider_id,
'type' => $type,
'enabled' => $field->is_selectable,
'length' => $field->length,
'defaultValue' => $defaultValue,
];
}
public function includeOptions(Field $field): ?Collection
{
if ($field->type === Field::TYPE_PICKLIST && $values = $field->values) {
// if ($field->type === Field::TYPE_PICKLIST && $values = $field->values) {
// This gets a little complex. We need to check if this field has any record type constraints for the profile.
if (
$this->profile
&& ($recordType = $this->profile->{$field->object_type . 'RecordType'})
&& $recordType->fieldValues()->where('crm_field_id', $field->id)->exists()
) {
// Fetch the values specific for this record type.
$values = $recordType->fieldValues()->where('crm_field_id', $field->id)->get();
}
if ($this->noDefault) {
foreach ($values as $value) {
$value->is_default = false;
}
}
return $this->collection($values, new FieldValueTransformer());
}
return null;
}
}
A
id
B
uuid (UUID with time-low and time-high swapped)
C
crm_configuration_id
D
crm_provider_id
E
label
F
description
G
type
H
length
I
default_value
J
object_type
K
is_selectable
L
is_mandatory
M
is_filterable
N
is_indexable
O
created_at
P
updated_at
Q
is_readonly
Select All
1885
1885
39
58a51d4d-0ca7-49f0-9b2c-e16027877cc5
58a51d4d-0ca7-49f0-9b2c-e16027877cc5
picktestmulti__c
39
39
39
ReminderDateTime
ReminderDateTime
picktestmulti__c
Reminder Date/Time
Reminder Date/Time
picktestmulti__c
<null>
<null>
picktestmulti__c
datetime
datetime
picktestmulti__c
<null>
<null>
39
<null>
<null>
picktestmulti__c
event
event
picktestmulti__c
1
1
39
0
0
39
0
0
39
0
0
39
2022-12-15 14:53:05
2022-12-15 14:53:05
picktestmulti__c
2025-09-29 11:00:32
2025-09-29 11:00:32
picktestmulti__c...
|
[{"role":"AXButton","text" [{"role":"AXButton","text":"Project: faVsco.js, menu","depth":5,"on_screen":true,"help_text":"~/jiminny/app","role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"JY-20915-fix-missing-header-text-relay, menu","depth":5,"on_screen":true,"help_text":"Git Branch: JY-20915-fix-missing-header-text-relay","role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Start Listening for PHP Debug Connections","depth":5,"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"TextRelayServiceTest","depth":6,"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Run 'TextRelayServiceTest'","depth":6,"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Debug 'TextRelayServiceTest'","depth":6,"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"More Actions","depth":6,"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"JetBrains AI","depth":5,"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Search Everywhere","depth":5,"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"IDE and Project Settings","depth":5,"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Sync Changes","depth":4,"bounds":{"left":0.0,"top":0.0,"width":0.018055556,"height":0.026666667},"on_screen":false,"role_description":"button","is_enabled":false,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Hide This Notification","depth":4,"bounds":{"left":0.0,"top":0.0,"width":0.018055556,"height":0.026666667},"on_screen":false,"role_description":"button","is_enabled":false,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Code changed:","depth":4,"bounds":{"left":0.0,"top":0.0,"width":0.088194445,"height":0.027777778},"on_screen":false,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Hide","depth":4,"bounds":{"left":0.0,"top":0.0,"width":0.018055556,"height":0.026666667},"on_screen":false,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXStaticText","text":"12","depth":4,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"1","depth":4,"on_screen":true,"role_description":"text"},{"role":"AXButton","text":"Previous Highlighted Error","depth":4,"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Next Highlighted Error","depth":4,"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXTextArea","text":"<?php\n\nnamespace Jiminny\\Http\\Transformers;\n\nuse Jiminny\\Models\\Crm\\Field;\nuse Jiminny\\Models\\Crm\\Profile;\nuse League\\Fractal\\Resource\\Collection;\nuse League\\Fractal\\TransformerAbstract;\n\nclass FieldTransformer extends TransformerAbstract\n{\n protected array $availableIncludes = [\n 'options',\n ];\n private ?Profile $profile;\n\n private bool $noDefault = false;\n\n public function __construct(?Profile $profile = null)\n {\n $this->profile = $profile;\n }\n\n public function setNoDefault(bool $noDefault)\n {\n $this->noDefault = $noDefault;\n }\n\n public function transform(Field $field): array\n {\n $defaultValue = $field->default_value;\n $type = $field->type;\n\n if (\\is_bool($defaultValue)) {\n $defaultValue = (bool) $defaultValue;\n }\n\n return [\n 'id' => $field->id_string,\n 'objectType' => $field->object_type,\n 'label' => $field->label,\n 'fieldName' => $field->crm_provider_id,\n 'type' => $type,\n 'enabled' => $field->is_selectable,\n 'length' => $field->length,\n 'defaultValue' => $defaultValue,\n ];\n }\n\n public function includeOptions(Field $field): ?Collection\n {\n if ($field->type === Field::TYPE_PICKLIST && $values = $field->values) {\n// if ($field->type === Field::TYPE_PICKLIST && $values = $field->values) {\n // This gets a little complex. We need to check if this field has any record type constraints for the profile.\n if (\n $this->profile\n && ($recordType = $this->profile->{$field->object_type . 'RecordType'})\n && $recordType->fieldValues()->where('crm_field_id', $field->id)->exists()\n ) {\n // Fetch the values specific for this record type.\n $values = $recordType->fieldValues()->where('crm_field_id', $field->id)->get();\n }\n\n if ($this->noDefault) {\n foreach ($values as $value) {\n $value->is_default = false;\n }\n }\n\n return $this->collection($values, new FieldValueTransformer());\n }\n\n return null;\n }\n}","depth":4,"on_screen":true,"value":"<?php\n\nnamespace Jiminny\\Http\\Transformers;\n\nuse Jiminny\\Models\\Crm\\Field;\nuse Jiminny\\Models\\Crm\\Profile;\nuse League\\Fractal\\Resource\\Collection;\nuse League\\Fractal\\TransformerAbstract;\n\nclass FieldTransformer extends TransformerAbstract\n{\n protected array $availableIncludes = [\n 'options',\n ];\n private ?Profile $profile;\n\n private bool $noDefault = false;\n\n public function __construct(?Profile $profile = null)\n {\n $this->profile = $profile;\n }\n\n public function setNoDefault(bool $noDefault)\n {\n $this->noDefault = $noDefault;\n }\n\n public function transform(Field $field): array\n {\n $defaultValue = $field->default_value;\n $type = $field->type;\n\n if (\\is_bool($defaultValue)) {\n $defaultValue = (bool) $defaultValue;\n }\n\n return [\n 'id' => $field->id_string,\n 'objectType' => $field->object_type,\n 'label' => $field->label,\n 'fieldName' => $field->crm_provider_id,\n 'type' => $type,\n 'enabled' => $field->is_selectable,\n 'length' => $field->length,\n 'defaultValue' => $defaultValue,\n ];\n }\n\n public function includeOptions(Field $field): ?Collection\n {\n if ($field->type === Field::TYPE_PICKLIST && $values = $field->values) {\n// if ($field->type === Field::TYPE_PICKLIST && $values = $field->values) {\n // This gets a little complex. We need to check if this field has any record type constraints for the profile.\n if (\n $this->profile\n && ($recordType = $this->profile->{$field->object_type . 'RecordType'})\n && $recordType->fieldValues()->where('crm_field_id', $field->id)->exists()\n ) {\n // Fetch the values specific for this record type.\n $values = $recordType->fieldValues()->where('crm_field_id', $field->id)->get();\n }\n\n if ($this->noDefault) {\n foreach ($values as $value) {\n $value->is_default = false;\n }\n }\n\n return $this->collection($values, new FieldValueTransformer());\n }\n\n return null;\n }\n}","role_description":"text entry area","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXStaticText","text":"A","depth":4,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"id","depth":5,"bounds":{"left":0.0,"top":0.0,"width":0.04375,"height":0.03},"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"B","depth":4,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"uuid (UUID with time-low and time-high swapped)","depth":5,"bounds":{"left":0.0,"top":0.0,"width":0.04375,"height":0.03},"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"C","depth":4,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"crm_configuration_id","depth":5,"bounds":{"left":0.0,"top":0.0,"width":0.04375,"height":0.03},"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"D","depth":4,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"crm_provider_id","depth":5,"bounds":{"left":0.0,"top":0.0,"width":0.04375,"height":0.03},"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"E","depth":4,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"label","depth":5,"bounds":{"left":0.0,"top":0.0,"width":0.04375,"height":0.03},"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"F","depth":4,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"description","depth":5,"bounds":{"left":0.0,"top":0.0,"width":0.04375,"height":0.03},"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"G","depth":4,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"type","depth":5,"bounds":{"left":0.0,"top":0.0,"width":0.04375,"height":0.03},"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"H","depth":4,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"length","depth":5,"bounds":{"left":0.0,"top":0.0,"width":0.04375,"height":0.03},"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"I","depth":4,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"default_value","depth":5,"bounds":{"left":0.0,"top":0.0,"width":0.04375,"height":0.03},"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"J","depth":4,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"object_type","depth":5,"bounds":{"left":0.0,"top":0.0,"width":0.04375,"height":0.03},"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"K","depth":4,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"is_selectable","depth":5,"bounds":{"left":0.0,"top":0.0,"width":0.04375,"height":0.03},"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"L","depth":4,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"is_mandatory","depth":5,"bounds":{"left":0.0,"top":0.0,"width":0.04375,"height":0.03},"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"M","depth":4,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"is_filterable","depth":5,"bounds":{"left":0.0,"top":0.0,"width":0.04375,"height":0.03},"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"N","depth":4,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"is_indexable","depth":5,"bounds":{"left":0.0,"top":0.0,"width":0.04375,"height":0.03},"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"O","depth":4,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"created_at","depth":5,"bounds":{"left":0.0,"top":0.0,"width":0.04375,"height":0.03},"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"P","depth":4,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"updated_at","depth":5,"bounds":{"left":0.0,"top":0.0,"width":0.04375,"height":0.03},"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"Q","depth":4,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"is_readonly","depth":5,"bounds":{"left":0.0,"top":0.0,"width":0.04375,"height":0.03},"on_screen":false,"role_description":"text"},{"role":"AXButton","text":"Select All","depth":4,"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXCell","text":"1885","depth":6,"on_screen":true,"role_description":"cell"},{"role":"AXStaticText","text":"1885","depth":7,"on_screen":true,"role_description":"text"},{"role":"AXTextArea","text":"39","depth":8,"bounds":{"left":0.0,"top":0.0,"width":0.16458334,"height":0.024444444},"on_screen":false,"value":"39","role_description":"text entry area","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXCell","text":"58a51d4d-0ca7-49f0-9b2c-e16027877cc5","depth":6,"on_screen":true,"role_description":"cell"},{"role":"AXStaticText","text":"58a51d4d-0ca7-49f0-9b2c-e16027877cc5","depth":7,"on_screen":true,"role_description":"text"},{"role":"AXTextArea","text":"picktestmulti__c","depth":8,"bounds":{"left":0.0,"top":0.0,"width":0.10486111,"height":0.024444444},"on_screen":false,"value":"picktestmulti__c","role_description":"text entry area","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXCell","text":"39","depth":6,"on_screen":true,"role_description":"cell"},{"role":"AXStaticText","text":"39","depth":7,"on_screen":true,"role_description":"text"},{"role":"AXTextArea","text":"39","depth":8,"bounds":{"left":0.0,"top":0.0,"width":0.16458334,"height":0.024444444},"on_screen":false,"value":"39","role_description":"text entry area","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXCell","text":"ReminderDateTime","depth":6,"on_screen":true,"role_description":"cell"},{"role":"AXStaticText","text":"ReminderDateTime","depth":7,"on_screen":true,"role_description":"text"},{"role":"AXTextArea","text":"picktestmulti__c","depth":8,"bounds":{"left":0.0,"top":0.0,"width":0.10486111,"height":0.024444444},"on_screen":false,"value":"picktestmulti__c","role_description":"text entry area","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXCell","text":"Reminder Date/Time","depth":6,"on_screen":true,"role_description":"cell"},{"role":"AXStaticText","text":"Reminder Date/Time","depth":7,"on_screen":true,"role_description":"text"},{"role":"AXTextArea","text":"picktestmulti__c","depth":8,"bounds":{"left":0.0,"top":0.0,"width":0.10486111,"height":0.024444444},"on_screen":false,"value":"picktestmulti__c","role_description":"text entry area","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXCell","text":"<null>","depth":6,"on_screen":true,"role_description":"cell"},{"role":"AXStaticText","text":"<null>","depth":7,"on_screen":true,"role_description":"text"},{"role":"AXTextArea","text":"picktestmulti__c","depth":8,"bounds":{"left":0.0,"top":0.0,"width":0.10486111,"height":0.024444444},"on_screen":false,"value":"picktestmulti__c","role_description":"text entry area","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXCell","text":"datetime","depth":6,"on_screen":true,"role_description":"cell"},{"role":"AXStaticText","text":"datetime","depth":7,"on_screen":true,"role_description":"text"},{"role":"AXTextArea","text":"picktestmulti__c","depth":8,"bounds":{"left":0.0,"top":0.0,"width":0.10486111,"height":0.024444444},"on_screen":false,"value":"picktestmulti__c","role_description":"text entry area","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXCell","text":"<null>","depth":6,"on_screen":true,"role_description":"cell"},{"role":"AXStaticText","text":"<null>","depth":7,"on_screen":true,"role_description":"text"},{"role":"AXTextArea","text":"39","depth":8,"bounds":{"left":0.0,"top":0.0,"width":0.16458334,"height":0.024444444},"on_screen":false,"value":"39","role_description":"text entry area","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXCell","text":"<null>","depth":6,"on_screen":true,"role_description":"cell"},{"role":"AXStaticText","text":"<null>","depth":7,"on_screen":true,"role_description":"text"},{"role":"AXTextArea","text":"picktestmulti__c","depth":8,"bounds":{"left":0.0,"top":0.0,"width":0.10486111,"height":0.024444444},"on_screen":false,"value":"picktestmulti__c","role_description":"text entry area","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXCell","text":"event","depth":6,"on_screen":true,"role_description":"cell"},{"role":"AXStaticText","text":"event","depth":7,"on_screen":true,"role_description":"text"},{"role":"AXTextArea","text":"picktestmulti__c","depth":8,"bounds":{"left":0.0,"top":0.0,"width":0.10486111,"height":0.024444444},"on_screen":false,"value":"picktestmulti__c","role_description":"text entry area","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXCell","text":"1","depth":6,"on_screen":false,"role_description":"cell"},{"role":"AXStaticText","text":"1","depth":7,"on_screen":false,"role_description":"text"},{"role":"AXTextArea","text":"39","depth":8,"bounds":{"left":0.0,"top":0.0,"width":0.16458334,"height":0.024444444},"on_screen":false,"value":"39","role_description":"text entry area","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXCell","text":"0","depth":6,"on_screen":false,"role_description":"cell"},{"role":"AXStaticText","text":"0","depth":7,"on_screen":false,"role_description":"text"},{"role":"AXTextArea","text":"39","depth":8,"bounds":{"left":0.0,"top":0.0,"width":0.16458334,"height":0.024444444},"on_screen":false,"value":"39","role_description":"text entry area","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXCell","text":"0","depth":6,"on_screen":false,"role_description":"cell"},{"role":"AXStaticText","text":"0","depth":7,"on_screen":false,"role_description":"text"},{"role":"AXTextArea","text":"39","depth":8,"bounds":{"left":0.0,"top":0.0,"width":0.16458334,"height":0.024444444},"on_screen":false,"value":"39","role_description":"text entry area","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXCell","text":"0","depth":6,"on_screen":false,"role_description":"cell"},{"role":"AXStaticText","text":"0","depth":7,"on_screen":false,"role_description":"text"},{"role":"AXTextArea","text":"39","depth":8,"bounds":{"left":0.0,"top":0.0,"width":0.16458334,"height":0.024444444},"on_screen":false,"value":"39","role_description":"text entry area","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXCell","text":"2022-12-15 14:53:05","depth":6,"on_screen":false,"role_description":"cell"},{"role":"AXStaticText","text":"2022-12-15 14:53:05","depth":7,"on_screen":false,"role_description":"text"},{"role":"AXTextArea","text":"picktestmulti__c","depth":8,"bounds":{"left":0.0,"top":0.0,"width":0.10486111,"height":0.024444444},"on_screen":false,"value":"picktestmulti__c","role_description":"text entry area","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXCell","text":"2025-09-29 11:00:32","depth":6,"on_screen":false,"role_description":"cell"},{"role":"AXStaticText","text":"2025-09-29 11:00:32","depth":7,"on_screen":false,"role_description":"text"},{"role":"AXTextArea","text":"picktestmulti__c","depth":8,"bounds":{"left":0.0,"top":0.0,"width":0.10486111,"height":0.024444444},"on_screen":false,"value":"picktestmulti__c","role_description":"text entry area","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false}]...
|
-6596862621812442368
|
1595927343663496051
|
click
|
accessibility
|
NULL
|
Project: faVsco.js, menu
JY-20915-fix-missing-head Project: faVsco.js, menu
JY-20915-fix-missing-header-text-relay, menu
Start Listening for PHP Debug Connections
TextRelayServiceTest
Run 'TextRelayServiceTest'
Debug 'TextRelayServiceTest'
More Actions
JetBrains AI
Search Everywhere
IDE and Project Settings
Sync Changes
Hide This Notification
Code changed:
Hide
12
1
Previous Highlighted Error
Next Highlighted Error
<?php
namespace Jiminny\Http\Transformers;
use Jiminny\Models\Crm\Field;
use Jiminny\Models\Crm\Profile;
use League\Fractal\Resource\Collection;
use League\Fractal\TransformerAbstract;
class FieldTransformer extends TransformerAbstract
{
protected array $availableIncludes = [
'options',
];
private ?Profile $profile;
private bool $noDefault = false;
public function __construct(?Profile $profile = null)
{
$this->profile = $profile;
}
public function setNoDefault(bool $noDefault)
{
$this->noDefault = $noDefault;
}
public function transform(Field $field): array
{
$defaultValue = $field->default_value;
$type = $field->type;
if (\is_bool($defaultValue)) {
$defaultValue = (bool) $defaultValue;
}
return [
'id' => $field->id_string,
'objectType' => $field->object_type,
'label' => $field->label,
'fieldName' => $field->crm_provider_id,
'type' => $type,
'enabled' => $field->is_selectable,
'length' => $field->length,
'defaultValue' => $defaultValue,
];
}
public function includeOptions(Field $field): ?Collection
{
if ($field->type === Field::TYPE_PICKLIST && $values = $field->values) {
// if ($field->type === Field::TYPE_PICKLIST && $values = $field->values) {
// This gets a little complex. We need to check if this field has any record type constraints for the profile.
if (
$this->profile
&& ($recordType = $this->profile->{$field->object_type . 'RecordType'})
&& $recordType->fieldValues()->where('crm_field_id', $field->id)->exists()
) {
// Fetch the values specific for this record type.
$values = $recordType->fieldValues()->where('crm_field_id', $field->id)->get();
}
if ($this->noDefault) {
foreach ($values as $value) {
$value->is_default = false;
}
}
return $this->collection($values, new FieldValueTransformer());
}
return null;
}
}
A
id
B
uuid (UUID with time-low and time-high swapped)
C
crm_configuration_id
D
crm_provider_id
E
label
F
description
G
type
H
length
I
default_value
J
object_type
K
is_selectable
L
is_mandatory
M
is_filterable
N
is_indexable
O
created_at
P
updated_at
Q
is_readonly
Select All
1885
1885
39
58a51d4d-0ca7-49f0-9b2c-e16027877cc5
58a51d4d-0ca7-49f0-9b2c-e16027877cc5
picktestmulti__c
39
39
39
ReminderDateTime
ReminderDateTime
picktestmulti__c
Reminder Date/Time
Reminder Date/Time
picktestmulti__c
<null>
<null>
picktestmulti__c
datetime
datetime
picktestmulti__c
<null>
<null>
39
<null>
<null>
picktestmulti__c
event
event
picktestmulti__c
1
1
39
0
0
39
0
0
39
0
0
39
2022-12-15 14:53:05
2022-12-15 14:53:05
picktestmulti__c
2025-09-29 11:00:32
2025-09-29 11:00:32
picktestmulti__c...
|
NULL
|
NULL
|
NULL
|
NULL
|
|
79748
|
2791
|
28
|
2026-05-28T06:41:15.634796+00:00
|
/Users/lukas/.screenpipe/data/data/2026-05-28/1779 /Users/lukas/.screenpipe/data/data/2026-05-28/1779950475634_m2.jpg...
|
PhpStorm
|
faVsco.js – FieldTransformer.php
|
1
|
NULL
|
monitor_2
|
NULL
|
NULL
|
NULL
|
NULL
|
Project: faVsco.js, menu
JY-20915-fix-missing-head Project: faVsco.js, menu
JY-20915-fix-missing-header-text-relay, menu
Start Listening for PHP Debug Connections
TextRelayServiceTest
Run 'TextRelayServiceTest'
Debug 'TextRelayServiceTest'
More Actions
JetBrains AI
Search Everywhere
IDE and Project Settings
Sync Changes
Hide This Notification
Code changed:
Hide
12
1
Previous Highlighted Error
Next Highlighted Error
<?php
namespace Jiminny\Http\Transformers;
use Jiminny\Models\Crm\Field;
use Jiminny\Models\Crm\Profile;
use League\Fractal\Resource\Collection;
use League\Fractal\TransformerAbstract;
class FieldTransformer extends TransformerAbstract
{
protected array $availableIncludes = [
'options',
];
private ?Profile $profile;
private bool $noDefault = false;
public function __construct(?Profile $profile = null)
{
$this->profile = $profile;
}
public function setNoDefault(bool $noDefault)
{
$this->noDefault = $noDefault;
}
public function transform(Field $field): array
{
$defaultValue = $field->default_value;
$type = $field->type;
if (\is_bool($defaultValue)) {
$defaultValue = (bool) $defaultValue;
}
return [
'id' => $field->id_string,
'objectType' => $field->object_type,
'label' => $field->label,
'fieldName' => $field->crm_provider_id,
'type' => $type,
'enabled' => $field->is_selectable,
'length' => $field->length,
'defaultValue' => $defaultValue,
];
}
public function includeOptions(Field $field): ?Collection
{
if ($field->type === Field::TYPE_PICKLIST && $values = $field->values) {
// if ($field->type === Field::TYPE_PICKLIST && $values = $field->values) {
// This gets a little complex. We need to check if this field has any record type constraints for the profile.
if (
$this->profile
&& ($recordType = $this->profile->{$field->object_type . 'RecordType'})
&& $recordType->fieldValues()->where('crm_field_id', $field->id)->exists()
) {
// Fetch the values specific for this record type.
$values = $recordType->fieldValues()->where('crm_field_id', $field->id)->get();
}
if ($this->noDefault) {
foreach ($values as $value) {
$value->is_default = false;
}
}
return $this->collection($values, new FieldValueTransformer());
}
return null;
}
}
A
id
B
uuid (UUID with time-low and time-high swapped)
C
crm_configuration_id
D
crm_provider_id
E
label
F
description
G
type
H
length
I
default_value
J
object_type
K
is_selectable
L
is_mandatory
M
is_filterable
N
is_indexable
O
created_at
P
updated_at
Q
is_readonly
Select All
1885
1885
39
58a51d4d-0ca7-49f0-9b2c-e16027877cc5
58a51d4d-0ca7-49f0-9b2c-e16027877cc5
picktestmulti__c
39
39
39
ReminderDateTime
ReminderDateTime
picktestmulti__c
Reminder Date/Time
Reminder Date/Time
picktestmulti__c
<null>
<null>
picktestmulti__c
datetime
datetime
picktestmulti__c
<null>
<null>
39
<null>
<null>
picktestmulti__c
event
event
picktestmulti__c
1
1
39
0
0
39
0
0
39
0
0
39
2022-12-15 14:53:05
2022-12-15 14:53:05
picktestmulti__c
2025-09-29 11:00:32
2025-09-29 11:00:32
picktestmulti__c
0
0
39
3014
3014
39
a3d3df5a-eaa1-43d0-b95e-1ff4bec8c428
a3d3df5a-eaa1-43d0-b95e-1ff4bec8c428
picktestmulti__c
39
39
39
picktestmulti__c
picktestmulti__c
picktestmulti__c
picktestmulti
picktestmulti
picktestmulti__c
<null>
<null>
picktestmulti__c
multi-picklist
multi-picklist
picktestmulti__c
4099
4099
39
<null>
<null>
picktestmulti__c
event
event
picktestmulti__c
1
1
39
0
0
39...
|
[{"role":"AXButton","text" [{"role":"AXButton","text":"Project: faVsco.js, menu","depth":5,"bounds":{"left":0.025930852,"top":0.019952115,"width":0.03856383,"height":0.025538707},"on_screen":true,"help_text":"~/jiminny/app","role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"JY-20915-fix-missing-header-text-relay, menu","depth":5,"bounds":{"left":0.064494684,"top":0.019952115,"width":0.09740692,"height":0.025538707},"on_screen":true,"help_text":"Git Branch: JY-20915-fix-missing-header-text-relay","role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Start Listening for PHP Debug Connections","depth":5,"bounds":{"left":0.8374335,"top":0.019952115,"width":0.011303191,"height":0.025538707},"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"TextRelayServiceTest","depth":6,"bounds":{"left":0.85272604,"top":0.019952115,"width":0.062832445,"height":0.025538707},"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Run 'TextRelayServiceTest'","depth":6,"bounds":{"left":0.9155585,"top":0.019952115,"width":0.011303191,"height":0.025538707},"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Debug 'TextRelayServiceTest'","depth":6,"bounds":{"left":0.9268617,"top":0.019952115,"width":0.011303191,"height":0.025538707},"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"More Actions","depth":6,"bounds":{"left":0.9381649,"top":0.019952115,"width":0.011303191,"height":0.025538707},"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"JetBrains AI","depth":5,"bounds":{"left":0.96609044,"top":0.019952115,"width":0.011303191,"height":0.025538707},"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Search Everywhere","depth":5,"bounds":{"left":0.9773936,"top":0.019952115,"width":0.011303191,"height":0.025538707},"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"IDE and Project Settings","depth":5,"bounds":{"left":0.9886968,"top":0.019952115,"width":0.011303186,"height":0.025538707},"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Sync Changes","depth":4,"bounds":{"left":0.27027926,"top":1.0,"width":0.008643617,"height":0.0},"on_screen":false,"role_description":"button","is_enabled":false,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Hide This Notification","depth":4,"bounds":{"left":0.27027926,"top":1.0,"width":0.008643617,"height":0.0},"on_screen":false,"role_description":"button","is_enabled":false,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Code changed:","depth":4,"bounds":{"left":0.27027926,"top":1.0,"width":0.042220745,"height":0.0},"on_screen":false,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Hide","depth":4,"bounds":{"left":0.27027926,"top":1.0,"width":0.008643617,"height":0.0},"on_screen":false,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXStaticText","text":"12","depth":4,"bounds":{"left":0.37632978,"top":0.12529927,"width":0.009640957,"height":0.015163607},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"1","depth":4,"bounds":{"left":0.3879654,"top":0.12529927,"width":0.00731383,"height":0.015163607},"on_screen":true,"role_description":"text"},{"role":"AXButton","text":"Previous Highlighted Error","depth":4,"bounds":{"left":0.39694148,"top":0.123703115,"width":0.00731383,"height":0.018355945},"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Next Highlighted Error","depth":4,"bounds":{"left":0.40425533,"top":0.123703115,"width":0.006981383,"height":0.018355945},"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXTextArea","text":"<?php\n\nnamespace Jiminny\\Http\\Transformers;\n\nuse Jiminny\\Models\\Crm\\Field;\nuse Jiminny\\Models\\Crm\\Profile;\nuse League\\Fractal\\Resource\\Collection;\nuse League\\Fractal\\TransformerAbstract;\n\nclass FieldTransformer extends TransformerAbstract\n{\n protected array $availableIncludes = [\n 'options',\n ];\n private ?Profile $profile;\n\n private bool $noDefault = false;\n\n public function __construct(?Profile $profile = null)\n {\n $this->profile = $profile;\n }\n\n public function setNoDefault(bool $noDefault)\n {\n $this->noDefault = $noDefault;\n }\n\n public function transform(Field $field): array\n {\n $defaultValue = $field->default_value;\n $type = $field->type;\n\n if (\\is_bool($defaultValue)) {\n $defaultValue = (bool) $defaultValue;\n }\n\n return [\n 'id' => $field->id_string,\n 'objectType' => $field->object_type,\n 'label' => $field->label,\n 'fieldName' => $field->crm_provider_id,\n 'type' => $type,\n 'enabled' => $field->is_selectable,\n 'length' => $field->length,\n 'defaultValue' => $defaultValue,\n ];\n }\n\n public function includeOptions(Field $field): ?Collection\n {\n if ($field->type === Field::TYPE_PICKLIST && $values = $field->values) {\n// if ($field->type === Field::TYPE_PICKLIST && $values = $field->values) {\n // This gets a little complex. We need to check if this field has any record type constraints for the profile.\n if (\n $this->profile\n && ($recordType = $this->profile->{$field->object_type . 'RecordType'})\n && $recordType->fieldValues()->where('crm_field_id', $field->id)->exists()\n ) {\n // Fetch the values specific for this record type.\n $values = $recordType->fieldValues()->where('crm_field_id', $field->id)->get();\n }\n\n if ($this->noDefault) {\n foreach ($values as $value) {\n $value->is_default = false;\n }\n }\n\n return $this->collection($values, new FieldValueTransformer());\n }\n\n return null;\n }\n}","depth":4,"on_screen":true,"value":"<?php\n\nnamespace Jiminny\\Http\\Transformers;\n\nuse Jiminny\\Models\\Crm\\Field;\nuse Jiminny\\Models\\Crm\\Profile;\nuse League\\Fractal\\Resource\\Collection;\nuse League\\Fractal\\TransformerAbstract;\n\nclass FieldTransformer extends TransformerAbstract\n{\n protected array $availableIncludes = [\n 'options',\n ];\n private ?Profile $profile;\n\n private bool $noDefault = false;\n\n public function __construct(?Profile $profile = null)\n {\n $this->profile = $profile;\n }\n\n public function setNoDefault(bool $noDefault)\n {\n $this->noDefault = $noDefault;\n }\n\n public function transform(Field $field): array\n {\n $defaultValue = $field->default_value;\n $type = $field->type;\n\n if (\\is_bool($defaultValue)) {\n $defaultValue = (bool) $defaultValue;\n }\n\n return [\n 'id' => $field->id_string,\n 'objectType' => $field->object_type,\n 'label' => $field->label,\n 'fieldName' => $field->crm_provider_id,\n 'type' => $type,\n 'enabled' => $field->is_selectable,\n 'length' => $field->length,\n 'defaultValue' => $defaultValue,\n ];\n }\n\n public function includeOptions(Field $field): ?Collection\n {\n if ($field->type === Field::TYPE_PICKLIST && $values = $field->values) {\n// if ($field->type === Field::TYPE_PICKLIST && $values = $field->values) {\n // This gets a little complex. We need to check if this field has any record type constraints for the profile.\n if (\n $this->profile\n && ($recordType = $this->profile->{$field->object_type . 'RecordType'})\n && $recordType->fieldValues()->where('crm_field_id', $field->id)->exists()\n ) {\n // Fetch the values specific for this record type.\n $values = $recordType->fieldValues()->where('crm_field_id', $field->id)->get();\n }\n\n if ($this->noDefault) {\n foreach ($values as $value) {\n $value->is_default = false;\n }\n }\n\n return $this->collection($values, new FieldValueTransformer());\n }\n\n return null;\n }\n}","role_description":"text entry area","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXStaticText","text":"A","depth":4,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"id","depth":5,"bounds":{"left":0.27027926,"top":1.0,"width":0.020944148,"height":0.0},"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"B","depth":4,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"uuid (UUID with time-low and time-high swapped)","depth":5,"bounds":{"left":0.27027926,"top":1.0,"width":0.020944148,"height":0.0},"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"C","depth":4,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"crm_configuration_id","depth":5,"bounds":{"left":0.27027926,"top":1.0,"width":0.020944148,"height":0.0},"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"D","depth":4,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"crm_provider_id","depth":5,"bounds":{"left":0.27027926,"top":1.0,"width":0.020944148,"height":0.0},"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"E","depth":4,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"label","depth":5,"bounds":{"left":0.27027926,"top":1.0,"width":0.020944148,"height":0.0},"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"F","depth":4,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"description","depth":5,"bounds":{"left":0.27027926,"top":1.0,"width":0.020944148,"height":0.0},"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"G","depth":4,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"type","depth":5,"bounds":{"left":0.27027926,"top":1.0,"width":0.020944148,"height":0.0},"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"H","depth":4,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"length","depth":5,"bounds":{"left":0.27027926,"top":1.0,"width":0.020944148,"height":0.0},"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"I","depth":4,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"default_value","depth":5,"bounds":{"left":0.27027926,"top":1.0,"width":0.020944148,"height":0.0},"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"J","depth":4,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"object_type","depth":5,"bounds":{"left":0.27027926,"top":1.0,"width":0.020944148,"height":0.0},"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"K","depth":4,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"is_selectable","depth":5,"bounds":{"left":0.27027926,"top":1.0,"width":0.020944148,"height":0.0},"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"L","depth":4,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"is_mandatory","depth":5,"bounds":{"left":0.27027926,"top":1.0,"width":0.020944148,"height":0.0},"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"M","depth":4,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"is_filterable","depth":5,"bounds":{"left":0.27027926,"top":1.0,"width":0.020944148,"height":0.0},"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"N","depth":4,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"is_indexable","depth":5,"bounds":{"left":0.27027926,"top":1.0,"width":0.020944148,"height":0.0},"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"O","depth":4,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"created_at","depth":5,"bounds":{"left":0.27027926,"top":1.0,"width":0.020944148,"height":0.0},"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"P","depth":4,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"updated_at","depth":5,"bounds":{"left":0.27027926,"top":1.0,"width":0.020944148,"height":0.0},"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"Q","depth":4,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"is_readonly","depth":5,"bounds":{"left":0.27027926,"top":1.0,"width":0.020944148,"height":0.0},"on_screen":false,"role_description":"text"},{"role":"AXButton","text":"Select All","depth":4,"bounds":{"left":0.41156915,"top":0.14365523,"width":0.007978723,"height":0.0207502},"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXCell","text":"1885","depth":6,"bounds":{"left":0.41988033,"top":0.16520351,"width":0.034242023,"height":0.0207502},"on_screen":true,"role_description":"cell"},{"role":"AXStaticText","text":"1885","depth":7,"bounds":{"left":0.41988033,"top":0.16520351,"width":0.034242023,"height":0.0207502},"on_screen":true,"role_description":"text"},{"role":"AXTextArea","text":"39","depth":8,"bounds":{"left":0.27027926,"top":1.0,"width":0.0787899,"height":0.0},"on_screen":false,"value":"39","role_description":"text entry area","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXCell","text":"58a51d4d-0ca7-49f0-9b2c-e16027877cc5","depth":6,"bounds":{"left":0.45445478,"top":0.16520351,"width":0.10073138,"height":0.0207502},"on_screen":true,"role_description":"cell"},{"role":"AXStaticText","text":"58a51d4d-0ca7-49f0-9b2c-e16027877cc5","depth":7,"bounds":{"left":0.45445478,"top":0.16520351,"width":0.10073138,"height":0.0207502},"on_screen":true,"role_description":"text"},{"role":"AXTextArea","text":"picktestmulti__c","depth":8,"bounds":{"left":0.27027926,"top":1.0,"width":0.050199468,"height":0.0},"on_screen":false,"value":"picktestmulti__c","role_description":"text entry area","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXCell","text":"39","depth":6,"bounds":{"left":0.5555186,"top":0.16520351,"width":0.080784574,"height":0.0207502},"on_screen":true,"role_description":"cell"},{"role":"AXStaticText","text":"39","depth":7,"bounds":{"left":0.5555186,"top":0.16520351,"width":0.080784574,"height":0.0207502},"on_screen":true,"role_description":"text"},{"role":"AXTextArea","text":"39","depth":8,"bounds":{"left":0.27027926,"top":1.0,"width":0.0787899,"height":0.0},"on_screen":false,"value":"39","role_description":"text entry area","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXCell","text":"ReminderDateTime","depth":6,"bounds":{"left":0.63663566,"top":0.16520351,"width":0.06781915,"height":0.0207502},"on_screen":true,"role_description":"cell"},{"role":"AXStaticText","text":"ReminderDateTime","depth":7,"bounds":{"left":0.63663566,"top":0.16520351,"width":0.06781915,"height":0.0207502},"on_screen":true,"role_description":"text"},{"role":"AXTextArea","text":"picktestmulti__c","depth":8,"bounds":{"left":0.27027926,"top":1.0,"width":0.050199468,"height":0.0},"on_screen":false,"value":"picktestmulti__c","role_description":"text entry area","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXCell","text":"Reminder Date/Time","depth":6,"bounds":{"left":0.70478725,"top":0.16520351,"width":0.05219415,"height":0.0207502},"on_screen":true,"role_description":"cell"},{"role":"AXStaticText","text":"Reminder Date/Time","depth":7,"bounds":{"left":0.70478725,"top":0.16520351,"width":0.05219415,"height":0.0207502},"on_screen":true,"role_description":"text"},{"role":"AXTextArea","text":"picktestmulti__c","depth":8,"bounds":{"left":0.27027926,"top":1.0,"width":0.050199468,"height":0.0},"on_screen":false,"value":"picktestmulti__c","role_description":"text entry area","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXCell","text":"<null>","depth":6,"bounds":{"left":0.75731385,"top":0.16520351,"width":0.057513297,"height":0.0207502},"on_screen":true,"role_description":"cell"},{"role":"AXStaticText","text":"<null>","depth":7,"bounds":{"left":0.75731385,"top":0.16520351,"width":0.057513297,"height":0.0207502},"on_screen":true,"role_description":"text"},{"role":"AXTextArea","text":"picktestmulti__c","depth":8,"bounds":{"left":0.27027926,"top":1.0,"width":0.050199468,"height":0.0},"on_screen":false,"value":"picktestmulti__c","role_description":"text entry area","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXCell","text":"datetime","depth":6,"bounds":{"left":0.81515956,"top":0.16520351,"width":0.04155585,"height":0.0207502},"on_screen":true,"role_description":"cell"},{"role":"AXStaticText","text":"datetime","depth":7,"bounds":{"left":0.81515956,"top":0.16520351,"width":0.04155585,"height":0.0207502},"on_screen":true,"role_description":"text"},{"role":"AXTextArea","text":"picktestmulti__c","depth":8,"bounds":{"left":0.27027926,"top":1.0,"width":0.050199468,"height":0.0},"on_screen":false,"value":"picktestmulti__c","role_description":"text entry area","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXCell","text":"<null>","depth":6,"bounds":{"left":0.85704786,"top":0.16520351,"width":0.04454787,"height":0.0207502},"on_screen":true,"role_description":"cell"},{"role":"AXStaticText","text":"<null>","depth":7,"bounds":{"left":0.85704786,"top":0.16520351,"width":0.04454787,"height":0.0207502},"on_screen":true,"role_description":"text"},{"role":"AXTextArea","text":"39","depth":8,"bounds":{"left":0.27027926,"top":1.0,"width":0.0787899,"height":0.0},"on_screen":false,"value":"39","role_description":"text entry area","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXCell","text":"<null>","depth":6,"bounds":{"left":0.9019282,"top":0.16520351,"width":0.0625,"height":0.0207502},"on_screen":true,"role_description":"cell"},{"role":"AXStaticText","text":"<null>","depth":7,"bounds":{"left":0.9019282,"top":0.16520351,"width":0.0625,"height":0.0207502},"on_screen":true,"role_description":"text"},{"role":"AXTextArea","text":"picktestmulti__c","depth":8,"bounds":{"left":0.27027926,"top":1.0,"width":0.050199468,"height":0.0},"on_screen":false,"value":"picktestmulti__c","role_description":"text entry area","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXCell","text":"event","depth":6,"bounds":{"left":0.96476066,"top":0.16520351,"width":0.03523934,"height":0.0207502},"on_screen":true,"role_description":"cell"},{"role":"AXStaticText","text":"event","depth":7,"bounds":{"left":0.96476066,"top":0.16520351,"width":0.03523934,"height":0.0207502},"on_screen":true,"role_description":"text"},{"role":"AXTextArea","text":"picktestmulti__c","depth":8,"bounds":{"left":0.27027926,"top":1.0,"width":0.050199468,"height":0.0},"on_screen":false,"value":"picktestmulti__c","role_description":"text entry area","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXCell","text":"1","depth":6,"bounds":{"left":1.0,"top":0.16520351,"width":-0.022606373,"height":0.0207502},"on_screen":false,"role_description":"cell"},{"role":"AXStaticText","text":"1","depth":7,"bounds":{"left":1.0,"top":0.16520351,"width":-0.022606373,"height":0.0207502},"on_screen":false,"role_description":"text"},{"role":"AXTextArea","text":"39","depth":8,"bounds":{"left":0.27027926,"top":1.0,"width":0.0787899,"height":0.0},"on_screen":false,"value":"39","role_description":"text entry area","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXCell","text":"0","depth":6,"bounds":{"left":1.0,"top":0.16520351,"width":-0.08543885,"height":0.0207502},"on_screen":false,"role_description":"cell"},{"role":"AXStaticText","text":"0","depth":7,"bounds":{"left":1.0,"top":0.16520351,"width":-0.08543885,"height":0.0207502},"on_screen":false,"role_description":"text"},{"role":"AXTextArea","text":"39","depth":8,"bounds":{"left":0.27027926,"top":1.0,"width":0.0787899,"height":0.0},"on_screen":false,"value":"39","role_description":"text entry area","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXCell","text":"0","depth":6,"on_screen":false,"role_description":"cell"},{"role":"AXStaticText","text":"0","depth":7,"on_screen":false,"role_description":"text"},{"role":"AXTextArea","text":"39","depth":8,"bounds":{"left":0.27027926,"top":1.0,"width":0.0787899,"height":0.0},"on_screen":false,"value":"39","role_description":"text entry area","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXCell","text":"0","depth":6,"on_screen":false,"role_description":"cell"},{"role":"AXStaticText","text":"0","depth":7,"on_screen":false,"role_description":"text"},{"role":"AXTextArea","text":"39","depth":8,"bounds":{"left":0.27027926,"top":1.0,"width":0.0787899,"height":0.0},"on_screen":false,"value":"39","role_description":"text entry area","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXCell","text":"2022-12-15 14:53:05","depth":6,"on_screen":false,"role_description":"cell"},{"role":"AXStaticText","text":"2022-12-15 14:53:05","depth":7,"on_screen":false,"role_description":"text"},{"role":"AXTextArea","text":"picktestmulti__c","depth":8,"bounds":{"left":0.27027926,"top":1.0,"width":0.050199468,"height":0.0},"on_screen":false,"value":"picktestmulti__c","role_description":"text entry area","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXCell","text":"2025-09-29 11:00:32","depth":6,"on_screen":false,"role_description":"cell"},{"role":"AXStaticText","text":"2025-09-29 11:00:32","depth":7,"on_screen":false,"role_description":"text"},{"role":"AXTextArea","text":"picktestmulti__c","depth":8,"bounds":{"left":0.27027926,"top":1.0,"width":0.050199468,"height":0.0},"on_screen":false,"value":"picktestmulti__c","role_description":"text entry area","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXCell","text":"0","depth":6,"on_screen":false,"role_description":"cell"},{"role":"AXStaticText","text":"0","depth":7,"on_screen":false,"role_description":"text"},{"role":"AXTextArea","text":"39","depth":8,"bounds":{"left":0.27027926,"top":1.0,"width":0.0787899,"height":0.0},"on_screen":false,"value":"39","role_description":"text entry area","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXCell","text":"3014","depth":6,"bounds":{"left":0.41988033,"top":0.1867518,"width":0.034242023,"height":0.0207502},"on_screen":true,"role_description":"cell"},{"role":"AXStaticText","text":"3014","depth":7,"bounds":{"left":0.41988033,"top":0.1867518,"width":0.034242023,"height":0.0207502},"on_screen":true,"role_description":"text"},{"role":"AXTextArea","text":"39","depth":8,"bounds":{"left":0.27027926,"top":1.0,"width":0.0787899,"height":0.0},"on_screen":false,"value":"39","role_description":"text entry area","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXCell","text":"a3d3df5a-eaa1-43d0-b95e-1ff4bec8c428","depth":6,"bounds":{"left":0.45445478,"top":0.1867518,"width":0.10073138,"height":0.0207502},"on_screen":true,"role_description":"cell"},{"role":"AXStaticText","text":"a3d3df5a-eaa1-43d0-b95e-1ff4bec8c428","depth":7,"bounds":{"left":0.45445478,"top":0.1867518,"width":0.10073138,"height":0.0207502},"on_screen":true,"role_description":"text"},{"role":"AXTextArea","text":"picktestmulti__c","depth":8,"bounds":{"left":0.27027926,"top":1.0,"width":0.050199468,"height":0.0},"on_screen":false,"value":"picktestmulti__c","role_description":"text entry area","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXCell","text":"39","depth":6,"bounds":{"left":0.5555186,"top":0.1867518,"width":0.080784574,"height":0.0207502},"on_screen":true,"role_description":"cell"},{"role":"AXStaticText","text":"39","depth":7,"bounds":{"left":0.5555186,"top":0.1867518,"width":0.080784574,"height":0.0207502},"on_screen":true,"role_description":"text"},{"role":"AXTextArea","text":"39","depth":8,"bounds":{"left":0.27027926,"top":1.0,"width":0.0787899,"height":0.0},"on_screen":false,"value":"39","role_description":"text entry area","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXCell","text":"picktestmulti__c","depth":6,"bounds":{"left":0.63663566,"top":0.1867518,"width":0.06781915,"height":0.0207502},"on_screen":true,"role_description":"cell"},{"role":"AXStaticText","text":"picktestmulti__c","depth":7,"bounds":{"left":0.63663566,"top":0.1867518,"width":0.06781915,"height":0.0207502},"on_screen":true,"role_description":"text"},{"role":"AXTextArea","text":"picktestmulti__c","depth":8,"bounds":{"left":0.27027926,"top":1.0,"width":0.050199468,"height":0.0},"on_screen":false,"value":"picktestmulti__c","role_description":"text entry area","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXCell","text":"picktestmulti","depth":6,"bounds":{"left":0.70478725,"top":0.1867518,"width":0.05219415,"height":0.0207502},"on_screen":true,"role_description":"cell"},{"role":"AXStaticText","text":"picktestmulti","depth":7,"bounds":{"left":0.70478725,"top":0.1867518,"width":0.05219415,"height":0.0207502},"on_screen":true,"role_description":"text"},{"role":"AXTextArea","text":"picktestmulti__c","depth":8,"bounds":{"left":0.27027926,"top":1.0,"width":0.050199468,"height":0.0},"on_screen":false,"value":"picktestmulti__c","role_description":"text entry area","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXCell","text":"<null>","depth":6,"bounds":{"left":0.75731385,"top":0.1867518,"width":0.057513297,"height":0.0207502},"on_screen":true,"role_description":"cell"},{"role":"AXStaticText","text":"<null>","depth":7,"bounds":{"left":0.75731385,"top":0.1867518,"width":0.057513297,"height":0.0207502},"on_screen":true,"role_description":"text"},{"role":"AXTextArea","text":"picktestmulti__c","depth":8,"bounds":{"left":0.27027926,"top":1.0,"width":0.050199468,"height":0.0},"on_screen":false,"value":"picktestmulti__c","role_description":"text entry area","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXCell","text":"multi-picklist","depth":6,"bounds":{"left":0.81515956,"top":0.1867518,"width":0.04155585,"height":0.0207502},"on_screen":true,"role_description":"cell"},{"role":"AXStaticText","text":"multi-picklist","depth":7,"bounds":{"left":0.81515956,"top":0.1867518,"width":0.04155585,"height":0.0207502},"on_screen":true,"role_description":"text"},{"role":"AXTextArea","text":"picktestmulti__c","depth":8,"bounds":{"left":0.27027926,"top":1.0,"width":0.050199468,"height":0.0},"on_screen":false,"value":"picktestmulti__c","role_description":"text entry area","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXCell","text":"4099","depth":6,"bounds":{"left":0.85704786,"top":0.1867518,"width":0.04454787,"height":0.0207502},"on_screen":true,"role_description":"cell"},{"role":"AXStaticText","text":"4099","depth":7,"bounds":{"left":0.85704786,"top":0.1867518,"width":0.04454787,"height":0.0207502},"on_screen":true,"role_description":"text"},{"role":"AXTextArea","text":"39","depth":8,"bounds":{"left":0.27027926,"top":1.0,"width":0.0787899,"height":0.0},"on_screen":false,"value":"39","role_description":"text entry area","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXCell","text":"<null>","depth":6,"bounds":{"left":0.9019282,"top":0.1867518,"width":0.0625,"height":0.0207502},"on_screen":true,"role_description":"cell"},{"role":"AXStaticText","text":"<null>","depth":7,"bounds":{"left":0.9019282,"top":0.1867518,"width":0.0625,"height":0.0207502},"on_screen":true,"role_description":"text"},{"role":"AXTextArea","text":"picktestmulti__c","depth":8,"bounds":{"left":0.27027926,"top":1.0,"width":0.050199468,"height":0.0},"on_screen":false,"value":"picktestmulti__c","role_description":"text entry area","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXCell","text":"event","depth":6,"bounds":{"left":0.96476066,"top":0.1867518,"width":0.03523934,"height":0.0207502},"on_screen":true,"role_description":"cell"},{"role":"AXStaticText","text":"event","depth":7,"bounds":{"left":0.96476066,"top":0.1867518,"width":0.03523934,"height":0.0207502},"on_screen":true,"role_description":"text"},{"role":"AXTextArea","text":"picktestmulti__c","depth":8,"bounds":{"left":0.27027926,"top":1.0,"width":0.050199468,"height":0.0},"on_screen":false,"value":"picktestmulti__c","role_description":"text entry area","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXCell","text":"1","depth":6,"bounds":{"left":1.0,"top":0.1867518,"width":-0.022606373,"height":0.0207502},"on_screen":false,"role_description":"cell"},{"role":"AXStaticText","text":"1","depth":7,"bounds":{"left":1.0,"top":0.1867518,"width":-0.022606373,"height":0.0207502},"on_screen":false,"role_description":"text"},{"role":"AXTextArea","text":"39","depth":8,"bounds":{"left":0.27027926,"top":1.0,"width":0.0787899,"height":0.0},"on_screen":false,"value":"39","role_description":"text entry area","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXCell","text":"0","depth":6,"bounds":{"left":1.0,"top":0.1867518,"width":-0.08543885,"height":0.0207502},"on_screen":false,"role_description":"cell"},{"role":"AXStaticText","text":"0","depth":7,"bounds":{"left":1.0,"top":0.1867518,"width":-0.08543885,"height":0.0207502},"on_screen":false,"role_description":"text"},{"role":"AXTextArea","text":"39","depth":8,"bounds":{"left":0.27027926,"top":1.0,"width":0.0787899,"height":0.0},"on_screen":false,"value":"39","role_description":"text entry area","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false}]...
|
-1397666312501127624
|
447227894987831411
|
click
|
accessibility
|
NULL
|
Project: faVsco.js, menu
JY-20915-fix-missing-head Project: faVsco.js, menu
JY-20915-fix-missing-header-text-relay, menu
Start Listening for PHP Debug Connections
TextRelayServiceTest
Run 'TextRelayServiceTest'
Debug 'TextRelayServiceTest'
More Actions
JetBrains AI
Search Everywhere
IDE and Project Settings
Sync Changes
Hide This Notification
Code changed:
Hide
12
1
Previous Highlighted Error
Next Highlighted Error
<?php
namespace Jiminny\Http\Transformers;
use Jiminny\Models\Crm\Field;
use Jiminny\Models\Crm\Profile;
use League\Fractal\Resource\Collection;
use League\Fractal\TransformerAbstract;
class FieldTransformer extends TransformerAbstract
{
protected array $availableIncludes = [
'options',
];
private ?Profile $profile;
private bool $noDefault = false;
public function __construct(?Profile $profile = null)
{
$this->profile = $profile;
}
public function setNoDefault(bool $noDefault)
{
$this->noDefault = $noDefault;
}
public function transform(Field $field): array
{
$defaultValue = $field->default_value;
$type = $field->type;
if (\is_bool($defaultValue)) {
$defaultValue = (bool) $defaultValue;
}
return [
'id' => $field->id_string,
'objectType' => $field->object_type,
'label' => $field->label,
'fieldName' => $field->crm_provider_id,
'type' => $type,
'enabled' => $field->is_selectable,
'length' => $field->length,
'defaultValue' => $defaultValue,
];
}
public function includeOptions(Field $field): ?Collection
{
if ($field->type === Field::TYPE_PICKLIST && $values = $field->values) {
// if ($field->type === Field::TYPE_PICKLIST && $values = $field->values) {
// This gets a little complex. We need to check if this field has any record type constraints for the profile.
if (
$this->profile
&& ($recordType = $this->profile->{$field->object_type . 'RecordType'})
&& $recordType->fieldValues()->where('crm_field_id', $field->id)->exists()
) {
// Fetch the values specific for this record type.
$values = $recordType->fieldValues()->where('crm_field_id', $field->id)->get();
}
if ($this->noDefault) {
foreach ($values as $value) {
$value->is_default = false;
}
}
return $this->collection($values, new FieldValueTransformer());
}
return null;
}
}
A
id
B
uuid (UUID with time-low and time-high swapped)
C
crm_configuration_id
D
crm_provider_id
E
label
F
description
G
type
H
length
I
default_value
J
object_type
K
is_selectable
L
is_mandatory
M
is_filterable
N
is_indexable
O
created_at
P
updated_at
Q
is_readonly
Select All
1885
1885
39
58a51d4d-0ca7-49f0-9b2c-e16027877cc5
58a51d4d-0ca7-49f0-9b2c-e16027877cc5
picktestmulti__c
39
39
39
ReminderDateTime
ReminderDateTime
picktestmulti__c
Reminder Date/Time
Reminder Date/Time
picktestmulti__c
<null>
<null>
picktestmulti__c
datetime
datetime
picktestmulti__c
<null>
<null>
39
<null>
<null>
picktestmulti__c
event
event
picktestmulti__c
1
1
39
0
0
39
0
0
39
0
0
39
2022-12-15 14:53:05
2022-12-15 14:53:05
picktestmulti__c
2025-09-29 11:00:32
2025-09-29 11:00:32
picktestmulti__c
0
0
39
3014
3014
39
a3d3df5a-eaa1-43d0-b95e-1ff4bec8c428
a3d3df5a-eaa1-43d0-b95e-1ff4bec8c428
picktestmulti__c
39
39
39
picktestmulti__c
picktestmulti__c
picktestmulti__c
picktestmulti
picktestmulti
picktestmulti__c
<null>
<null>
picktestmulti__c
multi-picklist
multi-picklist
picktestmulti__c
4099
4099
39
<null>
<null>
picktestmulti__c
event
event
picktestmulti__c
1
1
39
0
0
39...
|
79747
|
NULL
|
NULL
|
NULL
|
|
79747
|
2791
|
27
|
2026-05-28T06:41:14.614146+00:00
|
/Users/lukas/.screenpipe/data/data/2026-05-28/1779 /Users/lukas/.screenpipe/data/data/2026-05-28/1779950474614_m2.jpg...
|
PhpStorm
|
faVsco.js – FieldTransformer.php
|
1
|
NULL
|
monitor_2
|
NULL
|
NULL
|
NULL
|
NULL
|
Project: faVsco.js, menu
JY-20915-fix-missing-head Project: faVsco.js, menu
JY-20915-fix-missing-header-text-relay, menu
Start Listening for PHP Debug Connections
TextRelayServiceTest
Run 'TextRelayServiceTest'
Debug 'TextRelayServiceTest'
More Actions
JetBrains AI
Search Everywhere
IDE and Project Settings
Sync Changes
Hide This Notification
Code changed:
Hide
12
1
Previous Highlighted Error
Next Highlighted Error
<?php
namespace Jiminny\Http\Transformers;
use Jiminny\Models\Crm\Field;
use Jiminny\Models\Crm\Profile;
use League\Fractal\Resource\Collection;
use League\Fractal\TransformerAbstract;
class FieldTransformer extends TransformerAbstract
{
protected array $availableIncludes = [
'options',
];
private ?Profile $profile;
private bool $noDefault = false;
public function __construct(?Profile $profile = null)
{
$this->profile = $profile;
}
public function setNoDefault(bool $noDefault)
{
$this->noDefault = $noDefault;
}
public function transform(Field $field): array
{
$defaultValue = $field->default_value;
$type = $field->type;
if (\is_bool($defaultValue)) {
$defaultValue = (bool) $defaultValue;
}
return [
'id' => $field->id_string,
'objectType' => $field->object_type,
'label' => $field->label,
'fieldName' => $field->crm_provider_id,
'type' => $type,
'enabled' => $field->is_selectable,
'length' => $field->length,
'defaultValue' => $defaultValue,
];
}
public function includeOptions(Field $field): ?Collection
{
if ($field->type === Field::TYPE_PICKLIST && $values = $field->values) {
// if ($field->type === Field::TYPE_PICKLIST && $values = $field->values) {
// This gets a little complex. We need to check if this field has any record type constraints for the profile.
if (
$this->profile
&& ($recordType = $this->profile->{$field->object_type . 'RecordType'})
&& $recordType->fieldValues()->where('crm_field_id', $field->id)->exists()
) {
// Fetch the values specific for this record type.
$values = $recordType->fieldValues()->where('crm_field_id', $field->id)->get();
}
if ($this->noDefault) {
foreach ($values as $value) {
$value->is_default = false;
}
}
return $this->collection($values, new FieldValueTransformer());
}
return null;
}
}
A
id
B
uuid (UUID with time-low and time-high swapped)
C
crm_configuration_id
D
crm_provider_id
Select All
1885
1885
39
58a51d4d-0ca7-49f0-9b2c-e16027877cc5
58a51d4d-0ca7-49f0-9b2c-e16027877cc5
picktestmulti__c
39
39
39
ReminderDateTime
ReminderDateTime
picktestmulti__c
Reminder Date/Time
Reminder Date/Time
picktestmulti__c
<null>
<null>
picktestmulti__c
datetime
datetime
picktestmulti__c
<null>
<null>
39
<null>
<null>
picktestmulti__c
event
event
picktestmulti__c
1
1
39
0
0
39
0
0
39
0
0
39
2022-12-15 14:53:05
2022-12-15 14:53:05
picktestmulti__c
2025-09-29 11:00:32
2025-09-29 11:00:32
picktestmulti__c
0
0
39
3014
3014
39
a3d3df5a-eaa1-43d0-b95e-1ff4bec8c428
a3d3df5a-eaa1-43d0-b95e-1ff4bec8c428
picktestmulti__c
39
39
39
picktestmulti__c
picktestmulti__c
picktestmulti__c
picktestmulti
picktestmulti
picktestmulti__c
<null>
<null>
picktestmulti__c
multi-picklist
multi-picklist
picktestmulti__c
4099
4099...
|
[{"role":"AXButton","text" [{"role":"AXButton","text":"Project: faVsco.js, menu","depth":5,"bounds":{"left":0.025930852,"top":0.019952115,"width":0.03856383,"height":0.025538707},"on_screen":true,"help_text":"~/jiminny/app","role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"JY-20915-fix-missing-header-text-relay, menu","depth":5,"bounds":{"left":0.064494684,"top":0.019952115,"width":0.09740692,"height":0.025538707},"on_screen":true,"help_text":"Git Branch: JY-20915-fix-missing-header-text-relay","role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Start Listening for PHP Debug Connections","depth":5,"bounds":{"left":0.8374335,"top":0.019952115,"width":0.011303191,"height":0.025538707},"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"TextRelayServiceTest","depth":6,"bounds":{"left":0.85272604,"top":0.019952115,"width":0.062832445,"height":0.025538707},"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Run 'TextRelayServiceTest'","depth":6,"bounds":{"left":0.9155585,"top":0.019952115,"width":0.011303191,"height":0.025538707},"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Debug 'TextRelayServiceTest'","depth":6,"bounds":{"left":0.9268617,"top":0.019952115,"width":0.011303191,"height":0.025538707},"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"More Actions","depth":6,"bounds":{"left":0.9381649,"top":0.019952115,"width":0.011303191,"height":0.025538707},"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"JetBrains AI","depth":5,"bounds":{"left":0.96609044,"top":0.019952115,"width":0.011303191,"height":0.025538707},"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Search Everywhere","depth":5,"bounds":{"left":0.9773936,"top":0.019952115,"width":0.011303191,"height":0.025538707},"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"IDE and Project Settings","depth":5,"bounds":{"left":0.9886968,"top":0.019952115,"width":0.011303186,"height":0.025538707},"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Sync Changes","depth":4,"bounds":{"left":0.27027926,"top":1.0,"width":0.008643617,"height":0.0},"on_screen":false,"role_description":"button","is_enabled":false,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Hide This Notification","depth":4,"bounds":{"left":0.27027926,"top":1.0,"width":0.008643617,"height":0.0},"on_screen":false,"role_description":"button","is_enabled":false,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Code changed:","depth":4,"bounds":{"left":0.27027926,"top":1.0,"width":0.042220745,"height":0.0},"on_screen":false,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Hide","depth":4,"bounds":{"left":0.27027926,"top":1.0,"width":0.008643617,"height":0.0},"on_screen":false,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXStaticText","text":"12","depth":4,"bounds":{"left":0.37632978,"top":0.12529927,"width":0.009640957,"height":0.015163607},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"1","depth":4,"bounds":{"left":0.3879654,"top":0.12529927,"width":0.00731383,"height":0.015163607},"on_screen":true,"role_description":"text"},{"role":"AXButton","text":"Previous Highlighted Error","depth":4,"bounds":{"left":0.39694148,"top":0.123703115,"width":0.00731383,"height":0.018355945},"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Next Highlighted Error","depth":4,"bounds":{"left":0.40425533,"top":0.123703115,"width":0.006981383,"height":0.018355945},"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXTextArea","text":"<?php\n\nnamespace Jiminny\\Http\\Transformers;\n\nuse Jiminny\\Models\\Crm\\Field;\nuse Jiminny\\Models\\Crm\\Profile;\nuse League\\Fractal\\Resource\\Collection;\nuse League\\Fractal\\TransformerAbstract;\n\nclass FieldTransformer extends TransformerAbstract\n{\n protected array $availableIncludes = [\n 'options',\n ];\n private ?Profile $profile;\n\n private bool $noDefault = false;\n\n public function __construct(?Profile $profile = null)\n {\n $this->profile = $profile;\n }\n\n public function setNoDefault(bool $noDefault)\n {\n $this->noDefault = $noDefault;\n }\n\n public function transform(Field $field): array\n {\n $defaultValue = $field->default_value;\n $type = $field->type;\n\n if (\\is_bool($defaultValue)) {\n $defaultValue = (bool) $defaultValue;\n }\n\n return [\n 'id' => $field->id_string,\n 'objectType' => $field->object_type,\n 'label' => $field->label,\n 'fieldName' => $field->crm_provider_id,\n 'type' => $type,\n 'enabled' => $field->is_selectable,\n 'length' => $field->length,\n 'defaultValue' => $defaultValue,\n ];\n }\n\n public function includeOptions(Field $field): ?Collection\n {\n if ($field->type === Field::TYPE_PICKLIST && $values = $field->values) {\n// if ($field->type === Field::TYPE_PICKLIST && $values = $field->values) {\n // This gets a little complex. We need to check if this field has any record type constraints for the profile.\n if (\n $this->profile\n && ($recordType = $this->profile->{$field->object_type . 'RecordType'})\n && $recordType->fieldValues()->where('crm_field_id', $field->id)->exists()\n ) {\n // Fetch the values specific for this record type.\n $values = $recordType->fieldValues()->where('crm_field_id', $field->id)->get();\n }\n\n if ($this->noDefault) {\n foreach ($values as $value) {\n $value->is_default = false;\n }\n }\n\n return $this->collection($values, new FieldValueTransformer());\n }\n\n return null;\n }\n}","depth":4,"on_screen":true,"value":"<?php\n\nnamespace Jiminny\\Http\\Transformers;\n\nuse Jiminny\\Models\\Crm\\Field;\nuse Jiminny\\Models\\Crm\\Profile;\nuse League\\Fractal\\Resource\\Collection;\nuse League\\Fractal\\TransformerAbstract;\n\nclass FieldTransformer extends TransformerAbstract\n{\n protected array $availableIncludes = [\n 'options',\n ];\n private ?Profile $profile;\n\n private bool $noDefault = false;\n\n public function __construct(?Profile $profile = null)\n {\n $this->profile = $profile;\n }\n\n public function setNoDefault(bool $noDefault)\n {\n $this->noDefault = $noDefault;\n }\n\n public function transform(Field $field): array\n {\n $defaultValue = $field->default_value;\n $type = $field->type;\n\n if (\\is_bool($defaultValue)) {\n $defaultValue = (bool) $defaultValue;\n }\n\n return [\n 'id' => $field->id_string,\n 'objectType' => $field->object_type,\n 'label' => $field->label,\n 'fieldName' => $field->crm_provider_id,\n 'type' => $type,\n 'enabled' => $field->is_selectable,\n 'length' => $field->length,\n 'defaultValue' => $defaultValue,\n ];\n }\n\n public function includeOptions(Field $field): ?Collection\n {\n if ($field->type === Field::TYPE_PICKLIST && $values = $field->values) {\n// if ($field->type === Field::TYPE_PICKLIST && $values = $field->values) {\n // This gets a little complex. We need to check if this field has any record type constraints for the profile.\n if (\n $this->profile\n && ($recordType = $this->profile->{$field->object_type . 'RecordType'})\n && $recordType->fieldValues()->where('crm_field_id', $field->id)->exists()\n ) {\n // Fetch the values specific for this record type.\n $values = $recordType->fieldValues()->where('crm_field_id', $field->id)->get();\n }\n\n if ($this->noDefault) {\n foreach ($values as $value) {\n $value->is_default = false;\n }\n }\n\n return $this->collection($values, new FieldValueTransformer());\n }\n\n return null;\n }\n}","role_description":"text entry area","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXStaticText","text":"A","depth":4,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"id","depth":5,"bounds":{"left":0.27027926,"top":1.0,"width":0.020944148,"height":0.0},"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"B","depth":4,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"uuid (UUID with time-low and time-high swapped)","depth":5,"bounds":{"left":0.27027926,"top":1.0,"width":0.020944148,"height":0.0},"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"C","depth":4,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"crm_configuration_id","depth":5,"bounds":{"left":0.27027926,"top":1.0,"width":0.020944148,"height":0.0},"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"D","depth":4,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"crm_provider_id","depth":5,"bounds":{"left":0.27027926,"top":1.0,"width":0.020944148,"height":0.0},"on_screen":false,"role_description":"text"},{"role":"AXButton","text":"Select All","depth":4,"bounds":{"left":0.41156915,"top":0.14365523,"width":0.007978723,"height":0.0207502},"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXCell","text":"1885","depth":6,"bounds":{"left":0.41988033,"top":0.16520351,"width":0.034242023,"height":0.0207502},"on_screen":true,"role_description":"cell"},{"role":"AXStaticText","text":"1885","depth":7,"bounds":{"left":0.41988033,"top":0.16520351,"width":0.034242023,"height":0.0207502},"on_screen":true,"role_description":"text"},{"role":"AXTextArea","text":"39","depth":8,"bounds":{"left":0.27027926,"top":1.0,"width":0.0787899,"height":0.0},"on_screen":false,"value":"39","role_description":"text entry area","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXCell","text":"58a51d4d-0ca7-49f0-9b2c-e16027877cc5","depth":6,"bounds":{"left":0.45445478,"top":0.16520351,"width":0.10073138,"height":0.0207502},"on_screen":true,"role_description":"cell"},{"role":"AXStaticText","text":"58a51d4d-0ca7-49f0-9b2c-e16027877cc5","depth":7,"bounds":{"left":0.45445478,"top":0.16520351,"width":0.10073138,"height":0.0207502},"on_screen":true,"role_description":"text"},{"role":"AXTextArea","text":"picktestmulti__c","depth":8,"bounds":{"left":0.27027926,"top":1.0,"width":0.050199468,"height":0.0},"on_screen":false,"value":"picktestmulti__c","role_description":"text entry area","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXCell","text":"39","depth":6,"bounds":{"left":0.5555186,"top":0.16520351,"width":0.080784574,"height":0.0207502},"on_screen":true,"role_description":"cell"},{"role":"AXStaticText","text":"39","depth":7,"bounds":{"left":0.5555186,"top":0.16520351,"width":0.080784574,"height":0.0207502},"on_screen":true,"role_description":"text"},{"role":"AXTextArea","text":"39","depth":8,"bounds":{"left":0.27027926,"top":1.0,"width":0.0787899,"height":0.0},"on_screen":false,"value":"39","role_description":"text entry area","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXCell","text":"ReminderDateTime","depth":6,"bounds":{"left":0.63663566,"top":0.16520351,"width":0.06781915,"height":0.0207502},"on_screen":true,"role_description":"cell"},{"role":"AXStaticText","text":"ReminderDateTime","depth":7,"bounds":{"left":0.63663566,"top":0.16520351,"width":0.06781915,"height":0.0207502},"on_screen":true,"role_description":"text"},{"role":"AXTextArea","text":"picktestmulti__c","depth":8,"bounds":{"left":0.27027926,"top":1.0,"width":0.050199468,"height":0.0},"on_screen":false,"value":"picktestmulti__c","role_description":"text entry area","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXCell","text":"Reminder Date/Time","depth":6,"bounds":{"left":0.70478725,"top":0.16520351,"width":0.05219415,"height":0.0207502},"on_screen":true,"role_description":"cell"},{"role":"AXStaticText","text":"Reminder Date/Time","depth":7,"bounds":{"left":0.70478725,"top":0.16520351,"width":0.05219415,"height":0.0207502},"on_screen":true,"role_description":"text"},{"role":"AXTextArea","text":"picktestmulti__c","depth":8,"bounds":{"left":0.27027926,"top":1.0,"width":0.050199468,"height":0.0},"on_screen":false,"value":"picktestmulti__c","role_description":"text entry area","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXCell","text":"<null>","depth":6,"bounds":{"left":0.75731385,"top":0.16520351,"width":0.057513297,"height":0.0207502},"on_screen":true,"role_description":"cell"},{"role":"AXStaticText","text":"<null>","depth":7,"bounds":{"left":0.75731385,"top":0.16520351,"width":0.057513297,"height":0.0207502},"on_screen":true,"role_description":"text"},{"role":"AXTextArea","text":"picktestmulti__c","depth":8,"bounds":{"left":0.27027926,"top":1.0,"width":0.050199468,"height":0.0},"on_screen":false,"value":"picktestmulti__c","role_description":"text entry area","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXCell","text":"datetime","depth":6,"bounds":{"left":0.81515956,"top":0.16520351,"width":0.04155585,"height":0.0207502},"on_screen":true,"role_description":"cell"},{"role":"AXStaticText","text":"datetime","depth":7,"bounds":{"left":0.81515956,"top":0.16520351,"width":0.04155585,"height":0.0207502},"on_screen":true,"role_description":"text"},{"role":"AXTextArea","text":"picktestmulti__c","depth":8,"bounds":{"left":0.27027926,"top":1.0,"width":0.050199468,"height":0.0},"on_screen":false,"value":"picktestmulti__c","role_description":"text entry area","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXCell","text":"<null>","depth":6,"bounds":{"left":0.85704786,"top":0.16520351,"width":0.04454787,"height":0.0207502},"on_screen":true,"role_description":"cell"},{"role":"AXStaticText","text":"<null>","depth":7,"bounds":{"left":0.85704786,"top":0.16520351,"width":0.04454787,"height":0.0207502},"on_screen":true,"role_description":"text"},{"role":"AXTextArea","text":"39","depth":8,"bounds":{"left":0.27027926,"top":1.0,"width":0.0787899,"height":0.0},"on_screen":false,"value":"39","role_description":"text entry area","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXCell","text":"<null>","depth":6,"bounds":{"left":0.9019282,"top":0.16520351,"width":0.0625,"height":0.0207502},"on_screen":true,"role_description":"cell"},{"role":"AXStaticText","text":"<null>","depth":7,"bounds":{"left":0.9019282,"top":0.16520351,"width":0.0625,"height":0.0207502},"on_screen":true,"role_description":"text"},{"role":"AXTextArea","text":"picktestmulti__c","depth":8,"bounds":{"left":0.27027926,"top":1.0,"width":0.050199468,"height":0.0},"on_screen":false,"value":"picktestmulti__c","role_description":"text entry area","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXCell","text":"event","depth":6,"bounds":{"left":0.96476066,"top":0.16520351,"width":0.03523934,"height":0.0207502},"on_screen":true,"role_description":"cell"},{"role":"AXStaticText","text":"event","depth":7,"bounds":{"left":0.96476066,"top":0.16520351,"width":0.03523934,"height":0.0207502},"on_screen":true,"role_description":"text"},{"role":"AXTextArea","text":"picktestmulti__c","depth":8,"bounds":{"left":0.27027926,"top":1.0,"width":0.050199468,"height":0.0},"on_screen":false,"value":"picktestmulti__c","role_description":"text entry area","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXCell","text":"1","depth":6,"bounds":{"left":1.0,"top":0.16520351,"width":-0.022606373,"height":0.0207502},"on_screen":false,"role_description":"cell"},{"role":"AXStaticText","text":"1","depth":7,"bounds":{"left":1.0,"top":0.16520351,"width":-0.022606373,"height":0.0207502},"on_screen":false,"role_description":"text"},{"role":"AXTextArea","text":"39","depth":8,"bounds":{"left":0.27027926,"top":1.0,"width":0.0787899,"height":0.0},"on_screen":false,"value":"39","role_description":"text entry area","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXCell","text":"0","depth":6,"bounds":{"left":1.0,"top":0.16520351,"width":-0.08543885,"height":0.0207502},"on_screen":false,"role_description":"cell"},{"role":"AXStaticText","text":"0","depth":7,"bounds":{"left":1.0,"top":0.16520351,"width":-0.08543885,"height":0.0207502},"on_screen":false,"role_description":"text"},{"role":"AXTextArea","text":"39","depth":8,"bounds":{"left":0.27027926,"top":1.0,"width":0.0787899,"height":0.0},"on_screen":false,"value":"39","role_description":"text entry area","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXCell","text":"0","depth":6,"on_screen":false,"role_description":"cell"},{"role":"AXStaticText","text":"0","depth":7,"on_screen":false,"role_description":"text"},{"role":"AXTextArea","text":"39","depth":8,"bounds":{"left":0.27027926,"top":1.0,"width":0.0787899,"height":0.0},"on_screen":false,"value":"39","role_description":"text entry area","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXCell","text":"0","depth":6,"on_screen":false,"role_description":"cell"},{"role":"AXStaticText","text":"0","depth":7,"on_screen":false,"role_description":"text"},{"role":"AXTextArea","text":"39","depth":8,"bounds":{"left":0.27027926,"top":1.0,"width":0.0787899,"height":0.0},"on_screen":false,"value":"39","role_description":"text entry area","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXCell","text":"2022-12-15 14:53:05","depth":6,"on_screen":false,"role_description":"cell"},{"role":"AXStaticText","text":"2022-12-15 14:53:05","depth":7,"on_screen":false,"role_description":"text"},{"role":"AXTextArea","text":"picktestmulti__c","depth":8,"bounds":{"left":0.27027926,"top":1.0,"width":0.050199468,"height":0.0},"on_screen":false,"value":"picktestmulti__c","role_description":"text entry area","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXCell","text":"2025-09-29 11:00:32","depth":6,"on_screen":false,"role_description":"cell"},{"role":"AXStaticText","text":"2025-09-29 11:00:32","depth":7,"on_screen":false,"role_description":"text"},{"role":"AXTextArea","text":"picktestmulti__c","depth":8,"bounds":{"left":0.27027926,"top":1.0,"width":0.050199468,"height":0.0},"on_screen":false,"value":"picktestmulti__c","role_description":"text entry area","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXCell","text":"0","depth":6,"on_screen":false,"role_description":"cell"},{"role":"AXStaticText","text":"0","depth":7,"on_screen":false,"role_description":"text"},{"role":"AXTextArea","text":"39","depth":8,"bounds":{"left":0.27027926,"top":1.0,"width":0.0787899,"height":0.0},"on_screen":false,"value":"39","role_description":"text entry area","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXCell","text":"3014","depth":6,"bounds":{"left":0.41988033,"top":0.1867518,"width":0.034242023,"height":0.0207502},"on_screen":true,"role_description":"cell"},{"role":"AXStaticText","text":"3014","depth":7,"bounds":{"left":0.41988033,"top":0.1867518,"width":0.034242023,"height":0.0207502},"on_screen":true,"role_description":"text"},{"role":"AXTextArea","text":"39","depth":8,"bounds":{"left":0.27027926,"top":1.0,"width":0.0787899,"height":0.0},"on_screen":false,"value":"39","role_description":"text entry area","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXCell","text":"a3d3df5a-eaa1-43d0-b95e-1ff4bec8c428","depth":6,"bounds":{"left":0.45445478,"top":0.1867518,"width":0.10073138,"height":0.0207502},"on_screen":true,"role_description":"cell"},{"role":"AXStaticText","text":"a3d3df5a-eaa1-43d0-b95e-1ff4bec8c428","depth":7,"bounds":{"left":0.45445478,"top":0.1867518,"width":0.10073138,"height":0.0207502},"on_screen":true,"role_description":"text"},{"role":"AXTextArea","text":"picktestmulti__c","depth":8,"bounds":{"left":0.27027926,"top":1.0,"width":0.050199468,"height":0.0},"on_screen":false,"value":"picktestmulti__c","role_description":"text entry area","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXCell","text":"39","depth":6,"bounds":{"left":0.5555186,"top":0.1867518,"width":0.080784574,"height":0.0207502},"on_screen":true,"role_description":"cell"},{"role":"AXStaticText","text":"39","depth":7,"bounds":{"left":0.5555186,"top":0.1867518,"width":0.080784574,"height":0.0207502},"on_screen":true,"role_description":"text"},{"role":"AXTextArea","text":"39","depth":8,"bounds":{"left":0.27027926,"top":1.0,"width":0.0787899,"height":0.0},"on_screen":false,"value":"39","role_description":"text entry area","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXCell","text":"picktestmulti__c","depth":6,"bounds":{"left":0.63663566,"top":0.1867518,"width":0.06781915,"height":0.0207502},"on_screen":true,"role_description":"cell"},{"role":"AXStaticText","text":"picktestmulti__c","depth":7,"bounds":{"left":0.63663566,"top":0.1867518,"width":0.06781915,"height":0.0207502},"on_screen":true,"role_description":"text"},{"role":"AXTextArea","text":"picktestmulti__c","depth":8,"bounds":{"left":0.27027926,"top":1.0,"width":0.050199468,"height":0.0},"on_screen":false,"value":"picktestmulti__c","role_description":"text entry area","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXCell","text":"picktestmulti","depth":6,"bounds":{"left":0.70478725,"top":0.1867518,"width":0.05219415,"height":0.0207502},"on_screen":true,"role_description":"cell"},{"role":"AXStaticText","text":"picktestmulti","depth":7,"bounds":{"left":0.70478725,"top":0.1867518,"width":0.05219415,"height":0.0207502},"on_screen":true,"role_description":"text"},{"role":"AXTextArea","text":"picktestmulti__c","depth":8,"bounds":{"left":0.27027926,"top":1.0,"width":0.050199468,"height":0.0},"on_screen":false,"value":"picktestmulti__c","role_description":"text entry area","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXCell","text":"<null>","depth":6,"bounds":{"left":0.75731385,"top":0.1867518,"width":0.057513297,"height":0.0207502},"on_screen":true,"role_description":"cell"},{"role":"AXStaticText","text":"<null>","depth":7,"bounds":{"left":0.75731385,"top":0.1867518,"width":0.057513297,"height":0.0207502},"on_screen":true,"role_description":"text"},{"role":"AXTextArea","text":"picktestmulti__c","depth":8,"bounds":{"left":0.27027926,"top":1.0,"width":0.050199468,"height":0.0},"on_screen":false,"value":"picktestmulti__c","role_description":"text entry area","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXCell","text":"multi-picklist","depth":6,"bounds":{"left":0.81515956,"top":0.1867518,"width":0.04155585,"height":0.0207502},"on_screen":true,"role_description":"cell"},{"role":"AXStaticText","text":"multi-picklist","depth":7,"bounds":{"left":0.81515956,"top":0.1867518,"width":0.04155585,"height":0.0207502},"on_screen":true,"role_description":"text"},{"role":"AXTextArea","text":"picktestmulti__c","depth":8,"bounds":{"left":0.27027926,"top":1.0,"width":0.050199468,"height":0.0},"on_screen":false,"value":"picktestmulti__c","role_description":"text entry area","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXCell","text":"4099","depth":6,"bounds":{"left":0.85704786,"top":0.1867518,"width":0.04454787,"height":0.0207502},"on_screen":true,"role_description":"cell"},{"role":"AXStaticText","text":"4099","depth":7,"bounds":{"left":0.85704786,"top":0.1867518,"width":0.04454787,"height":0.0207502},"on_screen":true,"role_description":"text"}]...
|
-4349616124047829135
|
1600131807408633875
|
click
|
accessibility
|
NULL
|
Project: faVsco.js, menu
JY-20915-fix-missing-head Project: faVsco.js, menu
JY-20915-fix-missing-header-text-relay, menu
Start Listening for PHP Debug Connections
TextRelayServiceTest
Run 'TextRelayServiceTest'
Debug 'TextRelayServiceTest'
More Actions
JetBrains AI
Search Everywhere
IDE and Project Settings
Sync Changes
Hide This Notification
Code changed:
Hide
12
1
Previous Highlighted Error
Next Highlighted Error
<?php
namespace Jiminny\Http\Transformers;
use Jiminny\Models\Crm\Field;
use Jiminny\Models\Crm\Profile;
use League\Fractal\Resource\Collection;
use League\Fractal\TransformerAbstract;
class FieldTransformer extends TransformerAbstract
{
protected array $availableIncludes = [
'options',
];
private ?Profile $profile;
private bool $noDefault = false;
public function __construct(?Profile $profile = null)
{
$this->profile = $profile;
}
public function setNoDefault(bool $noDefault)
{
$this->noDefault = $noDefault;
}
public function transform(Field $field): array
{
$defaultValue = $field->default_value;
$type = $field->type;
if (\is_bool($defaultValue)) {
$defaultValue = (bool) $defaultValue;
}
return [
'id' => $field->id_string,
'objectType' => $field->object_type,
'label' => $field->label,
'fieldName' => $field->crm_provider_id,
'type' => $type,
'enabled' => $field->is_selectable,
'length' => $field->length,
'defaultValue' => $defaultValue,
];
}
public function includeOptions(Field $field): ?Collection
{
if ($field->type === Field::TYPE_PICKLIST && $values = $field->values) {
// if ($field->type === Field::TYPE_PICKLIST && $values = $field->values) {
// This gets a little complex. We need to check if this field has any record type constraints for the profile.
if (
$this->profile
&& ($recordType = $this->profile->{$field->object_type . 'RecordType'})
&& $recordType->fieldValues()->where('crm_field_id', $field->id)->exists()
) {
// Fetch the values specific for this record type.
$values = $recordType->fieldValues()->where('crm_field_id', $field->id)->get();
}
if ($this->noDefault) {
foreach ($values as $value) {
$value->is_default = false;
}
}
return $this->collection($values, new FieldValueTransformer());
}
return null;
}
}
A
id
B
uuid (UUID with time-low and time-high swapped)
C
crm_configuration_id
D
crm_provider_id
Select All
1885
1885
39
58a51d4d-0ca7-49f0-9b2c-e16027877cc5
58a51d4d-0ca7-49f0-9b2c-e16027877cc5
picktestmulti__c
39
39
39
ReminderDateTime
ReminderDateTime
picktestmulti__c
Reminder Date/Time
Reminder Date/Time
picktestmulti__c
<null>
<null>
picktestmulti__c
datetime
datetime
picktestmulti__c
<null>
<null>
39
<null>
<null>
picktestmulti__c
event
event
picktestmulti__c
1
1
39
0
0
39
0
0
39
0
0
39
2022-12-15 14:53:05
2022-12-15 14:53:05
picktestmulti__c
2025-09-29 11:00:32
2025-09-29 11:00:32
picktestmulti__c
0
0
39
3014
3014
39
a3d3df5a-eaa1-43d0-b95e-1ff4bec8c428
a3d3df5a-eaa1-43d0-b95e-1ff4bec8c428
picktestmulti__c
39
39
39
picktestmulti__c
picktestmulti__c
picktestmulti__c
picktestmulti
picktestmulti
picktestmulti__c
<null>
<null>
picktestmulti__c
multi-picklist
multi-picklist
picktestmulti__c
4099
4099...
|
NULL
|
NULL
|
NULL
|
NULL
|
|
79746
|
2790
|
15
|
2026-05-28T06:41:14.512264+00:00
|
/Users/lukas/.screenpipe/data/data/2026-05-28/1779 /Users/lukas/.screenpipe/data/data/2026-05-28/1779950474512_m1.jpg...
|
PhpStorm
|
faVsco.js – FieldTransformer.php
|
1
|
NULL
|
monitor_1
|
NULL
|
NULL
|
NULL
|
NULL
|
Project: faVsco.js, menu
JY-20915-fix-missing-head Project: faVsco.js, menu
JY-20915-fix-missing-header-text-relay, menu
Start Listening for PHP Debug Connections
TextRelayServiceTest
Run 'TextRelayServiceTest'
Debug 'TextRelayServiceTest'
More Actions
JetBrains AI
Search Everywhere
IDE and Project Settings
Sync Changes
Hide This Notification
Code changed:
Hide
12
1
Previous Highlighted Error
Next Highlighted Error
<?php
namespace Jiminny\Http\Transformers;
use Jiminny\Models\Crm\Field;
use Jiminny\Models\Crm\Profile;
use League\Fractal\Resource\Collection;
use League\Fractal\TransformerAbstract;
class FieldTransformer extends TransformerAbstract
{
protected array $availableIncludes = [
'options',
];
private ?Profile $profile;
private bool $noDefault = false;
public function __construct(?Profile $profile = null)
{
$this->profile = $profile;
}
public function setNoDefault(bool $noDefault)
{
$this->noDefault = $noDefault;
}
public function transform(Field $field): array
{
$defaultValue = $field->default_value;
$type = $field->type;
if (\is_bool($defaultValue)) {
$defaultValue = (bool) $defaultValue;
}
return [
'id' => $field->id_string,
'objectType' => $field->object_type,
'label' => $field->label,
'fieldName' => $field->crm_provider_id,
'type' => $type,
'enabled' => $field->is_selectable,
'length' => $field->length,
'defaultValue' => $defaultValue,
];
}
public function includeOptions(Field $field): ?Collection
{
if ($field->type === Field::TYPE_PICKLIST && $values = $field->values) {
// if ($field->type === Field::TYPE_PICKLIST && $values = $field->values) {
// This gets a little complex. We need to check if this field has any record type constraints for the profile.
if (
$this->profile
&& ($recordType = $this->profile->{$field->object_type . 'RecordType'})
&& $recordType->fieldValues()->where('crm_field_id', $field->id)->exists()
) {
// Fetch the values specific for this record type.
$values = $recordType->fieldValues()->where('crm_field_id', $field->id)->get();
}
if ($this->noDefault) {
foreach ($values as $value) {
$value->is_default = false;
}
}
return $this->collection($values, new FieldValueTransformer());
}
return null;
}
}
A
id
B
uuid (UUID with time-low and time-high swapped)
C
crm_configuration_id
D
crm_provider_id
E
label
F
description
G
type
H
length
I
default_value
J
object_type
K
is_selectable
L
is_mandatory
M
is_filterable
N
is_indexable
O
created_at
P
updated_at
Q
is_readonly
Select All
1885
1885
39
58a51d4d-0ca7-49f0-9b2c-e16027877cc5
58a51d4d-0ca7-49f0-9b2c-e16027877cc5
picktestmulti__c
3014
3014
39
a3d3df5a-eaa1-43d0-b95e-1ff4bec8c428
a3d3df5a-eaa1-43d0-b95e-1ff4bec8c428
picktestmulti__c
39
39
39
picktestmulti__c
picktestmulti__c
picktestmulti__c
picktestmulti
picktestmulti
picktestmulti__c
<null>
<null>
picktestmulti__c...
|
[{"role":"AXButton","text" [{"role":"AXButton","text":"Project: faVsco.js, menu","depth":5,"on_screen":true,"help_text":"~/jiminny/app","role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"JY-20915-fix-missing-header-text-relay, menu","depth":5,"on_screen":true,"help_text":"Git Branch: JY-20915-fix-missing-header-text-relay","role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Start Listening for PHP Debug Connections","depth":5,"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"TextRelayServiceTest","depth":6,"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Run 'TextRelayServiceTest'","depth":6,"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Debug 'TextRelayServiceTest'","depth":6,"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"More Actions","depth":6,"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"JetBrains AI","depth":5,"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Search Everywhere","depth":5,"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"IDE and Project Settings","depth":5,"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Sync Changes","depth":4,"bounds":{"left":0.0,"top":0.0,"width":0.018055556,"height":0.026666667},"on_screen":false,"role_description":"button","is_enabled":false,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Hide This Notification","depth":4,"bounds":{"left":0.0,"top":0.0,"width":0.018055556,"height":0.026666667},"on_screen":false,"role_description":"button","is_enabled":false,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Code changed:","depth":4,"bounds":{"left":0.0,"top":0.0,"width":0.088194445,"height":0.027777778},"on_screen":false,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Hide","depth":4,"bounds":{"left":0.0,"top":0.0,"width":0.018055556,"height":0.026666667},"on_screen":false,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXStaticText","text":"12","depth":4,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"1","depth":4,"on_screen":true,"role_description":"text"},{"role":"AXButton","text":"Previous Highlighted Error","depth":4,"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Next Highlighted Error","depth":4,"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXTextArea","text":"<?php\n\nnamespace Jiminny\\Http\\Transformers;\n\nuse Jiminny\\Models\\Crm\\Field;\nuse Jiminny\\Models\\Crm\\Profile;\nuse League\\Fractal\\Resource\\Collection;\nuse League\\Fractal\\TransformerAbstract;\n\nclass FieldTransformer extends TransformerAbstract\n{\n protected array $availableIncludes = [\n 'options',\n ];\n private ?Profile $profile;\n\n private bool $noDefault = false;\n\n public function __construct(?Profile $profile = null)\n {\n $this->profile = $profile;\n }\n\n public function setNoDefault(bool $noDefault)\n {\n $this->noDefault = $noDefault;\n }\n\n public function transform(Field $field): array\n {\n $defaultValue = $field->default_value;\n $type = $field->type;\n\n if (\\is_bool($defaultValue)) {\n $defaultValue = (bool) $defaultValue;\n }\n\n return [\n 'id' => $field->id_string,\n 'objectType' => $field->object_type,\n 'label' => $field->label,\n 'fieldName' => $field->crm_provider_id,\n 'type' => $type,\n 'enabled' => $field->is_selectable,\n 'length' => $field->length,\n 'defaultValue' => $defaultValue,\n ];\n }\n\n public function includeOptions(Field $field): ?Collection\n {\n if ($field->type === Field::TYPE_PICKLIST && $values = $field->values) {\n// if ($field->type === Field::TYPE_PICKLIST && $values = $field->values) {\n // This gets a little complex. We need to check if this field has any record type constraints for the profile.\n if (\n $this->profile\n && ($recordType = $this->profile->{$field->object_type . 'RecordType'})\n && $recordType->fieldValues()->where('crm_field_id', $field->id)->exists()\n ) {\n // Fetch the values specific for this record type.\n $values = $recordType->fieldValues()->where('crm_field_id', $field->id)->get();\n }\n\n if ($this->noDefault) {\n foreach ($values as $value) {\n $value->is_default = false;\n }\n }\n\n return $this->collection($values, new FieldValueTransformer());\n }\n\n return null;\n }\n}","depth":4,"on_screen":true,"value":"<?php\n\nnamespace Jiminny\\Http\\Transformers;\n\nuse Jiminny\\Models\\Crm\\Field;\nuse Jiminny\\Models\\Crm\\Profile;\nuse League\\Fractal\\Resource\\Collection;\nuse League\\Fractal\\TransformerAbstract;\n\nclass FieldTransformer extends TransformerAbstract\n{\n protected array $availableIncludes = [\n 'options',\n ];\n private ?Profile $profile;\n\n private bool $noDefault = false;\n\n public function __construct(?Profile $profile = null)\n {\n $this->profile = $profile;\n }\n\n public function setNoDefault(bool $noDefault)\n {\n $this->noDefault = $noDefault;\n }\n\n public function transform(Field $field): array\n {\n $defaultValue = $field->default_value;\n $type = $field->type;\n\n if (\\is_bool($defaultValue)) {\n $defaultValue = (bool) $defaultValue;\n }\n\n return [\n 'id' => $field->id_string,\n 'objectType' => $field->object_type,\n 'label' => $field->label,\n 'fieldName' => $field->crm_provider_id,\n 'type' => $type,\n 'enabled' => $field->is_selectable,\n 'length' => $field->length,\n 'defaultValue' => $defaultValue,\n ];\n }\n\n public function includeOptions(Field $field): ?Collection\n {\n if ($field->type === Field::TYPE_PICKLIST && $values = $field->values) {\n// if ($field->type === Field::TYPE_PICKLIST && $values = $field->values) {\n // This gets a little complex. We need to check if this field has any record type constraints for the profile.\n if (\n $this->profile\n && ($recordType = $this->profile->{$field->object_type . 'RecordType'})\n && $recordType->fieldValues()->where('crm_field_id', $field->id)->exists()\n ) {\n // Fetch the values specific for this record type.\n $values = $recordType->fieldValues()->where('crm_field_id', $field->id)->get();\n }\n\n if ($this->noDefault) {\n foreach ($values as $value) {\n $value->is_default = false;\n }\n }\n\n return $this->collection($values, new FieldValueTransformer());\n }\n\n return null;\n }\n}","role_description":"text entry area","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXStaticText","text":"A","depth":4,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"id","depth":5,"bounds":{"left":0.0,"top":0.0,"width":0.04375,"height":0.03},"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"B","depth":4,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"uuid (UUID with time-low and time-high swapped)","depth":5,"bounds":{"left":0.0,"top":0.0,"width":0.04375,"height":0.03},"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"C","depth":4,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"crm_configuration_id","depth":5,"bounds":{"left":0.0,"top":0.0,"width":0.04375,"height":0.03},"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"D","depth":4,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"crm_provider_id","depth":5,"bounds":{"left":0.0,"top":0.0,"width":0.04375,"height":0.03},"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"E","depth":4,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"label","depth":5,"bounds":{"left":0.0,"top":0.0,"width":0.04375,"height":0.03},"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"F","depth":4,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"description","depth":5,"bounds":{"left":0.0,"top":0.0,"width":0.04375,"height":0.03},"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"G","depth":4,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"type","depth":5,"bounds":{"left":0.0,"top":0.0,"width":0.04375,"height":0.03},"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"H","depth":4,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"length","depth":5,"bounds":{"left":0.0,"top":0.0,"width":0.04375,"height":0.03},"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"I","depth":4,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"default_value","depth":5,"bounds":{"left":0.0,"top":0.0,"width":0.04375,"height":0.03},"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"J","depth":4,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"object_type","depth":5,"bounds":{"left":0.0,"top":0.0,"width":0.04375,"height":0.03},"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"K","depth":4,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"is_selectable","depth":5,"bounds":{"left":0.0,"top":0.0,"width":0.04375,"height":0.03},"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"L","depth":4,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"is_mandatory","depth":5,"bounds":{"left":0.0,"top":0.0,"width":0.04375,"height":0.03},"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"M","depth":4,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"is_filterable","depth":5,"bounds":{"left":0.0,"top":0.0,"width":0.04375,"height":0.03},"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"N","depth":4,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"is_indexable","depth":5,"bounds":{"left":0.0,"top":0.0,"width":0.04375,"height":0.03},"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"O","depth":4,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"created_at","depth":5,"bounds":{"left":0.0,"top":0.0,"width":0.04375,"height":0.03},"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"P","depth":4,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"updated_at","depth":5,"bounds":{"left":0.0,"top":0.0,"width":0.04375,"height":0.03},"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"Q","depth":4,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"is_readonly","depth":5,"bounds":{"left":0.0,"top":0.0,"width":0.04375,"height":0.03},"on_screen":false,"role_description":"text"},{"role":"AXButton","text":"Select All","depth":4,"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXCell","text":"1885","depth":6,"on_screen":true,"role_description":"cell"},{"role":"AXStaticText","text":"1885","depth":7,"on_screen":true,"role_description":"text"},{"role":"AXTextArea","text":"39","depth":8,"bounds":{"left":0.0,"top":0.0,"width":0.16458334,"height":0.024444444},"on_screen":false,"value":"39","role_description":"text entry area","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXCell","text":"58a51d4d-0ca7-49f0-9b2c-e16027877cc5","depth":6,"on_screen":true,"role_description":"cell"},{"role":"AXStaticText","text":"58a51d4d-0ca7-49f0-9b2c-e16027877cc5","depth":7,"on_screen":true,"role_description":"text"},{"role":"AXTextArea","text":"picktestmulti__c","depth":8,"bounds":{"left":0.0,"top":0.0,"width":0.10486111,"height":0.024444444},"on_screen":false,"value":"picktestmulti__c","role_description":"text entry area","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXCell","text":"3014","depth":6,"on_screen":true,"role_description":"cell"},{"role":"AXStaticText","text":"3014","depth":7,"on_screen":true,"role_description":"text"},{"role":"AXTextArea","text":"39","depth":8,"bounds":{"left":0.0,"top":0.0,"width":0.16458334,"height":0.024444444},"on_screen":false,"value":"39","role_description":"text entry area","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXCell","text":"a3d3df5a-eaa1-43d0-b95e-1ff4bec8c428","depth":6,"on_screen":true,"role_description":"cell"},{"role":"AXStaticText","text":"a3d3df5a-eaa1-43d0-b95e-1ff4bec8c428","depth":7,"on_screen":true,"role_description":"text"},{"role":"AXTextArea","text":"picktestmulti__c","depth":8,"bounds":{"left":0.0,"top":0.0,"width":0.10486111,"height":0.024444444},"on_screen":false,"value":"picktestmulti__c","role_description":"text entry area","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXCell","text":"39","depth":6,"on_screen":true,"role_description":"cell"},{"role":"AXStaticText","text":"39","depth":7,"on_screen":true,"role_description":"text"},{"role":"AXTextArea","text":"39","depth":8,"bounds":{"left":0.0,"top":0.0,"width":0.16458334,"height":0.024444444},"on_screen":false,"value":"39","role_description":"text entry area","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXCell","text":"picktestmulti__c","depth":6,"on_screen":true,"role_description":"cell"},{"role":"AXStaticText","text":"picktestmulti__c","depth":7,"on_screen":true,"role_description":"text"},{"role":"AXTextArea","text":"picktestmulti__c","depth":8,"bounds":{"left":0.0,"top":0.0,"width":0.10486111,"height":0.024444444},"on_screen":false,"value":"picktestmulti__c","role_description":"text entry area","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXCell","text":"picktestmulti","depth":6,"on_screen":true,"role_description":"cell"},{"role":"AXStaticText","text":"picktestmulti","depth":7,"on_screen":true,"role_description":"text"},{"role":"AXTextArea","text":"picktestmulti__c","depth":8,"bounds":{"left":0.0,"top":0.0,"width":0.10486111,"height":0.024444444},"on_screen":false,"value":"picktestmulti__c","role_description":"text entry area","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXCell","text":"<null>","depth":6,"on_screen":true,"role_description":"cell"},{"role":"AXStaticText","text":"<null>","depth":7,"on_screen":true,"role_description":"text"},{"role":"AXTextArea","text":"picktestmulti__c","depth":8,"bounds":{"left":0.0,"top":0.0,"width":0.10486111,"height":0.024444444},"on_screen":false,"value":"picktestmulti__c","role_description":"text entry area","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false}]...
|
7661539808800910102
|
-7589463232312430157
|
click
|
accessibility
|
NULL
|
Project: faVsco.js, menu
JY-20915-fix-missing-head Project: faVsco.js, menu
JY-20915-fix-missing-header-text-relay, menu
Start Listening for PHP Debug Connections
TextRelayServiceTest
Run 'TextRelayServiceTest'
Debug 'TextRelayServiceTest'
More Actions
JetBrains AI
Search Everywhere
IDE and Project Settings
Sync Changes
Hide This Notification
Code changed:
Hide
12
1
Previous Highlighted Error
Next Highlighted Error
<?php
namespace Jiminny\Http\Transformers;
use Jiminny\Models\Crm\Field;
use Jiminny\Models\Crm\Profile;
use League\Fractal\Resource\Collection;
use League\Fractal\TransformerAbstract;
class FieldTransformer extends TransformerAbstract
{
protected array $availableIncludes = [
'options',
];
private ?Profile $profile;
private bool $noDefault = false;
public function __construct(?Profile $profile = null)
{
$this->profile = $profile;
}
public function setNoDefault(bool $noDefault)
{
$this->noDefault = $noDefault;
}
public function transform(Field $field): array
{
$defaultValue = $field->default_value;
$type = $field->type;
if (\is_bool($defaultValue)) {
$defaultValue = (bool) $defaultValue;
}
return [
'id' => $field->id_string,
'objectType' => $field->object_type,
'label' => $field->label,
'fieldName' => $field->crm_provider_id,
'type' => $type,
'enabled' => $field->is_selectable,
'length' => $field->length,
'defaultValue' => $defaultValue,
];
}
public function includeOptions(Field $field): ?Collection
{
if ($field->type === Field::TYPE_PICKLIST && $values = $field->values) {
// if ($field->type === Field::TYPE_PICKLIST && $values = $field->values) {
// This gets a little complex. We need to check if this field has any record type constraints for the profile.
if (
$this->profile
&& ($recordType = $this->profile->{$field->object_type . 'RecordType'})
&& $recordType->fieldValues()->where('crm_field_id', $field->id)->exists()
) {
// Fetch the values specific for this record type.
$values = $recordType->fieldValues()->where('crm_field_id', $field->id)->get();
}
if ($this->noDefault) {
foreach ($values as $value) {
$value->is_default = false;
}
}
return $this->collection($values, new FieldValueTransformer());
}
return null;
}
}
A
id
B
uuid (UUID with time-low and time-high swapped)
C
crm_configuration_id
D
crm_provider_id
E
label
F
description
G
type
H
length
I
default_value
J
object_type
K
is_selectable
L
is_mandatory
M
is_filterable
N
is_indexable
O
created_at
P
updated_at
Q
is_readonly
Select All
1885
1885
39
58a51d4d-0ca7-49f0-9b2c-e16027877cc5
58a51d4d-0ca7-49f0-9b2c-e16027877cc5
picktestmulti__c
3014
3014
39
a3d3df5a-eaa1-43d0-b95e-1ff4bec8c428
a3d3df5a-eaa1-43d0-b95e-1ff4bec8c428
picktestmulti__c
39
39
39
picktestmulti__c
picktestmulti__c
picktestmulti__c
picktestmulti
picktestmulti
picktestmulti__c
<null>
<null>
picktestmulti__c...
|
79744
|
NULL
|
NULL
|
NULL
|
|
79745
|
2791
|
26
|
2026-05-28T06:41:12.769339+00:00
|
/Users/lukas/.screenpipe/data/data/2026-05-28/1779 /Users/lukas/.screenpipe/data/data/2026-05-28/1779950472769_m2.jpg...
|
PhpStorm
|
faVsco.js – FieldTransformer.php
|
1
|
NULL
|
monitor_2
|
NULL
|
NULL
|
NULL
|
NULL
|
Project: faVsco.js, menu
JY-20915-fix-missing-head Project: faVsco.js, menu
JY-20915-fix-missing-header-text-relay, menu
Start Listening for PHP Debug Connections
TextRelayServiceTest
Run 'TextRelayServiceTest'
Debug 'TextRelayServiceTest'
More Actions
JetBrains AI
Search Everywhere
IDE and Project Settings
Sync Changes
Hide This Notification
Code changed:
Hide
12
1
Previous Highlighted Error
Next Highlighted Error
<?php
namespace Jiminny\Http\Transformers;
use Jiminny\Models\Crm\Field;
use Jiminny\Models\Crm\Profile;
use League\Fractal\Resource\Collection;
use League\Fractal\TransformerAbstract;
class FieldTransformer extends TransformerAbstract
{
protected array $availableIncludes = [
'options',
];
private ?Profile $profile;
private bool $noDefault = false;
public function __construct(?Profile $profile = null)
{
$this->profile = $profile;
}
public function setNoDefault(bool $noDefault)
{
$this->noDefault = $noDefault;
}
public function transform(Field $field): array
{
$defaultValue = $field->default_value;
$type = $field->type;
if (\is_bool($defaultValue)) {
$defaultValue = (bool) $defaultValue;
}
return [
'id' => $field->id_string,
'objectType' => $field->object_type,
'label' => $field->label,
'fieldName' => $field->crm_provider_id,
'type' => $type,
'enabled' => $field->is_selectable,
'length' => $field->length,
'defaultValue' => $defaultValue,
];
}
public function includeOptions(Field $field): ?Collection
{
if ($field->type === Field::TYPE_PICKLIST && $values = $field->values) {
// if ($field->type === Field::TYPE_PICKLIST && $values = $field->values) {
// This gets a little complex. We need to check if this field has any record type constraints for the profile.
if (
$this->profile
&& ($recordType = $this->profile->{$field->object_type . 'RecordType'})
&& $recordType->fieldValues()->where('crm_field_id', $field->id)->exists()
) {
// Fetch the values specific for this record type.
$values = $recordType->fieldValues()->where('crm_field_id', $field->id)->get();
}
if ($this->noDefault) {
foreach ($values as $value) {
$value->is_default = false;
}
}
return $this->collection($values, new FieldValueTransformer());
}
return null;
}
}
A
id
B
uuid (UUID with time-low and time-high swapped)
C
crm_configuration_id
D
crm_provider_id
E
label
F
description
G
type
H
length
I
default_value
J
object_type
K
is_selectable
L
is_mandatory
M
is_filterable
N
is_indexable
O
created_at
P
updated_at
Q
is_readonly
Select All
1885
1885
39
58a51d4d-0ca7-49f0-9b2c-e16027877cc5
58a51d4d-0ca7-49f0-9b2c-e16027877cc5
picktestmulti__c
39
39
39
ReminderDateTime
ReminderDateTime
picktestmulti__c
Reminder Date/Time
Reminder Date/Time
picktestmulti__c
<null>
<null>
picktestmulti__c
datetime
datetime
picktestmulti__c
<null>
<null>
39
<null>
<null>
picktestmulti__c
event
event
picktestmulti__c
1
1
39
0
0
39
0
0
39
0
0
39
2022-12-15 14:53:05
2022-12-15 14:53:05
picktestmulti__c
2025-09-29 11:00:32
2025-09-29 11:00:32
picktestmulti__c
0
0
39
3014
3014
39...
|
[{"role":"AXButton","text" [{"role":"AXButton","text":"Project: faVsco.js, menu","depth":5,"bounds":{"left":0.025930852,"top":0.019952115,"width":0.03856383,"height":0.025538707},"on_screen":true,"help_text":"~/jiminny/app","role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"JY-20915-fix-missing-header-text-relay, menu","depth":5,"bounds":{"left":0.064494684,"top":0.019952115,"width":0.09740692,"height":0.025538707},"on_screen":true,"help_text":"Git Branch: JY-20915-fix-missing-header-text-relay","role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Start Listening for PHP Debug Connections","depth":5,"bounds":{"left":0.8374335,"top":0.019952115,"width":0.011303191,"height":0.025538707},"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"TextRelayServiceTest","depth":6,"bounds":{"left":0.85272604,"top":0.019952115,"width":0.062832445,"height":0.025538707},"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Run 'TextRelayServiceTest'","depth":6,"bounds":{"left":0.9155585,"top":0.019952115,"width":0.011303191,"height":0.025538707},"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Debug 'TextRelayServiceTest'","depth":6,"bounds":{"left":0.9268617,"top":0.019952115,"width":0.011303191,"height":0.025538707},"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"More Actions","depth":6,"bounds":{"left":0.9381649,"top":0.019952115,"width":0.011303191,"height":0.025538707},"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"JetBrains AI","depth":5,"bounds":{"left":0.96609044,"top":0.019952115,"width":0.011303191,"height":0.025538707},"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Search Everywhere","depth":5,"bounds":{"left":0.9773936,"top":0.019952115,"width":0.011303191,"height":0.025538707},"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"IDE and Project Settings","depth":5,"bounds":{"left":0.9886968,"top":0.019952115,"width":0.011303186,"height":0.025538707},"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Sync Changes","depth":4,"bounds":{"left":0.27027926,"top":1.0,"width":0.008643617,"height":0.0},"on_screen":false,"role_description":"button","is_enabled":false,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Hide This Notification","depth":4,"bounds":{"left":0.27027926,"top":1.0,"width":0.008643617,"height":0.0},"on_screen":false,"role_description":"button","is_enabled":false,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Code changed:","depth":4,"bounds":{"left":0.27027926,"top":1.0,"width":0.042220745,"height":0.0},"on_screen":false,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Hide","depth":4,"bounds":{"left":0.27027926,"top":1.0,"width":0.008643617,"height":0.0},"on_screen":false,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXStaticText","text":"12","depth":4,"bounds":{"left":0.37632978,"top":0.12529927,"width":0.009640957,"height":0.015163607},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"1","depth":4,"bounds":{"left":0.3879654,"top":0.12529927,"width":0.00731383,"height":0.015163607},"on_screen":true,"role_description":"text"},{"role":"AXButton","text":"Previous Highlighted Error","depth":4,"bounds":{"left":0.39694148,"top":0.123703115,"width":0.00731383,"height":0.018355945},"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Next Highlighted Error","depth":4,"bounds":{"left":0.40425533,"top":0.123703115,"width":0.006981383,"height":0.018355945},"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXTextArea","text":"<?php\n\nnamespace Jiminny\\Http\\Transformers;\n\nuse Jiminny\\Models\\Crm\\Field;\nuse Jiminny\\Models\\Crm\\Profile;\nuse League\\Fractal\\Resource\\Collection;\nuse League\\Fractal\\TransformerAbstract;\n\nclass FieldTransformer extends TransformerAbstract\n{\n protected array $availableIncludes = [\n 'options',\n ];\n private ?Profile $profile;\n\n private bool $noDefault = false;\n\n public function __construct(?Profile $profile = null)\n {\n $this->profile = $profile;\n }\n\n public function setNoDefault(bool $noDefault)\n {\n $this->noDefault = $noDefault;\n }\n\n public function transform(Field $field): array\n {\n $defaultValue = $field->default_value;\n $type = $field->type;\n\n if (\\is_bool($defaultValue)) {\n $defaultValue = (bool) $defaultValue;\n }\n\n return [\n 'id' => $field->id_string,\n 'objectType' => $field->object_type,\n 'label' => $field->label,\n 'fieldName' => $field->crm_provider_id,\n 'type' => $type,\n 'enabled' => $field->is_selectable,\n 'length' => $field->length,\n 'defaultValue' => $defaultValue,\n ];\n }\n\n public function includeOptions(Field $field): ?Collection\n {\n if ($field->type === Field::TYPE_PICKLIST && $values = $field->values) {\n// if ($field->type === Field::TYPE_PICKLIST && $values = $field->values) {\n // This gets a little complex. We need to check if this field has any record type constraints for the profile.\n if (\n $this->profile\n && ($recordType = $this->profile->{$field->object_type . 'RecordType'})\n && $recordType->fieldValues()->where('crm_field_id', $field->id)->exists()\n ) {\n // Fetch the values specific for this record type.\n $values = $recordType->fieldValues()->where('crm_field_id', $field->id)->get();\n }\n\n if ($this->noDefault) {\n foreach ($values as $value) {\n $value->is_default = false;\n }\n }\n\n return $this->collection($values, new FieldValueTransformer());\n }\n\n return null;\n }\n}","depth":4,"on_screen":true,"value":"<?php\n\nnamespace Jiminny\\Http\\Transformers;\n\nuse Jiminny\\Models\\Crm\\Field;\nuse Jiminny\\Models\\Crm\\Profile;\nuse League\\Fractal\\Resource\\Collection;\nuse League\\Fractal\\TransformerAbstract;\n\nclass FieldTransformer extends TransformerAbstract\n{\n protected array $availableIncludes = [\n 'options',\n ];\n private ?Profile $profile;\n\n private bool $noDefault = false;\n\n public function __construct(?Profile $profile = null)\n {\n $this->profile = $profile;\n }\n\n public function setNoDefault(bool $noDefault)\n {\n $this->noDefault = $noDefault;\n }\n\n public function transform(Field $field): array\n {\n $defaultValue = $field->default_value;\n $type = $field->type;\n\n if (\\is_bool($defaultValue)) {\n $defaultValue = (bool) $defaultValue;\n }\n\n return [\n 'id' => $field->id_string,\n 'objectType' => $field->object_type,\n 'label' => $field->label,\n 'fieldName' => $field->crm_provider_id,\n 'type' => $type,\n 'enabled' => $field->is_selectable,\n 'length' => $field->length,\n 'defaultValue' => $defaultValue,\n ];\n }\n\n public function includeOptions(Field $field): ?Collection\n {\n if ($field->type === Field::TYPE_PICKLIST && $values = $field->values) {\n// if ($field->type === Field::TYPE_PICKLIST && $values = $field->values) {\n // This gets a little complex. We need to check if this field has any record type constraints for the profile.\n if (\n $this->profile\n && ($recordType = $this->profile->{$field->object_type . 'RecordType'})\n && $recordType->fieldValues()->where('crm_field_id', $field->id)->exists()\n ) {\n // Fetch the values specific for this record type.\n $values = $recordType->fieldValues()->where('crm_field_id', $field->id)->get();\n }\n\n if ($this->noDefault) {\n foreach ($values as $value) {\n $value->is_default = false;\n }\n }\n\n return $this->collection($values, new FieldValueTransformer());\n }\n\n return null;\n }\n}","role_description":"text entry area","is_enabled":true,"is_focused":true,"is_selected":false,"is_expanded":false},{"role":"AXStaticText","text":"A","depth":4,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"id","depth":5,"bounds":{"left":0.27027926,"top":1.0,"width":0.020944148,"height":0.0},"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"B","depth":4,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"uuid (UUID with time-low and time-high swapped)","depth":5,"bounds":{"left":0.27027926,"top":1.0,"width":0.020944148,"height":0.0},"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"C","depth":4,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"crm_configuration_id","depth":5,"bounds":{"left":0.27027926,"top":1.0,"width":0.020944148,"height":0.0},"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"D","depth":4,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"crm_provider_id","depth":5,"bounds":{"left":0.27027926,"top":1.0,"width":0.020944148,"height":0.0},"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"E","depth":4,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"label","depth":5,"bounds":{"left":0.27027926,"top":1.0,"width":0.020944148,"height":0.0},"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"F","depth":4,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"description","depth":5,"bounds":{"left":0.27027926,"top":1.0,"width":0.020944148,"height":0.0},"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"G","depth":4,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"type","depth":5,"bounds":{"left":0.27027926,"top":1.0,"width":0.020944148,"height":0.0},"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"H","depth":4,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"length","depth":5,"bounds":{"left":0.27027926,"top":1.0,"width":0.020944148,"height":0.0},"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"I","depth":4,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"default_value","depth":5,"bounds":{"left":0.27027926,"top":1.0,"width":0.020944148,"height":0.0},"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"J","depth":4,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"object_type","depth":5,"bounds":{"left":0.27027926,"top":1.0,"width":0.020944148,"height":0.0},"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"K","depth":4,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"is_selectable","depth":5,"bounds":{"left":0.27027926,"top":1.0,"width":0.020944148,"height":0.0},"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"L","depth":4,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"is_mandatory","depth":5,"bounds":{"left":0.27027926,"top":1.0,"width":0.020944148,"height":0.0},"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"M","depth":4,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"is_filterable","depth":5,"bounds":{"left":0.27027926,"top":1.0,"width":0.020944148,"height":0.0},"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"N","depth":4,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"is_indexable","depth":5,"bounds":{"left":0.27027926,"top":1.0,"width":0.020944148,"height":0.0},"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"O","depth":4,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"created_at","depth":5,"bounds":{"left":0.27027926,"top":1.0,"width":0.020944148,"height":0.0},"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"P","depth":4,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"updated_at","depth":5,"bounds":{"left":0.27027926,"top":1.0,"width":0.020944148,"height":0.0},"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"Q","depth":4,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"is_readonly","depth":5,"bounds":{"left":0.27027926,"top":1.0,"width":0.020944148,"height":0.0},"on_screen":false,"role_description":"text"},{"role":"AXButton","text":"Select All","depth":4,"bounds":{"left":0.41156915,"top":0.14365523,"width":0.007978723,"height":0.0207502},"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXCell","text":"1885","depth":6,"bounds":{"left":0.41988033,"top":0.16520351,"width":0.034242023,"height":0.0207502},"on_screen":true,"role_description":"cell"},{"role":"AXStaticText","text":"1885","depth":7,"bounds":{"left":0.41988033,"top":0.16520351,"width":0.034242023,"height":0.0207502},"on_screen":true,"role_description":"text"},{"role":"AXTextArea","text":"39","depth":8,"bounds":{"left":0.27027926,"top":1.0,"width":0.0787899,"height":0.0},"on_screen":false,"value":"39","role_description":"text entry area","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXCell","text":"58a51d4d-0ca7-49f0-9b2c-e16027877cc5","depth":6,"bounds":{"left":0.45445478,"top":0.16520351,"width":0.10073138,"height":0.0207502},"on_screen":true,"role_description":"cell"},{"role":"AXStaticText","text":"58a51d4d-0ca7-49f0-9b2c-e16027877cc5","depth":7,"bounds":{"left":0.45445478,"top":0.16520351,"width":0.10073138,"height":0.0207502},"on_screen":true,"role_description":"text"},{"role":"AXTextArea","text":"picktestmulti__c","depth":8,"bounds":{"left":0.27027926,"top":1.0,"width":0.050199468,"height":0.0},"on_screen":false,"value":"picktestmulti__c","role_description":"text entry area","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXCell","text":"39","depth":6,"bounds":{"left":0.5555186,"top":0.16520351,"width":0.080784574,"height":0.0207502},"on_screen":true,"role_description":"cell"},{"role":"AXStaticText","text":"39","depth":7,"bounds":{"left":0.5555186,"top":0.16520351,"width":0.080784574,"height":0.0207502},"on_screen":true,"role_description":"text"},{"role":"AXTextArea","text":"39","depth":8,"bounds":{"left":0.27027926,"top":1.0,"width":0.0787899,"height":0.0},"on_screen":false,"value":"39","role_description":"text entry area","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXCell","text":"ReminderDateTime","depth":6,"bounds":{"left":0.63663566,"top":0.16520351,"width":0.06781915,"height":0.0207502},"on_screen":true,"role_description":"cell"},{"role":"AXStaticText","text":"ReminderDateTime","depth":7,"bounds":{"left":0.63663566,"top":0.16520351,"width":0.06781915,"height":0.0207502},"on_screen":true,"role_description":"text"},{"role":"AXTextArea","text":"picktestmulti__c","depth":8,"bounds":{"left":0.27027926,"top":1.0,"width":0.050199468,"height":0.0},"on_screen":false,"value":"picktestmulti__c","role_description":"text entry area","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXCell","text":"Reminder Date/Time","depth":6,"bounds":{"left":0.70478725,"top":0.16520351,"width":0.05219415,"height":0.0207502},"on_screen":true,"role_description":"cell"},{"role":"AXStaticText","text":"Reminder Date/Time","depth":7,"bounds":{"left":0.70478725,"top":0.16520351,"width":0.05219415,"height":0.0207502},"on_screen":true,"role_description":"text"},{"role":"AXTextArea","text":"picktestmulti__c","depth":8,"bounds":{"left":0.27027926,"top":1.0,"width":0.050199468,"height":0.0},"on_screen":false,"value":"picktestmulti__c","role_description":"text entry area","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXCell","text":"<null>","depth":6,"bounds":{"left":0.75731385,"top":0.16520351,"width":0.057513297,"height":0.0207502},"on_screen":true,"role_description":"cell"},{"role":"AXStaticText","text":"<null>","depth":7,"bounds":{"left":0.75731385,"top":0.16520351,"width":0.057513297,"height":0.0207502},"on_screen":true,"role_description":"text"},{"role":"AXTextArea","text":"picktestmulti__c","depth":8,"bounds":{"left":0.27027926,"top":1.0,"width":0.050199468,"height":0.0},"on_screen":false,"value":"picktestmulti__c","role_description":"text entry area","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXCell","text":"datetime","depth":6,"bounds":{"left":0.81515956,"top":0.16520351,"width":0.04155585,"height":0.0207502},"on_screen":true,"role_description":"cell"},{"role":"AXStaticText","text":"datetime","depth":7,"bounds":{"left":0.81515956,"top":0.16520351,"width":0.04155585,"height":0.0207502},"on_screen":true,"role_description":"text"},{"role":"AXTextArea","text":"picktestmulti__c","depth":8,"bounds":{"left":0.27027926,"top":1.0,"width":0.050199468,"height":0.0},"on_screen":false,"value":"picktestmulti__c","role_description":"text entry area","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXCell","text":"<null>","depth":6,"bounds":{"left":0.85704786,"top":0.16520351,"width":0.04454787,"height":0.0207502},"on_screen":true,"role_description":"cell"},{"role":"AXStaticText","text":"<null>","depth":7,"bounds":{"left":0.85704786,"top":0.16520351,"width":0.04454787,"height":0.0207502},"on_screen":true,"role_description":"text"},{"role":"AXTextArea","text":"39","depth":8,"bounds":{"left":0.27027926,"top":1.0,"width":0.0787899,"height":0.0},"on_screen":false,"value":"39","role_description":"text entry area","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXCell","text":"<null>","depth":6,"bounds":{"left":0.9019282,"top":0.16520351,"width":0.0625,"height":0.0207502},"on_screen":true,"role_description":"cell"},{"role":"AXStaticText","text":"<null>","depth":7,"bounds":{"left":0.9019282,"top":0.16520351,"width":0.0625,"height":0.0207502},"on_screen":true,"role_description":"text"},{"role":"AXTextArea","text":"picktestmulti__c","depth":8,"bounds":{"left":0.27027926,"top":1.0,"width":0.050199468,"height":0.0},"on_screen":false,"value":"picktestmulti__c","role_description":"text entry area","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXCell","text":"event","depth":6,"bounds":{"left":0.96476066,"top":0.16520351,"width":0.03523934,"height":0.0207502},"on_screen":true,"role_description":"cell"},{"role":"AXStaticText","text":"event","depth":7,"bounds":{"left":0.96476066,"top":0.16520351,"width":0.03523934,"height":0.0207502},"on_screen":true,"role_description":"text"},{"role":"AXTextArea","text":"picktestmulti__c","depth":8,"bounds":{"left":0.27027926,"top":1.0,"width":0.050199468,"height":0.0},"on_screen":false,"value":"picktestmulti__c","role_description":"text entry area","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXCell","text":"1","depth":6,"bounds":{"left":1.0,"top":0.16520351,"width":-0.022606373,"height":0.0207502},"on_screen":false,"role_description":"cell"},{"role":"AXStaticText","text":"1","depth":7,"bounds":{"left":1.0,"top":0.16520351,"width":-0.022606373,"height":0.0207502},"on_screen":false,"role_description":"text"},{"role":"AXTextArea","text":"39","depth":8,"bounds":{"left":0.27027926,"top":1.0,"width":0.0787899,"height":0.0},"on_screen":false,"value":"39","role_description":"text entry area","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXCell","text":"0","depth":6,"bounds":{"left":1.0,"top":0.16520351,"width":-0.08543885,"height":0.0207502},"on_screen":false,"role_description":"cell"},{"role":"AXStaticText","text":"0","depth":7,"bounds":{"left":1.0,"top":0.16520351,"width":-0.08543885,"height":0.0207502},"on_screen":false,"role_description":"text"},{"role":"AXTextArea","text":"39","depth":8,"bounds":{"left":0.27027926,"top":1.0,"width":0.0787899,"height":0.0},"on_screen":false,"value":"39","role_description":"text entry area","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXCell","text":"0","depth":6,"on_screen":false,"role_description":"cell"},{"role":"AXStaticText","text":"0","depth":7,"on_screen":false,"role_description":"text"},{"role":"AXTextArea","text":"39","depth":8,"bounds":{"left":0.27027926,"top":1.0,"width":0.0787899,"height":0.0},"on_screen":false,"value":"39","role_description":"text entry area","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXCell","text":"0","depth":6,"on_screen":false,"role_description":"cell"},{"role":"AXStaticText","text":"0","depth":7,"on_screen":false,"role_description":"text"},{"role":"AXTextArea","text":"39","depth":8,"bounds":{"left":0.27027926,"top":1.0,"width":0.0787899,"height":0.0},"on_screen":false,"value":"39","role_description":"text entry area","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXCell","text":"2022-12-15 14:53:05","depth":6,"on_screen":false,"role_description":"cell"},{"role":"AXStaticText","text":"2022-12-15 14:53:05","depth":7,"on_screen":false,"role_description":"text"},{"role":"AXTextArea","text":"picktestmulti__c","depth":8,"bounds":{"left":0.27027926,"top":1.0,"width":0.050199468,"height":0.0},"on_screen":false,"value":"picktestmulti__c","role_description":"text entry area","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXCell","text":"2025-09-29 11:00:32","depth":6,"on_screen":false,"role_description":"cell"},{"role":"AXStaticText","text":"2025-09-29 11:00:32","depth":7,"on_screen":false,"role_description":"text"},{"role":"AXTextArea","text":"picktestmulti__c","depth":8,"bounds":{"left":0.27027926,"top":1.0,"width":0.050199468,"height":0.0},"on_screen":false,"value":"picktestmulti__c","role_description":"text entry area","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXCell","text":"0","depth":6,"on_screen":false,"role_description":"cell"},{"role":"AXStaticText","text":"0","depth":7,"on_screen":false,"role_description":"text"},{"role":"AXTextArea","text":"39","depth":8,"bounds":{"left":0.27027926,"top":1.0,"width":0.0787899,"height":0.0},"on_screen":false,"value":"39","role_description":"text entry area","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXCell","text":"3014","depth":6,"bounds":{"left":0.41988033,"top":0.1867518,"width":0.034242023,"height":0.0207502},"on_screen":true,"role_description":"cell"},{"role":"AXStaticText","text":"3014","depth":7,"bounds":{"left":0.41988033,"top":0.1867518,"width":0.034242023,"height":0.0207502},"on_screen":true,"role_description":"text"},{"role":"AXTextArea","text":"39","depth":8,"bounds":{"left":0.27027926,"top":1.0,"width":0.0787899,"height":0.0},"on_screen":false,"value":"39","role_description":"text entry area","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false}]...
|
4328832786398104511
|
1595927274944018803
|
click
|
accessibility
|
NULL
|
Project: faVsco.js, menu
JY-20915-fix-missing-head Project: faVsco.js, menu
JY-20915-fix-missing-header-text-relay, menu
Start Listening for PHP Debug Connections
TextRelayServiceTest
Run 'TextRelayServiceTest'
Debug 'TextRelayServiceTest'
More Actions
JetBrains AI
Search Everywhere
IDE and Project Settings
Sync Changes
Hide This Notification
Code changed:
Hide
12
1
Previous Highlighted Error
Next Highlighted Error
<?php
namespace Jiminny\Http\Transformers;
use Jiminny\Models\Crm\Field;
use Jiminny\Models\Crm\Profile;
use League\Fractal\Resource\Collection;
use League\Fractal\TransformerAbstract;
class FieldTransformer extends TransformerAbstract
{
protected array $availableIncludes = [
'options',
];
private ?Profile $profile;
private bool $noDefault = false;
public function __construct(?Profile $profile = null)
{
$this->profile = $profile;
}
public function setNoDefault(bool $noDefault)
{
$this->noDefault = $noDefault;
}
public function transform(Field $field): array
{
$defaultValue = $field->default_value;
$type = $field->type;
if (\is_bool($defaultValue)) {
$defaultValue = (bool) $defaultValue;
}
return [
'id' => $field->id_string,
'objectType' => $field->object_type,
'label' => $field->label,
'fieldName' => $field->crm_provider_id,
'type' => $type,
'enabled' => $field->is_selectable,
'length' => $field->length,
'defaultValue' => $defaultValue,
];
}
public function includeOptions(Field $field): ?Collection
{
if ($field->type === Field::TYPE_PICKLIST && $values = $field->values) {
// if ($field->type === Field::TYPE_PICKLIST && $values = $field->values) {
// This gets a little complex. We need to check if this field has any record type constraints for the profile.
if (
$this->profile
&& ($recordType = $this->profile->{$field->object_type . 'RecordType'})
&& $recordType->fieldValues()->where('crm_field_id', $field->id)->exists()
) {
// Fetch the values specific for this record type.
$values = $recordType->fieldValues()->where('crm_field_id', $field->id)->get();
}
if ($this->noDefault) {
foreach ($values as $value) {
$value->is_default = false;
}
}
return $this->collection($values, new FieldValueTransformer());
}
return null;
}
}
A
id
B
uuid (UUID with time-low and time-high swapped)
C
crm_configuration_id
D
crm_provider_id
E
label
F
description
G
type
H
length
I
default_value
J
object_type
K
is_selectable
L
is_mandatory
M
is_filterable
N
is_indexable
O
created_at
P
updated_at
Q
is_readonly
Select All
1885
1885
39
58a51d4d-0ca7-49f0-9b2c-e16027877cc5
58a51d4d-0ca7-49f0-9b2c-e16027877cc5
picktestmulti__c
39
39
39
ReminderDateTime
ReminderDateTime
picktestmulti__c
Reminder Date/Time
Reminder Date/Time
picktestmulti__c
<null>
<null>
picktestmulti__c
datetime
datetime
picktestmulti__c
<null>
<null>
39
<null>
<null>
picktestmulti__c
event
event
picktestmulti__c
1
1
39
0
0
39
0
0
39
0
0
39
2022-12-15 14:53:05
2022-12-15 14:53:05
picktestmulti__c
2025-09-29 11:00:32
2025-09-29 11:00:32
picktestmulti__c
0
0
39
3014
3014
39...
|
79743
|
NULL
|
NULL
|
NULL
|
|
79744
|
2790
|
14
|
2026-05-28T06:41:12.664362+00:00
|
/Users/lukas/.screenpipe/data/data/2026-05-28/1779 /Users/lukas/.screenpipe/data/data/2026-05-28/1779950472664_m1.jpg...
|
PhpStorm
|
faVsco.js – FieldTransformer.php
|
1
|
NULL
|
monitor_1
|
NULL
|
NULL
|
NULL
|
NULL
|
Project: faVsco.js, menu
JY-20915-fix-missing-head Project: faVsco.js, menu
JY-20915-fix-missing-header-text-relay, menu
Start Listening for PHP Debug Connections
TextRelayServiceTest
Run 'TextRelayServiceTest'
Debug 'TextRelayServiceTest'
More Actions
JetBrains AI
Search Everywhere
IDE and Project Settings
Sync Changes
Hide This Notification
Code changed:
Hide
12
1
Previous Highlighted Error
Next Highlighted Error
<?php
namespace Jiminny\Http\Transformers;
use Jiminny\Models\Crm\Field;
use Jiminny\Models\Crm\Profile;
use League\Fractal\Resource\Collection;
use League\Fractal\TransformerAbstract;
class FieldTransformer extends TransformerAbstract
{
protected array $availableIncludes = [
'options',
];
private ?Profile $profile;
private bool $noDefault = false;
public function __construct(?Profile $profile = null)
{
$this->profile = $profile;
}
public function setNoDefault(bool $noDefault)
{
$this->noDefault = $noDefault;
}
public function transform(Field $field): array
{
$defaultValue = $field->default_value;
$type = $field->type;
if (\is_bool($defaultValue)) {
$defaultValue = (bool) $defaultValue;
}
return [
'id' => $field->id_string,
'objectType' => $field->object_type,
'label' => $field->label,
'fieldName' => $field->crm_provider_id,
'type' => $type,
'enabled' => $field->is_selectable,
'length' => $field->length,
'defaultValue' => $defaultValue,
];
}
public function includeOptions(Field $field): ?Collection
{
if ($field->type === Field::TYPE_PICKLIST && $values = $field->values) {
// if ($field->type === Field::TYPE_PICKLIST && $values = $field->values) {
// This gets a little complex. We need to check if this field has any record type constraints for the profile.
if (
$this->profile
&& ($recordType = $this->profile->{$field->object_type . 'RecordType'})
&& $recordType->fieldValues()->where('crm_field_id', $field->id)->exists()
) {
// Fetch the values specific for this record type.
$values = $recordType->fieldValues()->where('crm_field_id', $field->id)->get();
}
if ($this->noDefault) {
foreach ($values as $value) {
$value->is_default = false;
}
}
return $this->collection($values, new FieldValueTransformer());
}
return null;
}
}
A
id
B
uuid (UUID with time-low and time-high swapped)
C
crm_configuration_id
D
crm_provider_id
E
label
F
description
G
type
H
length
I
default_value
J
object_type
K
is_selectable
L
is_mandatory
M
is_filterable
N
is_indexable
O
created_at
P
updated_at
Q
is_readonly
Select All
1885
1885
39
58a51d4d-0ca7-49f0-9b2c-e16027877cc5
58a51d4d-0ca7-49f0-9b2c-e16027877cc5
picktestmulti__c
39
39
39
ReminderDateTime
ReminderDateTime
picktestmulti__c
Reminder Date/Time
Reminder Date/Time
picktestmulti__c
<null>
<null>
picktestmulti__c
datetime
datetime
picktestmulti__c
<null>
<null>
39
<null>
<null>
picktestmulti__c
event
event
picktestmulti__c
1
1
39
0
0
39
0
0
39
0
0
39
2022-12-15 14:53:05
2022-12-15 14:53:05
picktestmulti__c
2025-09-29 11:00:32
2025-09-29 11:00:32
picktestmulti__c
0
0
39
3014
3014
39
a3d3df5a-eaa1-43d0-b95e-1ff4bec8c428
a3d3df5a-eaa1-43d0-b95e-1ff4bec8c428
picktestmulti__c
39
39
39
picktestmulti__c
picktestmulti__c
picktestmulti__c
picktestmulti
picktestmulti...
|
[{"role":"AXButton","text" [{"role":"AXButton","text":"Project: faVsco.js, menu","depth":5,"on_screen":true,"help_text":"~/jiminny/app","role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"JY-20915-fix-missing-header-text-relay, menu","depth":5,"on_screen":true,"help_text":"Git Branch: JY-20915-fix-missing-header-text-relay","role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Start Listening for PHP Debug Connections","depth":5,"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"TextRelayServiceTest","depth":6,"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Run 'TextRelayServiceTest'","depth":6,"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Debug 'TextRelayServiceTest'","depth":6,"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"More Actions","depth":6,"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"JetBrains AI","depth":5,"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Search Everywhere","depth":5,"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"IDE and Project Settings","depth":5,"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Sync Changes","depth":4,"bounds":{"left":0.0,"top":0.0,"width":0.018055556,"height":0.026666667},"on_screen":false,"role_description":"button","is_enabled":false,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Hide This Notification","depth":4,"bounds":{"left":0.0,"top":0.0,"width":0.018055556,"height":0.026666667},"on_screen":false,"role_description":"button","is_enabled":false,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Code changed:","depth":4,"bounds":{"left":0.0,"top":0.0,"width":0.088194445,"height":0.027777778},"on_screen":false,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Hide","depth":4,"bounds":{"left":0.0,"top":0.0,"width":0.018055556,"height":0.026666667},"on_screen":false,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXStaticText","text":"12","depth":4,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"1","depth":4,"on_screen":true,"role_description":"text"},{"role":"AXButton","text":"Previous Highlighted Error","depth":4,"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Next Highlighted Error","depth":4,"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXTextArea","text":"<?php\n\nnamespace Jiminny\\Http\\Transformers;\n\nuse Jiminny\\Models\\Crm\\Field;\nuse Jiminny\\Models\\Crm\\Profile;\nuse League\\Fractal\\Resource\\Collection;\nuse League\\Fractal\\TransformerAbstract;\n\nclass FieldTransformer extends TransformerAbstract\n{\n protected array $availableIncludes = [\n 'options',\n ];\n private ?Profile $profile;\n\n private bool $noDefault = false;\n\n public function __construct(?Profile $profile = null)\n {\n $this->profile = $profile;\n }\n\n public function setNoDefault(bool $noDefault)\n {\n $this->noDefault = $noDefault;\n }\n\n public function transform(Field $field): array\n {\n $defaultValue = $field->default_value;\n $type = $field->type;\n\n if (\\is_bool($defaultValue)) {\n $defaultValue = (bool) $defaultValue;\n }\n\n return [\n 'id' => $field->id_string,\n 'objectType' => $field->object_type,\n 'label' => $field->label,\n 'fieldName' => $field->crm_provider_id,\n 'type' => $type,\n 'enabled' => $field->is_selectable,\n 'length' => $field->length,\n 'defaultValue' => $defaultValue,\n ];\n }\n\n public function includeOptions(Field $field): ?Collection\n {\n if ($field->type === Field::TYPE_PICKLIST && $values = $field->values) {\n// if ($field->type === Field::TYPE_PICKLIST && $values = $field->values) {\n // This gets a little complex. We need to check if this field has any record type constraints for the profile.\n if (\n $this->profile\n && ($recordType = $this->profile->{$field->object_type . 'RecordType'})\n && $recordType->fieldValues()->where('crm_field_id', $field->id)->exists()\n ) {\n // Fetch the values specific for this record type.\n $values = $recordType->fieldValues()->where('crm_field_id', $field->id)->get();\n }\n\n if ($this->noDefault) {\n foreach ($values as $value) {\n $value->is_default = false;\n }\n }\n\n return $this->collection($values, new FieldValueTransformer());\n }\n\n return null;\n }\n}","depth":4,"on_screen":true,"value":"<?php\n\nnamespace Jiminny\\Http\\Transformers;\n\nuse Jiminny\\Models\\Crm\\Field;\nuse Jiminny\\Models\\Crm\\Profile;\nuse League\\Fractal\\Resource\\Collection;\nuse League\\Fractal\\TransformerAbstract;\n\nclass FieldTransformer extends TransformerAbstract\n{\n protected array $availableIncludes = [\n 'options',\n ];\n private ?Profile $profile;\n\n private bool $noDefault = false;\n\n public function __construct(?Profile $profile = null)\n {\n $this->profile = $profile;\n }\n\n public function setNoDefault(bool $noDefault)\n {\n $this->noDefault = $noDefault;\n }\n\n public function transform(Field $field): array\n {\n $defaultValue = $field->default_value;\n $type = $field->type;\n\n if (\\is_bool($defaultValue)) {\n $defaultValue = (bool) $defaultValue;\n }\n\n return [\n 'id' => $field->id_string,\n 'objectType' => $field->object_type,\n 'label' => $field->label,\n 'fieldName' => $field->crm_provider_id,\n 'type' => $type,\n 'enabled' => $field->is_selectable,\n 'length' => $field->length,\n 'defaultValue' => $defaultValue,\n ];\n }\n\n public function includeOptions(Field $field): ?Collection\n {\n if ($field->type === Field::TYPE_PICKLIST && $values = $field->values) {\n// if ($field->type === Field::TYPE_PICKLIST && $values = $field->values) {\n // This gets a little complex. We need to check if this field has any record type constraints for the profile.\n if (\n $this->profile\n && ($recordType = $this->profile->{$field->object_type . 'RecordType'})\n && $recordType->fieldValues()->where('crm_field_id', $field->id)->exists()\n ) {\n // Fetch the values specific for this record type.\n $values = $recordType->fieldValues()->where('crm_field_id', $field->id)->get();\n }\n\n if ($this->noDefault) {\n foreach ($values as $value) {\n $value->is_default = false;\n }\n }\n\n return $this->collection($values, new FieldValueTransformer());\n }\n\n return null;\n }\n}","role_description":"text entry area","is_enabled":true,"is_focused":true,"is_selected":false,"is_expanded":false},{"role":"AXStaticText","text":"A","depth":4,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"id","depth":5,"bounds":{"left":0.0,"top":0.0,"width":0.04375,"height":0.03},"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"B","depth":4,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"uuid (UUID with time-low and time-high swapped)","depth":5,"bounds":{"left":0.0,"top":0.0,"width":0.04375,"height":0.03},"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"C","depth":4,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"crm_configuration_id","depth":5,"bounds":{"left":0.0,"top":0.0,"width":0.04375,"height":0.03},"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"D","depth":4,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"crm_provider_id","depth":5,"bounds":{"left":0.0,"top":0.0,"width":0.04375,"height":0.03},"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"E","depth":4,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"label","depth":5,"bounds":{"left":0.0,"top":0.0,"width":0.04375,"height":0.03},"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"F","depth":4,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"description","depth":5,"bounds":{"left":0.0,"top":0.0,"width":0.04375,"height":0.03},"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"G","depth":4,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"type","depth":5,"bounds":{"left":0.0,"top":0.0,"width":0.04375,"height":0.03},"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"H","depth":4,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"length","depth":5,"bounds":{"left":0.0,"top":0.0,"width":0.04375,"height":0.03},"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"I","depth":4,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"default_value","depth":5,"bounds":{"left":0.0,"top":0.0,"width":0.04375,"height":0.03},"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"J","depth":4,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"object_type","depth":5,"bounds":{"left":0.0,"top":0.0,"width":0.04375,"height":0.03},"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"K","depth":4,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"is_selectable","depth":5,"bounds":{"left":0.0,"top":0.0,"width":0.04375,"height":0.03},"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"L","depth":4,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"is_mandatory","depth":5,"bounds":{"left":0.0,"top":0.0,"width":0.04375,"height":0.03},"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"M","depth":4,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"is_filterable","depth":5,"bounds":{"left":0.0,"top":0.0,"width":0.04375,"height":0.03},"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"N","depth":4,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"is_indexable","depth":5,"bounds":{"left":0.0,"top":0.0,"width":0.04375,"height":0.03},"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"O","depth":4,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"created_at","depth":5,"bounds":{"left":0.0,"top":0.0,"width":0.04375,"height":0.03},"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"P","depth":4,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"updated_at","depth":5,"bounds":{"left":0.0,"top":0.0,"width":0.04375,"height":0.03},"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"Q","depth":4,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"is_readonly","depth":5,"bounds":{"left":0.0,"top":0.0,"width":0.04375,"height":0.03},"on_screen":false,"role_description":"text"},{"role":"AXButton","text":"Select All","depth":4,"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXCell","text":"1885","depth":6,"on_screen":true,"role_description":"cell"},{"role":"AXStaticText","text":"1885","depth":7,"on_screen":true,"role_description":"text"},{"role":"AXTextArea","text":"39","depth":8,"bounds":{"left":0.0,"top":0.0,"width":0.16458334,"height":0.024444444},"on_screen":false,"value":"39","role_description":"text entry area","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXCell","text":"58a51d4d-0ca7-49f0-9b2c-e16027877cc5","depth":6,"on_screen":true,"role_description":"cell"},{"role":"AXStaticText","text":"58a51d4d-0ca7-49f0-9b2c-e16027877cc5","depth":7,"on_screen":true,"role_description":"text"},{"role":"AXTextArea","text":"picktestmulti__c","depth":8,"bounds":{"left":0.0,"top":0.0,"width":0.10486111,"height":0.024444444},"on_screen":false,"value":"picktestmulti__c","role_description":"text entry area","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXCell","text":"39","depth":6,"on_screen":true,"role_description":"cell"},{"role":"AXStaticText","text":"39","depth":7,"on_screen":true,"role_description":"text"},{"role":"AXTextArea","text":"39","depth":8,"bounds":{"left":0.0,"top":0.0,"width":0.16458334,"height":0.024444444},"on_screen":false,"value":"39","role_description":"text entry area","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXCell","text":"ReminderDateTime","depth":6,"on_screen":true,"role_description":"cell"},{"role":"AXStaticText","text":"ReminderDateTime","depth":7,"on_screen":true,"role_description":"text"},{"role":"AXTextArea","text":"picktestmulti__c","depth":8,"bounds":{"left":0.0,"top":0.0,"width":0.10486111,"height":0.024444444},"on_screen":false,"value":"picktestmulti__c","role_description":"text entry area","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXCell","text":"Reminder Date/Time","depth":6,"on_screen":true,"role_description":"cell"},{"role":"AXStaticText","text":"Reminder Date/Time","depth":7,"on_screen":true,"role_description":"text"},{"role":"AXTextArea","text":"picktestmulti__c","depth":8,"bounds":{"left":0.0,"top":0.0,"width":0.10486111,"height":0.024444444},"on_screen":false,"value":"picktestmulti__c","role_description":"text entry area","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXCell","text":"<null>","depth":6,"on_screen":true,"role_description":"cell"},{"role":"AXStaticText","text":"<null>","depth":7,"on_screen":true,"role_description":"text"},{"role":"AXTextArea","text":"picktestmulti__c","depth":8,"bounds":{"left":0.0,"top":0.0,"width":0.10486111,"height":0.024444444},"on_screen":false,"value":"picktestmulti__c","role_description":"text entry area","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXCell","text":"datetime","depth":6,"on_screen":true,"role_description":"cell"},{"role":"AXStaticText","text":"datetime","depth":7,"on_screen":true,"role_description":"text"},{"role":"AXTextArea","text":"picktestmulti__c","depth":8,"bounds":{"left":0.0,"top":0.0,"width":0.10486111,"height":0.024444444},"on_screen":false,"value":"picktestmulti__c","role_description":"text entry area","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXCell","text":"<null>","depth":6,"on_screen":true,"role_description":"cell"},{"role":"AXStaticText","text":"<null>","depth":7,"on_screen":true,"role_description":"text"},{"role":"AXTextArea","text":"39","depth":8,"bounds":{"left":0.0,"top":0.0,"width":0.16458334,"height":0.024444444},"on_screen":false,"value":"39","role_description":"text entry area","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXCell","text":"<null>","depth":6,"on_screen":true,"role_description":"cell"},{"role":"AXStaticText","text":"<null>","depth":7,"on_screen":true,"role_description":"text"},{"role":"AXTextArea","text":"picktestmulti__c","depth":8,"bounds":{"left":0.0,"top":0.0,"width":0.10486111,"height":0.024444444},"on_screen":false,"value":"picktestmulti__c","role_description":"text entry area","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXCell","text":"event","depth":6,"on_screen":true,"role_description":"cell"},{"role":"AXStaticText","text":"event","depth":7,"on_screen":true,"role_description":"text"},{"role":"AXTextArea","text":"picktestmulti__c","depth":8,"bounds":{"left":0.0,"top":0.0,"width":0.10486111,"height":0.024444444},"on_screen":false,"value":"picktestmulti__c","role_description":"text entry area","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXCell","text":"1","depth":6,"on_screen":false,"role_description":"cell"},{"role":"AXStaticText","text":"1","depth":7,"on_screen":false,"role_description":"text"},{"role":"AXTextArea","text":"39","depth":8,"bounds":{"left":0.0,"top":0.0,"width":0.16458334,"height":0.024444444},"on_screen":false,"value":"39","role_description":"text entry area","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXCell","text":"0","depth":6,"on_screen":false,"role_description":"cell"},{"role":"AXStaticText","text":"0","depth":7,"on_screen":false,"role_description":"text"},{"role":"AXTextArea","text":"39","depth":8,"bounds":{"left":0.0,"top":0.0,"width":0.16458334,"height":0.024444444},"on_screen":false,"value":"39","role_description":"text entry area","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXCell","text":"0","depth":6,"on_screen":false,"role_description":"cell"},{"role":"AXStaticText","text":"0","depth":7,"on_screen":false,"role_description":"text"},{"role":"AXTextArea","text":"39","depth":8,"bounds":{"left":0.0,"top":0.0,"width":0.16458334,"height":0.024444444},"on_screen":false,"value":"39","role_description":"text entry area","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXCell","text":"0","depth":6,"on_screen":false,"role_description":"cell"},{"role":"AXStaticText","text":"0","depth":7,"on_screen":false,"role_description":"text"},{"role":"AXTextArea","text":"39","depth":8,"bounds":{"left":0.0,"top":0.0,"width":0.16458334,"height":0.024444444},"on_screen":false,"value":"39","role_description":"text entry area","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXCell","text":"2022-12-15 14:53:05","depth":6,"on_screen":false,"role_description":"cell"},{"role":"AXStaticText","text":"2022-12-15 14:53:05","depth":7,"on_screen":false,"role_description":"text"},{"role":"AXTextArea","text":"picktestmulti__c","depth":8,"bounds":{"left":0.0,"top":0.0,"width":0.10486111,"height":0.024444444},"on_screen":false,"value":"picktestmulti__c","role_description":"text entry area","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXCell","text":"2025-09-29 11:00:32","depth":6,"on_screen":false,"role_description":"cell"},{"role":"AXStaticText","text":"2025-09-29 11:00:32","depth":7,"on_screen":false,"role_description":"text"},{"role":"AXTextArea","text":"picktestmulti__c","depth":8,"bounds":{"left":0.0,"top":0.0,"width":0.10486111,"height":0.024444444},"on_screen":false,"value":"picktestmulti__c","role_description":"text entry area","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXCell","text":"0","depth":6,"on_screen":false,"role_description":"cell"},{"role":"AXStaticText","text":"0","depth":7,"on_screen":false,"role_description":"text"},{"role":"AXTextArea","text":"39","depth":8,"bounds":{"left":0.0,"top":0.0,"width":0.16458334,"height":0.024444444},"on_screen":false,"value":"39","role_description":"text entry area","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXCell","text":"3014","depth":6,"on_screen":true,"role_description":"cell"},{"role":"AXStaticText","text":"3014","depth":7,"on_screen":true,"role_description":"text"},{"role":"AXTextArea","text":"39","depth":8,"bounds":{"left":0.0,"top":0.0,"width":0.16458334,"height":0.024444444},"on_screen":false,"value":"39","role_description":"text entry area","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXCell","text":"a3d3df5a-eaa1-43d0-b95e-1ff4bec8c428","depth":6,"on_screen":true,"role_description":"cell"},{"role":"AXStaticText","text":"a3d3df5a-eaa1-43d0-b95e-1ff4bec8c428","depth":7,"on_screen":true,"role_description":"text"},{"role":"AXTextArea","text":"picktestmulti__c","depth":8,"bounds":{"left":0.0,"top":0.0,"width":0.10486111,"height":0.024444444},"on_screen":false,"value":"picktestmulti__c","role_description":"text entry area","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXCell","text":"39","depth":6,"on_screen":true,"role_description":"cell"},{"role":"AXStaticText","text":"39","depth":7,"on_screen":true,"role_description":"text"},{"role":"AXTextArea","text":"39","depth":8,"bounds":{"left":0.0,"top":0.0,"width":0.16458334,"height":0.024444444},"on_screen":false,"value":"39","role_description":"text entry area","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXCell","text":"picktestmulti__c","depth":6,"on_screen":true,"role_description":"cell"},{"role":"AXStaticText","text":"picktestmulti__c","depth":7,"on_screen":true,"role_description":"text"},{"role":"AXTextArea","text":"picktestmulti__c","depth":8,"bounds":{"left":0.0,"top":0.0,"width":0.10486111,"height":0.024444444},"on_screen":false,"value":"picktestmulti__c","role_description":"text entry area","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXCell","text":"picktestmulti","depth":6,"on_screen":true,"role_description":"cell"},{"role":"AXStaticText","text":"picktestmulti","depth":7,"on_screen":true,"role_description":"text"}]...
|
3718456907158796174
|
447210302801785139
|
click
|
accessibility
|
NULL
|
Project: faVsco.js, menu
JY-20915-fix-missing-head Project: faVsco.js, menu
JY-20915-fix-missing-header-text-relay, menu
Start Listening for PHP Debug Connections
TextRelayServiceTest
Run 'TextRelayServiceTest'
Debug 'TextRelayServiceTest'
More Actions
JetBrains AI
Search Everywhere
IDE and Project Settings
Sync Changes
Hide This Notification
Code changed:
Hide
12
1
Previous Highlighted Error
Next Highlighted Error
<?php
namespace Jiminny\Http\Transformers;
use Jiminny\Models\Crm\Field;
use Jiminny\Models\Crm\Profile;
use League\Fractal\Resource\Collection;
use League\Fractal\TransformerAbstract;
class FieldTransformer extends TransformerAbstract
{
protected array $availableIncludes = [
'options',
];
private ?Profile $profile;
private bool $noDefault = false;
public function __construct(?Profile $profile = null)
{
$this->profile = $profile;
}
public function setNoDefault(bool $noDefault)
{
$this->noDefault = $noDefault;
}
public function transform(Field $field): array
{
$defaultValue = $field->default_value;
$type = $field->type;
if (\is_bool($defaultValue)) {
$defaultValue = (bool) $defaultValue;
}
return [
'id' => $field->id_string,
'objectType' => $field->object_type,
'label' => $field->label,
'fieldName' => $field->crm_provider_id,
'type' => $type,
'enabled' => $field->is_selectable,
'length' => $field->length,
'defaultValue' => $defaultValue,
];
}
public function includeOptions(Field $field): ?Collection
{
if ($field->type === Field::TYPE_PICKLIST && $values = $field->values) {
// if ($field->type === Field::TYPE_PICKLIST && $values = $field->values) {
// This gets a little complex. We need to check if this field has any record type constraints for the profile.
if (
$this->profile
&& ($recordType = $this->profile->{$field->object_type . 'RecordType'})
&& $recordType->fieldValues()->where('crm_field_id', $field->id)->exists()
) {
// Fetch the values specific for this record type.
$values = $recordType->fieldValues()->where('crm_field_id', $field->id)->get();
}
if ($this->noDefault) {
foreach ($values as $value) {
$value->is_default = false;
}
}
return $this->collection($values, new FieldValueTransformer());
}
return null;
}
}
A
id
B
uuid (UUID with time-low and time-high swapped)
C
crm_configuration_id
D
crm_provider_id
E
label
F
description
G
type
H
length
I
default_value
J
object_type
K
is_selectable
L
is_mandatory
M
is_filterable
N
is_indexable
O
created_at
P
updated_at
Q
is_readonly
Select All
1885
1885
39
58a51d4d-0ca7-49f0-9b2c-e16027877cc5
58a51d4d-0ca7-49f0-9b2c-e16027877cc5
picktestmulti__c
39
39
39
ReminderDateTime
ReminderDateTime
picktestmulti__c
Reminder Date/Time
Reminder Date/Time
picktestmulti__c
<null>
<null>
picktestmulti__c
datetime
datetime
picktestmulti__c
<null>
<null>
39
<null>
<null>
picktestmulti__c
event
event
picktestmulti__c
1
1
39
0
0
39
0
0
39
0
0
39
2022-12-15 14:53:05
2022-12-15 14:53:05
picktestmulti__c
2025-09-29 11:00:32
2025-09-29 11:00:32
picktestmulti__c
0
0
39
3014
3014
39
a3d3df5a-eaa1-43d0-b95e-1ff4bec8c428
a3d3df5a-eaa1-43d0-b95e-1ff4bec8c428
picktestmulti__c
39
39
39
picktestmulti__c
picktestmulti__c
picktestmulti__c
picktestmulti
picktestmulti...
|
NULL
|
NULL
|
NULL
|
NULL
|
|
79743
|
2791
|
25
|
2026-05-28T06:41:06.422625+00:00
|
/Users/lukas/.screenpipe/data/data/2026-05-28/1779 /Users/lukas/.screenpipe/data/data/2026-05-28/1779950466422_m2.jpg...
|
PhpStorm
|
faVsco.js – FieldTransformer.php
|
1
|
NULL
|
monitor_2
|
NULL
|
NULL
|
NULL
|
NULL
|
Project: faVsco.js, menu
JY-20915-fix-missing-head Project: faVsco.js, menu
JY-20915-fix-missing-header-text-relay, menu
Start Listening for PHP Debug Connections
TextRelayServiceTest
Run 'TextRelayServiceTest'
Debug 'TextRelayServiceTest'
More Actions
JetBrains AI
Search Everywhere
IDE and Project Settings
Sync Changes
Hide This Notification
Code changed:
Hide
12
1
Previous Highlighted Error
Next Highlighted Error
<?php
namespace Jiminny\Http\Transformers;
use Jiminny\Models\Crm\Field;
use Jiminny\Models\Crm\Profile;
use League\Fractal\Resource\Collection;
use League\Fractal\TransformerAbstract;
class FieldTransformer extends TransformerAbstract
{
protected array $availableIncludes = [
'options',
];
private ?Profile $profile;
private bool $noDefault = false;
public function __construct(?Profile $profile = null)
{
$this->profile = $profile;
}
public function setNoDefault(bool $noDefault)
{
$this->noDefault = $noDefault;
}
public function transform(Field $field): array
{
$defaultValue = $field->default_value;
$type = $field->type;
if (\is_bool($defaultValue)) {
$defaultValue = (bool) $defaultValue;
}
return [
'id' => $field->id_string,
'objectType' => $field->object_type,
'label' => $field->label,
'fieldName' => $field->crm_provider_id,
'type' => $type,
'enabled' => $field->is_selectable,
'length' => $field->length,
'defaultValue' => $defaultValue,
];
}
public function includeOptions(Field $field): ?Collection
{
if ($field->type === Field::TYPE_PICKLIST && $values = $field->values) {
// if ($field->type === Field::TYPE_PICKLIST && $values = $field->values) {
// This gets a little complex. We need to check if this field has any record type constraints for the profile.
if (
$this->profile
&& ($recordType = $this->profile->{$field->object_type . 'RecordType'})
&& $recordType->fieldValues()->where('crm_field_id', $field->id)->exists()
) {
// Fetch the values specific for this record type.
$values = $recordType->fieldValues()->where('crm_field_id', $field->id)->get();
}
if ($this->noDefault) {
foreach ($values as $value) {
$value->is_default = false;
}
}
return $this->collection($values, new FieldValueTransformer());
}
return null;
}
}
A
id
B
uuid (UUID with time-low and time-high swapped)
C
crm_configuration_id
D
crm_provider_id
E
label
F
description
G
type
H
length
I
default_value
J
object_type
K
is_selectable
L
is_mandatory
M
is_filterable
N
is_indexable
O
created_at
P
updated_at
Q
is_readonly
Select All
1885
1885
39
58a51d4d-0ca7-49f0-9b2c-e16027877cc5
58a51d4d-0ca7-49f0-9b2c-e16027877cc5
picktestmulti__c
39
39
39
ReminderDateTime
ReminderDateTime
picktestmulti__c
Reminder Date/Time
Reminder Date/Time
picktestmulti__c
<null>
<null>
picktestmulti__c
datetime
datetime
picktestmulti__c
<null>
<null>
39
<null>
<null>
picktestmulti__c
event
event
picktestmulti__c
1
1
39
0
0
39
0
0
39
0
0
39
2022-12-15 14:53:05
2022-12-15 14:53:05
picktestmulti__c
2025-09-29 11:00:32
2025-09-29 11:00:32
picktestmulti__c
0
0
39...
|
[{"role":"AXButton","text" [{"role":"AXButton","text":"Project: faVsco.js, menu","depth":5,"bounds":{"left":0.025930852,"top":0.019952115,"width":0.03856383,"height":0.025538707},"on_screen":true,"help_text":"~/jiminny/app","role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"JY-20915-fix-missing-header-text-relay, menu","depth":5,"bounds":{"left":0.064494684,"top":0.019952115,"width":0.09740692,"height":0.025538707},"on_screen":true,"help_text":"Git Branch: JY-20915-fix-missing-header-text-relay","role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Start Listening for PHP Debug Connections","depth":5,"bounds":{"left":0.8374335,"top":0.019952115,"width":0.011303191,"height":0.025538707},"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"TextRelayServiceTest","depth":6,"bounds":{"left":0.85272604,"top":0.019952115,"width":0.062832445,"height":0.025538707},"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Run 'TextRelayServiceTest'","depth":6,"bounds":{"left":0.9155585,"top":0.019952115,"width":0.011303191,"height":0.025538707},"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Debug 'TextRelayServiceTest'","depth":6,"bounds":{"left":0.9268617,"top":0.019952115,"width":0.011303191,"height":0.025538707},"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"More Actions","depth":6,"bounds":{"left":0.9381649,"top":0.019952115,"width":0.011303191,"height":0.025538707},"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"JetBrains AI","depth":5,"bounds":{"left":0.96609044,"top":0.019952115,"width":0.011303191,"height":0.025538707},"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Search Everywhere","depth":5,"bounds":{"left":0.9773936,"top":0.019952115,"width":0.011303191,"height":0.025538707},"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"IDE and Project Settings","depth":5,"bounds":{"left":0.9886968,"top":0.019952115,"width":0.011303186,"height":0.025538707},"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Sync Changes","depth":4,"bounds":{"left":0.27027926,"top":1.0,"width":0.008643617,"height":0.0},"on_screen":false,"role_description":"button","is_enabled":false,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Hide This Notification","depth":4,"bounds":{"left":0.27027926,"top":1.0,"width":0.008643617,"height":0.0},"on_screen":false,"role_description":"button","is_enabled":false,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Code changed:","depth":4,"bounds":{"left":0.27027926,"top":1.0,"width":0.042220745,"height":0.0},"on_screen":false,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Hide","depth":4,"bounds":{"left":0.27027926,"top":1.0,"width":0.008643617,"height":0.0},"on_screen":false,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXStaticText","text":"12","depth":4,"bounds":{"left":0.37632978,"top":0.12529927,"width":0.009640957,"height":0.015163607},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"1","depth":4,"bounds":{"left":0.3879654,"top":0.12529927,"width":0.00731383,"height":0.015163607},"on_screen":true,"role_description":"text"},{"role":"AXButton","text":"Previous Highlighted Error","depth":4,"bounds":{"left":0.39694148,"top":0.123703115,"width":0.00731383,"height":0.018355945},"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Next Highlighted Error","depth":4,"bounds":{"left":0.40425533,"top":0.123703115,"width":0.006981383,"height":0.018355945},"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXTextArea","text":"<?php\n\nnamespace Jiminny\\Http\\Transformers;\n\nuse Jiminny\\Models\\Crm\\Field;\nuse Jiminny\\Models\\Crm\\Profile;\nuse League\\Fractal\\Resource\\Collection;\nuse League\\Fractal\\TransformerAbstract;\n\nclass FieldTransformer extends TransformerAbstract\n{\n protected array $availableIncludes = [\n 'options',\n ];\n private ?Profile $profile;\n\n private bool $noDefault = false;\n\n public function __construct(?Profile $profile = null)\n {\n $this->profile = $profile;\n }\n\n public function setNoDefault(bool $noDefault)\n {\n $this->noDefault = $noDefault;\n }\n\n public function transform(Field $field): array\n {\n $defaultValue = $field->default_value;\n $type = $field->type;\n\n if (\\is_bool($defaultValue)) {\n $defaultValue = (bool) $defaultValue;\n }\n\n return [\n 'id' => $field->id_string,\n 'objectType' => $field->object_type,\n 'label' => $field->label,\n 'fieldName' => $field->crm_provider_id,\n 'type' => $type,\n 'enabled' => $field->is_selectable,\n 'length' => $field->length,\n 'defaultValue' => $defaultValue,\n ];\n }\n\n public function includeOptions(Field $field): ?Collection\n {\n if ($field->type === Field::TYPE_PICKLIST && $values = $field->values) {\n// if ($field->type === Field::TYPE_PICKLIST && $values = $field->values) {\n // This gets a little complex. We need to check if this field has any record type constraints for the profile.\n if (\n $this->profile\n && ($recordType = $this->profile->{$field->object_type . 'RecordType'})\n && $recordType->fieldValues()->where('crm_field_id', $field->id)->exists()\n ) {\n // Fetch the values specific for this record type.\n $values = $recordType->fieldValues()->where('crm_field_id', $field->id)->get();\n }\n\n if ($this->noDefault) {\n foreach ($values as $value) {\n $value->is_default = false;\n }\n }\n\n return $this->collection($values, new FieldValueTransformer());\n }\n\n return null;\n }\n}","depth":4,"on_screen":true,"value":"<?php\n\nnamespace Jiminny\\Http\\Transformers;\n\nuse Jiminny\\Models\\Crm\\Field;\nuse Jiminny\\Models\\Crm\\Profile;\nuse League\\Fractal\\Resource\\Collection;\nuse League\\Fractal\\TransformerAbstract;\n\nclass FieldTransformer extends TransformerAbstract\n{\n protected array $availableIncludes = [\n 'options',\n ];\n private ?Profile $profile;\n\n private bool $noDefault = false;\n\n public function __construct(?Profile $profile = null)\n {\n $this->profile = $profile;\n }\n\n public function setNoDefault(bool $noDefault)\n {\n $this->noDefault = $noDefault;\n }\n\n public function transform(Field $field): array\n {\n $defaultValue = $field->default_value;\n $type = $field->type;\n\n if (\\is_bool($defaultValue)) {\n $defaultValue = (bool) $defaultValue;\n }\n\n return [\n 'id' => $field->id_string,\n 'objectType' => $field->object_type,\n 'label' => $field->label,\n 'fieldName' => $field->crm_provider_id,\n 'type' => $type,\n 'enabled' => $field->is_selectable,\n 'length' => $field->length,\n 'defaultValue' => $defaultValue,\n ];\n }\n\n public function includeOptions(Field $field): ?Collection\n {\n if ($field->type === Field::TYPE_PICKLIST && $values = $field->values) {\n// if ($field->type === Field::TYPE_PICKLIST && $values = $field->values) {\n // This gets a little complex. We need to check if this field has any record type constraints for the profile.\n if (\n $this->profile\n && ($recordType = $this->profile->{$field->object_type . 'RecordType'})\n && $recordType->fieldValues()->where('crm_field_id', $field->id)->exists()\n ) {\n // Fetch the values specific for this record type.\n $values = $recordType->fieldValues()->where('crm_field_id', $field->id)->get();\n }\n\n if ($this->noDefault) {\n foreach ($values as $value) {\n $value->is_default = false;\n }\n }\n\n return $this->collection($values, new FieldValueTransformer());\n }\n\n return null;\n }\n}","role_description":"text entry area","is_enabled":true,"is_focused":true,"is_selected":false,"is_expanded":false},{"role":"AXStaticText","text":"A","depth":4,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"id","depth":5,"bounds":{"left":0.27027926,"top":1.0,"width":0.020944148,"height":0.0},"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"B","depth":4,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"uuid (UUID with time-low and time-high swapped)","depth":5,"bounds":{"left":0.27027926,"top":1.0,"width":0.020944148,"height":0.0},"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"C","depth":4,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"crm_configuration_id","depth":5,"bounds":{"left":0.27027926,"top":1.0,"width":0.020944148,"height":0.0},"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"D","depth":4,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"crm_provider_id","depth":5,"bounds":{"left":0.27027926,"top":1.0,"width":0.020944148,"height":0.0},"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"E","depth":4,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"label","depth":5,"bounds":{"left":0.27027926,"top":1.0,"width":0.020944148,"height":0.0},"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"F","depth":4,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"description","depth":5,"bounds":{"left":0.27027926,"top":1.0,"width":0.020944148,"height":0.0},"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"G","depth":4,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"type","depth":5,"bounds":{"left":0.27027926,"top":1.0,"width":0.020944148,"height":0.0},"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"H","depth":4,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"length","depth":5,"bounds":{"left":0.27027926,"top":1.0,"width":0.020944148,"height":0.0},"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"I","depth":4,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"default_value","depth":5,"bounds":{"left":0.27027926,"top":1.0,"width":0.020944148,"height":0.0},"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"J","depth":4,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"object_type","depth":5,"bounds":{"left":0.27027926,"top":1.0,"width":0.020944148,"height":0.0},"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"K","depth":4,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"is_selectable","depth":5,"bounds":{"left":0.27027926,"top":1.0,"width":0.020944148,"height":0.0},"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"L","depth":4,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"is_mandatory","depth":5,"bounds":{"left":0.27027926,"top":1.0,"width":0.020944148,"height":0.0},"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"M","depth":4,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"is_filterable","depth":5,"bounds":{"left":0.27027926,"top":1.0,"width":0.020944148,"height":0.0},"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"N","depth":4,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"is_indexable","depth":5,"bounds":{"left":0.27027926,"top":1.0,"width":0.020944148,"height":0.0},"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"O","depth":4,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"created_at","depth":5,"bounds":{"left":0.27027926,"top":1.0,"width":0.020944148,"height":0.0},"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"P","depth":4,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"updated_at","depth":5,"bounds":{"left":0.27027926,"top":1.0,"width":0.020944148,"height":0.0},"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"Q","depth":4,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"is_readonly","depth":5,"bounds":{"left":0.27027926,"top":1.0,"width":0.020944148,"height":0.0},"on_screen":false,"role_description":"text"},{"role":"AXButton","text":"Select All","depth":4,"bounds":{"left":0.41156915,"top":0.14365523,"width":0.007978723,"height":0.0207502},"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXCell","text":"1885","depth":6,"bounds":{"left":0.41988033,"top":0.16520351,"width":0.034242023,"height":0.0207502},"on_screen":true,"role_description":"cell"},{"role":"AXStaticText","text":"1885","depth":7,"bounds":{"left":0.41988033,"top":0.16520351,"width":0.034242023,"height":0.0207502},"on_screen":true,"role_description":"text"},{"role":"AXTextArea","text":"39","depth":8,"bounds":{"left":0.27027926,"top":1.0,"width":0.0787899,"height":0.0},"on_screen":false,"value":"39","role_description":"text entry area","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXCell","text":"58a51d4d-0ca7-49f0-9b2c-e16027877cc5","depth":6,"bounds":{"left":0.45445478,"top":0.16520351,"width":0.10073138,"height":0.0207502},"on_screen":true,"role_description":"cell"},{"role":"AXStaticText","text":"58a51d4d-0ca7-49f0-9b2c-e16027877cc5","depth":7,"bounds":{"left":0.45445478,"top":0.16520351,"width":0.10073138,"height":0.0207502},"on_screen":true,"role_description":"text"},{"role":"AXTextArea","text":"picktestmulti__c","depth":8,"bounds":{"left":0.27027926,"top":1.0,"width":0.050199468,"height":0.0},"on_screen":false,"value":"picktestmulti__c","role_description":"text entry area","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXCell","text":"39","depth":6,"bounds":{"left":0.5555186,"top":0.16520351,"width":0.080784574,"height":0.0207502},"on_screen":true,"role_description":"cell"},{"role":"AXStaticText","text":"39","depth":7,"bounds":{"left":0.5555186,"top":0.16520351,"width":0.080784574,"height":0.0207502},"on_screen":true,"role_description":"text"},{"role":"AXTextArea","text":"39","depth":8,"bounds":{"left":0.27027926,"top":1.0,"width":0.0787899,"height":0.0},"on_screen":false,"value":"39","role_description":"text entry area","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXCell","text":"ReminderDateTime","depth":6,"bounds":{"left":0.63663566,"top":0.16520351,"width":0.06781915,"height":0.0207502},"on_screen":true,"role_description":"cell"},{"role":"AXStaticText","text":"ReminderDateTime","depth":7,"bounds":{"left":0.63663566,"top":0.16520351,"width":0.06781915,"height":0.0207502},"on_screen":true,"role_description":"text"},{"role":"AXTextArea","text":"picktestmulti__c","depth":8,"bounds":{"left":0.27027926,"top":1.0,"width":0.050199468,"height":0.0},"on_screen":false,"value":"picktestmulti__c","role_description":"text entry area","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXCell","text":"Reminder Date/Time","depth":6,"bounds":{"left":0.70478725,"top":0.16520351,"width":0.05219415,"height":0.0207502},"on_screen":true,"role_description":"cell"},{"role":"AXStaticText","text":"Reminder Date/Time","depth":7,"bounds":{"left":0.70478725,"top":0.16520351,"width":0.05219415,"height":0.0207502},"on_screen":true,"role_description":"text"},{"role":"AXTextArea","text":"picktestmulti__c","depth":8,"bounds":{"left":0.27027926,"top":1.0,"width":0.050199468,"height":0.0},"on_screen":false,"value":"picktestmulti__c","role_description":"text entry area","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXCell","text":"<null>","depth":6,"bounds":{"left":0.75731385,"top":0.16520351,"width":0.057513297,"height":0.0207502},"on_screen":true,"role_description":"cell"},{"role":"AXStaticText","text":"<null>","depth":7,"bounds":{"left":0.75731385,"top":0.16520351,"width":0.057513297,"height":0.0207502},"on_screen":true,"role_description":"text"},{"role":"AXTextArea","text":"picktestmulti__c","depth":8,"bounds":{"left":0.27027926,"top":1.0,"width":0.050199468,"height":0.0},"on_screen":false,"value":"picktestmulti__c","role_description":"text entry area","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXCell","text":"datetime","depth":6,"bounds":{"left":0.81515956,"top":0.16520351,"width":0.04155585,"height":0.0207502},"on_screen":true,"role_description":"cell"},{"role":"AXStaticText","text":"datetime","depth":7,"bounds":{"left":0.81515956,"top":0.16520351,"width":0.04155585,"height":0.0207502},"on_screen":true,"role_description":"text"},{"role":"AXTextArea","text":"picktestmulti__c","depth":8,"bounds":{"left":0.27027926,"top":1.0,"width":0.050199468,"height":0.0},"on_screen":false,"value":"picktestmulti__c","role_description":"text entry area","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXCell","text":"<null>","depth":6,"bounds":{"left":0.85704786,"top":0.16520351,"width":0.04454787,"height":0.0207502},"on_screen":true,"role_description":"cell"},{"role":"AXStaticText","text":"<null>","depth":7,"bounds":{"left":0.85704786,"top":0.16520351,"width":0.04454787,"height":0.0207502},"on_screen":true,"role_description":"text"},{"role":"AXTextArea","text":"39","depth":8,"bounds":{"left":0.27027926,"top":1.0,"width":0.0787899,"height":0.0},"on_screen":false,"value":"39","role_description":"text entry area","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXCell","text":"<null>","depth":6,"bounds":{"left":0.9019282,"top":0.16520351,"width":0.0625,"height":0.0207502},"on_screen":true,"role_description":"cell"},{"role":"AXStaticText","text":"<null>","depth":7,"bounds":{"left":0.9019282,"top":0.16520351,"width":0.0625,"height":0.0207502},"on_screen":true,"role_description":"text"},{"role":"AXTextArea","text":"picktestmulti__c","depth":8,"bounds":{"left":0.27027926,"top":1.0,"width":0.050199468,"height":0.0},"on_screen":false,"value":"picktestmulti__c","role_description":"text entry area","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXCell","text":"event","depth":6,"bounds":{"left":0.96476066,"top":0.16520351,"width":0.03523934,"height":0.0207502},"on_screen":true,"role_description":"cell"},{"role":"AXStaticText","text":"event","depth":7,"bounds":{"left":0.96476066,"top":0.16520351,"width":0.03523934,"height":0.0207502},"on_screen":true,"role_description":"text"},{"role":"AXTextArea","text":"picktestmulti__c","depth":8,"bounds":{"left":0.27027926,"top":1.0,"width":0.050199468,"height":0.0},"on_screen":false,"value":"picktestmulti__c","role_description":"text entry area","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXCell","text":"1","depth":6,"bounds":{"left":1.0,"top":0.16520351,"width":-0.022606373,"height":0.0207502},"on_screen":false,"role_description":"cell"},{"role":"AXStaticText","text":"1","depth":7,"bounds":{"left":1.0,"top":0.16520351,"width":-0.022606373,"height":0.0207502},"on_screen":false,"role_description":"text"},{"role":"AXTextArea","text":"39","depth":8,"bounds":{"left":0.27027926,"top":1.0,"width":0.0787899,"height":0.0},"on_screen":false,"value":"39","role_description":"text entry area","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXCell","text":"0","depth":6,"bounds":{"left":1.0,"top":0.16520351,"width":-0.08543885,"height":0.0207502},"on_screen":false,"role_description":"cell"},{"role":"AXStaticText","text":"0","depth":7,"bounds":{"left":1.0,"top":0.16520351,"width":-0.08543885,"height":0.0207502},"on_screen":false,"role_description":"text"},{"role":"AXTextArea","text":"39","depth":8,"bounds":{"left":0.27027926,"top":1.0,"width":0.0787899,"height":0.0},"on_screen":false,"value":"39","role_description":"text entry area","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXCell","text":"0","depth":6,"on_screen":false,"role_description":"cell"},{"role":"AXStaticText","text":"0","depth":7,"on_screen":false,"role_description":"text"},{"role":"AXTextArea","text":"39","depth":8,"bounds":{"left":0.27027926,"top":1.0,"width":0.0787899,"height":0.0},"on_screen":false,"value":"39","role_description":"text entry area","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXCell","text":"0","depth":6,"on_screen":false,"role_description":"cell"},{"role":"AXStaticText","text":"0","depth":7,"on_screen":false,"role_description":"text"},{"role":"AXTextArea","text":"39","depth":8,"bounds":{"left":0.27027926,"top":1.0,"width":0.0787899,"height":0.0},"on_screen":false,"value":"39","role_description":"text entry area","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXCell","text":"2022-12-15 14:53:05","depth":6,"on_screen":false,"role_description":"cell"},{"role":"AXStaticText","text":"2022-12-15 14:53:05","depth":7,"on_screen":false,"role_description":"text"},{"role":"AXTextArea","text":"picktestmulti__c","depth":8,"bounds":{"left":0.27027926,"top":1.0,"width":0.050199468,"height":0.0},"on_screen":false,"value":"picktestmulti__c","role_description":"text entry area","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXCell","text":"2025-09-29 11:00:32","depth":6,"on_screen":false,"role_description":"cell"},{"role":"AXStaticText","text":"2025-09-29 11:00:32","depth":7,"on_screen":false,"role_description":"text"},{"role":"AXTextArea","text":"picktestmulti__c","depth":8,"bounds":{"left":0.27027926,"top":1.0,"width":0.050199468,"height":0.0},"on_screen":false,"value":"picktestmulti__c","role_description":"text entry area","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXCell","text":"0","depth":6,"on_screen":false,"role_description":"cell"},{"role":"AXStaticText","text":"0","depth":7,"on_screen":false,"role_description":"text"},{"role":"AXTextArea","text":"39","depth":8,"bounds":{"left":0.27027926,"top":1.0,"width":0.0787899,"height":0.0},"on_screen":false,"value":"39","role_description":"text entry area","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false}]...
|
-8589449075626620745
|
1595927274944018803
|
click
|
accessibility
|
NULL
|
Project: faVsco.js, menu
JY-20915-fix-missing-head Project: faVsco.js, menu
JY-20915-fix-missing-header-text-relay, menu
Start Listening for PHP Debug Connections
TextRelayServiceTest
Run 'TextRelayServiceTest'
Debug 'TextRelayServiceTest'
More Actions
JetBrains AI
Search Everywhere
IDE and Project Settings
Sync Changes
Hide This Notification
Code changed:
Hide
12
1
Previous Highlighted Error
Next Highlighted Error
<?php
namespace Jiminny\Http\Transformers;
use Jiminny\Models\Crm\Field;
use Jiminny\Models\Crm\Profile;
use League\Fractal\Resource\Collection;
use League\Fractal\TransformerAbstract;
class FieldTransformer extends TransformerAbstract
{
protected array $availableIncludes = [
'options',
];
private ?Profile $profile;
private bool $noDefault = false;
public function __construct(?Profile $profile = null)
{
$this->profile = $profile;
}
public function setNoDefault(bool $noDefault)
{
$this->noDefault = $noDefault;
}
public function transform(Field $field): array
{
$defaultValue = $field->default_value;
$type = $field->type;
if (\is_bool($defaultValue)) {
$defaultValue = (bool) $defaultValue;
}
return [
'id' => $field->id_string,
'objectType' => $field->object_type,
'label' => $field->label,
'fieldName' => $field->crm_provider_id,
'type' => $type,
'enabled' => $field->is_selectable,
'length' => $field->length,
'defaultValue' => $defaultValue,
];
}
public function includeOptions(Field $field): ?Collection
{
if ($field->type === Field::TYPE_PICKLIST && $values = $field->values) {
// if ($field->type === Field::TYPE_PICKLIST && $values = $field->values) {
// This gets a little complex. We need to check if this field has any record type constraints for the profile.
if (
$this->profile
&& ($recordType = $this->profile->{$field->object_type . 'RecordType'})
&& $recordType->fieldValues()->where('crm_field_id', $field->id)->exists()
) {
// Fetch the values specific for this record type.
$values = $recordType->fieldValues()->where('crm_field_id', $field->id)->get();
}
if ($this->noDefault) {
foreach ($values as $value) {
$value->is_default = false;
}
}
return $this->collection($values, new FieldValueTransformer());
}
return null;
}
}
A
id
B
uuid (UUID with time-low and time-high swapped)
C
crm_configuration_id
D
crm_provider_id
E
label
F
description
G
type
H
length
I
default_value
J
object_type
K
is_selectable
L
is_mandatory
M
is_filterable
N
is_indexable
O
created_at
P
updated_at
Q
is_readonly
Select All
1885
1885
39
58a51d4d-0ca7-49f0-9b2c-e16027877cc5
58a51d4d-0ca7-49f0-9b2c-e16027877cc5
picktestmulti__c
39
39
39
ReminderDateTime
ReminderDateTime
picktestmulti__c
Reminder Date/Time
Reminder Date/Time
picktestmulti__c
<null>
<null>
picktestmulti__c
datetime
datetime
picktestmulti__c
<null>
<null>
39
<null>
<null>
picktestmulti__c
event
event
picktestmulti__c
1
1
39
0
0
39
0
0
39
0
0
39
2022-12-15 14:53:05
2022-12-15 14:53:05
picktestmulti__c
2025-09-29 11:00:32
2025-09-29 11:00:32
picktestmulti__c
0
0
39...
|
NULL
|
NULL
|
NULL
|
NULL
|
|
79742
|
2790
|
13
|
2026-05-28T06:41:06.317311+00:00
|
/Users/lukas/.screenpipe/data/data/2026-05-28/1779 /Users/lukas/.screenpipe/data/data/2026-05-28/1779950466317_m1.jpg...
|
PhpStorm
|
faVsco.js – FieldTransformer.php
|
1
|
NULL
|
monitor_1
|
NULL
|
NULL
|
NULL
|
NULL
|
Project: faVsco.js, menu
JY-20915-fix-missing-head Project: faVsco.js, menu
JY-20915-fix-missing-header-text-relay, menu
Start Listening for PHP Debug Connections
TextRelayServiceTest
Run 'TextRelayServiceTest'
Debug 'TextRelayServiceTest'
More Actions
JetBrains AI
Search Everywhere
IDE and Project Settings
Sync Changes
Hide This Notification
Code changed:
Hide
12
1
Previous Highlighted Error
Next Highlighted Error
<?php
namespace Jiminny\Http\Transformers;
use Jiminny\Models\Crm\Field;
use Jiminny\Models\Crm\Profile;
use League\Fractal\Resource\Collection;
use League\Fractal\TransformerAbstract;
class FieldTransformer extends TransformerAbstract
{
protected array $availableIncludes = [
'options',
];
private ?Profile $profile;
private bool $noDefault = false;
public function __construct(?Profile $profile = null)
{
$this->profile = $profile;
}
public function setNoDefault(bool $noDefault)
{
$this->noDefault = $noDefault;
}
public function transform(Field $field): array
{
$defaultValue = $field->default_value;
$type = $field->type;
if (\is_bool($defaultValue)) {
$defaultValue = (bool) $defaultValue;
}
return [
'id' => $field->id_string,
'objectType' => $field->object_type,
'label' => $field->label,
'fieldName' => $field->crm_provider_id,
'type' => $type,
'enabled' => $field->is_selectable,
'length' => $field->length,
'defaultValue' => $defaultValue,
];
}
public function includeOptions(Field $field): ?Collection
{
if ($field->type === Field::TYPE_PICKLIST && $values = $field->values) {
// if ($field->type === Field::TYPE_PICKLIST && $values = $field->values) {
// This gets a little complex. We need to check if this field has any record type constraints for the profile.
if (
$this->profile
&& ($recordType = $this->profile->{$field->object_type . 'RecordType'})
&& $recordType->fieldValues()->where('crm_field_id', $field->id)->exists()
) {
// Fetch the values specific for this record type.
$values = $recordType->fieldValues()->where('crm_field_id', $field->id)->get();
}
if ($this->noDefault) {
foreach ($values as $value) {
$value->is_default = false;
}
}
return $this->collection($values, new FieldValueTransformer());
}
return null;
}
}
A
id
B
uuid (UUID with time-low and time-high swapped)
C
crm_configuration_id
D
crm_provider_id
E
label
F
description
G
type
H
length
I
default_value
J
object_type
K
is_selectable
L
is_mandatory
M
is_filterable
N
is_indexable
O
created_at
P
updated_at
Q
is_readonly
Select All
1885
1885
39
58a51d4d-0ca7-49f0-9b2c-e16027877cc5
58a51d4d-0ca7-49f0-9b2c-e16027877cc5
picktestmulti__c
39
39
39
ReminderDateTime
ReminderDateTime
picktestmulti__c
Reminder Date/Time
Reminder Date/Time
picktestmulti__c
<null>
<null>
picktestmulti__c
datetime
datetime
picktestmulti__c
<null>
<null>
39
<null>
<null>
picktestmulti__c
event
event
picktestmulti__c
1
1
39
0
0
39
0
0
39
0
0
39
2022-12-15 14:53:05
2022-12-15 14:53:05...
|
[{"role":"AXButton","text" [{"role":"AXButton","text":"Project: faVsco.js, menu","depth":5,"on_screen":true,"help_text":"~/jiminny/app","role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"JY-20915-fix-missing-header-text-relay, menu","depth":5,"on_screen":true,"help_text":"Git Branch: JY-20915-fix-missing-header-text-relay","role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Start Listening for PHP Debug Connections","depth":5,"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"TextRelayServiceTest","depth":6,"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Run 'TextRelayServiceTest'","depth":6,"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Debug 'TextRelayServiceTest'","depth":6,"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"More Actions","depth":6,"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"JetBrains AI","depth":5,"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Search Everywhere","depth":5,"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"IDE and Project Settings","depth":5,"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Sync Changes","depth":4,"bounds":{"left":0.0,"top":0.0,"width":0.018055556,"height":0.026666667},"on_screen":false,"role_description":"button","is_enabled":false,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Hide This Notification","depth":4,"bounds":{"left":0.0,"top":0.0,"width":0.018055556,"height":0.026666667},"on_screen":false,"role_description":"button","is_enabled":false,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Code changed:","depth":4,"bounds":{"left":0.0,"top":0.0,"width":0.088194445,"height":0.027777778},"on_screen":false,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Hide","depth":4,"bounds":{"left":0.0,"top":0.0,"width":0.018055556,"height":0.026666667},"on_screen":false,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXStaticText","text":"12","depth":4,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"1","depth":4,"on_screen":true,"role_description":"text"},{"role":"AXButton","text":"Previous Highlighted Error","depth":4,"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Next Highlighted Error","depth":4,"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXTextArea","text":"<?php\n\nnamespace Jiminny\\Http\\Transformers;\n\nuse Jiminny\\Models\\Crm\\Field;\nuse Jiminny\\Models\\Crm\\Profile;\nuse League\\Fractal\\Resource\\Collection;\nuse League\\Fractal\\TransformerAbstract;\n\nclass FieldTransformer extends TransformerAbstract\n{\n protected array $availableIncludes = [\n 'options',\n ];\n private ?Profile $profile;\n\n private bool $noDefault = false;\n\n public function __construct(?Profile $profile = null)\n {\n $this->profile = $profile;\n }\n\n public function setNoDefault(bool $noDefault)\n {\n $this->noDefault = $noDefault;\n }\n\n public function transform(Field $field): array\n {\n $defaultValue = $field->default_value;\n $type = $field->type;\n\n if (\\is_bool($defaultValue)) {\n $defaultValue = (bool) $defaultValue;\n }\n\n return [\n 'id' => $field->id_string,\n 'objectType' => $field->object_type,\n 'label' => $field->label,\n 'fieldName' => $field->crm_provider_id,\n 'type' => $type,\n 'enabled' => $field->is_selectable,\n 'length' => $field->length,\n 'defaultValue' => $defaultValue,\n ];\n }\n\n public function includeOptions(Field $field): ?Collection\n {\n if ($field->type === Field::TYPE_PICKLIST && $values = $field->values) {\n// if ($field->type === Field::TYPE_PICKLIST && $values = $field->values) {\n // This gets a little complex. We need to check if this field has any record type constraints for the profile.\n if (\n $this->profile\n && ($recordType = $this->profile->{$field->object_type . 'RecordType'})\n && $recordType->fieldValues()->where('crm_field_id', $field->id)->exists()\n ) {\n // Fetch the values specific for this record type.\n $values = $recordType->fieldValues()->where('crm_field_id', $field->id)->get();\n }\n\n if ($this->noDefault) {\n foreach ($values as $value) {\n $value->is_default = false;\n }\n }\n\n return $this->collection($values, new FieldValueTransformer());\n }\n\n return null;\n }\n}","depth":4,"on_screen":true,"value":"<?php\n\nnamespace Jiminny\\Http\\Transformers;\n\nuse Jiminny\\Models\\Crm\\Field;\nuse Jiminny\\Models\\Crm\\Profile;\nuse League\\Fractal\\Resource\\Collection;\nuse League\\Fractal\\TransformerAbstract;\n\nclass FieldTransformer extends TransformerAbstract\n{\n protected array $availableIncludes = [\n 'options',\n ];\n private ?Profile $profile;\n\n private bool $noDefault = false;\n\n public function __construct(?Profile $profile = null)\n {\n $this->profile = $profile;\n }\n\n public function setNoDefault(bool $noDefault)\n {\n $this->noDefault = $noDefault;\n }\n\n public function transform(Field $field): array\n {\n $defaultValue = $field->default_value;\n $type = $field->type;\n\n if (\\is_bool($defaultValue)) {\n $defaultValue = (bool) $defaultValue;\n }\n\n return [\n 'id' => $field->id_string,\n 'objectType' => $field->object_type,\n 'label' => $field->label,\n 'fieldName' => $field->crm_provider_id,\n 'type' => $type,\n 'enabled' => $field->is_selectable,\n 'length' => $field->length,\n 'defaultValue' => $defaultValue,\n ];\n }\n\n public function includeOptions(Field $field): ?Collection\n {\n if ($field->type === Field::TYPE_PICKLIST && $values = $field->values) {\n// if ($field->type === Field::TYPE_PICKLIST && $values = $field->values) {\n // This gets a little complex. We need to check if this field has any record type constraints for the profile.\n if (\n $this->profile\n && ($recordType = $this->profile->{$field->object_type . 'RecordType'})\n && $recordType->fieldValues()->where('crm_field_id', $field->id)->exists()\n ) {\n // Fetch the values specific for this record type.\n $values = $recordType->fieldValues()->where('crm_field_id', $field->id)->get();\n }\n\n if ($this->noDefault) {\n foreach ($values as $value) {\n $value->is_default = false;\n }\n }\n\n return $this->collection($values, new FieldValueTransformer());\n }\n\n return null;\n }\n}","role_description":"text entry area","is_enabled":true,"is_focused":true,"is_selected":false,"is_expanded":false},{"role":"AXStaticText","text":"A","depth":4,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"id","depth":5,"bounds":{"left":0.0,"top":0.0,"width":0.04375,"height":0.03},"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"B","depth":4,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"uuid (UUID with time-low and time-high swapped)","depth":5,"bounds":{"left":0.0,"top":0.0,"width":0.04375,"height":0.03},"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"C","depth":4,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"crm_configuration_id","depth":5,"bounds":{"left":0.0,"top":0.0,"width":0.04375,"height":0.03},"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"D","depth":4,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"crm_provider_id","depth":5,"bounds":{"left":0.0,"top":0.0,"width":0.04375,"height":0.03},"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"E","depth":4,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"label","depth":5,"bounds":{"left":0.0,"top":0.0,"width":0.04375,"height":0.03},"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"F","depth":4,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"description","depth":5,"bounds":{"left":0.0,"top":0.0,"width":0.04375,"height":0.03},"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"G","depth":4,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"type","depth":5,"bounds":{"left":0.0,"top":0.0,"width":0.04375,"height":0.03},"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"H","depth":4,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"length","depth":5,"bounds":{"left":0.0,"top":0.0,"width":0.04375,"height":0.03},"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"I","depth":4,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"default_value","depth":5,"bounds":{"left":0.0,"top":0.0,"width":0.04375,"height":0.03},"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"J","depth":4,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"object_type","depth":5,"bounds":{"left":0.0,"top":0.0,"width":0.04375,"height":0.03},"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"K","depth":4,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"is_selectable","depth":5,"bounds":{"left":0.0,"top":0.0,"width":0.04375,"height":0.03},"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"L","depth":4,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"is_mandatory","depth":5,"bounds":{"left":0.0,"top":0.0,"width":0.04375,"height":0.03},"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"M","depth":4,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"is_filterable","depth":5,"bounds":{"left":0.0,"top":0.0,"width":0.04375,"height":0.03},"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"N","depth":4,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"is_indexable","depth":5,"bounds":{"left":0.0,"top":0.0,"width":0.04375,"height":0.03},"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"O","depth":4,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"created_at","depth":5,"bounds":{"left":0.0,"top":0.0,"width":0.04375,"height":0.03},"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"P","depth":4,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"updated_at","depth":5,"bounds":{"left":0.0,"top":0.0,"width":0.04375,"height":0.03},"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"Q","depth":4,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"is_readonly","depth":5,"bounds":{"left":0.0,"top":0.0,"width":0.04375,"height":0.03},"on_screen":false,"role_description":"text"},{"role":"AXButton","text":"Select All","depth":4,"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXCell","text":"1885","depth":6,"on_screen":true,"role_description":"cell"},{"role":"AXStaticText","text":"1885","depth":7,"on_screen":true,"role_description":"text"},{"role":"AXTextArea","text":"39","depth":8,"bounds":{"left":0.0,"top":0.0,"width":0.16458334,"height":0.024444444},"on_screen":false,"value":"39","role_description":"text entry area","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXCell","text":"58a51d4d-0ca7-49f0-9b2c-e16027877cc5","depth":6,"on_screen":true,"role_description":"cell"},{"role":"AXStaticText","text":"58a51d4d-0ca7-49f0-9b2c-e16027877cc5","depth":7,"on_screen":true,"role_description":"text"},{"role":"AXTextArea","text":"picktestmulti__c","depth":8,"bounds":{"left":0.0,"top":0.0,"width":0.10486111,"height":0.024444444},"on_screen":false,"value":"picktestmulti__c","role_description":"text entry area","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXCell","text":"39","depth":6,"on_screen":true,"role_description":"cell"},{"role":"AXStaticText","text":"39","depth":7,"on_screen":true,"role_description":"text"},{"role":"AXTextArea","text":"39","depth":8,"bounds":{"left":0.0,"top":0.0,"width":0.16458334,"height":0.024444444},"on_screen":false,"value":"39","role_description":"text entry area","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXCell","text":"ReminderDateTime","depth":6,"on_screen":true,"role_description":"cell"},{"role":"AXStaticText","text":"ReminderDateTime","depth":7,"on_screen":true,"role_description":"text"},{"role":"AXTextArea","text":"picktestmulti__c","depth":8,"bounds":{"left":0.0,"top":0.0,"width":0.10486111,"height":0.024444444},"on_screen":false,"value":"picktestmulti__c","role_description":"text entry area","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXCell","text":"Reminder Date/Time","depth":6,"on_screen":true,"role_description":"cell"},{"role":"AXStaticText","text":"Reminder Date/Time","depth":7,"on_screen":true,"role_description":"text"},{"role":"AXTextArea","text":"picktestmulti__c","depth":8,"bounds":{"left":0.0,"top":0.0,"width":0.10486111,"height":0.024444444},"on_screen":false,"value":"picktestmulti__c","role_description":"text entry area","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXCell","text":"<null>","depth":6,"on_screen":true,"role_description":"cell"},{"role":"AXStaticText","text":"<null>","depth":7,"on_screen":true,"role_description":"text"},{"role":"AXTextArea","text":"picktestmulti__c","depth":8,"bounds":{"left":0.0,"top":0.0,"width":0.10486111,"height":0.024444444},"on_screen":false,"value":"picktestmulti__c","role_description":"text entry area","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXCell","text":"datetime","depth":6,"on_screen":true,"role_description":"cell"},{"role":"AXStaticText","text":"datetime","depth":7,"on_screen":true,"role_description":"text"},{"role":"AXTextArea","text":"picktestmulti__c","depth":8,"bounds":{"left":0.0,"top":0.0,"width":0.10486111,"height":0.024444444},"on_screen":false,"value":"picktestmulti__c","role_description":"text entry area","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXCell","text":"<null>","depth":6,"on_screen":true,"role_description":"cell"},{"role":"AXStaticText","text":"<null>","depth":7,"on_screen":true,"role_description":"text"},{"role":"AXTextArea","text":"39","depth":8,"bounds":{"left":0.0,"top":0.0,"width":0.16458334,"height":0.024444444},"on_screen":false,"value":"39","role_description":"text entry area","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXCell","text":"<null>","depth":6,"on_screen":true,"role_description":"cell"},{"role":"AXStaticText","text":"<null>","depth":7,"on_screen":true,"role_description":"text"},{"role":"AXTextArea","text":"picktestmulti__c","depth":8,"bounds":{"left":0.0,"top":0.0,"width":0.10486111,"height":0.024444444},"on_screen":false,"value":"picktestmulti__c","role_description":"text entry area","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXCell","text":"event","depth":6,"on_screen":true,"role_description":"cell"},{"role":"AXStaticText","text":"event","depth":7,"on_screen":true,"role_description":"text"},{"role":"AXTextArea","text":"picktestmulti__c","depth":8,"bounds":{"left":0.0,"top":0.0,"width":0.10486111,"height":0.024444444},"on_screen":false,"value":"picktestmulti__c","role_description":"text entry area","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXCell","text":"1","depth":6,"on_screen":false,"role_description":"cell"},{"role":"AXStaticText","text":"1","depth":7,"on_screen":false,"role_description":"text"},{"role":"AXTextArea","text":"39","depth":8,"bounds":{"left":0.0,"top":0.0,"width":0.16458334,"height":0.024444444},"on_screen":false,"value":"39","role_description":"text entry area","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXCell","text":"0","depth":6,"on_screen":false,"role_description":"cell"},{"role":"AXStaticText","text":"0","depth":7,"on_screen":false,"role_description":"text"},{"role":"AXTextArea","text":"39","depth":8,"bounds":{"left":0.0,"top":0.0,"width":0.16458334,"height":0.024444444},"on_screen":false,"value":"39","role_description":"text entry area","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXCell","text":"0","depth":6,"on_screen":false,"role_description":"cell"},{"role":"AXStaticText","text":"0","depth":7,"on_screen":false,"role_description":"text"},{"role":"AXTextArea","text":"39","depth":8,"bounds":{"left":0.0,"top":0.0,"width":0.16458334,"height":0.024444444},"on_screen":false,"value":"39","role_description":"text entry area","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXCell","text":"0","depth":6,"on_screen":false,"role_description":"cell"},{"role":"AXStaticText","text":"0","depth":7,"on_screen":false,"role_description":"text"},{"role":"AXTextArea","text":"39","depth":8,"bounds":{"left":0.0,"top":0.0,"width":0.16458334,"height":0.024444444},"on_screen":false,"value":"39","role_description":"text entry area","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXCell","text":"2022-12-15 14:53:05","depth":6,"on_screen":false,"role_description":"cell"},{"role":"AXStaticText","text":"2022-12-15 14:53:05","depth":7,"on_screen":false,"role_description":"text"}]...
|
-2254716300091668085
|
1595927343659299187
|
click
|
accessibility
|
NULL
|
Project: faVsco.js, menu
JY-20915-fix-missing-head Project: faVsco.js, menu
JY-20915-fix-missing-header-text-relay, menu
Start Listening for PHP Debug Connections
TextRelayServiceTest
Run 'TextRelayServiceTest'
Debug 'TextRelayServiceTest'
More Actions
JetBrains AI
Search Everywhere
IDE and Project Settings
Sync Changes
Hide This Notification
Code changed:
Hide
12
1
Previous Highlighted Error
Next Highlighted Error
<?php
namespace Jiminny\Http\Transformers;
use Jiminny\Models\Crm\Field;
use Jiminny\Models\Crm\Profile;
use League\Fractal\Resource\Collection;
use League\Fractal\TransformerAbstract;
class FieldTransformer extends TransformerAbstract
{
protected array $availableIncludes = [
'options',
];
private ?Profile $profile;
private bool $noDefault = false;
public function __construct(?Profile $profile = null)
{
$this->profile = $profile;
}
public function setNoDefault(bool $noDefault)
{
$this->noDefault = $noDefault;
}
public function transform(Field $field): array
{
$defaultValue = $field->default_value;
$type = $field->type;
if (\is_bool($defaultValue)) {
$defaultValue = (bool) $defaultValue;
}
return [
'id' => $field->id_string,
'objectType' => $field->object_type,
'label' => $field->label,
'fieldName' => $field->crm_provider_id,
'type' => $type,
'enabled' => $field->is_selectable,
'length' => $field->length,
'defaultValue' => $defaultValue,
];
}
public function includeOptions(Field $field): ?Collection
{
if ($field->type === Field::TYPE_PICKLIST && $values = $field->values) {
// if ($field->type === Field::TYPE_PICKLIST && $values = $field->values) {
// This gets a little complex. We need to check if this field has any record type constraints for the profile.
if (
$this->profile
&& ($recordType = $this->profile->{$field->object_type . 'RecordType'})
&& $recordType->fieldValues()->where('crm_field_id', $field->id)->exists()
) {
// Fetch the values specific for this record type.
$values = $recordType->fieldValues()->where('crm_field_id', $field->id)->get();
}
if ($this->noDefault) {
foreach ($values as $value) {
$value->is_default = false;
}
}
return $this->collection($values, new FieldValueTransformer());
}
return null;
}
}
A
id
B
uuid (UUID with time-low and time-high swapped)
C
crm_configuration_id
D
crm_provider_id
E
label
F
description
G
type
H
length
I
default_value
J
object_type
K
is_selectable
L
is_mandatory
M
is_filterable
N
is_indexable
O
created_at
P
updated_at
Q
is_readonly
Select All
1885
1885
39
58a51d4d-0ca7-49f0-9b2c-e16027877cc5
58a51d4d-0ca7-49f0-9b2c-e16027877cc5
picktestmulti__c
39
39
39
ReminderDateTime
ReminderDateTime
picktestmulti__c
Reminder Date/Time
Reminder Date/Time
picktestmulti__c
<null>
<null>
picktestmulti__c
datetime
datetime
picktestmulti__c
<null>
<null>
39
<null>
<null>
picktestmulti__c
event
event
picktestmulti__c
1
1
39
0
0
39
0
0
39
0
0
39
2022-12-15 14:53:05
2022-12-15 14:53:05...
|
79740
|
NULL
|
NULL
|
NULL
|
|
79741
|
2791
|
24
|
2026-05-28T06:41:05.747661+00:00
|
/Users/lukas/.screenpipe/data/data/2026-05-28/1779 /Users/lukas/.screenpipe/data/data/2026-05-28/1779950465747_m2.jpg...
|
PhpStorm
|
faVsco.js – FieldTransformer.php
|
1
|
NULL
|
monitor_2
|
NULL
|
NULL
|
NULL
|
NULL
|
Project: faVsco.js, menu
JY-20915-fix-missing-head Project: faVsco.js, menu
JY-20915-fix-missing-header-text-relay, menu
Start Listening for PHP Debug Connections
TextRelayServiceTest
Run 'TextRelayServiceTest'
Debug 'TextRelayServiceTest'
More Actions
JetBrains AI
Search Everywhere
IDE and Project Settings
Sync Changes
Hide This Notification
Code changed:
Hide
12
1
Previous Highlighted Error
Next Highlighted Error
<?php
namespace Jiminny\Http\Transformers;
use Jiminny\Models\Crm\Field;
use Jiminny\Models\Crm\Profile;
use League\Fractal\Resource\Collection;
use League\Fractal\TransformerAbstract;
class FieldTransformer extends TransformerAbstract
{
protected array $availableIncludes = [
'options',
];
private ?Profile $profile;
private bool $noDefault = false;
public function __construct(?Profile $profile = null)
{
$this->profile = $profile;
}
public function setNoDefault(bool $noDefault)
{
$this->noDefault = $noDefault;
}
public function transform(Field $field): array
{
$defaultValue = $field->default_value;
$type = $field->type;
if (\is_bool($defaultValue)) {
$defaultValue = (bool) $defaultValue;
}
return [
'id' => $field->id_string,
'objectType' => $field->object_type,
'label' => $field->label,
'fieldName' => $field->crm_provider_id,
'type' => $type,
'enabled' => $field->is_selectable,
'length' => $field->length,
'defaultValue' => $defaultValue,
];
}
public function includeOptions(Field $field): ?Collection
{
if ($field->type === Field::TYPE_PICKLIST && $values = $field->values) {
// if ($field->type === Field::TYPE_PICKLIST && $values = $field->values) {
// This gets a little complex. We need to check if this field has any record type constraints for the profile.
if (
$this->profile
&& ($recordType = $this->profile->{$field->object_type . 'RecordType'})
&& $recordType->fieldValues()->where('crm_field_id', $field->id)->exists()
) {
// Fetch the values specific for this record type.
$values = $recordType->fieldValues()->where('crm_field_id', $field->id)->get();
}
if ($this->noDefault) {
foreach ($values as $value) {
$value->is_default = false;
}
}
return $this->collection($values, new FieldValueTransformer());
}
return null;
}
}
A
id
B
uuid (UUID with time-low and time-high swapped)
C
crm_configuration_id
D
crm_provider_id
E
label
F
description
G
type
H
length
I
default_value
J
object_type
K
is_selectable
L
is_mandatory
M
is_filterable
N
is_indexable
O
created_at
P
updated_at
Q
is_readonly
Select All
1885
1885
39
58a51d4d-0ca7-49f0-9b2c-e16027877cc5
58a51d4d-0ca7-49f0-9b2c-e16027877cc5
picktestmulti__c
39
39
39
ReminderDateTime
ReminderDateTime
picktestmulti__c
Reminder Date/Time
Reminder Date/Time
picktestmulti__c
<null>
<null>
picktestmulti__c
datetime
datetime
picktestmulti__c
<null>
<null>
39
<null>
<null>
picktestmulti__c
event
event
picktestmulti__c
1
1
39
0
0
39
0
0
39
0
0
39
2022-12-15 14:53:05
2022-12-15 14:53:05
picktestmulti__c
2025-09-29 11:00:32
2025-09-29 11:00:32
picktestmulti__c
0
0
39
3014
3014
39
a3d3df5a-eaa1-43d0-b95e-1ff4bec8c428
a3d3df5a-eaa1-43d0-b95e-1ff4bec8c428...
|
[{"role":"AXButton","text" [{"role":"AXButton","text":"Project: faVsco.js, menu","depth":5,"bounds":{"left":0.025930852,"top":0.019952115,"width":0.03856383,"height":0.025538707},"on_screen":true,"help_text":"~/jiminny/app","role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"JY-20915-fix-missing-header-text-relay, menu","depth":5,"bounds":{"left":0.064494684,"top":0.019952115,"width":0.09740692,"height":0.025538707},"on_screen":true,"help_text":"Git Branch: JY-20915-fix-missing-header-text-relay","role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Start Listening for PHP Debug Connections","depth":5,"bounds":{"left":0.8374335,"top":0.019952115,"width":0.011303191,"height":0.025538707},"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"TextRelayServiceTest","depth":6,"bounds":{"left":0.85272604,"top":0.019952115,"width":0.062832445,"height":0.025538707},"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Run 'TextRelayServiceTest'","depth":6,"bounds":{"left":0.9155585,"top":0.019952115,"width":0.011303191,"height":0.025538707},"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Debug 'TextRelayServiceTest'","depth":6,"bounds":{"left":0.9268617,"top":0.019952115,"width":0.011303191,"height":0.025538707},"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"More Actions","depth":6,"bounds":{"left":0.9381649,"top":0.019952115,"width":0.011303191,"height":0.025538707},"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"JetBrains AI","depth":5,"bounds":{"left":0.96609044,"top":0.019952115,"width":0.011303191,"height":0.025538707},"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Search Everywhere","depth":5,"bounds":{"left":0.9773936,"top":0.019952115,"width":0.011303191,"height":0.025538707},"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"IDE and Project Settings","depth":5,"bounds":{"left":0.9886968,"top":0.019952115,"width":0.011303186,"height":0.025538707},"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Sync Changes","depth":4,"bounds":{"left":0.27027926,"top":1.0,"width":0.008643617,"height":0.0},"on_screen":false,"role_description":"button","is_enabled":false,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Hide This Notification","depth":4,"bounds":{"left":0.27027926,"top":1.0,"width":0.008643617,"height":0.0},"on_screen":false,"role_description":"button","is_enabled":false,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Code changed:","depth":4,"bounds":{"left":0.27027926,"top":1.0,"width":0.042220745,"height":0.0},"on_screen":false,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Hide","depth":4,"bounds":{"left":0.27027926,"top":1.0,"width":0.008643617,"height":0.0},"on_screen":false,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXStaticText","text":"12","depth":4,"bounds":{"left":0.37632978,"top":0.12529927,"width":0.009640957,"height":0.015163607},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"1","depth":4,"bounds":{"left":0.3879654,"top":0.12529927,"width":0.00731383,"height":0.015163607},"on_screen":true,"role_description":"text"},{"role":"AXButton","text":"Previous Highlighted Error","depth":4,"bounds":{"left":0.39694148,"top":0.123703115,"width":0.00731383,"height":0.018355945},"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Next Highlighted Error","depth":4,"bounds":{"left":0.40425533,"top":0.123703115,"width":0.006981383,"height":0.018355945},"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXTextArea","text":"<?php\n\nnamespace Jiminny\\Http\\Transformers;\n\nuse Jiminny\\Models\\Crm\\Field;\nuse Jiminny\\Models\\Crm\\Profile;\nuse League\\Fractal\\Resource\\Collection;\nuse League\\Fractal\\TransformerAbstract;\n\nclass FieldTransformer extends TransformerAbstract\n{\n protected array $availableIncludes = [\n 'options',\n ];\n private ?Profile $profile;\n\n private bool $noDefault = false;\n\n public function __construct(?Profile $profile = null)\n {\n $this->profile = $profile;\n }\n\n public function setNoDefault(bool $noDefault)\n {\n $this->noDefault = $noDefault;\n }\n\n public function transform(Field $field): array\n {\n $defaultValue = $field->default_value;\n $type = $field->type;\n\n if (\\is_bool($defaultValue)) {\n $defaultValue = (bool) $defaultValue;\n }\n\n return [\n 'id' => $field->id_string,\n 'objectType' => $field->object_type,\n 'label' => $field->label,\n 'fieldName' => $field->crm_provider_id,\n 'type' => $type,\n 'enabled' => $field->is_selectable,\n 'length' => $field->length,\n 'defaultValue' => $defaultValue,\n ];\n }\n\n public function includeOptions(Field $field): ?Collection\n {\n if ($field->type === Field::TYPE_PICKLIST && $values = $field->values) {\n// if ($field->type === Field::TYPE_PICKLIST && $values = $field->values) {\n // This gets a little complex. We need to check if this field has any record type constraints for the profile.\n if (\n $this->profile\n && ($recordType = $this->profile->{$field->object_type . 'RecordType'})\n && $recordType->fieldValues()->where('crm_field_id', $field->id)->exists()\n ) {\n // Fetch the values specific for this record type.\n $values = $recordType->fieldValues()->where('crm_field_id', $field->id)->get();\n }\n\n if ($this->noDefault) {\n foreach ($values as $value) {\n $value->is_default = false;\n }\n }\n\n return $this->collection($values, new FieldValueTransformer());\n }\n\n return null;\n }\n}","depth":4,"on_screen":true,"value":"<?php\n\nnamespace Jiminny\\Http\\Transformers;\n\nuse Jiminny\\Models\\Crm\\Field;\nuse Jiminny\\Models\\Crm\\Profile;\nuse League\\Fractal\\Resource\\Collection;\nuse League\\Fractal\\TransformerAbstract;\n\nclass FieldTransformer extends TransformerAbstract\n{\n protected array $availableIncludes = [\n 'options',\n ];\n private ?Profile $profile;\n\n private bool $noDefault = false;\n\n public function __construct(?Profile $profile = null)\n {\n $this->profile = $profile;\n }\n\n public function setNoDefault(bool $noDefault)\n {\n $this->noDefault = $noDefault;\n }\n\n public function transform(Field $field): array\n {\n $defaultValue = $field->default_value;\n $type = $field->type;\n\n if (\\is_bool($defaultValue)) {\n $defaultValue = (bool) $defaultValue;\n }\n\n return [\n 'id' => $field->id_string,\n 'objectType' => $field->object_type,\n 'label' => $field->label,\n 'fieldName' => $field->crm_provider_id,\n 'type' => $type,\n 'enabled' => $field->is_selectable,\n 'length' => $field->length,\n 'defaultValue' => $defaultValue,\n ];\n }\n\n public function includeOptions(Field $field): ?Collection\n {\n if ($field->type === Field::TYPE_PICKLIST && $values = $field->values) {\n// if ($field->type === Field::TYPE_PICKLIST && $values = $field->values) {\n // This gets a little complex. We need to check if this field has any record type constraints for the profile.\n if (\n $this->profile\n && ($recordType = $this->profile->{$field->object_type . 'RecordType'})\n && $recordType->fieldValues()->where('crm_field_id', $field->id)->exists()\n ) {\n // Fetch the values specific for this record type.\n $values = $recordType->fieldValues()->where('crm_field_id', $field->id)->get();\n }\n\n if ($this->noDefault) {\n foreach ($values as $value) {\n $value->is_default = false;\n }\n }\n\n return $this->collection($values, new FieldValueTransformer());\n }\n\n return null;\n }\n}","role_description":"text entry area","is_enabled":true,"is_focused":true,"is_selected":false,"is_expanded":false},{"role":"AXStaticText","text":"A","depth":4,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"id","depth":5,"bounds":{"left":0.27027926,"top":1.0,"width":0.020944148,"height":0.0},"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"B","depth":4,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"uuid (UUID with time-low and time-high swapped)","depth":5,"bounds":{"left":0.27027926,"top":1.0,"width":0.020944148,"height":0.0},"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"C","depth":4,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"crm_configuration_id","depth":5,"bounds":{"left":0.27027926,"top":1.0,"width":0.020944148,"height":0.0},"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"D","depth":4,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"crm_provider_id","depth":5,"bounds":{"left":0.27027926,"top":1.0,"width":0.020944148,"height":0.0},"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"E","depth":4,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"label","depth":5,"bounds":{"left":0.27027926,"top":1.0,"width":0.020944148,"height":0.0},"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"F","depth":4,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"description","depth":5,"bounds":{"left":0.27027926,"top":1.0,"width":0.020944148,"height":0.0},"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"G","depth":4,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"type","depth":5,"bounds":{"left":0.27027926,"top":1.0,"width":0.020944148,"height":0.0},"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"H","depth":4,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"length","depth":5,"bounds":{"left":0.27027926,"top":1.0,"width":0.020944148,"height":0.0},"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"I","depth":4,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"default_value","depth":5,"bounds":{"left":0.27027926,"top":1.0,"width":0.020944148,"height":0.0},"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"J","depth":4,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"object_type","depth":5,"bounds":{"left":0.27027926,"top":1.0,"width":0.020944148,"height":0.0},"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"K","depth":4,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"is_selectable","depth":5,"bounds":{"left":0.27027926,"top":1.0,"width":0.020944148,"height":0.0},"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"L","depth":4,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"is_mandatory","depth":5,"bounds":{"left":0.27027926,"top":1.0,"width":0.020944148,"height":0.0},"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"M","depth":4,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"is_filterable","depth":5,"bounds":{"left":0.27027926,"top":1.0,"width":0.020944148,"height":0.0},"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"N","depth":4,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"is_indexable","depth":5,"bounds":{"left":0.27027926,"top":1.0,"width":0.020944148,"height":0.0},"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"O","depth":4,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"created_at","depth":5,"bounds":{"left":0.27027926,"top":1.0,"width":0.020944148,"height":0.0},"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"P","depth":4,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"updated_at","depth":5,"bounds":{"left":0.27027926,"top":1.0,"width":0.020944148,"height":0.0},"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"Q","depth":4,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"is_readonly","depth":5,"bounds":{"left":0.27027926,"top":1.0,"width":0.020944148,"height":0.0},"on_screen":false,"role_description":"text"},{"role":"AXButton","text":"Select All","depth":4,"bounds":{"left":0.41156915,"top":0.14365523,"width":0.007978723,"height":0.0207502},"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXCell","text":"1885","depth":6,"bounds":{"left":0.41988033,"top":0.16520351,"width":0.034242023,"height":0.0207502},"on_screen":true,"role_description":"cell"},{"role":"AXStaticText","text":"1885","depth":7,"bounds":{"left":0.41988033,"top":0.16520351,"width":0.034242023,"height":0.0207502},"on_screen":true,"role_description":"text"},{"role":"AXTextArea","text":"39","depth":8,"bounds":{"left":0.27027926,"top":1.0,"width":0.0787899,"height":0.0},"on_screen":false,"value":"39","role_description":"text entry area","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXCell","text":"58a51d4d-0ca7-49f0-9b2c-e16027877cc5","depth":6,"bounds":{"left":0.45445478,"top":0.16520351,"width":0.10073138,"height":0.0207502},"on_screen":true,"role_description":"cell"},{"role":"AXStaticText","text":"58a51d4d-0ca7-49f0-9b2c-e16027877cc5","depth":7,"bounds":{"left":0.45445478,"top":0.16520351,"width":0.10073138,"height":0.0207502},"on_screen":true,"role_description":"text"},{"role":"AXTextArea","text":"picktestmulti__c","depth":8,"bounds":{"left":0.27027926,"top":1.0,"width":0.050199468,"height":0.0},"on_screen":false,"value":"picktestmulti__c","role_description":"text entry area","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXCell","text":"39","depth":6,"bounds":{"left":0.5555186,"top":0.16520351,"width":0.080784574,"height":0.0207502},"on_screen":true,"role_description":"cell"},{"role":"AXStaticText","text":"39","depth":7,"bounds":{"left":0.5555186,"top":0.16520351,"width":0.080784574,"height":0.0207502},"on_screen":true,"role_description":"text"},{"role":"AXTextArea","text":"39","depth":8,"bounds":{"left":0.27027926,"top":1.0,"width":0.0787899,"height":0.0},"on_screen":false,"value":"39","role_description":"text entry area","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXCell","text":"ReminderDateTime","depth":6,"bounds":{"left":0.63663566,"top":0.16520351,"width":0.06781915,"height":0.0207502},"on_screen":true,"role_description":"cell"},{"role":"AXStaticText","text":"ReminderDateTime","depth":7,"bounds":{"left":0.63663566,"top":0.16520351,"width":0.06781915,"height":0.0207502},"on_screen":true,"role_description":"text"},{"role":"AXTextArea","text":"picktestmulti__c","depth":8,"bounds":{"left":0.27027926,"top":1.0,"width":0.050199468,"height":0.0},"on_screen":false,"value":"picktestmulti__c","role_description":"text entry area","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXCell","text":"Reminder Date/Time","depth":6,"bounds":{"left":0.70478725,"top":0.16520351,"width":0.05219415,"height":0.0207502},"on_screen":true,"role_description":"cell"},{"role":"AXStaticText","text":"Reminder Date/Time","depth":7,"bounds":{"left":0.70478725,"top":0.16520351,"width":0.05219415,"height":0.0207502},"on_screen":true,"role_description":"text"},{"role":"AXTextArea","text":"picktestmulti__c","depth":8,"bounds":{"left":0.27027926,"top":1.0,"width":0.050199468,"height":0.0},"on_screen":false,"value":"picktestmulti__c","role_description":"text entry area","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXCell","text":"<null>","depth":6,"bounds":{"left":0.75731385,"top":0.16520351,"width":0.057513297,"height":0.0207502},"on_screen":true,"role_description":"cell"},{"role":"AXStaticText","text":"<null>","depth":7,"bounds":{"left":0.75731385,"top":0.16520351,"width":0.057513297,"height":0.0207502},"on_screen":true,"role_description":"text"},{"role":"AXTextArea","text":"picktestmulti__c","depth":8,"bounds":{"left":0.27027926,"top":1.0,"width":0.050199468,"height":0.0},"on_screen":false,"value":"picktestmulti__c","role_description":"text entry area","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXCell","text":"datetime","depth":6,"bounds":{"left":0.81515956,"top":0.16520351,"width":0.04155585,"height":0.0207502},"on_screen":true,"role_description":"cell"},{"role":"AXStaticText","text":"datetime","depth":7,"bounds":{"left":0.81515956,"top":0.16520351,"width":0.04155585,"height":0.0207502},"on_screen":true,"role_description":"text"},{"role":"AXTextArea","text":"picktestmulti__c","depth":8,"bounds":{"left":0.27027926,"top":1.0,"width":0.050199468,"height":0.0},"on_screen":false,"value":"picktestmulti__c","role_description":"text entry area","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXCell","text":"<null>","depth":6,"bounds":{"left":0.85704786,"top":0.16520351,"width":0.04454787,"height":0.0207502},"on_screen":true,"role_description":"cell"},{"role":"AXStaticText","text":"<null>","depth":7,"bounds":{"left":0.85704786,"top":0.16520351,"width":0.04454787,"height":0.0207502},"on_screen":true,"role_description":"text"},{"role":"AXTextArea","text":"39","depth":8,"bounds":{"left":0.27027926,"top":1.0,"width":0.0787899,"height":0.0},"on_screen":false,"value":"39","role_description":"text entry area","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXCell","text":"<null>","depth":6,"bounds":{"left":0.9019282,"top":0.16520351,"width":0.0625,"height":0.0207502},"on_screen":true,"role_description":"cell"},{"role":"AXStaticText","text":"<null>","depth":7,"bounds":{"left":0.9019282,"top":0.16520351,"width":0.0625,"height":0.0207502},"on_screen":true,"role_description":"text"},{"role":"AXTextArea","text":"picktestmulti__c","depth":8,"bounds":{"left":0.27027926,"top":1.0,"width":0.050199468,"height":0.0},"on_screen":false,"value":"picktestmulti__c","role_description":"text entry area","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXCell","text":"event","depth":6,"bounds":{"left":0.96476066,"top":0.16520351,"width":0.03523934,"height":0.0207502},"on_screen":true,"role_description":"cell"},{"role":"AXStaticText","text":"event","depth":7,"bounds":{"left":0.96476066,"top":0.16520351,"width":0.03523934,"height":0.0207502},"on_screen":true,"role_description":"text"},{"role":"AXTextArea","text":"picktestmulti__c","depth":8,"bounds":{"left":0.27027926,"top":1.0,"width":0.050199468,"height":0.0},"on_screen":false,"value":"picktestmulti__c","role_description":"text entry area","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXCell","text":"1","depth":6,"bounds":{"left":1.0,"top":0.16520351,"width":-0.022606373,"height":0.0207502},"on_screen":false,"role_description":"cell"},{"role":"AXStaticText","text":"1","depth":7,"bounds":{"left":1.0,"top":0.16520351,"width":-0.022606373,"height":0.0207502},"on_screen":false,"role_description":"text"},{"role":"AXTextArea","text":"39","depth":8,"bounds":{"left":0.27027926,"top":1.0,"width":0.0787899,"height":0.0},"on_screen":false,"value":"39","role_description":"text entry area","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXCell","text":"0","depth":6,"bounds":{"left":1.0,"top":0.16520351,"width":-0.08543885,"height":0.0207502},"on_screen":false,"role_description":"cell"},{"role":"AXStaticText","text":"0","depth":7,"bounds":{"left":1.0,"top":0.16520351,"width":-0.08543885,"height":0.0207502},"on_screen":false,"role_description":"text"},{"role":"AXTextArea","text":"39","depth":8,"bounds":{"left":0.27027926,"top":1.0,"width":0.0787899,"height":0.0},"on_screen":false,"value":"39","role_description":"text entry area","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXCell","text":"0","depth":6,"on_screen":false,"role_description":"cell"},{"role":"AXStaticText","text":"0","depth":7,"on_screen":false,"role_description":"text"},{"role":"AXTextArea","text":"39","depth":8,"bounds":{"left":0.27027926,"top":1.0,"width":0.0787899,"height":0.0},"on_screen":false,"value":"39","role_description":"text entry area","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXCell","text":"0","depth":6,"on_screen":false,"role_description":"cell"},{"role":"AXStaticText","text":"0","depth":7,"on_screen":false,"role_description":"text"},{"role":"AXTextArea","text":"39","depth":8,"bounds":{"left":0.27027926,"top":1.0,"width":0.0787899,"height":0.0},"on_screen":false,"value":"39","role_description":"text entry area","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXCell","text":"2022-12-15 14:53:05","depth":6,"on_screen":false,"role_description":"cell"},{"role":"AXStaticText","text":"2022-12-15 14:53:05","depth":7,"on_screen":false,"role_description":"text"},{"role":"AXTextArea","text":"picktestmulti__c","depth":8,"bounds":{"left":0.27027926,"top":1.0,"width":0.050199468,"height":0.0},"on_screen":false,"value":"picktestmulti__c","role_description":"text entry area","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXCell","text":"2025-09-29 11:00:32","depth":6,"on_screen":false,"role_description":"cell"},{"role":"AXStaticText","text":"2025-09-29 11:00:32","depth":7,"on_screen":false,"role_description":"text"},{"role":"AXTextArea","text":"picktestmulti__c","depth":8,"bounds":{"left":0.27027926,"top":1.0,"width":0.050199468,"height":0.0},"on_screen":false,"value":"picktestmulti__c","role_description":"text entry area","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXCell","text":"0","depth":6,"on_screen":false,"role_description":"cell"},{"role":"AXStaticText","text":"0","depth":7,"on_screen":false,"role_description":"text"},{"role":"AXTextArea","text":"39","depth":8,"bounds":{"left":0.27027926,"top":1.0,"width":0.0787899,"height":0.0},"on_screen":false,"value":"39","role_description":"text entry area","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXCell","text":"3014","depth":6,"bounds":{"left":0.41988033,"top":0.1867518,"width":0.034242023,"height":0.0207502},"on_screen":true,"role_description":"cell"},{"role":"AXStaticText","text":"3014","depth":7,"bounds":{"left":0.41988033,"top":0.1867518,"width":0.034242023,"height":0.0207502},"on_screen":true,"role_description":"text"},{"role":"AXTextArea","text":"39","depth":8,"bounds":{"left":0.27027926,"top":1.0,"width":0.0787899,"height":0.0},"on_screen":false,"value":"39","role_description":"text entry area","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXCell","text":"a3d3df5a-eaa1-43d0-b95e-1ff4bec8c428","depth":6,"bounds":{"left":0.45445478,"top":0.1867518,"width":0.10073138,"height":0.0207502},"on_screen":true,"role_description":"cell"},{"role":"AXStaticText","text":"a3d3df5a-eaa1-43d0-b95e-1ff4bec8c428","depth":7,"bounds":{"left":0.45445478,"top":0.1867518,"width":0.10073138,"height":0.0207502},"on_screen":true,"role_description":"text"}]...
|
-1657036801824665598
|
1600413282385342835
|
visual_change
|
accessibility
|
NULL
|
Project: faVsco.js, menu
JY-20915-fix-missing-head Project: faVsco.js, menu
JY-20915-fix-missing-header-text-relay, menu
Start Listening for PHP Debug Connections
TextRelayServiceTest
Run 'TextRelayServiceTest'
Debug 'TextRelayServiceTest'
More Actions
JetBrains AI
Search Everywhere
IDE and Project Settings
Sync Changes
Hide This Notification
Code changed:
Hide
12
1
Previous Highlighted Error
Next Highlighted Error
<?php
namespace Jiminny\Http\Transformers;
use Jiminny\Models\Crm\Field;
use Jiminny\Models\Crm\Profile;
use League\Fractal\Resource\Collection;
use League\Fractal\TransformerAbstract;
class FieldTransformer extends TransformerAbstract
{
protected array $availableIncludes = [
'options',
];
private ?Profile $profile;
private bool $noDefault = false;
public function __construct(?Profile $profile = null)
{
$this->profile = $profile;
}
public function setNoDefault(bool $noDefault)
{
$this->noDefault = $noDefault;
}
public function transform(Field $field): array
{
$defaultValue = $field->default_value;
$type = $field->type;
if (\is_bool($defaultValue)) {
$defaultValue = (bool) $defaultValue;
}
return [
'id' => $field->id_string,
'objectType' => $field->object_type,
'label' => $field->label,
'fieldName' => $field->crm_provider_id,
'type' => $type,
'enabled' => $field->is_selectable,
'length' => $field->length,
'defaultValue' => $defaultValue,
];
}
public function includeOptions(Field $field): ?Collection
{
if ($field->type === Field::TYPE_PICKLIST && $values = $field->values) {
// if ($field->type === Field::TYPE_PICKLIST && $values = $field->values) {
// This gets a little complex. We need to check if this field has any record type constraints for the profile.
if (
$this->profile
&& ($recordType = $this->profile->{$field->object_type . 'RecordType'})
&& $recordType->fieldValues()->where('crm_field_id', $field->id)->exists()
) {
// Fetch the values specific for this record type.
$values = $recordType->fieldValues()->where('crm_field_id', $field->id)->get();
}
if ($this->noDefault) {
foreach ($values as $value) {
$value->is_default = false;
}
}
return $this->collection($values, new FieldValueTransformer());
}
return null;
}
}
A
id
B
uuid (UUID with time-low and time-high swapped)
C
crm_configuration_id
D
crm_provider_id
E
label
F
description
G
type
H
length
I
default_value
J
object_type
K
is_selectable
L
is_mandatory
M
is_filterable
N
is_indexable
O
created_at
P
updated_at
Q
is_readonly
Select All
1885
1885
39
58a51d4d-0ca7-49f0-9b2c-e16027877cc5
58a51d4d-0ca7-49f0-9b2c-e16027877cc5
picktestmulti__c
39
39
39
ReminderDateTime
ReminderDateTime
picktestmulti__c
Reminder Date/Time
Reminder Date/Time
picktestmulti__c
<null>
<null>
picktestmulti__c
datetime
datetime
picktestmulti__c
<null>
<null>
39
<null>
<null>
picktestmulti__c
event
event
picktestmulti__c
1
1
39
0
0
39
0
0
39
0
0
39
2022-12-15 14:53:05
2022-12-15 14:53:05
picktestmulti__c
2025-09-29 11:00:32
2025-09-29 11:00:32
picktestmulti__c
0
0
39
3014
3014
39
a3d3df5a-eaa1-43d0-b95e-1ff4bec8c428
a3d3df5a-eaa1-43d0-b95e-1ff4bec8c428...
|
79739
|
NULL
|
NULL
|
NULL
|
|
79721
|
2791
|
7
|
2026-05-28T06:40:21.622983+00:00
|
/Users/lukas/.screenpipe/data/data/2026-05-28/1779 /Users/lukas/.screenpipe/data/data/2026-05-28/1779950421622_m2.jpg...
|
PhpStorm
|
faVsco.js – FieldTransformer.php
|
1
|
NULL
|
monitor_2
|
NULL
|
NULL
|
NULL
|
NULL
|
Project: faVsco.js, menu
JY-20915-fix-missing-head Project: faVsco.js, menu
JY-20915-fix-missing-header-text-relay, menu
Start Listening for PHP Debug Connections
TextRelayServiceTest
Run 'TextRelayServiceTest'
Debug 'TextRelayServiceTest'
More Actions
JetBrains AI
Search Everywhere
IDE and Project Settings
Sync Changes
Hide This Notification
Code changed:
Hide
12
1
Previous Highlighted Error
Next Highlighted Error
<?php
namespace Jiminny\Http\Transformers;
use Jiminny\Models\Crm\Field;
use Jiminny\Models\Crm\Profile;
use League\Fractal\Resource\Collection;
use League\Fractal\TransformerAbstract;
class FieldTransformer extends TransformerAbstract
{
protected array $availableIncludes = [
'options',
];
private ?Profile $profile;
private bool $noDefault = false;
public function __construct(?Profile $profile = null)
{
$this->profile = $profile;
}
public function setNoDefault(bool $noDefault)
{
$this->noDefault = $noDefault;
}
public function transform(Field $field): array
{
$defaultValue = $field->default_value;
$type = $field->type;
if (\is_bool($defaultValue)) {
$defaultValue = (bool) $defaultValue;
}
return [
'id' => $field->id_string,
'objectType' => $field->object_type,
'label' => $field->label,
'fieldName' => $field->crm_provider_id,
'type' => $type,
'enabled' => $field->is_selectable,
'length' => $field->length,
'defaultValue' => $defaultValue,
];
}
public function includeOptions(Field $field): ?Collection
{
if ($field->type === Field::TYPE_PICKLIST && $values = $field->values) {
// if ($field->type === Field::TYPE_PICKLIST && $values = $field->values) {
// This gets a little complex. We need to check if this field has any record type constraints for the profile.
if (
$this->profile
&& ($recordType = $this->profile->{$field->object_type . 'RecordType'})
&& $recordType->fieldValues()->where('crm_field_id', $field->id)->exists()
) {
// Fetch the values specific for this record type.
$values = $recordType->fieldValues()->where('crm_field_id', $field->id)->get();
}
if ($this->noDefault) {
foreach ($values as $value) {
$value->is_default = false;
}
}
return $this->collection($values, new FieldValueTransformer());
}
return null;
}
}
A
id
B
uuid (UUID with time-low and time-high swapped)
C
crm_configuration_id
D
crm_provider_id
E
label
F
description
G
type
H
length
I
default_value
J
object_type
K
is_selectable
L
is_mandatory
M
is_filterable
N
is_indexable
O
created_at
P
updated_at
Q
is_readonly
Select All
1885
1885
39
58a51d4d-0ca7-49f0-9b2c-e16027877cc5
58a51d4d-0ca7-49f0-9b2c-e16027877cc5
picktestmulti__c
39
39
39
ReminderDateTime
ReminderDateTime
picktestmulti__c
Reminder Date/Time
Reminder Date/Time
picktestmulti__c
<null>
<null>
picktestmulti__c
datetime
datetime
picktestmulti__c
<null>
<null>...
|
[{"role":"AXButton","text" [{"role":"AXButton","text":"Project: faVsco.js, menu","depth":5,"bounds":{"left":0.025930852,"top":0.019952115,"width":0.03856383,"height":0.025538707},"on_screen":true,"help_text":"~/jiminny/app","role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"JY-20915-fix-missing-header-text-relay, menu","depth":5,"bounds":{"left":0.064494684,"top":0.019952115,"width":0.09740692,"height":0.025538707},"on_screen":true,"help_text":"Git Branch: JY-20915-fix-missing-header-text-relay","role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Start Listening for PHP Debug Connections","depth":5,"bounds":{"left":0.8374335,"top":0.019952115,"width":0.011303191,"height":0.025538707},"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"TextRelayServiceTest","depth":6,"bounds":{"left":0.85272604,"top":0.019952115,"width":0.062832445,"height":0.025538707},"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Run 'TextRelayServiceTest'","depth":6,"bounds":{"left":0.9155585,"top":0.019952115,"width":0.011303191,"height":0.025538707},"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Debug 'TextRelayServiceTest'","depth":6,"bounds":{"left":0.9268617,"top":0.019952115,"width":0.011303191,"height":0.025538707},"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"More Actions","depth":6,"bounds":{"left":0.9381649,"top":0.019952115,"width":0.011303191,"height":0.025538707},"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"JetBrains AI","depth":5,"bounds":{"left":0.96609044,"top":0.019952115,"width":0.011303191,"height":0.025538707},"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Search Everywhere","depth":5,"bounds":{"left":0.9773936,"top":0.019952115,"width":0.011303191,"height":0.025538707},"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"IDE and Project Settings","depth":5,"bounds":{"left":0.9886968,"top":0.019952115,"width":0.011303186,"height":0.025538707},"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Sync Changes","depth":4,"bounds":{"left":0.27027926,"top":1.0,"width":0.008643617,"height":0.0},"on_screen":false,"role_description":"button","is_enabled":false,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Hide This Notification","depth":4,"bounds":{"left":0.27027926,"top":1.0,"width":0.008643617,"height":0.0},"on_screen":false,"role_description":"button","is_enabled":false,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Code changed:","depth":4,"bounds":{"left":0.27027926,"top":1.0,"width":0.042220745,"height":0.0},"on_screen":false,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Hide","depth":4,"bounds":{"left":0.27027926,"top":1.0,"width":0.008643617,"height":0.0},"on_screen":false,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXStaticText","text":"12","depth":4,"bounds":{"left":0.37632978,"top":0.12529927,"width":0.009640957,"height":0.015163607},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"1","depth":4,"bounds":{"left":0.3879654,"top":0.12529927,"width":0.00731383,"height":0.015163607},"on_screen":true,"role_description":"text"},{"role":"AXButton","text":"Previous Highlighted Error","depth":4,"bounds":{"left":0.39694148,"top":0.123703115,"width":0.00731383,"height":0.018355945},"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Next Highlighted Error","depth":4,"bounds":{"left":0.40425533,"top":0.123703115,"width":0.006981383,"height":0.018355945},"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXTextArea","text":"<?php\n\nnamespace Jiminny\\Http\\Transformers;\n\nuse Jiminny\\Models\\Crm\\Field;\nuse Jiminny\\Models\\Crm\\Profile;\nuse League\\Fractal\\Resource\\Collection;\nuse League\\Fractal\\TransformerAbstract;\n\nclass FieldTransformer extends TransformerAbstract\n{\n protected array $availableIncludes = [\n 'options',\n ];\n private ?Profile $profile;\n\n private bool $noDefault = false;\n\n public function __construct(?Profile $profile = null)\n {\n $this->profile = $profile;\n }\n\n public function setNoDefault(bool $noDefault)\n {\n $this->noDefault = $noDefault;\n }\n\n public function transform(Field $field): array\n {\n $defaultValue = $field->default_value;\n $type = $field->type;\n\n if (\\is_bool($defaultValue)) {\n $defaultValue = (bool) $defaultValue;\n }\n\n return [\n 'id' => $field->id_string,\n 'objectType' => $field->object_type,\n 'label' => $field->label,\n 'fieldName' => $field->crm_provider_id,\n 'type' => $type,\n 'enabled' => $field->is_selectable,\n 'length' => $field->length,\n 'defaultValue' => $defaultValue,\n ];\n }\n\n public function includeOptions(Field $field): ?Collection\n {\n if ($field->type === Field::TYPE_PICKLIST && $values = $field->values) {\n// if ($field->type === Field::TYPE_PICKLIST && $values = $field->values) {\n // This gets a little complex. We need to check if this field has any record type constraints for the profile.\n if (\n $this->profile\n && ($recordType = $this->profile->{$field->object_type . 'RecordType'})\n && $recordType->fieldValues()->where('crm_field_id', $field->id)->exists()\n ) {\n // Fetch the values specific for this record type.\n $values = $recordType->fieldValues()->where('crm_field_id', $field->id)->get();\n }\n\n if ($this->noDefault) {\n foreach ($values as $value) {\n $value->is_default = false;\n }\n }\n\n return $this->collection($values, new FieldValueTransformer());\n }\n\n return null;\n }\n}","depth":4,"on_screen":true,"value":"<?php\n\nnamespace Jiminny\\Http\\Transformers;\n\nuse Jiminny\\Models\\Crm\\Field;\nuse Jiminny\\Models\\Crm\\Profile;\nuse League\\Fractal\\Resource\\Collection;\nuse League\\Fractal\\TransformerAbstract;\n\nclass FieldTransformer extends TransformerAbstract\n{\n protected array $availableIncludes = [\n 'options',\n ];\n private ?Profile $profile;\n\n private bool $noDefault = false;\n\n public function __construct(?Profile $profile = null)\n {\n $this->profile = $profile;\n }\n\n public function setNoDefault(bool $noDefault)\n {\n $this->noDefault = $noDefault;\n }\n\n public function transform(Field $field): array\n {\n $defaultValue = $field->default_value;\n $type = $field->type;\n\n if (\\is_bool($defaultValue)) {\n $defaultValue = (bool) $defaultValue;\n }\n\n return [\n 'id' => $field->id_string,\n 'objectType' => $field->object_type,\n 'label' => $field->label,\n 'fieldName' => $field->crm_provider_id,\n 'type' => $type,\n 'enabled' => $field->is_selectable,\n 'length' => $field->length,\n 'defaultValue' => $defaultValue,\n ];\n }\n\n public function includeOptions(Field $field): ?Collection\n {\n if ($field->type === Field::TYPE_PICKLIST && $values = $field->values) {\n// if ($field->type === Field::TYPE_PICKLIST && $values = $field->values) {\n // This gets a little complex. We need to check if this field has any record type constraints for the profile.\n if (\n $this->profile\n && ($recordType = $this->profile->{$field->object_type . 'RecordType'})\n && $recordType->fieldValues()->where('crm_field_id', $field->id)->exists()\n ) {\n // Fetch the values specific for this record type.\n $values = $recordType->fieldValues()->where('crm_field_id', $field->id)->get();\n }\n\n if ($this->noDefault) {\n foreach ($values as $value) {\n $value->is_default = false;\n }\n }\n\n return $this->collection($values, new FieldValueTransformer());\n }\n\n return null;\n }\n}","role_description":"text entry area","is_enabled":true,"is_focused":true,"is_selected":false,"is_expanded":false},{"role":"AXStaticText","text":"A","depth":4,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"id","depth":5,"bounds":{"left":0.27027926,"top":1.0,"width":0.020944148,"height":0.0},"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"B","depth":4,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"uuid (UUID with time-low and time-high swapped)","depth":5,"bounds":{"left":0.27027926,"top":1.0,"width":0.020944148,"height":0.0},"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"C","depth":4,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"crm_configuration_id","depth":5,"bounds":{"left":0.27027926,"top":1.0,"width":0.020944148,"height":0.0},"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"D","depth":4,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"crm_provider_id","depth":5,"bounds":{"left":0.27027926,"top":1.0,"width":0.020944148,"height":0.0},"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"E","depth":4,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"label","depth":5,"bounds":{"left":0.27027926,"top":1.0,"width":0.020944148,"height":0.0},"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"F","depth":4,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"description","depth":5,"bounds":{"left":0.27027926,"top":1.0,"width":0.020944148,"height":0.0},"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"G","depth":4,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"type","depth":5,"bounds":{"left":0.27027926,"top":1.0,"width":0.020944148,"height":0.0},"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"H","depth":4,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"length","depth":5,"bounds":{"left":0.27027926,"top":1.0,"width":0.020944148,"height":0.0},"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"I","depth":4,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"default_value","depth":5,"bounds":{"left":0.27027926,"top":1.0,"width":0.020944148,"height":0.0},"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"J","depth":4,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"object_type","depth":5,"bounds":{"left":0.27027926,"top":1.0,"width":0.020944148,"height":0.0},"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"K","depth":4,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"is_selectable","depth":5,"bounds":{"left":0.27027926,"top":1.0,"width":0.020944148,"height":0.0},"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"L","depth":4,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"is_mandatory","depth":5,"bounds":{"left":0.27027926,"top":1.0,"width":0.020944148,"height":0.0},"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"M","depth":4,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"is_filterable","depth":5,"bounds":{"left":0.27027926,"top":1.0,"width":0.020944148,"height":0.0},"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"N","depth":4,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"is_indexable","depth":5,"bounds":{"left":0.27027926,"top":1.0,"width":0.020944148,"height":0.0},"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"O","depth":4,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"created_at","depth":5,"bounds":{"left":0.27027926,"top":1.0,"width":0.020944148,"height":0.0},"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"P","depth":4,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"updated_at","depth":5,"bounds":{"left":0.27027926,"top":1.0,"width":0.020944148,"height":0.0},"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"Q","depth":4,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"is_readonly","depth":5,"bounds":{"left":0.27027926,"top":1.0,"width":0.020944148,"height":0.0},"on_screen":false,"role_description":"text"},{"role":"AXButton","text":"Select All","depth":4,"bounds":{"left":0.41156915,"top":0.14365523,"width":0.007978723,"height":0.0207502},"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXCell","text":"1885","depth":6,"bounds":{"left":0.41988033,"top":0.16520351,"width":0.034242023,"height":0.0207502},"on_screen":true,"role_description":"cell"},{"role":"AXStaticText","text":"1885","depth":7,"bounds":{"left":0.41988033,"top":0.16520351,"width":0.034242023,"height":0.0207502},"on_screen":true,"role_description":"text"},{"role":"AXTextArea","text":"39","depth":8,"bounds":{"left":0.27027926,"top":1.0,"width":0.0787899,"height":0.0},"on_screen":false,"value":"39","role_description":"text entry area","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXCell","text":"58a51d4d-0ca7-49f0-9b2c-e16027877cc5","depth":6,"bounds":{"left":0.45445478,"top":0.16520351,"width":0.10073138,"height":0.0207502},"on_screen":true,"role_description":"cell"},{"role":"AXStaticText","text":"58a51d4d-0ca7-49f0-9b2c-e16027877cc5","depth":7,"bounds":{"left":0.45445478,"top":0.16520351,"width":0.10073138,"height":0.0207502},"on_screen":true,"role_description":"text"},{"role":"AXTextArea","text":"picktestmulti__c","depth":8,"bounds":{"left":0.27027926,"top":1.0,"width":0.050199468,"height":0.0},"on_screen":false,"value":"picktestmulti__c","role_description":"text entry area","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXCell","text":"39","depth":6,"bounds":{"left":0.5555186,"top":0.16520351,"width":0.080784574,"height":0.0207502},"on_screen":true,"role_description":"cell"},{"role":"AXStaticText","text":"39","depth":7,"bounds":{"left":0.5555186,"top":0.16520351,"width":0.080784574,"height":0.0207502},"on_screen":true,"role_description":"text"},{"role":"AXTextArea","text":"39","depth":8,"bounds":{"left":0.27027926,"top":1.0,"width":0.0787899,"height":0.0},"on_screen":false,"value":"39","role_description":"text entry area","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXCell","text":"ReminderDateTime","depth":6,"bounds":{"left":0.63663566,"top":0.16520351,"width":0.06781915,"height":0.0207502},"on_screen":true,"role_description":"cell"},{"role":"AXStaticText","text":"ReminderDateTime","depth":7,"bounds":{"left":0.63663566,"top":0.16520351,"width":0.06781915,"height":0.0207502},"on_screen":true,"role_description":"text"},{"role":"AXTextArea","text":"picktestmulti__c","depth":8,"bounds":{"left":0.27027926,"top":1.0,"width":0.050199468,"height":0.0},"on_screen":false,"value":"picktestmulti__c","role_description":"text entry area","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXCell","text":"Reminder Date/Time","depth":6,"bounds":{"left":0.70478725,"top":0.16520351,"width":0.05219415,"height":0.0207502},"on_screen":true,"role_description":"cell"},{"role":"AXStaticText","text":"Reminder Date/Time","depth":7,"bounds":{"left":0.70478725,"top":0.16520351,"width":0.05219415,"height":0.0207502},"on_screen":true,"role_description":"text"},{"role":"AXTextArea","text":"picktestmulti__c","depth":8,"bounds":{"left":0.27027926,"top":1.0,"width":0.050199468,"height":0.0},"on_screen":false,"value":"picktestmulti__c","role_description":"text entry area","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXCell","text":"<null>","depth":6,"bounds":{"left":0.75731385,"top":0.16520351,"width":0.057513297,"height":0.0207502},"on_screen":true,"role_description":"cell"},{"role":"AXStaticText","text":"<null>","depth":7,"bounds":{"left":0.75731385,"top":0.16520351,"width":0.057513297,"height":0.0207502},"on_screen":true,"role_description":"text"},{"role":"AXTextArea","text":"picktestmulti__c","depth":8,"bounds":{"left":0.27027926,"top":1.0,"width":0.050199468,"height":0.0},"on_screen":false,"value":"picktestmulti__c","role_description":"text entry area","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXCell","text":"datetime","depth":6,"bounds":{"left":0.81515956,"top":0.16520351,"width":0.04155585,"height":0.0207502},"on_screen":true,"role_description":"cell"},{"role":"AXStaticText","text":"datetime","depth":7,"bounds":{"left":0.81515956,"top":0.16520351,"width":0.04155585,"height":0.0207502},"on_screen":true,"role_description":"text"},{"role":"AXTextArea","text":"picktestmulti__c","depth":8,"bounds":{"left":0.27027926,"top":1.0,"width":0.050199468,"height":0.0},"on_screen":false,"value":"picktestmulti__c","role_description":"text entry area","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXCell","text":"<null>","depth":6,"bounds":{"left":0.85704786,"top":0.16520351,"width":0.04454787,"height":0.0207502},"on_screen":true,"role_description":"cell"},{"role":"AXStaticText","text":"<null>","depth":7,"bounds":{"left":0.85704786,"top":0.16520351,"width":0.04454787,"height":0.0207502},"on_screen":true,"role_description":"text"}]...
|
6214918488947391989
|
-7589164096430198349
|
typing_pause
|
accessibility
|
NULL
|
Project: faVsco.js, menu
JY-20915-fix-missing-head Project: faVsco.js, menu
JY-20915-fix-missing-header-text-relay, menu
Start Listening for PHP Debug Connections
TextRelayServiceTest
Run 'TextRelayServiceTest'
Debug 'TextRelayServiceTest'
More Actions
JetBrains AI
Search Everywhere
IDE and Project Settings
Sync Changes
Hide This Notification
Code changed:
Hide
12
1
Previous Highlighted Error
Next Highlighted Error
<?php
namespace Jiminny\Http\Transformers;
use Jiminny\Models\Crm\Field;
use Jiminny\Models\Crm\Profile;
use League\Fractal\Resource\Collection;
use League\Fractal\TransformerAbstract;
class FieldTransformer extends TransformerAbstract
{
protected array $availableIncludes = [
'options',
];
private ?Profile $profile;
private bool $noDefault = false;
public function __construct(?Profile $profile = null)
{
$this->profile = $profile;
}
public function setNoDefault(bool $noDefault)
{
$this->noDefault = $noDefault;
}
public function transform(Field $field): array
{
$defaultValue = $field->default_value;
$type = $field->type;
if (\is_bool($defaultValue)) {
$defaultValue = (bool) $defaultValue;
}
return [
'id' => $field->id_string,
'objectType' => $field->object_type,
'label' => $field->label,
'fieldName' => $field->crm_provider_id,
'type' => $type,
'enabled' => $field->is_selectable,
'length' => $field->length,
'defaultValue' => $defaultValue,
];
}
public function includeOptions(Field $field): ?Collection
{
if ($field->type === Field::TYPE_PICKLIST && $values = $field->values) {
// if ($field->type === Field::TYPE_PICKLIST && $values = $field->values) {
// This gets a little complex. We need to check if this field has any record type constraints for the profile.
if (
$this->profile
&& ($recordType = $this->profile->{$field->object_type . 'RecordType'})
&& $recordType->fieldValues()->where('crm_field_id', $field->id)->exists()
) {
// Fetch the values specific for this record type.
$values = $recordType->fieldValues()->where('crm_field_id', $field->id)->get();
}
if ($this->noDefault) {
foreach ($values as $value) {
$value->is_default = false;
}
}
return $this->collection($values, new FieldValueTransformer());
}
return null;
}
}
A
id
B
uuid (UUID with time-low and time-high swapped)
C
crm_configuration_id
D
crm_provider_id
E
label
F
description
G
type
H
length
I
default_value
J
object_type
K
is_selectable
L
is_mandatory
M
is_filterable
N
is_indexable
O
created_at
P
updated_at
Q
is_readonly
Select All
1885
1885
39
58a51d4d-0ca7-49f0-9b2c-e16027877cc5
58a51d4d-0ca7-49f0-9b2c-e16027877cc5
picktestmulti__c
39
39
39
ReminderDateTime
ReminderDateTime
picktestmulti__c
Reminder Date/Time
Reminder Date/Time
picktestmulti__c
<null>
<null>
picktestmulti__c
datetime
datetime
picktestmulti__c
<null>
<null>...
|
NULL
|
NULL
|
NULL
|
NULL
|
|
79720
|
2790
|
9
|
2026-05-28T06:40:20.442693+00:00
|
/Users/lukas/.screenpipe/data/data/2026-05-28/1779 /Users/lukas/.screenpipe/data/data/2026-05-28/1779950420442_m1.jpg...
|
PhpStorm
|
faVsco.js – FieldTransformer.php
|
1
|
NULL
|
monitor_1
|
NULL
|
NULL
|
NULL
|
NULL
|
Project: faVsco.js, menu
JY-20915-fix-missing-head Project: faVsco.js, menu
JY-20915-fix-missing-header-text-relay, menu
Start Listening for PHP Debug Connections
TextRelayServiceTest
Run 'TextRelayServiceTest'
Debug 'TextRelayServiceTest'
More Actions
JetBrains AI
Search Everywhere
IDE and Project Settings
Sync Changes
Hide This Notification
Code changed:
Hide
12
1
Previous Highlighted Error
Next Highlighted Error
<?php
namespace Jiminny\Http\Transformers;
use Jiminny\Models\Crm\Field;
use Jiminny\Models\Crm\Profile;
use League\Fractal\Resource\Collection;
use League\Fractal\TransformerAbstract;
class FieldTransformer extends TransformerAbstract
{
protected array $availableIncludes = [
'options',
];
private ?Profile $profile;
private bool $noDefault = false;
public function __construct(?Profile $profile = null)
{
$this->profile = $profile;
}
public function setNoDefault(bool $noDefault)
{
$this->noDefault = $noDefault;
}
public function transform(Field $field): array
{
$defaultValue = $field->default_value;
$type = $field->type;
if (\is_bool($defaultValue)) {
$defaultValue = (bool) $defaultValue;
}
return [
'id' => $field->id_string,
'objectType' => $field->object_type,
'label' => $field->label,
'fieldName' => $field->crm_provider_id,
'type' => $type,
'enabled' => $field->is_selectable,
'length' => $field->length,
'defaultValue' => $defaultValue,
];
}
public function includeOptions(Field $field): ?Collection
{
if ($field->type === Field::TYPE_PICKLIST && $values = $field->values) {
// if ($field->type === Field::TYPE_PICKLIST && $values = $field->values) {
// This gets a little complex. We need to check if this field has any record type constraints for the profile.
if (
$this->profile
&& ($recordType = $this->profile->{$field->object_type . 'RecordType'})
&& $recordType->fieldValues()->where('crm_field_id', $field->id)->exists()
) {
// Fetch the values specific for this record type.
$values = $recordType->fieldValues()->where('crm_field_id', $field->id)->get();
}
if ($this->noDefault) {
foreach ($values as $value) {
$value->is_default = false;
}
}
return $this->collection($values, new FieldValueTransformer());
}
return null;
}
}
A
id
B
uuid (UUID with time-low and time-high swapped)
C
crm_configuration_id
D
crm_provider_id
E
label
F
description
G
type
H
length
I
default_value
J
object_type
K
is_selectable
L
is_mandatory
M
is_filterable
N
is_indexable
O
created_at
P
updated_at
Q
is_readonly
Select All
1885
1885
39
58a51d4d-0ca7-49f0-9b2c-e16027877cc5
58a51d4d-0ca7-49f0-9b2c-e16027877cc5
picktestmulti__c...
|
[{"role":"AXButton","text" [{"role":"AXButton","text":"Project: faVsco.js, menu","depth":5,"on_screen":true,"help_text":"~/jiminny/app","role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"JY-20915-fix-missing-header-text-relay, menu","depth":5,"on_screen":true,"help_text":"Git Branch: JY-20915-fix-missing-header-text-relay","role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Start Listening for PHP Debug Connections","depth":5,"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"TextRelayServiceTest","depth":6,"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Run 'TextRelayServiceTest'","depth":6,"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Debug 'TextRelayServiceTest'","depth":6,"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"More Actions","depth":6,"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"JetBrains AI","depth":5,"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Search Everywhere","depth":5,"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"IDE and Project Settings","depth":5,"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Sync Changes","depth":4,"bounds":{"left":0.0,"top":0.0,"width":0.018055556,"height":0.026666667},"on_screen":false,"role_description":"button","is_enabled":false,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Hide This Notification","depth":4,"bounds":{"left":0.0,"top":0.0,"width":0.018055556,"height":0.026666667},"on_screen":false,"role_description":"button","is_enabled":false,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Code changed:","depth":4,"bounds":{"left":0.0,"top":0.0,"width":0.088194445,"height":0.027777778},"on_screen":false,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Hide","depth":4,"bounds":{"left":0.0,"top":0.0,"width":0.018055556,"height":0.026666667},"on_screen":false,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXStaticText","text":"12","depth":4,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"1","depth":4,"on_screen":true,"role_description":"text"},{"role":"AXButton","text":"Previous Highlighted Error","depth":4,"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Next Highlighted Error","depth":4,"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXTextArea","text":"<?php\n\nnamespace Jiminny\\Http\\Transformers;\n\nuse Jiminny\\Models\\Crm\\Field;\nuse Jiminny\\Models\\Crm\\Profile;\nuse League\\Fractal\\Resource\\Collection;\nuse League\\Fractal\\TransformerAbstract;\n\nclass FieldTransformer extends TransformerAbstract\n{\n protected array $availableIncludes = [\n 'options',\n ];\n private ?Profile $profile;\n\n private bool $noDefault = false;\n\n public function __construct(?Profile $profile = null)\n {\n $this->profile = $profile;\n }\n\n public function setNoDefault(bool $noDefault)\n {\n $this->noDefault = $noDefault;\n }\n\n public function transform(Field $field): array\n {\n $defaultValue = $field->default_value;\n $type = $field->type;\n\n if (\\is_bool($defaultValue)) {\n $defaultValue = (bool) $defaultValue;\n }\n\n return [\n 'id' => $field->id_string,\n 'objectType' => $field->object_type,\n 'label' => $field->label,\n 'fieldName' => $field->crm_provider_id,\n 'type' => $type,\n 'enabled' => $field->is_selectable,\n 'length' => $field->length,\n 'defaultValue' => $defaultValue,\n ];\n }\n\n public function includeOptions(Field $field): ?Collection\n {\n if ($field->type === Field::TYPE_PICKLIST && $values = $field->values) {\n// if ($field->type === Field::TYPE_PICKLIST && $values = $field->values) {\n // This gets a little complex. We need to check if this field has any record type constraints for the profile.\n if (\n $this->profile\n && ($recordType = $this->profile->{$field->object_type . 'RecordType'})\n && $recordType->fieldValues()->where('crm_field_id', $field->id)->exists()\n ) {\n // Fetch the values specific for this record type.\n $values = $recordType->fieldValues()->where('crm_field_id', $field->id)->get();\n }\n\n if ($this->noDefault) {\n foreach ($values as $value) {\n $value->is_default = false;\n }\n }\n\n return $this->collection($values, new FieldValueTransformer());\n }\n\n return null;\n }\n}","depth":4,"on_screen":true,"value":"<?php\n\nnamespace Jiminny\\Http\\Transformers;\n\nuse Jiminny\\Models\\Crm\\Field;\nuse Jiminny\\Models\\Crm\\Profile;\nuse League\\Fractal\\Resource\\Collection;\nuse League\\Fractal\\TransformerAbstract;\n\nclass FieldTransformer extends TransformerAbstract\n{\n protected array $availableIncludes = [\n 'options',\n ];\n private ?Profile $profile;\n\n private bool $noDefault = false;\n\n public function __construct(?Profile $profile = null)\n {\n $this->profile = $profile;\n }\n\n public function setNoDefault(bool $noDefault)\n {\n $this->noDefault = $noDefault;\n }\n\n public function transform(Field $field): array\n {\n $defaultValue = $field->default_value;\n $type = $field->type;\n\n if (\\is_bool($defaultValue)) {\n $defaultValue = (bool) $defaultValue;\n }\n\n return [\n 'id' => $field->id_string,\n 'objectType' => $field->object_type,\n 'label' => $field->label,\n 'fieldName' => $field->crm_provider_id,\n 'type' => $type,\n 'enabled' => $field->is_selectable,\n 'length' => $field->length,\n 'defaultValue' => $defaultValue,\n ];\n }\n\n public function includeOptions(Field $field): ?Collection\n {\n if ($field->type === Field::TYPE_PICKLIST && $values = $field->values) {\n// if ($field->type === Field::TYPE_PICKLIST && $values = $field->values) {\n // This gets a little complex. We need to check if this field has any record type constraints for the profile.\n if (\n $this->profile\n && ($recordType = $this->profile->{$field->object_type . 'RecordType'})\n && $recordType->fieldValues()->where('crm_field_id', $field->id)->exists()\n ) {\n // Fetch the values specific for this record type.\n $values = $recordType->fieldValues()->where('crm_field_id', $field->id)->get();\n }\n\n if ($this->noDefault) {\n foreach ($values as $value) {\n $value->is_default = false;\n }\n }\n\n return $this->collection($values, new FieldValueTransformer());\n }\n\n return null;\n }\n}","role_description":"text entry area","is_enabled":true,"is_focused":true,"is_selected":false,"is_expanded":false},{"role":"AXStaticText","text":"A","depth":4,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"id","depth":5,"bounds":{"left":0.0,"top":0.0,"width":0.04375,"height":0.03},"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"B","depth":4,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"uuid (UUID with time-low and time-high swapped)","depth":5,"bounds":{"left":0.0,"top":0.0,"width":0.04375,"height":0.03},"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"C","depth":4,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"crm_configuration_id","depth":5,"bounds":{"left":0.0,"top":0.0,"width":0.04375,"height":0.03},"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"D","depth":4,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"crm_provider_id","depth":5,"bounds":{"left":0.0,"top":0.0,"width":0.04375,"height":0.03},"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"E","depth":4,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"label","depth":5,"bounds":{"left":0.0,"top":0.0,"width":0.04375,"height":0.03},"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"F","depth":4,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"description","depth":5,"bounds":{"left":0.0,"top":0.0,"width":0.04375,"height":0.03},"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"G","depth":4,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"type","depth":5,"bounds":{"left":0.0,"top":0.0,"width":0.04375,"height":0.03},"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"H","depth":4,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"length","depth":5,"bounds":{"left":0.0,"top":0.0,"width":0.04375,"height":0.03},"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"I","depth":4,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"default_value","depth":5,"bounds":{"left":0.0,"top":0.0,"width":0.04375,"height":0.03},"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"J","depth":4,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"object_type","depth":5,"bounds":{"left":0.0,"top":0.0,"width":0.04375,"height":0.03},"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"K","depth":4,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"is_selectable","depth":5,"bounds":{"left":0.0,"top":0.0,"width":0.04375,"height":0.03},"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"L","depth":4,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"is_mandatory","depth":5,"bounds":{"left":0.0,"top":0.0,"width":0.04375,"height":0.03},"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"M","depth":4,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"is_filterable","depth":5,"bounds":{"left":0.0,"top":0.0,"width":0.04375,"height":0.03},"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"N","depth":4,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"is_indexable","depth":5,"bounds":{"left":0.0,"top":0.0,"width":0.04375,"height":0.03},"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"O","depth":4,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"created_at","depth":5,"bounds":{"left":0.0,"top":0.0,"width":0.04375,"height":0.03},"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"P","depth":4,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"updated_at","depth":5,"bounds":{"left":0.0,"top":0.0,"width":0.04375,"height":0.03},"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"Q","depth":4,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"is_readonly","depth":5,"bounds":{"left":0.0,"top":0.0,"width":0.04375,"height":0.03},"on_screen":false,"role_description":"text"},{"role":"AXButton","text":"Select All","depth":4,"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXCell","text":"1885","depth":6,"on_screen":true,"role_description":"cell"},{"role":"AXStaticText","text":"1885","depth":7,"on_screen":true,"role_description":"text"},{"role":"AXTextArea","text":"39","depth":8,"bounds":{"left":0.0,"top":0.0,"width":0.16458334,"height":0.024444444},"on_screen":false,"value":"39","role_description":"text entry area","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXCell","text":"58a51d4d-0ca7-49f0-9b2c-e16027877cc5","depth":6,"on_screen":true,"role_description":"cell"},{"role":"AXStaticText","text":"58a51d4d-0ca7-49f0-9b2c-e16027877cc5","depth":7,"on_screen":true,"role_description":"text"},{"role":"AXTextArea","text":"picktestmulti__c","depth":8,"bounds":{"left":0.0,"top":0.0,"width":0.10486111,"height":0.024444444},"on_screen":false,"value":"picktestmulti__c","role_description":"text entry area","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false}]...
|
3758854170827158758
|
-7625210485635206733
|
visual_change
|
accessibility
|
NULL
|
Project: faVsco.js, menu
JY-20915-fix-missing-head Project: faVsco.js, menu
JY-20915-fix-missing-header-text-relay, menu
Start Listening for PHP Debug Connections
TextRelayServiceTest
Run 'TextRelayServiceTest'
Debug 'TextRelayServiceTest'
More Actions
JetBrains AI
Search Everywhere
IDE and Project Settings
Sync Changes
Hide This Notification
Code changed:
Hide
12
1
Previous Highlighted Error
Next Highlighted Error
<?php
namespace Jiminny\Http\Transformers;
use Jiminny\Models\Crm\Field;
use Jiminny\Models\Crm\Profile;
use League\Fractal\Resource\Collection;
use League\Fractal\TransformerAbstract;
class FieldTransformer extends TransformerAbstract
{
protected array $availableIncludes = [
'options',
];
private ?Profile $profile;
private bool $noDefault = false;
public function __construct(?Profile $profile = null)
{
$this->profile = $profile;
}
public function setNoDefault(bool $noDefault)
{
$this->noDefault = $noDefault;
}
public function transform(Field $field): array
{
$defaultValue = $field->default_value;
$type = $field->type;
if (\is_bool($defaultValue)) {
$defaultValue = (bool) $defaultValue;
}
return [
'id' => $field->id_string,
'objectType' => $field->object_type,
'label' => $field->label,
'fieldName' => $field->crm_provider_id,
'type' => $type,
'enabled' => $field->is_selectable,
'length' => $field->length,
'defaultValue' => $defaultValue,
];
}
public function includeOptions(Field $field): ?Collection
{
if ($field->type === Field::TYPE_PICKLIST && $values = $field->values) {
// if ($field->type === Field::TYPE_PICKLIST && $values = $field->values) {
// This gets a little complex. We need to check if this field has any record type constraints for the profile.
if (
$this->profile
&& ($recordType = $this->profile->{$field->object_type . 'RecordType'})
&& $recordType->fieldValues()->where('crm_field_id', $field->id)->exists()
) {
// Fetch the values specific for this record type.
$values = $recordType->fieldValues()->where('crm_field_id', $field->id)->get();
}
if ($this->noDefault) {
foreach ($values as $value) {
$value->is_default = false;
}
}
return $this->collection($values, new FieldValueTransformer());
}
return null;
}
}
A
id
B
uuid (UUID with time-low and time-high swapped)
C
crm_configuration_id
D
crm_provider_id
E
label
F
description
G
type
H
length
I
default_value
J
object_type
K
is_selectable
L
is_mandatory
M
is_filterable
N
is_indexable
O
created_at
P
updated_at
Q
is_readonly
Select All
1885
1885
39
58a51d4d-0ca7-49f0-9b2c-e16027877cc5
58a51d4d-0ca7-49f0-9b2c-e16027877cc5
picktestmulti__c...
|
79719
|
NULL
|
NULL
|
NULL
|
|
79715
|
2790
|
5
|
2026-05-28T06:39:44.694799+00:00
|
/Users/lukas/.screenpipe/data/data/2026-05-28/1779 /Users/lukas/.screenpipe/data/data/2026-05-28/1779950384694_m1.jpg...
|
PhpStorm
|
faVsco.js – FieldTransformer.php
|
1
|
NULL
|
monitor_1
|
NULL
|
NULL
|
NULL
|
NULL
|
Project: faVsco.js, menu
JY-20915-fix-missing-head Project: faVsco.js, menu
JY-20915-fix-missing-header-text-relay, menu
Start Listening for PHP Debug Connections
TextRelayServiceTest...
|
[{"role":"AXButton","text" [{"role":"AXButton","text":"Project: faVsco.js, menu","depth":5,"on_screen":true,"help_text":"~/jiminny/app","role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"JY-20915-fix-missing-header-text-relay, menu","depth":5,"on_screen":true,"help_text":"Git Branch: JY-20915-fix-missing-header-text-relay","role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Start Listening for PHP Debug Connections","depth":5,"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"TextRelayServiceTest","depth":6,"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false}]...
|
-4060176888399009113
|
-9212323791225028208
|
click
|
hybrid
|
NULL
|
Project: faVsco.js, menu
JY-20915-fix-missing-head Project: faVsco.js, menu
JY-20915-fix-missing-header-text-relay, menu
Start Listening for PHP Debug Connections
TextRelayServiceTest
iTerm2ShellEditViewSessionScriptsProfilesWindowHelp‹ >0100% C47 8• Thu 28 May 9:39:44DEV (docker)screenpipe"181DOCKER₴81DEV (docker)~zshH3worker-download:worker-download_00:stoppedworker:worker_00: stoppedworker-nudges:worker-nudges_00:stoppedjiminny-worker-processing-1:jiminny-worker-processing-1_00: stoppedworker-audio:worker-audio_00: stoppedworker-calendar:worker-calendar_00:stoppedworker-conferences:worker-conferences_00:stoppedworker-crm-sync:worker-crm-sync_00:stoppedworker-emails:worker-emails_00: stoppedartisan-schedule:artisan-schedule_00: stoppedworker-es-update:worker-es-update_00: stoppedartisan-schedule:artisan-schedule_00:startedjiminny-worker-processing-1:jiminny-worker-processing-1_00: startedjiminny-worker-processing-2:jiminny-worker-processing-2_00: startedjiminny-worker-processing-3: jiminny-worker-processing-3_00: startedjiminny-worker-processing-4:jiminny-worker-processing-4_00: startedjiminny-worker-processing-5:jiminny-worker-processing-5_00: startedjiminny-worker-processing-delayed: jiminny-worker-processing-delayed_00: startedworker:worker_00: startedworker-analytics:worker-analytics_00:startedworker-audio:worker-audio_00: startedworker-calendar:worker-calendar_00:startedworker-conferences:worker-conferences_00: startedworker-crm-sync:worker-crm-sync_00: startedworker-crm-update:worker-crm-update_00: startedworker-download:worker-download_00: startedworker-emails:worker-emails_00: startedworker-es-update:worker-es-update_00: startedworker-nudges:worker-nudges_00: startedroot@docker_lamp_1:/home/jiminny# php artisan mailbox:text-relay: syncRelayed 0 message(s).root@docker_lamp_1:/home/jiminny# php artisan mailbox:text-relay:syncRelayed 0 message(s).root@docker_lamp_1:/home/jiminny# php artisan optimize:clear && supervisorctl restart allINFOClearing cached bootstrap files.configcachecompiledeventsroutesviews- 84-zshX5...ip-10-30-129-190:~ (nc)₴86...-10-30-140-255:~ (-zsh)₴7DEV19.27ms DONE58.04ms DONE3.88ms DONE1.51ms DONE1.05ms DONE14.27ms DONE...
|
79713
|
NULL
|
NULL
|
NULL
|
|
79714
|
2791
|
5
|
2026-05-28T06:39:44.590686+00:00
|
/Users/lukas/.screenpipe/data/data/2026-05-28/1779 /Users/lukas/.screenpipe/data/data/2026-05-28/1779950384590_m2.jpg...
|
PhpStorm
|
faVsco.js – FieldTransformer.php
|
1
|
NULL
|
monitor_2
|
NULL
|
NULL
|
NULL
|
NULL
|
Project: faVsco.js, menu
JY-20915-fix-missing-head Project: faVsco.js, menu
JY-20915-fix-missing-header-text-relay, menu...
|
[{"role":"AXButton","text" [{"role":"AXButton","text":"Project: faVsco.js, menu","depth":5,"bounds":{"left":0.025930852,"top":0.019952115,"width":0.03856383,"height":0.025538707},"on_screen":true,"help_text":"~/jiminny/app","role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"JY-20915-fix-missing-header-text-relay, menu","depth":5,"bounds":{"left":0.064494684,"top":0.019952115,"width":0.09740692,"height":0.025538707},"on_screen":true,"help_text":"Git Branch: JY-20915-fix-missing-header-text-relay","role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false}]...
|
-3150964534923304660
|
-4304507549388960332
|
click
|
hybrid
|
NULL
|
Project: faVsco.js, menu
JY-20915-fix-missing-head Project: faVsco.js, menu
JY-20915-fix-missing-header-text-relay, menu
rnpstomViewNeWENNCCoocFV faVsco.|s ~$ JY-20915-fix-missing-header-text© DealStageTransformer.phpgresturetonstoner.onoridld tonstotmer.ondorielovalelon omeoneCOoeaikxWoeonon© GroupTransformer.ohocpoo elansotneoneC) LanquageDialect TransformerCLavout Enttviranstormer choC Lavout Transformer.ohoC) Lesdtranstormer.oho© MessageTransformer oho)CMomentitranstormer.onoCNotetiranstormer.onoCNotrestontttans ormer.onoclenoorur weommadtandolcenoodur wihnddmatoodcoarcinsottiane omatoc Paroheiane tmanoc PermissionTransformer.phg(© PlaybackPageTranstormer.ph(© PlaybookTransformer.pho© PlaybookTreeTransformer.ph 4PlaylistActivityTransformer.pl 4PlaylistShares Transformer.ph 49PlaylistTransformer.phporrospectsfanstoner.onooQueston lfanstommer.ohoC Keooeweateonec Kolellansouneen© ScorecardRule Tiransformer ol 5t© ScorecardRule Trioger Transfa 5%C Sess ontirans ormer.onoc Sacetirans omer.onoc Sactrans ormes.ono) TeamDomain Transformec.ohe 638) Teamintcaration Transformer8) Team Transtormec ohoc) Themetirand ormes.choc)Tooic transtormer onoc)Tooic troced trane ormer.oheerealrne nrmor nhre Wolcodcroeehlind Mmornhrc Korol ahrcomposer.ison• DockerfileTOO%L7• Thu 28 May 9:39:44+0.custom.losravelloSF (iminny@localhost)un crm fields (jiminnytalocalhost) x# HS Jocal jiminny@tocalhost# consolel poonA console (EU]A console (STAGING)Ty:AlrowDLQwEOgMCSVYLL+OePKYAV7- WHERE id IN (1885, 3014)=•OROER 81 wuid (UULD with tine-low a-:ae con_configuration_id v* Bcrn_provider_id UJ8 labelM1885 S8a51d4d-8ca7-49f0-9b2c-e16027877ccS39 ReninderDateTimeReminder Date/Tine3814 a3d3dfSa-eaa1-43d0-b95e-1ff4bec8c42839 picktestmulti cpicktestnultpublic function setwodefau.t(bool Snoderaulo)t...public function transform(Field Stield): arrayCoetsm tnlwne Metomociouer VacoerStype = Sfield»>type:if (is bool(SdefaultValue)) "SdefaultValue = (bool) SdefaultValue:recurn"id' => Sfield->id string.omecawiesReosooedeo'label' => Sfield->label,nreloiessnedesorowNDESSVOEenaileosomelos seredo"detaulevalue = sderautevalue,oubdicfunctionsincludeintonststeldsttelorrcobrectaronStinld-sPickbietobif (Sfield->type === Field::TYPE PICKLIST d& Svalues = Sfield-›values) ‹this aers arbirtle conolex. Te need to check t this Sield has any recond tyne constrarintgtif CChneosnnnt&& (SrecordType = Sthis->profile->(Sfield-›object type . 'RecordType'})fChoranituno eo dvanmodlanhand or Coldr CholdadrowetelFetch the values specific for this record type.Svalues = SrecordType->fieldValues@->ahere(*crn field 1d', Sfield->id)->get=if (Sthis->noDefault) (foreach (Svalues as Svalue)Svalue->is default = false:reurninoscou edconewalues, nen Deeawueirans torherausoas. tvesterdav 15:44rner hensewietwtlerekevouteScarched dinss Crmcontrolien in siminnuinoolRead CrmController.php and 2 other filesscarenco lire mocllin hminhyopPasdSiwldnho. aocllltwouttanetormar.obdwsto on.myana.wsis.multi-oickirstiolostrecurtentynoxor.cumocn.000.sinawoulsoecause.nebteromransformer:: includeOpt ions () method only handies TYPE PICKLIST and excludes TYPE MULTIPICKLISTw/spp/http/ranstomers/Btclotiranstomer.oho.fos 57aphe1f (Sfield→>type =a= Field::TYPE PICKLIST 66 Svalues = Sfield-»values) 4Tinis con.tion.onwinciloesob.ionstocteoularoick.erelos..no.tm-oicklienhCAlTtAn.oahte the cond tion to ind ude woth dckik wongpheteldescpickTstd cs svalues Steld-walues)The Field::isPicklist() method (line 357-360 in Field.php) already checks for both types:boh.return in_array(sthis=>getType(), [self::TYPE_ PICKLIST, self::TYPE_MULTIPICKLIST] ):Additional Context.• The Fiield model detines TYPt MuLTiP OiSt" "eit coickttr" out markstas "Not ver supported" (uine87-88• The lavouts endpoint at /ao Vem/ Iavouts uses lavoutTranstorser → avoutEnt tytranstomer → Blelo.rnctornar chal.the tans ormer ine tons entittet.chidren.techoottontliineo570lermeootrollernhoWould you like me to implement this fix to enable multi-picklist field options in layouts?Ask anything Xol@ Code swioThWiedemtetintlchitelhon brask*4 space...
|
NULL
|
NULL
|
NULL
|
NULL
|
|
79713
|
2790
|
4
|
2026-05-28T06:39:42.625848+00:00
|
/Users/lukas/.screenpipe/data/data/2026-05-28/1779 /Users/lukas/.screenpipe/data/data/2026-05-28/1779950382625_m1.jpg...
|
PhpStorm
|
faVsco.js – FieldTransformer.php
|
1
|
NULL
|
monitor_1
|
NULL
|
NULL
|
NULL
|
NULL
|
Project: faVsco.js, menu
JY-20915-fix-missing-head Project: faVsco.js, menu
JY-20915-fix-missing-header-text-relay, menu
Start Listening for PHP Debug Connections
TextRelayServiceTest
Run 'TextRelayServiceTest'
Debug 'TextRelayServiceTest'
More Actions
JetBrains AI
Search Everywhere
IDE and Project Settings
Sync Changes
Hide This Notification
Code changed:
Hide
13
1
Previous Highlighted Error
Next Highlighted Error
<?php
namespace Jiminny\Http\Transformers;
use Jiminny\Models\Crm\Field;
use Jiminny\Models\Crm\Profile;
use League\Fractal\Resource\Collection;
use League\Fractal\TransformerAbstract;
class FieldTransformer extends TransformerAbstract
{
protected array $availableIncludes = [
'options',
];
private ?Profile $profile;
private bool $noDefault = false;
public function __construct(?Profile $profile = null)
{
$this->profile = $profile;
}
public function setNoDefault(bool $noDefault)
{
$this->noDefault = $noDefault;
}
public function transform(Field $field): array
{
$defaultValue = $field->default_value;
$type = $field->type;
if (\is_bool($defaultValue)) {
$defaultValue = (bool) $defaultValue;
}
return [
'id' => $field->id_string,
'objectType' => $field->object_type,
'label' => $field->label,
'fieldName' => $field->crm_provider_id,
'type' => $type,
'enabled' => $field->is_selectable,
'length' => $field->length,
'defaultValue' => $defaultValue,
];
}
public function includeOptions(Field $field): ?Collection
{
if ($field->isPicklist()) {
// if ($field->type === Field::TYPE_PICKLIST && $values = $field->values) {
// This gets a little complex. We need to check if this field has any record type constraints for the profile.
if (
$this->profile
&& ($recordType = $this->profile->{$field->object_type . 'RecordType'})
&& $recordType->fieldValues()->where('crm_field_id', $field->id)->exists()
) {
// Fetch the values specific for this record type.
$values = $recordType->fieldValues()->where('crm_field_id', $field->id)->get();
}
if ($this->noDefault) {
foreach ($values as $value) {
$value->is_default = false;
}
}
return $this->collection($values, new FieldValueTransformer());
}
return null;
}
}
A
id
B
uuid (UUID with time-low and time-high swapped)...
|
[{"role":"AXButton","text" [{"role":"AXButton","text":"Project: faVsco.js, menu","depth":5,"on_screen":true,"help_text":"~/jiminny/app","role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"JY-20915-fix-missing-header-text-relay, menu","depth":5,"on_screen":true,"help_text":"Git Branch: JY-20915-fix-missing-header-text-relay","role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Start Listening for PHP Debug Connections","depth":5,"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"TextRelayServiceTest","depth":6,"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Run 'TextRelayServiceTest'","depth":6,"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Debug 'TextRelayServiceTest'","depth":6,"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"More Actions","depth":6,"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"JetBrains AI","depth":5,"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Search Everywhere","depth":5,"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"IDE and Project Settings","depth":5,"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Sync Changes","depth":4,"bounds":{"left":0.0,"top":0.0,"width":0.018055556,"height":0.026666667},"on_screen":false,"role_description":"button","is_enabled":false,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Hide This Notification","depth":4,"bounds":{"left":0.0,"top":0.0,"width":0.018055556,"height":0.026666667},"on_screen":false,"role_description":"button","is_enabled":false,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Code changed:","depth":4,"bounds":{"left":0.0,"top":0.0,"width":0.088194445,"height":0.027777778},"on_screen":false,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Hide","depth":4,"bounds":{"left":0.0,"top":0.0,"width":0.018055556,"height":0.026666667},"on_screen":false,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXStaticText","text":"13","depth":4,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"1","depth":4,"on_screen":true,"role_description":"text"},{"role":"AXButton","text":"Previous Highlighted Error","depth":4,"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Next Highlighted Error","depth":4,"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXTextArea","text":"<?php\n\nnamespace Jiminny\\Http\\Transformers;\n\nuse Jiminny\\Models\\Crm\\Field;\nuse Jiminny\\Models\\Crm\\Profile;\nuse League\\Fractal\\Resource\\Collection;\nuse League\\Fractal\\TransformerAbstract;\n\nclass FieldTransformer extends TransformerAbstract\n{\n protected array $availableIncludes = [\n 'options',\n ];\n private ?Profile $profile;\n\n private bool $noDefault = false;\n\n public function __construct(?Profile $profile = null)\n {\n $this->profile = $profile;\n }\n\n public function setNoDefault(bool $noDefault)\n {\n $this->noDefault = $noDefault;\n }\n\n public function transform(Field $field): array\n {\n $defaultValue = $field->default_value;\n $type = $field->type;\n\n if (\\is_bool($defaultValue)) {\n $defaultValue = (bool) $defaultValue;\n }\n\n return [\n 'id' => $field->id_string,\n 'objectType' => $field->object_type,\n 'label' => $field->label,\n 'fieldName' => $field->crm_provider_id,\n 'type' => $type,\n 'enabled' => $field->is_selectable,\n 'length' => $field->length,\n 'defaultValue' => $defaultValue,\n ];\n }\n\n public function includeOptions(Field $field): ?Collection\n {\n if ($field->isPicklist()) {\n// if ($field->type === Field::TYPE_PICKLIST && $values = $field->values) {\n // This gets a little complex. We need to check if this field has any record type constraints for the profile.\n if (\n $this->profile\n && ($recordType = $this->profile->{$field->object_type . 'RecordType'})\n && $recordType->fieldValues()->where('crm_field_id', $field->id)->exists()\n ) {\n // Fetch the values specific for this record type.\n $values = $recordType->fieldValues()->where('crm_field_id', $field->id)->get();\n }\n\n if ($this->noDefault) {\n foreach ($values as $value) {\n $value->is_default = false;\n }\n }\n\n return $this->collection($values, new FieldValueTransformer());\n }\n\n return null;\n }\n}","depth":4,"on_screen":true,"value":"<?php\n\nnamespace Jiminny\\Http\\Transformers;\n\nuse Jiminny\\Models\\Crm\\Field;\nuse Jiminny\\Models\\Crm\\Profile;\nuse League\\Fractal\\Resource\\Collection;\nuse League\\Fractal\\TransformerAbstract;\n\nclass FieldTransformer extends TransformerAbstract\n{\n protected array $availableIncludes = [\n 'options',\n ];\n private ?Profile $profile;\n\n private bool $noDefault = false;\n\n public function __construct(?Profile $profile = null)\n {\n $this->profile = $profile;\n }\n\n public function setNoDefault(bool $noDefault)\n {\n $this->noDefault = $noDefault;\n }\n\n public function transform(Field $field): array\n {\n $defaultValue = $field->default_value;\n $type = $field->type;\n\n if (\\is_bool($defaultValue)) {\n $defaultValue = (bool) $defaultValue;\n }\n\n return [\n 'id' => $field->id_string,\n 'objectType' => $field->object_type,\n 'label' => $field->label,\n 'fieldName' => $field->crm_provider_id,\n 'type' => $type,\n 'enabled' => $field->is_selectable,\n 'length' => $field->length,\n 'defaultValue' => $defaultValue,\n ];\n }\n\n public function includeOptions(Field $field): ?Collection\n {\n if ($field->isPicklist()) {\n// if ($field->type === Field::TYPE_PICKLIST && $values = $field->values) {\n // This gets a little complex. We need to check if this field has any record type constraints for the profile.\n if (\n $this->profile\n && ($recordType = $this->profile->{$field->object_type . 'RecordType'})\n && $recordType->fieldValues()->where('crm_field_id', $field->id)->exists()\n ) {\n // Fetch the values specific for this record type.\n $values = $recordType->fieldValues()->where('crm_field_id', $field->id)->get();\n }\n\n if ($this->noDefault) {\n foreach ($values as $value) {\n $value->is_default = false;\n }\n }\n\n return $this->collection($values, new FieldValueTransformer());\n }\n\n return null;\n }\n}","role_description":"text entry area","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXStaticText","text":"A","depth":4,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"id","depth":5,"bounds":{"left":0.0,"top":0.0,"width":0.04375,"height":0.03},"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"B","depth":4,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"uuid (UUID with time-low and time-high swapped)","depth":5,"bounds":{"left":0.0,"top":0.0,"width":0.04375,"height":0.03},"on_screen":false,"role_description":"text"}]...
|
-6677130856512999821
|
1598478141849940403
|
click
|
accessibility
|
NULL
|
Project: faVsco.js, menu
JY-20915-fix-missing-head Project: faVsco.js, menu
JY-20915-fix-missing-header-text-relay, menu
Start Listening for PHP Debug Connections
TextRelayServiceTest
Run 'TextRelayServiceTest'
Debug 'TextRelayServiceTest'
More Actions
JetBrains AI
Search Everywhere
IDE and Project Settings
Sync Changes
Hide This Notification
Code changed:
Hide
13
1
Previous Highlighted Error
Next Highlighted Error
<?php
namespace Jiminny\Http\Transformers;
use Jiminny\Models\Crm\Field;
use Jiminny\Models\Crm\Profile;
use League\Fractal\Resource\Collection;
use League\Fractal\TransformerAbstract;
class FieldTransformer extends TransformerAbstract
{
protected array $availableIncludes = [
'options',
];
private ?Profile $profile;
private bool $noDefault = false;
public function __construct(?Profile $profile = null)
{
$this->profile = $profile;
}
public function setNoDefault(bool $noDefault)
{
$this->noDefault = $noDefault;
}
public function transform(Field $field): array
{
$defaultValue = $field->default_value;
$type = $field->type;
if (\is_bool($defaultValue)) {
$defaultValue = (bool) $defaultValue;
}
return [
'id' => $field->id_string,
'objectType' => $field->object_type,
'label' => $field->label,
'fieldName' => $field->crm_provider_id,
'type' => $type,
'enabled' => $field->is_selectable,
'length' => $field->length,
'defaultValue' => $defaultValue,
];
}
public function includeOptions(Field $field): ?Collection
{
if ($field->isPicklist()) {
// if ($field->type === Field::TYPE_PICKLIST && $values = $field->values) {
// This gets a little complex. We need to check if this field has any record type constraints for the profile.
if (
$this->profile
&& ($recordType = $this->profile->{$field->object_type . 'RecordType'})
&& $recordType->fieldValues()->where('crm_field_id', $field->id)->exists()
) {
// Fetch the values specific for this record type.
$values = $recordType->fieldValues()->where('crm_field_id', $field->id)->get();
}
if ($this->noDefault) {
foreach ($values as $value) {
$value->is_default = false;
}
}
return $this->collection($values, new FieldValueTransformer());
}
return null;
}
}
A
id
B
uuid (UUID with time-low and time-high swapped)...
|
NULL
|
NULL
|
NULL
|
NULL
|
|
79712
|
2791
|
4
|
2026-05-28T06:39:42.523276+00:00
|
/Users/lukas/.screenpipe/data/data/2026-05-28/1779 /Users/lukas/.screenpipe/data/data/2026-05-28/1779950382523_m2.jpg...
|
PhpStorm
|
faVsco.js – FieldTransformer.php
|
1
|
NULL
|
monitor_2
|
NULL
|
NULL
|
NULL
|
NULL
|
Project: faVsco.js, menu
JY-20915-fix-missing-head Project: faVsco.js, menu
JY-20915-fix-missing-header-text-relay, menu
Start Listening for PHP Debug Connections
TextRelayServiceTest
Run 'TextRelayServiceTest'
Debug 'TextRelayServiceTest'
More Actions
JetBrains AI
Search Everywhere
IDE and Project Settings
Sync Changes
Hide This Notification
Code changed:
Hide
13
1
Previous Highlighted Error
Next Highlighted Error
<?php
namespace Jiminny\Http\Transformers;
use Jiminny\Models\Crm\Field;
use Jiminny\Models\Crm\Profile;
use League\Fractal\Resource\Collection;
use League\Fractal\TransformerAbstract;
class FieldTransformer extends TransformerAbstract
{
protected array $availableIncludes = [
'options',
];
private ?Profile $profile;
private bool $noDefault = false;
public function __construct(?Profile $profile = null)
{
$this->profile = $profile;
}
public function setNoDefault(bool $noDefault)
{
$this->noDefault = $noDefault;
}
public function transform(Field $field): array
{
$defaultValue = $field->default_value;
$type = $field->type;
if (\is_bool($defaultValue)) {
$defaultValue = (bool) $defaultValue;
}
return [
'id' => $field->id_string,
'objectType' => $field->object_type,
'label' => $field->label,
'fieldName' => $field->crm_provider_id,
'type' => $type,
'enabled' => $field->is_selectable,
'length' => $field->length,
'defaultValue' => $defaultValue,
];
}
public function includeOptions(Field $field): ?Collection
{
if ($field->isPicklist()) {
// if ($field->type === Field::TYPE_PICKLIST && $values = $field->values) {
// This gets a little complex. We need to check if this field has any record type constraints for the profile.
if (
$this->profile
&& ($recordType = $this->profile->{$field->object_type . 'RecordType'})
&& $recordType->fieldValues()->where('crm_field_id', $field->id)->exists()
) {
// Fetch the values specific for this record type.
$values = $recordType->fieldValues()->where('crm_field_id', $field->id)->get();
}
if ($this->noDefault) {
foreach ($values as $value) {
$value->is_default = false;
}
}
return $this->collection($values, new FieldValueTransformer());
}
return null;
}
}
A
id
B
uuid (UUID with time-low and time-high swapped)
C
crm_configuration_id
D
crm_provider_id
E
label
F
description
G
type
H
length
I
default_value
J
object_type
K
is_selectable
L
is_mandatory...
|
[{"role":"AXButton","text" [{"role":"AXButton","text":"Project: faVsco.js, menu","depth":5,"bounds":{"left":0.025930852,"top":0.019952115,"width":0.03856383,"height":0.025538707},"on_screen":true,"help_text":"~/jiminny/app","role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"JY-20915-fix-missing-header-text-relay, menu","depth":5,"bounds":{"left":0.064494684,"top":0.019952115,"width":0.09740692,"height":0.025538707},"on_screen":true,"help_text":"Git Branch: JY-20915-fix-missing-header-text-relay","role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Start Listening for PHP Debug Connections","depth":5,"bounds":{"left":0.8374335,"top":0.019952115,"width":0.011303191,"height":0.025538707},"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"TextRelayServiceTest","depth":6,"bounds":{"left":0.85272604,"top":0.019952115,"width":0.062832445,"height":0.025538707},"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Run 'TextRelayServiceTest'","depth":6,"bounds":{"left":0.9155585,"top":0.019952115,"width":0.011303191,"height":0.025538707},"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Debug 'TextRelayServiceTest'","depth":6,"bounds":{"left":0.9268617,"top":0.019952115,"width":0.011303191,"height":0.025538707},"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"More Actions","depth":6,"bounds":{"left":0.9381649,"top":0.019952115,"width":0.011303191,"height":0.025538707},"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"JetBrains AI","depth":5,"bounds":{"left":0.96609044,"top":0.019952115,"width":0.011303191,"height":0.025538707},"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Search Everywhere","depth":5,"bounds":{"left":0.9773936,"top":0.019952115,"width":0.011303191,"height":0.025538707},"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"IDE and Project Settings","depth":5,"bounds":{"left":0.9886968,"top":0.019952115,"width":0.011303186,"height":0.025538707},"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Sync Changes","depth":4,"bounds":{"left":0.27027926,"top":1.0,"width":0.008643617,"height":0.0},"on_screen":false,"role_description":"button","is_enabled":false,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Hide This Notification","depth":4,"bounds":{"left":0.27027926,"top":1.0,"width":0.008643617,"height":0.0},"on_screen":false,"role_description":"button","is_enabled":false,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Code changed:","depth":4,"bounds":{"left":0.27027926,"top":1.0,"width":0.042220745,"height":0.0},"on_screen":false,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Hide","depth":4,"bounds":{"left":0.27027926,"top":1.0,"width":0.008643617,"height":0.0},"on_screen":false,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXStaticText","text":"13","depth":4,"bounds":{"left":0.37632978,"top":0.12529927,"width":0.009640957,"height":0.015163607},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"1","depth":4,"bounds":{"left":0.3879654,"top":0.12529927,"width":0.00731383,"height":0.015163607},"on_screen":true,"role_description":"text"},{"role":"AXButton","text":"Previous Highlighted Error","depth":4,"bounds":{"left":0.39694148,"top":0.123703115,"width":0.00731383,"height":0.018355945},"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Next Highlighted Error","depth":4,"bounds":{"left":0.40425533,"top":0.123703115,"width":0.006981383,"height":0.018355945},"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXTextArea","text":"<?php\n\nnamespace Jiminny\\Http\\Transformers;\n\nuse Jiminny\\Models\\Crm\\Field;\nuse Jiminny\\Models\\Crm\\Profile;\nuse League\\Fractal\\Resource\\Collection;\nuse League\\Fractal\\TransformerAbstract;\n\nclass FieldTransformer extends TransformerAbstract\n{\n protected array $availableIncludes = [\n 'options',\n ];\n private ?Profile $profile;\n\n private bool $noDefault = false;\n\n public function __construct(?Profile $profile = null)\n {\n $this->profile = $profile;\n }\n\n public function setNoDefault(bool $noDefault)\n {\n $this->noDefault = $noDefault;\n }\n\n public function transform(Field $field): array\n {\n $defaultValue = $field->default_value;\n $type = $field->type;\n\n if (\\is_bool($defaultValue)) {\n $defaultValue = (bool) $defaultValue;\n }\n\n return [\n 'id' => $field->id_string,\n 'objectType' => $field->object_type,\n 'label' => $field->label,\n 'fieldName' => $field->crm_provider_id,\n 'type' => $type,\n 'enabled' => $field->is_selectable,\n 'length' => $field->length,\n 'defaultValue' => $defaultValue,\n ];\n }\n\n public function includeOptions(Field $field): ?Collection\n {\n if ($field->isPicklist()) {\n// if ($field->type === Field::TYPE_PICKLIST && $values = $field->values) {\n // This gets a little complex. We need to check if this field has any record type constraints for the profile.\n if (\n $this->profile\n && ($recordType = $this->profile->{$field->object_type . 'RecordType'})\n && $recordType->fieldValues()->where('crm_field_id', $field->id)->exists()\n ) {\n // Fetch the values specific for this record type.\n $values = $recordType->fieldValues()->where('crm_field_id', $field->id)->get();\n }\n\n if ($this->noDefault) {\n foreach ($values as $value) {\n $value->is_default = false;\n }\n }\n\n return $this->collection($values, new FieldValueTransformer());\n }\n\n return null;\n }\n}","depth":4,"on_screen":true,"value":"<?php\n\nnamespace Jiminny\\Http\\Transformers;\n\nuse Jiminny\\Models\\Crm\\Field;\nuse Jiminny\\Models\\Crm\\Profile;\nuse League\\Fractal\\Resource\\Collection;\nuse League\\Fractal\\TransformerAbstract;\n\nclass FieldTransformer extends TransformerAbstract\n{\n protected array $availableIncludes = [\n 'options',\n ];\n private ?Profile $profile;\n\n private bool $noDefault = false;\n\n public function __construct(?Profile $profile = null)\n {\n $this->profile = $profile;\n }\n\n public function setNoDefault(bool $noDefault)\n {\n $this->noDefault = $noDefault;\n }\n\n public function transform(Field $field): array\n {\n $defaultValue = $field->default_value;\n $type = $field->type;\n\n if (\\is_bool($defaultValue)) {\n $defaultValue = (bool) $defaultValue;\n }\n\n return [\n 'id' => $field->id_string,\n 'objectType' => $field->object_type,\n 'label' => $field->label,\n 'fieldName' => $field->crm_provider_id,\n 'type' => $type,\n 'enabled' => $field->is_selectable,\n 'length' => $field->length,\n 'defaultValue' => $defaultValue,\n ];\n }\n\n public function includeOptions(Field $field): ?Collection\n {\n if ($field->isPicklist()) {\n// if ($field->type === Field::TYPE_PICKLIST && $values = $field->values) {\n // This gets a little complex. We need to check if this field has any record type constraints for the profile.\n if (\n $this->profile\n && ($recordType = $this->profile->{$field->object_type . 'RecordType'})\n && $recordType->fieldValues()->where('crm_field_id', $field->id)->exists()\n ) {\n // Fetch the values specific for this record type.\n $values = $recordType->fieldValues()->where('crm_field_id', $field->id)->get();\n }\n\n if ($this->noDefault) {\n foreach ($values as $value) {\n $value->is_default = false;\n }\n }\n\n return $this->collection($values, new FieldValueTransformer());\n }\n\n return null;\n }\n}","role_description":"text entry area","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXStaticText","text":"A","depth":4,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"id","depth":5,"bounds":{"left":0.27027926,"top":1.0,"width":0.020944148,"height":0.0},"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"B","depth":4,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"uuid (UUID with time-low and time-high swapped)","depth":5,"bounds":{"left":0.27027926,"top":1.0,"width":0.020944148,"height":0.0},"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"C","depth":4,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"crm_configuration_id","depth":5,"bounds":{"left":0.27027926,"top":1.0,"width":0.020944148,"height":0.0},"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"D","depth":4,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"crm_provider_id","depth":5,"bounds":{"left":0.27027926,"top":1.0,"width":0.020944148,"height":0.0},"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"E","depth":4,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"label","depth":5,"bounds":{"left":0.27027926,"top":1.0,"width":0.020944148,"height":0.0},"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"F","depth":4,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"description","depth":5,"bounds":{"left":0.27027926,"top":1.0,"width":0.020944148,"height":0.0},"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"G","depth":4,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"type","depth":5,"bounds":{"left":0.27027926,"top":1.0,"width":0.020944148,"height":0.0},"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"H","depth":4,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"length","depth":5,"bounds":{"left":0.27027926,"top":1.0,"width":0.020944148,"height":0.0},"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"I","depth":4,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"default_value","depth":5,"bounds":{"left":0.27027926,"top":1.0,"width":0.020944148,"height":0.0},"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"J","depth":4,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"object_type","depth":5,"bounds":{"left":0.27027926,"top":1.0,"width":0.020944148,"height":0.0},"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"K","depth":4,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"is_selectable","depth":5,"bounds":{"left":0.27027926,"top":1.0,"width":0.020944148,"height":0.0},"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"L","depth":4,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"is_mandatory","depth":5,"bounds":{"left":0.27027926,"top":1.0,"width":0.020944148,"height":0.0},"on_screen":false,"role_description":"text"}]...
|
-6879555333798695439
|
-7624893895005883981
|
click
|
accessibility
|
NULL
|
Project: faVsco.js, menu
JY-20915-fix-missing-head Project: faVsco.js, menu
JY-20915-fix-missing-header-text-relay, menu
Start Listening for PHP Debug Connections
TextRelayServiceTest
Run 'TextRelayServiceTest'
Debug 'TextRelayServiceTest'
More Actions
JetBrains AI
Search Everywhere
IDE and Project Settings
Sync Changes
Hide This Notification
Code changed:
Hide
13
1
Previous Highlighted Error
Next Highlighted Error
<?php
namespace Jiminny\Http\Transformers;
use Jiminny\Models\Crm\Field;
use Jiminny\Models\Crm\Profile;
use League\Fractal\Resource\Collection;
use League\Fractal\TransformerAbstract;
class FieldTransformer extends TransformerAbstract
{
protected array $availableIncludes = [
'options',
];
private ?Profile $profile;
private bool $noDefault = false;
public function __construct(?Profile $profile = null)
{
$this->profile = $profile;
}
public function setNoDefault(bool $noDefault)
{
$this->noDefault = $noDefault;
}
public function transform(Field $field): array
{
$defaultValue = $field->default_value;
$type = $field->type;
if (\is_bool($defaultValue)) {
$defaultValue = (bool) $defaultValue;
}
return [
'id' => $field->id_string,
'objectType' => $field->object_type,
'label' => $field->label,
'fieldName' => $field->crm_provider_id,
'type' => $type,
'enabled' => $field->is_selectable,
'length' => $field->length,
'defaultValue' => $defaultValue,
];
}
public function includeOptions(Field $field): ?Collection
{
if ($field->isPicklist()) {
// if ($field->type === Field::TYPE_PICKLIST && $values = $field->values) {
// This gets a little complex. We need to check if this field has any record type constraints for the profile.
if (
$this->profile
&& ($recordType = $this->profile->{$field->object_type . 'RecordType'})
&& $recordType->fieldValues()->where('crm_field_id', $field->id)->exists()
) {
// Fetch the values specific for this record type.
$values = $recordType->fieldValues()->where('crm_field_id', $field->id)->get();
}
if ($this->noDefault) {
foreach ($values as $value) {
$value->is_default = false;
}
}
return $this->collection($values, new FieldValueTransformer());
}
return null;
}
}
A
id
B
uuid (UUID with time-low and time-high swapped)
C
crm_configuration_id
D
crm_provider_id
E
label
F
description
G
type
H
length
I
default_value
J
object_type
K
is_selectable
L
is_mandatory...
|
79711
|
NULL
|
NULL
|
NULL
|
|
79711
|
2791
|
3
|
2026-05-28T06:39:39.704073+00:00
|
/Users/lukas/.screenpipe/data/data/2026-05-28/1779 /Users/lukas/.screenpipe/data/data/2026-05-28/1779950379704_m2.jpg...
|
PhpStorm
|
faVsco.js – FieldTransformer.php
|
1
|
NULL
|
monitor_2
|
NULL
|
NULL
|
NULL
|
NULL
|
Project: faVsco.js, menu
JY-20915-fix-missing-head Project: faVsco.js, menu
JY-20915-fix-missing-header-text-relay, menu
Start Listening for PHP Debug Connections
TextRelayServiceTest
Run 'TextRelayServiceTest'
Debug 'TextRelayServiceTest'
More Actions
JetBrains AI
Search Everywhere
IDE and Project Settings
Sync Changes
Hide This Notification
Code changed:
Hide
13
1
Previous Highlighted Error
Next Highlighted Error
<?php
namespace Jiminny\Http\Transformers;
use Jiminny\Models\Crm\Field;
use Jiminny\Models\Crm\Profile;
use League\Fractal\Resource\Collection;
use League\Fractal\TransformerAbstract;
class FieldTransformer extends TransformerAbstract
{
protected array $availableIncludes = [
'options',
];
private ?Profile $profile;
private bool $noDefault = false;
public function __construct(?Profile $profile = null)
{
$this->profile = $profile;
}
public function setNoDefault(bool $noDefault)
{
$this->noDefault = $noDefault;
}
public function transform(Field $field): array
{
$defaultValue = $field->default_value;
$type = $field->type;
if (\is_bool($defaultValue)) {
$defaultValue = (bool) $defaultValue;
}
return [
'id' => $field->id_string,
'objectType' => $field->object_type,
'label' => $field->label,
'fieldName' => $field->crm_provider_id,
'type' => $type,
'enabled' => $field->is_selectable,
'length' => $field->length,
'defaultValue' => $defaultValue,
];
}
public function includeOptions(Field $field): ?Collection
{
if ($field->isPicklist()) {
// if ($field->type === Field::TYPE_PICKLIST && $values = $field->values) {
// This gets a little complex. We need to check if this field has any record type constraints for the profile.
if (
$this->profile
&& ($recordType = $this->profile->{$field->object_type . 'RecordType'})
&& $recordType->fieldValues()->where('crm_field_id', $field->id)->exists()
) {
// Fetch the values specific for this record type.
$values = $recordType->fieldValues()->where('crm_field_id', $field->id)->get();
}
if ($this->noDefault) {
foreach ($values as $value) {
$value->is_default = false;
}
}
return $this->collection($values, new FieldValueTransformer());
}
return null;
}
}
A
id
B
uuid (UUID with time-low and time-high swapped)
C
crm_configuration_id
D
crm_provider_id
E
label
F
description
G
type
H
length
I
default_value
J
object_type
K
is_selectable
L
is_mandatory
M
is_filterable
N
is_indexable
O
created_at
P
updated_at
Q
is_readonly
Select All
1885
1885
39...
|
[{"role":"AXButton","text" [{"role":"AXButton","text":"Project: faVsco.js, menu","depth":5,"bounds":{"left":0.025930852,"top":0.019952115,"width":0.03856383,"height":0.025538707},"on_screen":true,"help_text":"~/jiminny/app","role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"JY-20915-fix-missing-header-text-relay, menu","depth":5,"bounds":{"left":0.064494684,"top":0.019952115,"width":0.09740692,"height":0.025538707},"on_screen":true,"help_text":"Git Branch: JY-20915-fix-missing-header-text-relay","role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Start Listening for PHP Debug Connections","depth":5,"bounds":{"left":0.8374335,"top":0.019952115,"width":0.011303191,"height":0.025538707},"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"TextRelayServiceTest","depth":6,"bounds":{"left":0.85272604,"top":0.019952115,"width":0.062832445,"height":0.025538707},"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Run 'TextRelayServiceTest'","depth":6,"bounds":{"left":0.9155585,"top":0.019952115,"width":0.011303191,"height":0.025538707},"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Debug 'TextRelayServiceTest'","depth":6,"bounds":{"left":0.9268617,"top":0.019952115,"width":0.011303191,"height":0.025538707},"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"More Actions","depth":6,"bounds":{"left":0.9381649,"top":0.019952115,"width":0.011303191,"height":0.025538707},"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"JetBrains AI","depth":5,"bounds":{"left":0.96609044,"top":0.019952115,"width":0.011303191,"height":0.025538707},"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Search Everywhere","depth":5,"bounds":{"left":0.9773936,"top":0.019952115,"width":0.011303191,"height":0.025538707},"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"IDE and Project Settings","depth":5,"bounds":{"left":0.9886968,"top":0.019952115,"width":0.011303186,"height":0.025538707},"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Sync Changes","depth":4,"bounds":{"left":0.27027926,"top":1.0,"width":0.008643617,"height":0.0},"on_screen":false,"role_description":"button","is_enabled":false,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Hide This Notification","depth":4,"bounds":{"left":0.27027926,"top":1.0,"width":0.008643617,"height":0.0},"on_screen":false,"role_description":"button","is_enabled":false,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Code changed:","depth":4,"bounds":{"left":0.27027926,"top":1.0,"width":0.042220745,"height":0.0},"on_screen":false,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Hide","depth":4,"bounds":{"left":0.27027926,"top":1.0,"width":0.008643617,"height":0.0},"on_screen":false,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXStaticText","text":"13","depth":4,"bounds":{"left":0.37632978,"top":0.12529927,"width":0.009640957,"height":0.015163607},"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"1","depth":4,"bounds":{"left":0.3879654,"top":0.12529927,"width":0.00731383,"height":0.015163607},"on_screen":true,"role_description":"text"},{"role":"AXButton","text":"Previous Highlighted Error","depth":4,"bounds":{"left":0.39694148,"top":0.123703115,"width":0.00731383,"height":0.018355945},"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Next Highlighted Error","depth":4,"bounds":{"left":0.40425533,"top":0.123703115,"width":0.006981383,"height":0.018355945},"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXTextArea","text":"<?php\n\nnamespace Jiminny\\Http\\Transformers;\n\nuse Jiminny\\Models\\Crm\\Field;\nuse Jiminny\\Models\\Crm\\Profile;\nuse League\\Fractal\\Resource\\Collection;\nuse League\\Fractal\\TransformerAbstract;\n\nclass FieldTransformer extends TransformerAbstract\n{\n protected array $availableIncludes = [\n 'options',\n ];\n private ?Profile $profile;\n\n private bool $noDefault = false;\n\n public function __construct(?Profile $profile = null)\n {\n $this->profile = $profile;\n }\n\n public function setNoDefault(bool $noDefault)\n {\n $this->noDefault = $noDefault;\n }\n\n public function transform(Field $field): array\n {\n $defaultValue = $field->default_value;\n $type = $field->type;\n\n if (\\is_bool($defaultValue)) {\n $defaultValue = (bool) $defaultValue;\n }\n\n return [\n 'id' => $field->id_string,\n 'objectType' => $field->object_type,\n 'label' => $field->label,\n 'fieldName' => $field->crm_provider_id,\n 'type' => $type,\n 'enabled' => $field->is_selectable,\n 'length' => $field->length,\n 'defaultValue' => $defaultValue,\n ];\n }\n\n public function includeOptions(Field $field): ?Collection\n {\n if ($field->isPicklist()) {\n// if ($field->type === Field::TYPE_PICKLIST && $values = $field->values) {\n // This gets a little complex. We need to check if this field has any record type constraints for the profile.\n if (\n $this->profile\n && ($recordType = $this->profile->{$field->object_type . 'RecordType'})\n && $recordType->fieldValues()->where('crm_field_id', $field->id)->exists()\n ) {\n // Fetch the values specific for this record type.\n $values = $recordType->fieldValues()->where('crm_field_id', $field->id)->get();\n }\n\n if ($this->noDefault) {\n foreach ($values as $value) {\n $value->is_default = false;\n }\n }\n\n return $this->collection($values, new FieldValueTransformer());\n }\n\n return null;\n }\n}","depth":4,"on_screen":true,"value":"<?php\n\nnamespace Jiminny\\Http\\Transformers;\n\nuse Jiminny\\Models\\Crm\\Field;\nuse Jiminny\\Models\\Crm\\Profile;\nuse League\\Fractal\\Resource\\Collection;\nuse League\\Fractal\\TransformerAbstract;\n\nclass FieldTransformer extends TransformerAbstract\n{\n protected array $availableIncludes = [\n 'options',\n ];\n private ?Profile $profile;\n\n private bool $noDefault = false;\n\n public function __construct(?Profile $profile = null)\n {\n $this->profile = $profile;\n }\n\n public function setNoDefault(bool $noDefault)\n {\n $this->noDefault = $noDefault;\n }\n\n public function transform(Field $field): array\n {\n $defaultValue = $field->default_value;\n $type = $field->type;\n\n if (\\is_bool($defaultValue)) {\n $defaultValue = (bool) $defaultValue;\n }\n\n return [\n 'id' => $field->id_string,\n 'objectType' => $field->object_type,\n 'label' => $field->label,\n 'fieldName' => $field->crm_provider_id,\n 'type' => $type,\n 'enabled' => $field->is_selectable,\n 'length' => $field->length,\n 'defaultValue' => $defaultValue,\n ];\n }\n\n public function includeOptions(Field $field): ?Collection\n {\n if ($field->isPicklist()) {\n// if ($field->type === Field::TYPE_PICKLIST && $values = $field->values) {\n // This gets a little complex. We need to check if this field has any record type constraints for the profile.\n if (\n $this->profile\n && ($recordType = $this->profile->{$field->object_type . 'RecordType'})\n && $recordType->fieldValues()->where('crm_field_id', $field->id)->exists()\n ) {\n // Fetch the values specific for this record type.\n $values = $recordType->fieldValues()->where('crm_field_id', $field->id)->get();\n }\n\n if ($this->noDefault) {\n foreach ($values as $value) {\n $value->is_default = false;\n }\n }\n\n return $this->collection($values, new FieldValueTransformer());\n }\n\n return null;\n }\n}","role_description":"text entry area","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXStaticText","text":"A","depth":4,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"id","depth":5,"bounds":{"left":0.27027926,"top":1.0,"width":0.020944148,"height":0.0},"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"B","depth":4,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"uuid (UUID with time-low and time-high swapped)","depth":5,"bounds":{"left":0.27027926,"top":1.0,"width":0.020944148,"height":0.0},"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"C","depth":4,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"crm_configuration_id","depth":5,"bounds":{"left":0.27027926,"top":1.0,"width":0.020944148,"height":0.0},"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"D","depth":4,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"crm_provider_id","depth":5,"bounds":{"left":0.27027926,"top":1.0,"width":0.020944148,"height":0.0},"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"E","depth":4,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"label","depth":5,"bounds":{"left":0.27027926,"top":1.0,"width":0.020944148,"height":0.0},"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"F","depth":4,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"description","depth":5,"bounds":{"left":0.27027926,"top":1.0,"width":0.020944148,"height":0.0},"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"G","depth":4,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"type","depth":5,"bounds":{"left":0.27027926,"top":1.0,"width":0.020944148,"height":0.0},"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"H","depth":4,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"length","depth":5,"bounds":{"left":0.27027926,"top":1.0,"width":0.020944148,"height":0.0},"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"I","depth":4,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"default_value","depth":5,"bounds":{"left":0.27027926,"top":1.0,"width":0.020944148,"height":0.0},"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"J","depth":4,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"object_type","depth":5,"bounds":{"left":0.27027926,"top":1.0,"width":0.020944148,"height":0.0},"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"K","depth":4,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"is_selectable","depth":5,"bounds":{"left":0.27027926,"top":1.0,"width":0.020944148,"height":0.0},"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"L","depth":4,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"is_mandatory","depth":5,"bounds":{"left":0.27027926,"top":1.0,"width":0.020944148,"height":0.0},"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"M","depth":4,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"is_filterable","depth":5,"bounds":{"left":0.27027926,"top":1.0,"width":0.020944148,"height":0.0},"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"N","depth":4,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"is_indexable","depth":5,"bounds":{"left":0.27027926,"top":1.0,"width":0.020944148,"height":0.0},"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"O","depth":4,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"created_at","depth":5,"bounds":{"left":0.27027926,"top":1.0,"width":0.020944148,"height":0.0},"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"P","depth":4,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"updated_at","depth":5,"bounds":{"left":0.27027926,"top":1.0,"width":0.020944148,"height":0.0},"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"Q","depth":4,"on_screen":false,"role_description":"text"},{"role":"AXStaticText","text":"is_readonly","depth":5,"bounds":{"left":0.27027926,"top":1.0,"width":0.020944148,"height":0.0},"on_screen":false,"role_description":"text"},{"role":"AXButton","text":"Select All","depth":4,"bounds":{"left":0.41156915,"top":0.14365523,"width":0.007978723,"height":0.0207502},"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXCell","text":"1885","depth":6,"bounds":{"left":0.41988033,"top":0.16520351,"width":0.034242023,"height":0.0207502},"on_screen":true,"role_description":"cell"},{"role":"AXStaticText","text":"1885","depth":7,"bounds":{"left":0.41988033,"top":0.16520351,"width":0.034242023,"height":0.0207502},"on_screen":true,"role_description":"text"},{"role":"AXTextArea","text":"39","depth":8,"bounds":{"left":0.27027926,"top":1.0,"width":0.0787899,"height":0.0},"on_screen":false,"value":"39","role_description":"text entry area","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false}]...
|
453305664176875040
|
1598724501173006771
|
click
|
accessibility
|
NULL
|
Project: faVsco.js, menu
JY-20915-fix-missing-head Project: faVsco.js, menu
JY-20915-fix-missing-header-text-relay, menu
Start Listening for PHP Debug Connections
TextRelayServiceTest
Run 'TextRelayServiceTest'
Debug 'TextRelayServiceTest'
More Actions
JetBrains AI
Search Everywhere
IDE and Project Settings
Sync Changes
Hide This Notification
Code changed:
Hide
13
1
Previous Highlighted Error
Next Highlighted Error
<?php
namespace Jiminny\Http\Transformers;
use Jiminny\Models\Crm\Field;
use Jiminny\Models\Crm\Profile;
use League\Fractal\Resource\Collection;
use League\Fractal\TransformerAbstract;
class FieldTransformer extends TransformerAbstract
{
protected array $availableIncludes = [
'options',
];
private ?Profile $profile;
private bool $noDefault = false;
public function __construct(?Profile $profile = null)
{
$this->profile = $profile;
}
public function setNoDefault(bool $noDefault)
{
$this->noDefault = $noDefault;
}
public function transform(Field $field): array
{
$defaultValue = $field->default_value;
$type = $field->type;
if (\is_bool($defaultValue)) {
$defaultValue = (bool) $defaultValue;
}
return [
'id' => $field->id_string,
'objectType' => $field->object_type,
'label' => $field->label,
'fieldName' => $field->crm_provider_id,
'type' => $type,
'enabled' => $field->is_selectable,
'length' => $field->length,
'defaultValue' => $defaultValue,
];
}
public function includeOptions(Field $field): ?Collection
{
if ($field->isPicklist()) {
// if ($field->type === Field::TYPE_PICKLIST && $values = $field->values) {
// This gets a little complex. We need to check if this field has any record type constraints for the profile.
if (
$this->profile
&& ($recordType = $this->profile->{$field->object_type . 'RecordType'})
&& $recordType->fieldValues()->where('crm_field_id', $field->id)->exists()
) {
// Fetch the values specific for this record type.
$values = $recordType->fieldValues()->where('crm_field_id', $field->id)->get();
}
if ($this->noDefault) {
foreach ($values as $value) {
$value->is_default = false;
}
}
return $this->collection($values, new FieldValueTransformer());
}
return null;
}
}
A
id
B
uuid (UUID with time-low and time-high swapped)
C
crm_configuration_id
D
crm_provider_id
E
label
F
description
G
type
H
length
I
default_value
J
object_type
K
is_selectable
L
is_mandatory
M
is_filterable
N
is_indexable
O
created_at
P
updated_at
Q
is_readonly
Select All
1885
1885
39...
|
NULL
|
NULL
|
NULL
|
NULL
|
|
79710
|
2790
|
3
|
2026-05-28T06:39:39.574563+00:00
|
/Users/lukas/.screenpipe/data/data/2026-05-28/1779 /Users/lukas/.screenpipe/data/data/2026-05-28/1779950379574_m1.jpg...
|
PhpStorm
|
faVsco.js – FieldTransformer.php
|
1
|
NULL
|
monitor_1
|
NULL
|
NULL
|
NULL
|
NULL
|
Project: faVsco.js, menu
JY-20915-fix-missing-head Project: faVsco.js, menu
JY-20915-fix-missing-header-text-relay, menu
Start Listening for PHP Debug Connections
TextRelayServiceTest
Run 'TextRelayServiceTest'
Debug 'TextRelayServiceTest'
More Actions
JetBrains AI
Search Everywhere
IDE and Project Settings
Sync Changes
Hide This Notification
Code changed:
Hide
13
1
Previous Highlighted Error
Next Highlighted Error
<?php
namespace Jiminny\Http\Transformers;
use Jiminny\Models\Crm\Field;
use Jiminny\Models\Crm\Profile;
use League\Fractal\Resource\Collection;
use League\Fractal\TransformerAbstract;
class FieldTransformer extends TransformerAbstract
{
protected array $availableIncludes = [
'options',
];
private ?Profile $profile;
private bool $noDefault = false;
public function __construct(?Profile $profile = null)
{
$this->profile = $profile;
}
public function setNoDefault(bool $noDefault)
{
$this->noDefault = $noDefault;
}
public function transform(Field $field): array
{
$defaultValue = $field->default_value;
$type = $field->type;
if (\is_bool($defaultValue)) {
$defaultValue = (bool) $defaultValue;
}
return [
'id' => $field->id_string,
'objectType' => $field->object_type,
'label' => $field->label,
'fieldName' => $field->crm_provider_id,
'type' => $type,
'enabled' => $field->is_selectable,
'length' => $field->length,
'defaultValue' => $defaultValue,
];
}
public function includeOptions(Field $field): ?Collection
{
if ($field->isPicklist()) {
// if ($field->type === Field::TYPE_PICKLIST && $values = $field->values) {
// This gets a little complex. We need to check if this field has any record type constraints for the profile.
if (
$this->profile
&& ($recordType = $this->profile->{$field->object_type . 'RecordType'})
&& $recordType->fieldValues()->where('crm_field_id', $field->id)->exists()
) {
// Fetch the values specific for this record type.
$values = $recordType->fieldValues()->where('crm_field_id', $field->id)->get();
}
if ($this->noDefault) {
foreach ($values as $value) {
$value->is_default = false;
}
}
return $this->collection($values, new FieldValueTransformer());
}
return null;
}
}...
|
[{"role":"AXButton","text" [{"role":"AXButton","text":"Project: faVsco.js, menu","depth":5,"on_screen":true,"help_text":"~/jiminny/app","role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"JY-20915-fix-missing-header-text-relay, menu","depth":5,"on_screen":true,"help_text":"Git Branch: JY-20915-fix-missing-header-text-relay","role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Start Listening for PHP Debug Connections","depth":5,"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"TextRelayServiceTest","depth":6,"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Run 'TextRelayServiceTest'","depth":6,"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Debug 'TextRelayServiceTest'","depth":6,"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"More Actions","depth":6,"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"JetBrains AI","depth":5,"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Search Everywhere","depth":5,"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"IDE and Project Settings","depth":5,"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Sync Changes","depth":4,"bounds":{"left":0.0,"top":0.0,"width":0.018055556,"height":0.026666667},"on_screen":false,"role_description":"button","is_enabled":false,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Hide This Notification","depth":4,"bounds":{"left":0.0,"top":0.0,"width":0.018055556,"height":0.026666667},"on_screen":false,"role_description":"button","is_enabled":false,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Code changed:","depth":4,"bounds":{"left":0.0,"top":0.0,"width":0.088194445,"height":0.027777778},"on_screen":false,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Hide","depth":4,"bounds":{"left":0.0,"top":0.0,"width":0.018055556,"height":0.026666667},"on_screen":false,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXStaticText","text":"13","depth":4,"on_screen":true,"role_description":"text"},{"role":"AXStaticText","text":"1","depth":4,"on_screen":true,"role_description":"text"},{"role":"AXButton","text":"Previous Highlighted Error","depth":4,"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXButton","text":"Next Highlighted Error","depth":4,"on_screen":true,"role_description":"button","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false},{"role":"AXTextArea","text":"<?php\n\nnamespace Jiminny\\Http\\Transformers;\n\nuse Jiminny\\Models\\Crm\\Field;\nuse Jiminny\\Models\\Crm\\Profile;\nuse League\\Fractal\\Resource\\Collection;\nuse League\\Fractal\\TransformerAbstract;\n\nclass FieldTransformer extends TransformerAbstract\n{\n protected array $availableIncludes = [\n 'options',\n ];\n private ?Profile $profile;\n\n private bool $noDefault = false;\n\n public function __construct(?Profile $profile = null)\n {\n $this->profile = $profile;\n }\n\n public function setNoDefault(bool $noDefault)\n {\n $this->noDefault = $noDefault;\n }\n\n public function transform(Field $field): array\n {\n $defaultValue = $field->default_value;\n $type = $field->type;\n\n if (\\is_bool($defaultValue)) {\n $defaultValue = (bool) $defaultValue;\n }\n\n return [\n 'id' => $field->id_string,\n 'objectType' => $field->object_type,\n 'label' => $field->label,\n 'fieldName' => $field->crm_provider_id,\n 'type' => $type,\n 'enabled' => $field->is_selectable,\n 'length' => $field->length,\n 'defaultValue' => $defaultValue,\n ];\n }\n\n public function includeOptions(Field $field): ?Collection\n {\n if ($field->isPicklist()) {\n// if ($field->type === Field::TYPE_PICKLIST && $values = $field->values) {\n // This gets a little complex. We need to check if this field has any record type constraints for the profile.\n if (\n $this->profile\n && ($recordType = $this->profile->{$field->object_type . 'RecordType'})\n && $recordType->fieldValues()->where('crm_field_id', $field->id)->exists()\n ) {\n // Fetch the values specific for this record type.\n $values = $recordType->fieldValues()->where('crm_field_id', $field->id)->get();\n }\n\n if ($this->noDefault) {\n foreach ($values as $value) {\n $value->is_default = false;\n }\n }\n\n return $this->collection($values, new FieldValueTransformer());\n }\n\n return null;\n }\n}","depth":4,"on_screen":true,"value":"<?php\n\nnamespace Jiminny\\Http\\Transformers;\n\nuse Jiminny\\Models\\Crm\\Field;\nuse Jiminny\\Models\\Crm\\Profile;\nuse League\\Fractal\\Resource\\Collection;\nuse League\\Fractal\\TransformerAbstract;\n\nclass FieldTransformer extends TransformerAbstract\n{\n protected array $availableIncludes = [\n 'options',\n ];\n private ?Profile $profile;\n\n private bool $noDefault = false;\n\n public function __construct(?Profile $profile = null)\n {\n $this->profile = $profile;\n }\n\n public function setNoDefault(bool $noDefault)\n {\n $this->noDefault = $noDefault;\n }\n\n public function transform(Field $field): array\n {\n $defaultValue = $field->default_value;\n $type = $field->type;\n\n if (\\is_bool($defaultValue)) {\n $defaultValue = (bool) $defaultValue;\n }\n\n return [\n 'id' => $field->id_string,\n 'objectType' => $field->object_type,\n 'label' => $field->label,\n 'fieldName' => $field->crm_provider_id,\n 'type' => $type,\n 'enabled' => $field->is_selectable,\n 'length' => $field->length,\n 'defaultValue' => $defaultValue,\n ];\n }\n\n public function includeOptions(Field $field): ?Collection\n {\n if ($field->isPicklist()) {\n// if ($field->type === Field::TYPE_PICKLIST && $values = $field->values) {\n // This gets a little complex. We need to check if this field has any record type constraints for the profile.\n if (\n $this->profile\n && ($recordType = $this->profile->{$field->object_type . 'RecordType'})\n && $recordType->fieldValues()->where('crm_field_id', $field->id)->exists()\n ) {\n // Fetch the values specific for this record type.\n $values = $recordType->fieldValues()->where('crm_field_id', $field->id)->get();\n }\n\n if ($this->noDefault) {\n foreach ($values as $value) {\n $value->is_default = false;\n }\n }\n\n return $this->collection($values, new FieldValueTransformer());\n }\n\n return null;\n }\n}","role_description":"text entry area","is_enabled":true,"is_focused":false,"is_selected":false,"is_expanded":false}]...
|
2381153844778653336
|
2172124144386250929
|
click
|
accessibility
|
NULL
|
Project: faVsco.js, menu
JY-20915-fix-missing-head Project: faVsco.js, menu
JY-20915-fix-missing-header-text-relay, menu
Start Listening for PHP Debug Connections
TextRelayServiceTest
Run 'TextRelayServiceTest'
Debug 'TextRelayServiceTest'
More Actions
JetBrains AI
Search Everywhere
IDE and Project Settings
Sync Changes
Hide This Notification
Code changed:
Hide
13
1
Previous Highlighted Error
Next Highlighted Error
<?php
namespace Jiminny\Http\Transformers;
use Jiminny\Models\Crm\Field;
use Jiminny\Models\Crm\Profile;
use League\Fractal\Resource\Collection;
use League\Fractal\TransformerAbstract;
class FieldTransformer extends TransformerAbstract
{
protected array $availableIncludes = [
'options',
];
private ?Profile $profile;
private bool $noDefault = false;
public function __construct(?Profile $profile = null)
{
$this->profile = $profile;
}
public function setNoDefault(bool $noDefault)
{
$this->noDefault = $noDefault;
}
public function transform(Field $field): array
{
$defaultValue = $field->default_value;
$type = $field->type;
if (\is_bool($defaultValue)) {
$defaultValue = (bool) $defaultValue;
}
return [
'id' => $field->id_string,
'objectType' => $field->object_type,
'label' => $field->label,
'fieldName' => $field->crm_provider_id,
'type' => $type,
'enabled' => $field->is_selectable,
'length' => $field->length,
'defaultValue' => $defaultValue,
];
}
public function includeOptions(Field $field): ?Collection
{
if ($field->isPicklist()) {
// if ($field->type === Field::TYPE_PICKLIST && $values = $field->values) {
// This gets a little complex. We need to check if this field has any record type constraints for the profile.
if (
$this->profile
&& ($recordType = $this->profile->{$field->object_type . 'RecordType'})
&& $recordType->fieldValues()->where('crm_field_id', $field->id)->exists()
) {
// Fetch the values specific for this record type.
$values = $recordType->fieldValues()->where('crm_field_id', $field->id)->get();
}
if ($this->noDefault) {
foreach ($values as $value) {
$value->is_default = false;
}
}
return $this->collection($values, new FieldValueTransformer());
}
return null;
}
}...
|
79708
|
NULL
|
NULL
|
NULL
|