Skip to content

Commit

Permalink
feat: Add file explorer context menu functionality
Browse files Browse the repository at this point in the history
  • Loading branch information
pacholoamit committed Jun 23, 2024
1 parent 13202a2 commit cea9556
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ All notable changes to this project will be documented in this file. This projec
- Removed Apexchart in favor of Highcharts
- Add Performance mode to settings
- Migrate to use Settings context for managing settings state
- Add file explorer context menu functionality

## 0.9.9
- Fix issue where some popover components are transparent
Expand Down
12 changes: 7 additions & 5 deletions src/features/metrics/pages/disk-analytics.page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -106,11 +106,13 @@ const DiskAnalyticsPage: React.FC<DiskAnalyticsPageProps> = () => {
if (disk.mountPoint) {
const flattened = await commands.disk_analysis_flattened({ path: disk.mountPoint });

const flattenedTreemapData = flattened.map((item) => ({
id: item.id,
name: item.name,
value: item.size,
}));
const flattenedTreemapData = flattened
.map((item) => ({
id: item.id,
name: item.name,
value: item.size,
}))
.splice(0, 500); // Limit to 500 items temporarily

logger.trace("Tree map sample:", flattenedTreemapData.slice(0, 3));

Expand Down

0 comments on commit cea9556

Please sign in to comment.