Skip to content

feat(views): add an Items column - #283

Open
iamnitesh108 wants to merge 1 commit into
noctalia-dev:mainfrom
iamnitesh108:feat/folder-item-count
Open

iamnitesh108 wants to merge 1 commit into
noctalia-dev:mainfrom
iamnitesh108:feat/folder-item-count

Conversation

@iamnitesh108

@iamnitesh108 iamnitesh108 commented Dec 1, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Adds an Items column that shows how many items each folder holds, counting hidden and backup files only while they are shown. Turning off Calculate Folder Sizes no longer leaves folders sorted by sizes measured earlier, and Columns view no longer counts folder sizes it never shows.

Motivation

An item count is quick to get, even with folder sizes turned off, and sorting by it puts the fullest folders first.

Type of Change

  • New feature

Testing

  • New tests cover the count, the column, sorting by Items, the sizes-off sort and Columns view.
  • just test passes.
  • clang-tidy on the changed files, just format-check, just i18n-check, just lint-prose, just lint-python and just role-alpha-check pass.

Checklist

  • This PR is ready for review, or it is marked as Draft.
  • This change fits SCOPE.md, or its scope was agreed in an issue or on Discord first.
  • I read and followed the relevant guidance in CONTRIBUTING.md.
  • I ran just format, or this PR has no C++ changes.
  • I ran just lint and the relevant build or test commands, or explained why they were not run.
  • I ran just role-alpha-check, or this PR does not change UI colors.
  • I tested the change in a running Luciole where automated checks are insufficient.
  • I self-reviewed the changes.
  • I checked for new warnings or errors.
  • I updated docs/, or this PR does not change user-facing behavior or settings.
  • I used canonical names for settings, paths, and identifiers.

@iamnitesh108

Copy link
Copy Markdown
Contributor Author
image

@iamnitesh108
iamnitesh108 marked this pull request as ready for review December 1, 2026 16:40

@talia-ci talia-ci Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Talia preliminary review

Check Result
Merge score 🟡 3/5 — Minor changes needed before merging
Findings 🟡 1 medium
Review depth 3/5 — how thoroughly the changed code could be checked by reading it
Coverage 17 of 17 changed files reviewed

What Talia checked: Checked non-recursive walk counting, folder-size lookup and Size ordering, cache clearing on the setting toggle, slot recursion wiring in BrowserPage/Miller columns, and the list cell text; the main uncertainty is whether the extra folder enumeration is intended cache warming.

Findings

# Severity Finding Location
1 🟡 P2 Size sort queues item counts for every folder even when counts cannot order folders src/browser/browser_controller.cpp:895

Each finding is explained in a review comment on its line.

Run details
  • Commit reviewed: d0775ae
  • Source lookups: 48 file reads, 38 searches
  • Prompt version: 859b7490ca3d

Preliminary automated review: Talia read the changed code and related source; nothing was built, run or tested, and AI can make mistakes. It is not a scope acceptance or a promise to merge; a human reviewer makes the final call. See our ethos.

Comment thread src/browser/browser_controller.cpp Resolved
@github-actions
github-actions Bot marked this pull request as draft December 1, 2026 16:50
@github-actions

github-actions Bot commented Dec 1, 2026 •

Copy link
Copy Markdown

The description now contains the required template structure.

@iamnitesh108
iamnitesh108 marked this pull request as ready for review December 1, 2026 17:00
@ItsLemmy

ItsLemmy commented Dec 1, 2026

Copy link
Copy Markdown
Member

Related to #156

@iamnitesh108
iamnitesh108 marked this pull request as draft December 1, 2026 17:39
@iamnitesh108

Copy link
Copy Markdown
Contributor Author

Thanks, I missed #156, and I agree a separate Items column is better. My PR also fixes 2 other bugs. I can rebase on #156 once it's merged and keep just the fixes, or I'm happy to build it the way you described if #156 isn't being continued.

@iamnitesh108
iamnitesh108 force-pushed the feat/folder-item-count branch from 7cad234 to 66113d4 Compare December 2, 2026 04:04
@iamnitesh108 iamnitesh108 changed the title feat(views): show item counts for folders when sizes are off feat(views): add an Items column Dec 2, 2026
@iamnitesh108

Copy link
Copy Markdown
Contributor Author

Reworked as you described on #156. If you'd rather merge #156, I'll rebase the two bug fixes onto it instead.

@iamnitesh108
iamnitesh108 marked this pull request as ready for review December 2, 2026 04:09
@github-actions
github-actions Bot marked this pull request as draft December 2, 2026 04:09
@github-actions

github-actions Bot commented Dec 2, 2026 •

Copy link
Copy Markdown

The description now contains the required template structure.

@iamnitesh108
iamnitesh108 marked this pull request as ready for review December 2, 2026 04:11
@github-actions
github-actions Bot marked this pull request as draft December 2, 2026 04:11
@github-actions

github-actions Bot commented Dec 2, 2026 •

Copy link
Copy Markdown

The description now contains the required template structure.

@iamnitesh108
iamnitesh108 marked this pull request as ready for review December 2, 2026 04:11
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