remove live tab
Some checks failed
Deploy MyApp on Same Server / build-and-deploy (push) Has been cancelled
Some checks failed
Deploy MyApp on Same Server / build-and-deploy (push) Has been cancelled
This commit is contained in:
@@ -8,7 +8,7 @@ import { TABS, TabType } from '@/features/daily-report'
|
||||
import { detectDataGaps } from '@/features/daily-report/utils'
|
||||
import { BarChart3, CalendarIcon, ChevronRight } from 'lucide-react'
|
||||
import Loading from '@/components/Loading'
|
||||
import { SummaryTab, LiveSummaryCards } from '@/components/daily-report'
|
||||
import { SummaryTab } from '@/components/daily-report'
|
||||
import { fetchForecastWeather, isToday as checkIsToday, WeatherData } from '@/features/weather'
|
||||
import { Tabs, Button } from '@/components/common'
|
||||
import { DateNavigation } from '@/components/navigation'
|
||||
@@ -303,15 +303,6 @@ function DailyReportContent() {
|
||||
>
|
||||
{{
|
||||
summary: <SummaryTab temperature={temp} humidity={hum} soil={soil} gas={gas} lux={lux} forecastWeather={forecastWeather} forecastWeatherLoading={forecastWeatherLoading} onCardClick={handleCardClick} visibleParams={visibleParams} powerOutageSummary={powerOutageSummary} powerOutageLoading={powerOutageLoading} />,
|
||||
live: <LiveSummaryCards
|
||||
temperature={latestValues.temperature}
|
||||
humidity={latestValues.humidity}
|
||||
soil={latestValues.soil}
|
||||
gas={latestValues.gas}
|
||||
lux={latestValues.lux}
|
||||
lastUpdated={lastUpdated}
|
||||
onCardClick={handleCardClick}
|
||||
/>,
|
||||
charts: (
|
||||
<Suspense fallback={<Loading message="در حال بارگذاری نمودارها..." />}>
|
||||
<ChartsTab sortedTelemetry={sortedTelemetry} dataGaps={dataGaps} visibleParams={visibleParams} />
|
||||
|
||||
@@ -103,7 +103,7 @@ export function SummaryTab({ temperature, humidity, soil, gas, lux, forecastWeat
|
||||
) : null}
|
||||
|
||||
{/* Summary Cards Grid */}
|
||||
<div className="grid gap-6 grid-cols-1 md:grid-cols-2 lg:grid-cols-3">
|
||||
<div className="grid gap-6 grid-cols-1 md:grid-cols-2 lg:grid-cols-4">
|
||||
{(!visibleParams || visibleParams.length === 0 || visibleParams.includes('temperature')) && (
|
||||
<SummaryCard
|
||||
param="temperature"
|
||||
|
||||
@@ -1,8 +1,7 @@
|
||||
export type TabType = 'summary' | 'live' | 'charts' | 'weather' | 'analysis'
|
||||
export type TabType = 'summary' | 'charts' | 'weather' | 'analysis'
|
||||
|
||||
export const TABS: { value: TabType; label: string }[] = [
|
||||
{ value: 'summary', label: 'خلاصه' },
|
||||
{ value: 'live', label: 'لحظهای' },
|
||||
{ value: 'charts', label: 'نمودار' },
|
||||
{ value: 'weather', label: 'آب و هوا' },
|
||||
{ value: 'analysis', label: 'تحلیل' },
|
||||
|
||||
Reference in New Issue
Block a user