Skip to content
This repository has been archived by the owner on Jun 3, 2024. It is now read-only.

Module RefsView: reorganize menu actions #31

Open
wants to merge 6 commits into
base: development
Choose a base branch
from

Conversation

antis81
Copy link
Member

@antis81 antis81 commented Apr 1, 2015

In the past we had a single context menu, that got applied to every RefItem - independent of it's type. At that time we only differed between a "Reference" and "Pseudo-Item" (aka header/folder).

Nowadays, we have more types available, (e.g. a Remote item). This requires us to split the menu according to the item type. Finally, this allows us to show the "right action at the right place".

  • Provide menus for the item types Branch, Remote and Tag.
  • Provide menu for the item type RemoteBranch.
    • Has the item type Branch. Didn't check yet, but a "sub-type" should be available.
  • Provide merge places for fetch & push services.
  • Currently, the "action context" in a "checkout" action is set to a "Branch" item type. This leads to crash (assertion).
    • The checkout operation has to be created according to the item type. This also is subject to change, as we plan to replace Git::CheckoutOperation with an RM::CheckoutService. If done right, we should be able to simply provide the item->object() to RepoMan.
  • Provide toolbar actions to hide/show the item types (Branches, Remotes, Tags)
    • Use icons according to the item type instead of text.
    • Display toolbar buttons as a "group" -> The buttons should not have a space between them.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant