mirror of
https://codeberg.org/PostERG/xamxam.git
synced 2026-06-25 16:19:19 +02:00
Error tests, FK violations fix
- ErrorHandler tests: 77 assertions covering FK extraction, normalization, dedup, edge cases. Fix FK table map for child tables. - Fix FK violation: (int)null → 0 in createThesis for orientation/ap/finality/license FK columns. Add FK value logging to updateThesis. - Add CURRENT_ISSUES.md with summary of FK violation, dev debugging, and tag dedup status for next conversation
This commit is contained in:
@@ -1006,3 +1006,216 @@ a.recap-file-name:hover {
|
||||
.btn-secondary {
|
||||
/* deprecated alias for .btn--secondary; kept for backward-compat */
|
||||
}
|
||||
|
||||
/* ── Tag search (mots-clés interactive component) ──────────────────────── */
|
||||
|
||||
/* The outer container may be placed inside a fieldset or as a direct child
|
||||
of .admin-form. Use a generic vertical layout that works in both contexts. */
|
||||
[id$="-search-container"] {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: var(--space-2xs);
|
||||
}
|
||||
|
||||
[id$="-search-container"] > .admin-row-label {
|
||||
font-size: var(--step--1);
|
||||
padding-top: 0;
|
||||
font-weight: 400;
|
||||
}
|
||||
|
||||
.tag-search-wrapper {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: var(--space-2xs);
|
||||
position: relative;
|
||||
}
|
||||
|
||||
/* Hint text above input */
|
||||
.tag-search-hint {
|
||||
display: block;
|
||||
font-size: var(--step--2);
|
||||
color: var(--text-secondary);
|
||||
margin-bottom: var(--space-3xs);
|
||||
}
|
||||
|
||||
/* Counter (e.g. "3/10") */
|
||||
.tag-search-counter {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: var(--space-2xs);
|
||||
font-size: var(--step--2);
|
||||
}
|
||||
|
||||
.tag-search-count {
|
||||
font-weight: 600;
|
||||
color: var(--accent-primary);
|
||||
background: var(--accent-muted, rgba(149, 87, 181, 0.1));
|
||||
padding: 1px var(--space-2xs);
|
||||
border-radius: var(--radius);
|
||||
}
|
||||
|
||||
.tag-search-max-msg {
|
||||
color: var(--text-tertiary);
|
||||
font-style: italic;
|
||||
}
|
||||
|
||||
/* Pill row — spacing around selected tags area */
|
||||
.tag-search-pills {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
gap: var(--space-2xs);
|
||||
min-height: 0;
|
||||
padding: var(--space-2xs) 0;
|
||||
}
|
||||
|
||||
.tag-search-pills:empty {
|
||||
padding: 0;
|
||||
display: none;
|
||||
}
|
||||
|
||||
/* Individual pill */
|
||||
.tag-pill {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
gap: var(--space-3xs);
|
||||
padding: 2px 2px 2px var(--space-2xs);
|
||||
background: var(--bg-secondary);
|
||||
border: 1px solid var(--border-primary);
|
||||
border-radius: 999px;
|
||||
font-size: var(--step--1);
|
||||
line-height: 1.4;
|
||||
white-space: nowrap;
|
||||
transition: border-color 0.15s;
|
||||
}
|
||||
|
||||
.tag-pill:hover {
|
||||
border-color: var(--accent-primary);
|
||||
}
|
||||
|
||||
.tag-pill-name {
|
||||
color: var(--text-primary);
|
||||
}
|
||||
|
||||
/* Round remove button */
|
||||
.tag-pill-remove {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
width: 22px;
|
||||
height: 22px;
|
||||
padding: 0;
|
||||
border: none;
|
||||
border-radius: 50%;
|
||||
background: transparent;
|
||||
color: var(--text-tertiary);
|
||||
cursor: pointer;
|
||||
flex-shrink: 0;
|
||||
transition: background 0.15s, color 0.15s;
|
||||
}
|
||||
|
||||
.tag-pill-remove:hover {
|
||||
background: var(--error);
|
||||
color: #fff;
|
||||
}
|
||||
|
||||
.tag-pill-remove svg {
|
||||
width: 14px;
|
||||
height: 14px;
|
||||
}
|
||||
|
||||
/* Search input */
|
||||
.tag-search-input-wrap {
|
||||
display: flex;
|
||||
}
|
||||
|
||||
.tag-search-input {
|
||||
width: 100%;
|
||||
font-size: var(--step--1);
|
||||
font-family: inherit;
|
||||
}
|
||||
|
||||
/* Suggestions dropdown — absolute positioned to hover above content */
|
||||
.tag-search-suggestions {
|
||||
position: absolute;
|
||||
top: 100%;
|
||||
left: 0;
|
||||
right: 0;
|
||||
z-index: 100;
|
||||
background: var(--bg-primary);
|
||||
border: 1px solid var(--border-primary);
|
||||
border-radius: var(--radius);
|
||||
box-shadow: 0 4px 16px rgba(0,0,0,0.12);
|
||||
max-height: 220px;
|
||||
overflow-y: auto;
|
||||
display: none;
|
||||
margin-top: 2px;
|
||||
}
|
||||
|
||||
.tag-search-suggestions:not(:empty) {
|
||||
display: block;
|
||||
}
|
||||
|
||||
.tag-search-empty {
|
||||
padding: var(--space-2xs) var(--space-xs);
|
||||
font-size: var(--step--2);
|
||||
color: var(--text-tertiary);
|
||||
pointer-events: none;
|
||||
}
|
||||
|
||||
/* Individual suggestion item */
|
||||
.tag-search-item {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: var(--space-2xs);
|
||||
width: 100%;
|
||||
padding: var(--space-2xs) var(--space-xs);
|
||||
background: transparent;
|
||||
border: none;
|
||||
border-bottom: 1px solid var(--border-primary);
|
||||
font-family: inherit;
|
||||
font-size: var(--step--1);
|
||||
cursor: pointer;
|
||||
text-align: left;
|
||||
color: var(--text-primary);
|
||||
transition: background 0.1s;
|
||||
}
|
||||
|
||||
.tag-search-item:last-child {
|
||||
border-bottom: none;
|
||||
}
|
||||
|
||||
.tag-search-item:hover,
|
||||
.tag-search-item:focus,
|
||||
.tag-search-item--highlight {
|
||||
background: var(--bg-secondary);
|
||||
outline: none;
|
||||
}
|
||||
|
||||
.tag-search-item--highlight {
|
||||
background: var(--accent-muted, rgba(149, 87, 181, 0.1));
|
||||
}
|
||||
|
||||
.tag-search-item-name {
|
||||
flex: 1;
|
||||
min-width: 0;
|
||||
white-space: nowrap;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
}
|
||||
|
||||
.tag-search-item-count {
|
||||
font-size: var(--step--2);
|
||||
color: var(--text-tertiary);
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
.tag-search-item--create {
|
||||
color: var(--accent-primary);
|
||||
font-weight: 500;
|
||||
border-bottom-style: dashed;
|
||||
}
|
||||
|
||||
.tag-search-item--create:hover,
|
||||
.tag-search-item--create.tag-search-item--highlight {
|
||||
background: var(--accent-muted, rgba(149, 87, 181, 0.08));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user