Advanced Asset Index Documentation
Overview
The Advanced Asset Index is a powerful feature designed for asset management that provides sophisticated filtering, sorting, and visualization capabilities. It offers a more detailed and customizable view of your asset inventory compared to the simple index, allowing for complex queries and organization of equipment.
Key Features
- Advanced Filtering: Multi-criteria filtering with various operators for different data types
- Natural Sorting: Human-friendly sorting that properly handles numerical sequences
- Multi-column Sorting: Sort by multiple fields with customizable priority
- Column Customization: Show/hide and reorder columns based on your needs
- Bulk Actions: Perform actions on multiple assets simultaneously
- Custom Fields Support: Full support for organization-specific custom fields
Technical Architecture
The Advanced Index is built using:
- Raw Prisma queries for optimal performance
- Type-safe TypeScript implementation
- React components for the UI
- Custom hooks for state management
- Server-side filtering and sorting for large datasets
Documentation Index
User Guides
- Comprehensive guide to using the filtering system
- Detailed explanations of operators for each field type
- Examples and best practices
- How to use single and multi-field sorting
- Practical sorting strategies
- Common sorting scenarios
- Understanding natural sort order
- Comparison with traditional sorting
- Benefits for medical device management
- Column configuration and management
- First column freezing functionality
- Asset image display options
- Settings persistence and troubleshooting
Technical Documentation
Components
advanced-asset-columns.tsx
: Column definitions and renderingadvanced-asset-row.tsx
: Row component implementationadvanced-filters/
: Filter-related componentsadvanced-table-header.tsx
: Table header implementation
Services
query.server.ts
: Raw query implementationsservice.server.ts
: Business logic and data processingtypes.ts
: TypeScript type definitions
Hooks
use-asset-index-columns.ts
: Column managementuse-asset-index-mode.ts
: Mode switching logic- Various other utility hooks
Getting Started
Access Advanced Mode
- Switch to advanced mode from the asset index page
- Note: Advanced mode requires appropriate permissions
Configure Columns
- Use the column configuration menu to select visible columns
- Drag and drop to reorder columns
- Custom fields will appear at the end of the column list
Set Up Filters
- Click the filter button to add filters
- Multiple filters can be combined
- Use different operators based on field types
Configure Sorting
- Click the sort button to add sort criteria
- Multiple sort fields can be added
- Toggle ascending/descending order
Common Use Cases
Maintenance Planning
- Filter by maintenance due dates
- Sort by priority and location
- Group by department
Inventory Audit
- Filter by categories and value ranges
- Sort by acquisition date
- Group by location
Compliance Monitoring
- Filter by certification status
- Sort by expiration dates
- Group by regulatory requirements
Best Practices
Performance
- Start with broad filters before adding specific ones
- Use exact matches when possible
- Combine filters effectively
Organization
- Use consistent naming conventions
- Maintain accurate custom field data
- Regular cleanup of unused filters
Security
- Respect role-based access controls
- Validate all user inputs
- Maintain audit trails
Contributing
If you find issues or have suggestions for improvement:
- Document the specific use case
- Provide example data if possible
- Submit through the appropriate channel
- Follow the provided templates
Support
For technical support or questions:
- Check the troubleshooting guides
- Contact technical support
- Submit feature requests through proper channels