> For the complete documentation index, see [llms.txt](https://rute.gitbook.io/carrier/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://rute.gitbook.io/carrier/list-and-views.md).

# List & Views

The List & Views page helps users locate and manage trucks within the system. Trucks are divided into **Active** and **Inactive** tabs, with two layout options: **Table View** and **Card View**. All actions—such as edit, deactivate, or delete—are available directly from both layouts.

***

### Tabs

* **Active Tab**\
  Shows all trucks currently in service. Trucks in this tab can be assigned to drivers, loads, or payroll.
* **Inactive Tab**\
  Lists trucks that have been deactivated. These trucks cannot be used in new dispatches or payroll, but their records and documents are still visible.

***

### List View

The list view displays trucks in a structured, column-based layout. Each row represents one truck.

#### What you can do:

* Sort by any column
* Show/hide columns via the hamburger menu
* Click to **Edit**, **Deactivate**, or **Delete** (hover icons)
* View truck document status via the status bar

### Expiration Tracking

The expiration bar reflects the status of key compliance-related documents. These items are individually tracked, and each one has an expiration date. If any of them are missing, expired, or expiring soon, the bar changes color.

#### Documents that affect the expiration bar:

| Document            | Tracked Expiration           | Shown In                                |
| ------------------- | ---------------------------- | --------------------------------------- |
| **FHWA Inspection** | Expiration date (month/year) | Required for federally regulated trucks |
| **Registration**    | Expiration date              | Required for all trucks                 |
| **Insurance**       | Policy expiration date       | Tracked per unit                        |

***

#### Notes:

* All documents except **Title** must be valid to show a green bar.
* If **any required document** is expiring within 30 days, the bar turns **yellow**.
* If any required document is **expired**, the bar turns **red**.
* If **no FHWA, Registration, or Insurance** exists, the bar is **gray**.

This helps users:

* Stay compliant with federal/state regulations
* Avoid assigning trucks with invalid documents
* Get visual alerts without manually checking each truck

***

### Card View

Card View is a visual alternative for quick identification and scanning.

#### What you can do:

* View truck summary (type, color, number, status bar)
* Hover to access **Edit**, **Deactivate**, or **Delete**
* Flip the card to view document or assignment status
* Works in both Active and Inactive tabs

***

### Searching & Filtering

* **Search bar:** Find by Unit Number, VIN, or Owner
* **Truck Type Filter:** Multi-select dropdown lets you filter by body type
* **Column settings:** You can lock, hide, and rearrange columns. Your configuration is saved automatically.

***

### Inactive Behavior

In Inactive view:

* All truck rows or cards are grayed out
* Actions like Edit and View are still allowed
* Progress bars remain visible for compliance tracking

**Image Placeholder:**\
`![TruckListView](../assets/f3c01d6d-93eb-4081-8178-dedbed5dfe48.png)`\
*Figure: Table view of trucks with action buttons and document expiration bar.*
