UI: заглушки уведомлений и правило intake в AGENTS

This commit is contained in:
AidarKC
2026-05-14 13:32:53 +03:00
parent b8b33696ec
commit e73e103ac4
4 changed files with 50 additions and 10 deletions
+17 -8
View File
@@ -1,20 +1,29 @@
import { renderHeader } from '../components/header.js';
import { notifications } from '../mock-data.js';
import { state } from '../state.js';
export const pageMeta = { id: 'notifications-view', title: 'Уведомления' };
function renderList(container) {
const active = state.notificationsTab;
const items = notifications[active] || [];
container.innerHTML = '';
const card = document.createElement('article');
card.className = 'card stack';
items.forEach((item) => {
const card = document.createElement('article');
card.className = 'card stack';
card.innerHTML = `<strong>${item.title}</strong><p class="meta-muted">${item.text}</p><p class="meta-muted">${item.time}</p>`;
container.append(card);
});
const title = document.createElement('strong');
title.textContent = active === 'events' ? 'События в разработке' : 'Ответы в разработке';
const description = document.createElement('p');
description.className = 'meta-muted';
description.textContent = active === 'events'
? 'Здесь будут отображаться события: кто подписался на вас, куда вас добавили, кто поставил лайк и другие действия.'
: 'Здесь будут отображаться ответы и комментарии на ваши сообщения в публичных каналах.';
const note = document.createElement('p');
note.className = 'meta-muted';
note.textContent = 'Раздел находится в разработке. Функционал будет добавлен в следующих обновлениях.';
card.append(title, description, note);
container.append(card);
}
export function render() {