Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions docs/data-quality-checks/unique/examples.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,9 @@ Three real-world scenarios that show how the Unique check is typically used in p

| customer_id | name | email |
|-------------|-------------|------------------------|
| 1001 | Alice Cohen | alice@example.com |
| <span class="anomalous-cell">1001</span> | <span class="anomalous-cell">Alice Cohen</span> | <span class="anomalous-cell">alice@example.com</span> |
| 1002 | Ben Dias | ben@example.com |
| <span class="text-negative">1001</span> | <span class="text-negative">Alice C.</span> | <span class="text-negative">alice.c@example.com</span> |
| <span class="anomalous-cell">1001</span> | <span class="anomalous-cell">Alice C.</span> | <span class="anomalous-cell">alice.c@example.com</span> |
| 1003 | Cara Mota | cara@example.com |

**What gets flagged**
Expand Down Expand Up @@ -129,9 +129,9 @@ Three real-world scenarios that show how the Unique check is typically used in p

| order_id | line_number | sku | quantity |
|----------|-------------|--------|----------|
| 5001 | 1 | SKU-A | 2 |
| <span class="anomalous-cell">5001</span> | <span class="anomalous-cell">1</span> | <span class="anomalous-cell">SKU-A</span> | <span class="anomalous-cell">2</span> |
| 5001 | 2 | SKU-B | 1 |
| <span class="text-negative">5001</span> | <span class="text-negative">1</span> | <span class="text-negative">SKU-C</span> | <span class="text-negative">3</span> |
| <span class="anomalous-cell">5001</span> | <span class="anomalous-cell">1</span> | <span class="anomalous-cell">SKU-C</span> | <span class="anomalous-cell">3</span> |
| 5002 | 1 | SKU-A | 1 |

**What gets flagged**
Expand Down Expand Up @@ -216,9 +216,9 @@ Three real-world scenarios that show how the Unique check is typically used in p

| user_id | event_type | event_date | event_id |
|---------|------------|------------|------------|
| u-77 | login | today | e-001 |
| <span class="anomalous-cell">u-77</span> | <span class="anomalous-cell">login</span> | <span class="anomalous-cell">today</span> | <span class="anomalous-cell">e-001</span> |
| u-77 | checkout | today | e-002 |
| <span class="text-negative">u-77</span> | <span class="text-negative">login</span> | <span class="text-negative">today</span> | <span class="text-negative">e-003</span> |
| <span class="anomalous-cell">u-77</span> | <span class="anomalous-cell">login</span> | <span class="anomalous-cell">today</span> | <span class="anomalous-cell">e-003</span> |
| u-88 | login | today | e-004 |

**What gets flagged**
Expand Down
13 changes: 13 additions & 0 deletions docs/stylesheets/extra.css
Original file line number Diff line number Diff line change
Expand Up @@ -955,6 +955,19 @@
color: var(--q-brick);
}

/* Mirrors the source-records anomalous-cell treatment in the Qualytics app:
orange outline + warning-tinted background on cells whose value failed a check.
Use inside markdown table cells to mark a single value as anomalous. */
.anomalous-cell {
display: inline-block;
padding: 0.05rem 0.4rem;
border: 1px solid var(--q-orange);
border-radius: 4px;
background-color: rgba(249, 103, 25, 0.12);
color: var(--q-brick);
font-weight: 500;
}

.text-sm {
font-size: 0.7rem;
}
Expand Down
Loading