'use client' import { useState } from 'react' import { MainLayout } from '@/components/layout/MainLayout' import { Search } from 'lucide-react' const updates = [ { version: '2.0.0', date: 'Mar 15, 2024', type: 'Major Release', title: 'AI-Powered Analytics 2.0', description: 'A complete overhaul of our analytics engine with improved AI capabilities.', changes: [ 'New machine learning models for better predictions', 'Redesigned dashboard interface', 'Advanced data visualization options', 'Improved performance and scalability', ], }, { version: '1.9.0', date: 'Mar 1, 2024', type: 'Feature', title: 'Enhanced Team Collaboration', description: 'New features to improve team productivity and communication.', changes: [ 'Real-time dashboard sharing', 'Comment threads on reports', 'Team activity timeline', 'Improved notification system', ], }, { version: '1.8.5', date: 'Feb 15, 2024', type: 'Bug Fix', title: 'Performance Improvements', description: 'Various bug fixes and performance enhancements.', changes: [ 'Fixed data loading issues', 'Improved chart rendering speed', 'Memory optimization', 'Better error handling', ], }, ] const filterOptions = ['All', 'Major Release', 'Feature', 'Bug Fix'] export default function ChangelogPage() { const [searchQuery, setSearchQuery] = useState('') const [selectedFilter, setSelectedFilter] = useState('All') const filteredUpdates = updates.filter((update) => { const matchesSearch = update.title .toLowerCase() .includes(searchQuery.toLowerCase()) const matchesFilter = selectedFilter === 'All' || update.type === selectedFilter return matchesSearch && matchesFilter }) return (

Product Updates

Stay up to date with the latest features and improvements.

{/* Search and filters */}
setSearchQuery(e.target.value)} className="w-full rounded-md border pl-10 pr-4 py-2 text-sm" />
{filterOptions.map((filter) => ( ))}
{/* Timeline */}
{filteredUpdates.map((update, index) => (
v{update.version} {update.type}

{update.title}

{update.description}

    {update.changes.map((change) => (
  • {change}
  • ))}
))}
) }