Feat: Highlight cards with important labels

Signed-off-by: Kostiantyn Miakshyn <molodchick@gmail.com>
This commit is contained in:
Kostiantyn Miakshyn
2025-09-07 16:58:30 +02:00
parent 4a879ab1fb
commit bbe72b93d9
14 changed files with 186 additions and 41 deletions

View File

@@ -45,11 +45,13 @@ class LabelTest extends TestCase {
'lastModified' => null,
'color' => '000000',
'ETag' => $label->getETag(),
'customSettings' => new \stdClass(),
], $label->jsonSerialize());
}
public function testJsonSerializeCard() {
$label = $this->createLabel();
$label->setCardId(123);
$label->setCustomSettingsArray(['isImportant' => true]);
$this->assertEquals([
'id' => 1,
'title' => 'My Label',
@@ -58,6 +60,7 @@ class LabelTest extends TestCase {
'lastModified' => null,
'color' => '000000',
'ETag' => $label->getETag(),
'customSettings' => ['isImportant' => true]
], $label->jsonSerialize());
}
}