PromucFlow_constructor/app/client/src/pages/Editor/gitSync
Nayan 88cc05ac93
chore: Check new git permissions for respective git operations (#29981)
## Description
This PR uses the new Git permissions for Connect to Git, disconnect from
Git, Protect branch and manage auto commit settings.

#### PR fixes following issue(s)
Fixes #29963

#### Media
#### Type of change
- Chore (housekeeping or task changes that don't impact user perception)

## Testing
#### How Has This Been Tested?
- [x] Manual
- [x] JUnit

#### Test Plan
#### Issues raised during DP testing
> Link issues raised during DP testing for better visiblity and tracking
(copy link from comments dropped on this PR)
>
>
>
## Checklist:
#### Dev activity
- [x] My code follows the style guidelines of this project
- [x] I have performed a self-review of my own code
- [x] I have commented my code, particularly in hard-to-understand areas
- [ ] I have made corresponding changes to the documentation
- [x] My changes generate no new warnings
- [x] I have added tests that prove my fix is effective or that my
feature works
- [x] New and existing unit tests pass locally with my changes
- [ ] PR is being merged under a feature flag


#### QA activity:
- [ ] [Speedbreak
features](https://github.com/appsmithorg/TestSmith/wiki/Guidelines-for-test-plans#speedbreakers-)
have been covered
- [ ] Test plan covers all impacted features and [areas of
interest](https://github.com/appsmithorg/TestSmith/wiki/Guidelines-for-test-plans#areas-of-interest-)
- [ ] Test plan has been peer reviewed by project stakeholders and other
QA members
- [ ] Manually tested functionality on DP
- [ ] We had an implementation alignment call with stakeholders post QA
Round 2
- [ ] Cypress test cases have been added and approved by SDET/manual QA
- [ ] Added `Test Plan Approved` label after Cypress tests were reviewed
- [ ] Added `Test Plan Approved` label after JUnit tests were reviewed


<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit

- **New Features**
- Expanded Git-related permissions, including the ability to connect to
Git, manage protected branches, default branch, and auto-commit
settings.

- **Improvements**
- Enhanced Git permission checks for more granular access control within
the app.

- **Refactor**
- Updated components to utilize new Git permission hooks for better
permission management.
- Refined Git service logic to accommodate additional permission
parameter.

- **Tests**
- Adjusted test cases to align with the updated permission handling at
the application level.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->

---------

Co-authored-by: brayn003 <rudra@appsmith.com>
2024-01-05 10:27:56 +05:30
..
components chore: custom widget (#28926) 2023-12-28 12:16:28 +05:30
GitSyncModal chore: Refactoring multiple environments to use editorId instead of appId (#29965) 2024-01-03 20:39:34 +05:30
hooks chore: Check new git permissions for respective git operations (#29981) 2024-01-05 10:27:56 +05:30
QuickGitActions chore: Check new git permissions for respective git operations (#29981) 2024-01-05 10:27:56 +05:30
Tabs chore: Check new git permissions for respective git operations (#29981) 2024-01-05 10:27:56 +05:30
constants.ts fix: git branch protection bug fixes (#28749) 2023-11-09 16:58:04 +05:30
DisableAutocommitModal.tsx feat: autocommit UI integration (#29755) 2023-12-22 16:36:54 +05:30
DisconnectGitModal.tsx chore: Updating strings to sentence case and moving brand colors logic update to tenant reducer (#28219) 2023-10-19 23:42:01 +05:30
ImportedAppSuccessModal.tsx feat: [epic] appsmith design system version 2 deduplication (#22030) 2023-05-20 00:07:06 +05:30
Menu.tsx feat: branch protection (#28526) 2023-11-03 22:43:36 +05:30
ReconnectDatasourceModal.tsx chore: Refactoring multiple environments to use editorId instead of appId (#29965) 2024-01-03 20:39:34 +05:30
RepoLimitExceededErrorModal.tsx chore: Updating link component props (#27223) 2023-09-14 16:14:23 +05:30
utils.test.ts fix: git azure url special char support (#29319) 2023-12-06 11:42:09 +05:30
utils.ts fix: git azure url special char support (#29319) 2023-12-06 11:42:09 +05:30