feat: add modal dialog, paged results, scan status, and trend value table components
- Introduced ModalDialog component for displaying modal dialogs with accessibility features. - Added PagedResults component to handle pagination of items with customizable rendering. - Created ScanStatus component to display the status of a scan with elapsed time. - Implemented TrendValueTable component for displaying trend data in a paginated table format. - Added measurement utility functions for formatting and validating measurement values. - Included tests for measurement functions and trend series fetching logic to ensure correctness.
This commit is contained in:
1 parent
c19c77334f
commit
a8b6cd4061
23 files changed
+1479
-2157
No files matched your search
@@ -19,7 +19,7 @@ function linkMonogram(label) {
|
||||
|
||||
function SidebarIcon({ name }) {
|
||||
return (
|
||||
<svg viewBox="0 0 24 24" aria-hidden="true" fill="none" stroke="currentColor" strokeWidth="1.7" strokeLinecap="round" strokeLinejoin="round">
|
||||
<svg viewBox="0 0 24 24" aria-hidden="true" fill="none" stroke="currentColor" strokeWidth="1.5" strokeLinecap="round" strokeLinejoin="round">
|
||||
<path d={icons[name]} />
|
||||
</svg>
|
||||
);
|
||||
@@ -38,12 +38,9 @@ export default function Sidebar({ collapsed, onToggle, views, activeView, onNavi
|
||||
<div className="sidebar-top">
|
||||
<div className="sidebar-brand-row">
|
||||
<div className="logo-lockup">
|
||||
<img src="/logo.png" alt="SE Logo" />
|
||||
<img src="/logo.png" alt={collapsed ? "SE" : ""} />
|
||||
{collapsed ? null : (
|
||||
<div>
|
||||
<div className="eyebrow">SE</div>
|
||||
<div className="logo-title">SE Local Trenddata.</div>
|
||||
</div>
|
||||
<div className="logo-title">SE Local Trenddata</div>
|
||||
)}
|
||||
</div>
|
||||
<button type="button" className="icon-button sidebar-toggle" title={toggleLabel} aria-label={toggleLabel} aria-expanded={!collapsed} onClick={onToggle}>
|
||||
|
||||
Reference in new issue
Block a user