Always show type badge; make it clickable to navigate to that type

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-05-24 16:23:45 +00:00
parent 7d8dcf85ce
commit b0af84607f
2 changed files with 7 additions and 6 deletions

View File

@@ -258,13 +258,12 @@ function make_entry_row(entry, children_map) {
set_text(row, '.task-id', `#${entry.id}`);
// Type chip — only shown in "All" view
// Type chip — always shown, clickable to navigate to that type
const type_chip = row.querySelector('.entry-type-chip');
if (!state.active_type) {
const et = state.entry_types.find(t => t.id === entry.type);
type_chip.textContent = et ? et.title : entry.type;
show(type_chip);
}
const et = state.entry_types.find(t => t.id === entry.type);
type_chip.textContent = et ? et.title : entry.type;
type_chip.addEventListener('click', (e) => { e.stopPropagation(); navigate('type/' + entry.type); });
show(type_chip);
const status_el = row.querySelector('.task-status');
status_el.textContent = entry.status;
@@ -757,6 +756,7 @@ function render_entry_detail(container) {
const type_chip = document.createElement('span');
type_chip.className = 'entry-type-chip';
type_chip.textContent = et.title;
type_chip.addEventListener('click', () => navigate('type/' + entry.type));
meta.appendChild(type_chip);
}

View File

@@ -448,6 +448,7 @@ dialog input:focus, dialog textarea:focus, dialog select:focus {
margin-bottom: 0.2rem;
display: inline-block;
width: fit-content;
cursor: pointer;
}
/* Type section in entry dialog */