Private
Public Access
Implements FilterRule (one condition -> action, scoped to a feed and/or folder or global) with an evaluation engine applied at ingest time: after the fetch pipeline commits new/updated articles, each affected subscriber's enabled rules run in priority order against them, with tag/star/mark_read actions stacking and hide short-circuiting further evaluation for that article. Adds rule management (create/edit/delete) and a "Re-apply" action that re-evaluates a user's full ruleset against their unread backlog, scoped by the triggering rule's own feed/folder — so a newly added rule can retroactively affect already-ingested articles, not just future ones. Verified live in-browser: created a "title contains 'Show HN' -> star" rule scoped to the subscribed Hacker News feed, re-applied it against the existing unread backlog, and confirmed both matching articles were starred. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
263 lines
3.8 KiB
CSS
263 lines
3.8 KiB
CSS
:root {
|
|
color-scheme: light dark;
|
|
font-family: system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
|
|
}
|
|
|
|
body {
|
|
margin: 0;
|
|
padding: 1rem;
|
|
max-width: 48rem;
|
|
margin-inline: auto;
|
|
}
|
|
|
|
.messages {
|
|
list-style: none;
|
|
padding: 0;
|
|
}
|
|
|
|
.message {
|
|
padding: 0.5rem 0.75rem;
|
|
border-radius: 0.375rem;
|
|
margin-bottom: 0.5rem;
|
|
}
|
|
|
|
.message-success { background: #d1fae5; color: #065f46; }
|
|
.message-error { background: #fee2e2; color: #991b1b; }
|
|
.message-warning { background: #fef3c7; color: #92400e; }
|
|
.message-info { background: #dbeafe; color: #1e40af; }
|
|
|
|
form p {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 0.25rem;
|
|
}
|
|
|
|
input, button {
|
|
font-size: 1rem;
|
|
padding: 0.5rem;
|
|
}
|
|
|
|
.stream-header {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
flex-wrap: wrap;
|
|
gap: 0.5rem;
|
|
}
|
|
|
|
.top-nav a {
|
|
margin-left: 1rem;
|
|
}
|
|
|
|
.filter-tabs {
|
|
display: flex;
|
|
gap: 0.5rem;
|
|
margin: 1rem 0;
|
|
border-bottom: 1px solid #ddd;
|
|
}
|
|
|
|
.filter-tabs a {
|
|
padding: 0.5rem 0.75rem;
|
|
text-decoration: none;
|
|
color: inherit;
|
|
border-bottom: 2px solid transparent;
|
|
}
|
|
|
|
.filter-tabs a.active {
|
|
border-bottom-color: currentColor;
|
|
font-weight: 600;
|
|
}
|
|
|
|
.article-list {
|
|
list-style: none;
|
|
padding: 0;
|
|
margin: 0;
|
|
}
|
|
|
|
.article-row {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
gap: 0.75rem;
|
|
padding: 0.75rem 0;
|
|
border-bottom: 1px solid #eee;
|
|
flex-wrap: wrap;
|
|
}
|
|
|
|
.article-row.is-read .article-title {
|
|
opacity: 0.55;
|
|
}
|
|
|
|
.article-row-main {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 0.15rem;
|
|
min-width: 0;
|
|
flex: 1;
|
|
}
|
|
|
|
.article-title {
|
|
font-weight: 600;
|
|
text-decoration: none;
|
|
color: inherit;
|
|
}
|
|
|
|
.article-meta {
|
|
font-size: 0.85rem;
|
|
opacity: 0.65;
|
|
}
|
|
|
|
.article-actions {
|
|
display: flex;
|
|
gap: 0.35rem;
|
|
flex-wrap: nowrap;
|
|
}
|
|
|
|
.icon-btn {
|
|
background: none;
|
|
border: 1px solid #ccc;
|
|
border-radius: 0.375rem;
|
|
cursor: pointer;
|
|
padding: 0.35rem 0.6rem;
|
|
font-size: 0.9rem;
|
|
}
|
|
|
|
.icon-btn.active {
|
|
background: #fde68a;
|
|
border-color: #f59e0b;
|
|
}
|
|
|
|
.pagination {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
margin: 1rem 0;
|
|
}
|
|
|
|
.empty-state {
|
|
opacity: 0.6;
|
|
padding: 2rem 0;
|
|
text-align: center;
|
|
}
|
|
|
|
.tag-tabs {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: 0.4rem;
|
|
margin-bottom: 1rem;
|
|
}
|
|
|
|
.tag-pill {
|
|
--tag-color: #6b7280;
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 0.3rem;
|
|
padding: 0.2rem 0.6rem;
|
|
border-radius: 999px;
|
|
border: 1px solid var(--tag-color);
|
|
color: var(--tag-color);
|
|
text-decoration: none;
|
|
font-size: 0.85rem;
|
|
}
|
|
|
|
.tag-pill.active {
|
|
background: var(--tag-color);
|
|
color: #111;
|
|
}
|
|
|
|
.tag-remove {
|
|
background: none;
|
|
border: none;
|
|
color: inherit;
|
|
cursor: pointer;
|
|
padding: 0;
|
|
font-size: 1rem;
|
|
line-height: 1;
|
|
}
|
|
|
|
.article-tags {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
align-items: center;
|
|
gap: 0.4rem;
|
|
margin: 1rem 0;
|
|
}
|
|
|
|
.add-tag-form {
|
|
display: inline-flex;
|
|
gap: 0.3rem;
|
|
}
|
|
|
|
.add-tag-form input {
|
|
padding: 0.25rem 0.5rem;
|
|
font-size: 0.85rem;
|
|
width: 8rem;
|
|
}
|
|
|
|
.tag-manage-list {
|
|
list-style: none;
|
|
padding: 0;
|
|
}
|
|
|
|
.tag-manage-list li {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 0.75rem;
|
|
padding: 0.5rem 0;
|
|
border-bottom: 1px solid #eee;
|
|
}
|
|
|
|
.inline-form {
|
|
display: inline;
|
|
}
|
|
|
|
.rule-list {
|
|
list-style: none;
|
|
padding: 0;
|
|
}
|
|
|
|
.rule-row {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
gap: 1rem;
|
|
padding: 0.75rem 0;
|
|
border-bottom: 1px solid #eee;
|
|
flex-wrap: wrap;
|
|
}
|
|
|
|
.rule-row.is-disabled {
|
|
opacity: 0.5;
|
|
}
|
|
|
|
.rule-summary {
|
|
font-size: 0.85rem;
|
|
opacity: 0.75;
|
|
}
|
|
|
|
.rule-actions {
|
|
display: flex;
|
|
gap: 0.35rem;
|
|
}
|
|
|
|
.article-content {
|
|
line-height: 1.6;
|
|
margin-top: 1rem;
|
|
overflow-wrap: break-word;
|
|
word-break: break-word;
|
|
}
|
|
|
|
.article-content a {
|
|
overflow-wrap: anywhere;
|
|
}
|
|
|
|
.article-content img {
|
|
max-width: 100%;
|
|
}
|
|
|
|
@media (max-width: 480px) {
|
|
.article-row {
|
|
flex-direction: column;
|
|
align-items: flex-start;
|
|
}
|
|
}
|