diff --git a/news-app/.claude/settings.local.json b/news-app/.claude/settings.local.json index 3538060..3f50a24 100644 --- a/news-app/.claude/settings.local.json +++ b/news-app/.claude/settings.local.json @@ -17,7 +17,11 @@ "Bash(systemctl list-units:*)", "Bash(sudo systemctl restart:*)", "Bash(sudo nginx:*)", - "Bash(sudo systemctl reload:*)" + "Bash(sudo systemctl reload:*)", + "Bash(sudo systemctl status:*)", + "Bash(git add:*)", + "Bash(git commit:*)", + "Bash(git push)" ] } } diff --git a/news-app/src/main.js b/news-app/src/main.js index 16d59ce..53be35a 100644 --- a/news-app/src/main.js +++ b/news-app/src/main.js @@ -357,7 +357,6 @@ function render() { : state.articles.filter(a => a.source === state.filter) const spinClass = state.loading ? 'animate-spin' : '' - const sources = [...new Set(state.articles.map(a => a.source))] let content = '' if (state.loading) { @@ -379,15 +378,11 @@ function render() { const regularBtnClass = state.viewMode === 'regular' ? 'bg-gray-900 text-white' : 'bg-gray-100 text-gray-700 hover:bg-gray-200' const aiBtnClass = state.viewMode === 'ai' ? 'bg-blue-600 text-white' : 'bg-blue-100 text-blue-700 hover:bg-blue-200' - const filterButtons = state.viewMode === 'regular' ? ` - - ${sources.map(source => ``).join('')} - ` : '' - app.innerHTML = `
-
+
+

News Feed

${state.viewMode === 'ai' ? 'AI-grouped summaries from multiple sources' : 'Latest headlines from multiple sources'}

@@ -397,20 +392,21 @@ function render() {
- ${filterButtons} ${state.viewMode === 'ai' ? `` : ''} -
+
+ - -
+
${content}