Skip to content

French language and File age stats feature - #2

Merged
kreotropic merged 9 commits into
kreotropic:mainfrom
DidierSardine:main
Oct 6, 2026
Merged

kreotropic merged 9 commits into
kreotropic:mainfrom
DidierSardine:main

Conversation

@DidierSardine

Copy link
Copy Markdown
Contributor

Features

  • Added French language translations
  • Added a File age viewer chart

The File Age Viewer chart is implemented in a tab alongside the Treemap.
You can view the age stats by file count or file size, using an histogram or a pie chart to see the percentage breakdown.
This feature is available across all storage types, just like DiskMap: user folders, team folders, external storage, and the entire instance.

image

DidierSardine and others added 9 commits September 30, 2026 16:10
Rework of the PR kreotropic#2 frontend: drop chart.js/vue-chartjs and the tab bar,
draw the five age buckets as SVG bars in the lower pane, switched from a
compact Map | File age toggle in the header. The panel follows the folder
selected in the tree and the category filter. Backend kept, reformatting
reverted, comments cleaned up.
Draw the per-bucket share as an SVG donut in the free space right of the
bars, centred on the bar block; hidden on panes narrower than 560px.
Scope the toggle's item rules under .dm-segmented so core's button margin
no longer leaves a gap around the active segment.
Rows now split the pane's height evenly instead of being capped at 52px,
the donut follows the bar block's height, and label/value/total text
sizes follow the space available.
@kreotropic

Copy link
Copy Markdown
Owner

Hi @DidierSardine, thanks a lot for this PR. The French translation and the file-age idea are both great, and the backend (usage#fileAges + the server-side histogram) is solid, so I kept it.

I pushed a few commits on top of your branch to rework the frontend. The two things I wanted to change were screen space and bundle size:

Layout

  • The tab bar and the "Data" dropdown took height away from the treemap even when the age view wasn't in use. There's now a small Map | File age switch in the header row, next to the category legend, so the treemap keeps all its space.
  • File count | Size is a compact toggle in one slim summary row above the chart.
  • The bars, the donut and the text now scale with the pane height, like your version did.

Chart

  • chart.js + vue-chartjs added about 240 KB to the bundle for five bars. The chart is now plain SVG (bars + donut), drawn the same way as the treemap. No new dependencies.
  • Each bar shows its value and percentage. The donut uses the same colours as the bars, so it doesn't need its own legend.

Behaviour

  • The panel now follows the folder selected in the tree. Before, the path was never sent, so it always showed the whole scope. Selecting a file shows the folder it's in.
  • It still follows the category filter.

Backend / l10n

  • No logic changes. FilecacheUsageSource.php had been fully reformatted (brace style), so I reverted that to keep the diff to your new code only. I also fixed a few broken characters (≤) and translated the French comments.
  • I kept the French translation, added the new strings in all languages, and removed the ones no longer used.

Could you have a look and tell me if this works for you? If you're happy with it, I'll merge.

@DidierSardine

Copy link
Copy Markdown
Contributor Author

That's great, I'm satisfied with the changes, you can merge, thanks a lot !

@kreotropic
kreotropic merged commit 7d6baec into kreotropic:main Oct 6, 2026
4 checks passed
@kreotropic

Copy link
Copy Markdown
Owner

Done! Not planning a release right away but I'll try to release this month!

Thanks

@kreotropic

kreotropic commented Oct 14, 2026 •

Copy link
Copy Markdown
Owner

Hi! v0.5.0 is live in the store with the changes you made!

Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants