Introducing a new way to review your PRs.

Read the announcement

arhamkhnz / next-shadcn-admin-dashboard

Modern Admin Dashboard Template built with Shadcn UI and Next.js 16

View on GitHub

22 documents · Updated Nov 23, 2026

docs / dashboard-content-and-communication-views

Content and communication dashboard views

This page covers the academy, calendar, chat, mail, and coming-soon dashboard destinations. These views give the dashboard focused entry points for learning work, shared time, and communication, while chat and mail keep their full workspaces in standalone routes. It is a child view of Dashboard experiences and relates to analytics and commerce, operations and work management, people and customer management, specialized monitoring, collaboration workspaces, mail workspace, and chat workspace.

Destination map

These destinations support different daily tasks. The academy and calendar pages compose their own dashboard views, while chat and mail place the related standalone workspaces inside the dashboard.

DestinationPrimary purposeMain user view
AcademyReview teaching activity and learner progressSummary cards, schedules, assignment status, performance, and events
CalendarPlan and inspect shared timeEvent calendar with date navigation and view changes
ChatReview and handle conversationsConversation list, active thread, and contact context
MailRead and organize emailAccount navigation, inbox list, and message detail
Coming soonMark an unfinished destinationDevelopment placeholder

The dashboard chat and mail routes are previews of the standalone workspaces. The calendar is a dashboard destination with a reusable presentation layer that can support other event views.

Academy dashboard

The academy dashboard gives a teacher a compact view of current teaching work. It combines headline measures with schedule and status views so the user can see what needs attention and move to a deeper task view.

Learning overview

The academy page opens with a greeting and actions for a new announcement, the gradebook, and a new assignment. A row of key measures then summarizes students taught, attendance, assignments, and classes for the day. The measures also show change or workload detail when that context helps the teacher read the number.

The lower page joins activity to outcomes. A class schedule shows the current day with in-progress, upcoming, and cancelled states. An assignment status chart compares submitted, pending, and overdue work across classes. Performance highlights compare class scores across the week and expose learner achievement context. Upcoming events keep longer-range school activity visible through dates, times, and event types.

This composition moves from broad workload signals to immediate teaching work and then to progress and future commitments. Each summary area points toward a fuller schedule, report, insight, or calendar view when the summary is not enough.

This diagram shows how the academy summary connects daily signals to deeper destinations.

