Skip to content

[ui] Homepage: Project can be removed with right click#2724

Merged
cbentejac merged 3 commits intodevelopfrom
feature/project-remove
May 19, 2025
Merged

[ui] Homepage: Project can be removed with right click#2724
cbentejac merged 3 commits intodevelopfrom
feature/project-remove

Conversation

@nicolas-lambert-tc
Copy link
Copy Markdown
Contributor

@nicolas-lambert-tc nicolas-lambert-tc commented May 15, 2025

Description

Add a context menu on the project to allow the deletion of a specific project

image

Features list

  • Homepage: ContextMenu to open/delete a project

@codecov
Copy link
Copy Markdown

codecov Bot commented May 15, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 76.84%. Comparing base (702e78f) to head (d5bcada).
Report is 4 commits behind head on develop.

✅ All tests successful. No failed tests found.

Additional details and impacted files
@@           Coverage Diff            @@
##           develop    #2724   +/-   ##
========================================
  Coverage    76.84%   76.84%           
========================================
  Files           41       41           
  Lines         6132     6132           
========================================
  Hits          4712     4712           
  Misses        1420     1420           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@nicolas-lambert-tc nicolas-lambert-tc added feature new feature (proposed as PR or issue planned by dev) UI labels May 15, 2025
@nicolas-lambert-tc nicolas-lambert-tc added this to the Meshroom 2025.1.0 milestone May 15, 2025
Copy link
Copy Markdown
Contributor

@cbentejac cbentejac left a comment

Choose a reason for hiding this comment

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

The "Projects..." action is not necessary as we have the "Home" icon next to the "File" menu, so that part from the second commit can be dropped.

I also don't think there's a need to make a distinction between the simple and the double click: if the user left-clicks (once) on a projet, we should try to open it as is currently the case; if the user right-clicks, then the context menu should be opened, with the "Open" and "Delete" options.

Copy link
Copy Markdown
Contributor

@cbentejac cbentejac left a comment

Choose a reason for hiding this comment

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

Functionally speaking, I think we're good to go!

Comment thread meshroom/ui/qml/Homepage.qml Outdated
running: gridView.visible && modelData["thumbnail"] && thumbnail.status != Image.Ready
visible: running
}
}
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Trailing whitespaces

Comment thread meshroom/ui/qml/Homepage.qml Outdated
Comment on lines +12 to +19
function setCurrentTab(tabName) {
const tabIndex = tabPanel.tabs.indexOf(tabName)

if (tabIndex) {
tabPanel.currentTab = tabIndex
}
}

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Is this function still necessary with the recent changes? I don't see it used anywhere.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Thx, you're right, it's an oversight.

@cbentejac cbentejac changed the title [ui] Homepage: Project can be removed by right click [ui] Homepage: Project can be removed with right click May 19, 2025
@cbentejac cbentejac merged commit 37264bc into develop May 19, 2025
5 checks passed
@cbentejac cbentejac deleted the feature/project-remove branch May 19, 2025 13:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

feature new feature (proposed as PR or issue planned by dev) UI

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants