In this commit, a series of UI enhancements and changes have been made on some components. The modifications help to improve the user interaction experience and the organization of the code by refactoring some of the elements, improving their visibility and adding new interactive elements.
Changes include:
- Improved opacity state for the 'isFileLocked' feature.
- Added and integrated new Tooltip and IconLock classes.
- Refactored color configurations in the color config section.
- Introduced the creation of an SVG file for Icon elements rendering.
- Modified text to "No uncommitted changes on this branch" for better clarity.
- Added options to maximize and minimize in the PopupMenu.
- Changed modal title from "Update target" to "Merge Upstream Work", and expanded the explanation of the work's impact.
- Removed some redundant conditions in the checkbox state in the branches component.
- Added help icon library.
- Changed the modal confirmation button from "Update" to "Merge Upstream
This commit brings a significant update to the user interface text and includes a new badge icon. Changes mainly occur on how the app communicates with the users, especially when there are no commits or changes in their repository.
Changes:
- Added a new SVG badge icon to be displayed when there are no commits.
- Enhanced the messaging when no commits are made yet on the branch by replacing the 'No uncommitted changes' message with a more interactive message.
- Included a descriptive tooltip message for the 'Fetch' button.
- Adjusted the fetch button hover effect to change background color based on the `expanded` state.
- Added an indicator showing the number of unmerged upstream commits.
- Expanded the range of some color shades in the color configuration.
- Updated the code to handle singular or plural form of 'commit' based on the length of the array of commits.
- Corrected a typo: 'uncomitted' has been changed to 'uncommitted
The problem with "your branches" being too small will disappear when we
add the ability to resize sections. This solution should be considered
temporary until then.
This commit introduces the feature to clear the commit message input field after the commit action is performed. Previously, the message input field retained the previous commit message, which was not ideal for future commits.
Detailing changes:
- A line of code is added that sets `commitMessage` variable to an empty string. This ensures that the message input field is cleared and ready for next commit message
Added a new feature that summarizes the number of lines added and removed in each branch. This update will provide coders with a quicker and concise overview of the branch's changes.
Detailed changes:
- Added a "sumBranchLinesAddedRemoved" method to count the number of added and removed lines for each branch.
- The result of the method is displayed in monospace font, with green for added lines and red for removed lines
I saw in posthog that the modal can be squished and become too big.
Locally I was not fully able to reproduce, but this commit at least limits
the height so it can't overlay the nav bar.
The transition that I drop is not (and has not been) working, let's add
this back later.