flowchart TB
    A[Academy dashboard] --> B[Teaching measures]
    A --> C[Today's schedule]
    A --> D[Assignment status]
    A --> E[Performance highlights]
    A --> F[Upcoming events]
    C --> G[Full schedule]
    D --> H[Assignment report]
    E --> I[Performance insights]
    F --> J[Calendar]

References: src/…/page.tsx• L21-67 src/…/kpi-cards.tsx• L6-78 src/…/class-schedule.tsx• L7-133 src/…/assignment-status.tsx• L64-114 src/…/performance-highlights.tsx• L166-201 src/…/upcoming-events.tsx• L40-79

Calendar destination

The calendar destination turns shared events into a time-based workspace. The page entrypoint delegates its content to the calendar view, which gives the user one place to choose a calendar, move through dates, change the view, and add an event.

Calendar workspace

The calendar frame keeps the current period and event count beside its controls. Calendar choices separate all calendars from work, personal, team, and focus time. Date controls move to the previous period, current day, or next period. View controls expose month, week, and day perspectives.

The event area shows timed events, all-day events, background blocks, and repeated team activity. This lets the same workspace represent commitments and reserved time. The page supplies the event set and updates the period summary when the visible range changes.

References: src/…/page.tsx• L1-15 src/…/calendar.tsx• L21-35 src/…/calendar.tsx• L37-135 src/…/events-data.ts• L8-22

Calendar presentation support

src/…/event-calendar-views.tsx is the shared calendar presentation support for event views. It gives calendar pages a consistent visual language for event blocks, list rows, day headers, today markers, overflow links, popovers, time lanes, and empty list states.

The support layer accepts calendar options from the page and preserves page-specific choices such as events, plugins, initial view, and date callbacks. It also keeps the visual rules for narrow screens, selected events, resizing, print output, and keyboard focus in one place. A page can change its event source or view set without rebuilding the event presentation contract.

References: src/…/event-calendar-views.tsx• L73-95 src/…/event-calendar-views.tsx• L116-205 src/…/event-calendar-views.tsx• L207-315 src/…/event-calendar-views.tsx• L318-420 src/…/event-calendar-views.tsx• L422-495

Chat destination

Chat supports fast handling of conversations without losing the context of the person being contacted. The dashboard route keeps that capability visible inside the dashboard, while the standalone route provides the full communication workspace.

Dashboard chat preview

The dashboard chat page embeds the standalone chat route in an iframe. Its header identifies the surface as a preview and provides a control to open the same route in a new tab for a larger view.

This keeps the dashboard destination small while preserving one source of truth for conversation work. Changes to the standalone chat experience therefore shape what users see in both entry points.

References: src/…/page.tsx• L7-33 src/…/page.tsx• L1-6

Conversation workspace

The standalone chat workspace is arranged around three related questions: which conversation needs attention, what has been said, and who the contact is. Its header provides search and global actions. Its navigation groups conversations by status or channel. The main thread shows messages and supports replies or internal notes. The profile area adds contact details, files, activity, and common contact actions.

The layout changes with screen size rather than removing context. Wide screens can show the conversation list, thread, and profile together. Smaller screens move from the list to the thread and open contact details in a separate panel. Selecting a conversation updates the active thread and its contact context.

This diagram shows how conversation choice links the thread to the related contact context.

flowchart LR
    A[Conversation list] -->|select| B[Active thread]
    B -->|open contact| C[Contact profile]
    B --> D[Reply or internal note]
    A --> E[Search, filters, and grouped views]

References: src/…/layout.tsx• L8-19 src/…/chat.tsx• L20-85 src/…/chat-conversation-list.tsx• L23-169 src/…/chat-thread.tsx• L58-220 src/…/chat-profile-details.tsx• L34-150

Mail destination

Mail supports email triage and message response through the same standalone workspace. The dashboard route presents that workspace in place, while the standalone route provides the full reading and response surface.

Dashboard mail preview

The dashboard mail page embeds the standalone mail route in an iframe. Its header identifies the surface as a preview and provides a control to open the same route in a new tab for a larger view.

This composition gives dashboard users access to the mail workspace without creating a second mail flow. The standalone route remains the source of the account, inbox, and message behavior shown in the preview.

References: src/…/page.tsx• L7-33 src/…/page.tsx• L1-6

Inbox workspace

The standalone mail layout begins with an account-aware sidebar. It exposes the inbox, priority mail, standard folders, help, and keyboard shortcuts. The inbox then adds search and list controls before grouping messages into pinned and regular mail.

Each message summary carries enough signal for triage: sender, subject, read state, time, and a short body preview. Selecting a message establishes the shared selection used by the list and detail surfaces.

References: src/…/layout.tsx• L7-15 src/…/mail-sidebar.tsx• L38-130 src/…/mail-inbox.tsx• L18-73 src/…/mail-list.tsx• L23-113 src/…/data.tsx• L30-60

Message reading

The message view turns the selected mail into a reading and response surface. It shows the subject, time, sender, recipients, body, and attachments. Actions cover common message handling such as pinning, archiving, replying, labeling, and moving to trash. A reply control stays at the end of the message so reading can lead directly to a response.

On larger screens, the inbox and message view share a resizable split. On mobile, the inbox remains the starting surface and the selected message opens in a drawer. The user's desktop panel sizes persist so the workspace can match the way that user reads mail.

References: src/…/page.tsx• L7-14 src/…/mail.tsx• L26-86 src/…/mail-view.tsx• L48-265 src/…/mail-layout-config.ts• L1-6

Coming-soon destination

The coming-soon destination marks a route whose product experience is not ready. It currently uses a centered placeholder that says the page is not found and explains that the page is under development for a future update.

This state distinguishes an unfinished product area from a working dashboard view. A future implementation should replace the placeholder while keeping the destination's route and navigation role clear.

References: src/…/page.tsx• L1-17

Change checklist

When these files or sections are changed, remember to consider these:

  • Keep the academy dashboard's summary-to-detail links aligned with the destination each card promises.
  • Keep the academy performance view's class score, learner marker, and insight details aligned when the displayed data or chart meaning changes.
  • Keep the calendar page's exposed view choices compatible with the view names and behavior accepted by the shared calendar presentation support.
  • Keep event range summaries in step with the event source and the visible calendar range.
  • Keep the dashboard chat and mail previews pointed at the same standalone routes they embed and expose through their full-screen links.
  • Keep chat conversation selection consistent across the list, active thread, and contact profile, especially when responsive layouts change.
  • Keep mail selection consistent between the inbox list, desktop detail pane, and mobile drawer.
  • Treat the saved mail panel sizes as a shared contract between the page, the resizable panels, and the browser cookie.

Important failure modes

TriggerConsequenceGuard
The academy performance view changes its score meaning without updating its labels or learner detailsTeachers can read the visual summary as a different measure than the supporting context describesKeep the chart scale, class score, student markers, and insight label aligned
The calendar page exposes a view that the shared calendar support does not configureThe view selector can request a calendar mode with incomplete presentation rulesKeep page view keys within the supported calendar view configuration
The visible calendar range and event filtering use different boundariesThe period header can show an event count that does not match the events on screenUse the same start-inclusive and end-exclusive range for both calculations
A dashboard preview embeds a different route from its full-screen linkThe embedded and expanded entry points show different communication or mail experiencesKeep the iframe source and new-tab target equal to the matching standalone route
A selected chat or mail item is missing from the supplied dataThe detail surface falls back to the first chat or shows no email selectedPreserve a valid selection when replacing or filtering source data
Saved mail panel data is invalid or no longer matches the two-panel layoutThe desktop mail workspace can open with unusable panel sizesValidate stored sizes and fall back to the default two-panel layout
A future route replaces the coming-soon placeholder without updating its product stateUsers can see an unfinished or misleading destinationReplace the placeholder only when the destination has a defined user flow

Key files

FileWhy to read it
src/…/page.tsxShows the academy page's top-level composition and how summary areas connect to teaching views
src/…/performance-highlights.tsxShows how class scores and learner context form the academy performance summary
src/…/page.tsxShows the calendar dashboard entrypoint and its handoff to the reusable calendar view
src/…/calendar.tsxShows the calendar destination's controls, event range summary, and page-to-calendar boundary
src/…/event-calendar-views.tsxDefines the reusable presentation contract for calendar event views
src/…/page.tsxShows how the dashboard chat destination embeds and links to the standalone communication workspace
src/…/chat.tsxShows the relationship between conversation selection, the active thread, and contact context across screen sizes
src/…/page.tsxShows how the dashboard mail destination embeds and links to the standalone mail workspace
src/…/mail.tsxShows the desktop and mobile composition of the mail workspace
src/…/mail-view.tsxShows the message reading and response surface
src/…/page.tsxShows the current product state for unfinished destinations