Commit Graph

210 Commits

Author SHA1 Message Date
“tan-nhu”
a083cfc116 Ajust search input loading position + pass getString to ImageCarousel 2023-03-16 12:09:34 -07:00
“tan-nhu”
1ff1809990 Prototype for PR Checks UI 2023-03-16 11:00:10 -07:00
Tan Nhu
01abc39351 Downgrade useModal to 1.1.0 (#370)
Co-authored-by: “tan-nhu” <“tan@harness.io”>
2023-03-09 09:01:36 -08:00
Calvin Lee
5241762772 feat: [code-51]: image preview on conversation (#365) 2023-03-07 16:20:36 -07:00
Tan Nhu
6b5e1cfac3 Reduce number of output files in production build from 400+ to 100+ (#363)
Co-authored-by: “tan-nhu” <“tan@harness.io”>
2023-03-02 14:08:12 -08:00
Tan Nhu
888b643da9 Fix DefinePlugin __DEV__ conflict warning (#362)
Co-authored-by: “tan-nhu” <“tan@harness.io”>
2023-03-02 12:25:48 -08:00
Tan Nhu
5fcf8eb746 Fix all linting warnings (#361)
Co-authored-by: “tan-nhu” <“tan@harness.io”>
2023-03-02 00:27:20 -08:00
Tan Nhu
ddce5e817d Proper decoding UTF8 content to support Emoji / special UTF8 chars (#360) 2023-03-01 10:29:59 -08:00
Johannes Batzill
b44948bd97 [MISC] Expose Content Encoding as Enum across APIs (#359) 2023-02-27 18:50:52 -08:00
Tan Nhu
ba6645cdaa use useHistory inside MarkdownViewer (#358)
Co-authored-by: “Tan <“tan@harness.io”>
2023-02-27 12:04:49 -08:00
Tan Nhu
a96ed98e5d Handle markdown links and videos (#357) 2023-02-27 11:15:57 -08:00
Tan Nhu
a591567683 Disable lodash from share packages (#355)
Co-authored-by: Tan Nhu <tnhu@users.noreply.github.com>
2023-02-24 09:55:37 -08:00
Calvin Lee
f54c23055c feat: [code-101]: added dotted lines to conversation page (#354) 2023-02-24 10:02:24 -07:00
Tan Nhu
2b5b061ec2 feat: [CODE-130]: CDN support experiment for Code in QA (#351) 2023-02-23 18:25:32 -08:00
Calvin Lee
cc4c753971 feat: [code-101]: fix icons on system update (#348) 2023-02-21 10:57:35 -07:00
Calvin Lee
a50e95b8ad feat: [CODE-133]: add sort filters and active state (#347) 2023-02-16 16:40:32 -07:00
Johannes Batzill
cbd9096a4e [WEB-SERVICES] generate latest (#343) 2023-02-14 20:27:33 -08:00
Calvin Lee
278ef7a496 fix: [code-132]: fix ui issues on empty repo page (#337) 2023-02-14 16:50:59 -07:00
Tan Nhu
bfdadfa87e Optimize merge button transition to reduce flickering (#333) 2023-02-14 13:39:03 -08:00
Tan Nhu
b809e6cb1a Integrate merge-check API (#331)
Co-authored-by: Tan Nhu <tnhu@users.noreply.github.com>
2023-02-14 10:49:26 -08:00
Calvin Lee
4d8f69184f fix: [code-126]: update pr listing page (#329) 2023-02-13 13:13:21 -07:00
Calvin Lee
d2fe64388c feat: [code-118]: update option menu colors and icons in pr page (#326) 2023-02-13 11:22:24 -07:00
Calvin Lee
4ce49f2555 feat: [code-126]: update the pr listing page (#324) 2023-02-10 19:02:01 -07:00
Calvin Lee
4c00e52107 feat: [code-127]: Fix the UI bugs on the PR conversation page (#322) 2023-02-10 10:30:48 -07:00
Calvin Lee
5cd22f0689 feat: [code-100]: pop-up panel for webhook on/off (#321) 2023-02-09 14:37:12 -07:00
Tan Nhu
5cc2b03156 Update some styling for Compare page (#320)
Co-authored-by: Tan Nhu <tnhu@users.noreply.github.com>
2023-02-09 12:39:07 -08:00
Calvin Lee
e179696678 feat: [code-120]: internal page refresh button (#316) 2023-02-09 13:00:44 -07:00
Calvin Lee
f2358bd4ec feat: [code-121]: add reviewers and tags sidebar (#317) 2023-02-08 16:27:10 -07:00
Tan Nhu
04702def71 Fix broken QA build due to lodash-es lib (#311)
Co-authored-by: Tan Nhu <tnhu@users.noreply.github.com>
2023-02-03 23:09:39 -08:00
Calvin Lee
eaaa825e67 feat: [scm-88]: fix spacing on toggle modal (#305) 2023-02-03 10:24:54 -07:00
Calvin Lee
29e12e3e2f feat: [scm-115]: Show error message with link to go to existing PR when creating one that exists (#294) 2023-02-02 17:47:48 -07:00
Calvin Lee
5277f4d707 feat: [scm-88]: confirmation dialog for enable/disable webhook toggle (#295) 2023-02-02 16:17:45 -07:00
Johannes Batzill
c5d92b498b [API] Add GetCommit API (#291) 2023-02-01 18:50:54 -08:00
Johannes Batzill
fe83493623 [API] Add GetBranch API (#290) 2023-02-01 18:13:27 -08:00
Tan Nhu
edef133aa8 Do not use qs library for now due to it's not loaded in QA environment (#288) 2023-02-01 16:40:57 -08:00
Johannes Batzill
83c24913d3 [Webhook] Add pullreq_created and pullreq_reopened webhook triggers (#283) 2023-02-01 13:52:36 -08:00
Tan Nhu
920d74ff5d Last attempt to fix Monaco not being loaded in QA (#276)
Co-authored-by: Tan Nhu <tnhu@users.noreply.github.com>
2023-01-31 22:21:32 -08:00
Calvin Lee
0f03bbb07d feat: [scm-56]: Crashing for file not found in Files View (#277) 2023-01-31 21:36:27 -07:00
Calvin Lee
2c6f2806a8 feat: [scm-81]: fix toggle on webhook page (#275) 2023-01-31 15:41:43 -07:00
Tan Nhu
5a170f9345 Disable shared monaco lib completely (#273)
Co-authored-by: Tan Nhu <tnhu@users.noreply.github.com>
2023-01-31 13:36:19 -08:00
Johannes Batzill
8f82c0ce4e [Webhook] Add Support for PR Branch Updated (#267) 2023-01-31 13:07:48 -08:00
Tan Nhu
c12775862b Disable Review button when PR is draft (#272)
Co-authored-by: Tan Nhu <tnhu@users.noreply.github.com>
2023-01-31 09:10:53 -08:00
Tan Nhu
77f1463f2c Add nullable check when rendering comment (#271)
Co-authored-by: Tan Nhu <tnhu@users.noreply.github.com>
2023-01-31 08:53:47 -08:00
Tan Nhu
a2cac1e82b API integration for different type of merges (#268)
Co-authored-by: Tan Nhu <tnhu@users.noreply.github.com>
2023-01-31 08:41:46 -08:00
Calvin Lee
443394b964 feat: [scm-81]: restyle webhook page (#266) 2023-01-30 16:53:41 -07:00
Calvin Lee
d445cf6f72 feat: [scm-81]: restyle webhook list page (#261) 2023-01-27 16:02:33 -07:00
Calvin Lee
7e98f4828b feat: [scm-73]: fix empty repo page (#258) 2023-01-27 15:57:17 -07:00
Calvin Lee
001d706998 feat: [scm-73]: Update repo empty state with new design (#254) 2023-01-26 17:21:43 -07:00
Johannes Batzill
2227e13e7d [MISC] Fix Swagger and Regenerate WEB Services (#246) 2023-01-24 15:46:49 -08:00
Tan Nhu
b700603fef Sort PR activities + add animation when creating a new comment (#243)
Co-authored-by: Tan Nhu <tnhu@users.noreply.github.com>
2023-01-23 23:48:37 -08:00
Tan Nhu
16487667aa Render PR diff snapshot in the first thread comment (#239)
Co-authored-by: Tan Nhu <tnhu@users.noreply.github.com>
2023-01-22 12:32:31 -08:00
Tan Nhu
48c6802a9f Finalize PR Code Comment integration (#237) 2023-01-20 15:29:11 -08:00
Tan Nhu
56a6dba484 Implement PR code commenting using payload field (#235) 2023-01-19 16:29:38 -08:00
Tan Nhu
230fed6a52 Consolidate page spinner across UI codebase (#229) 2023-01-18 16:31:06 -08:00
Tan Nhu
e4b529d32d Consolidate NoResultCard + styling for tabs (#227) 2023-01-18 05:45:06 -08:00
Tan Nhu
09e3c89657 Add empty state for Compare and PR views (#225) 2023-01-17 17:12:53 -08:00
Tan Nhu
eed7b2c29b Consolidate logic to show No Result (#223)
* Add no result search view into repo listing view

* Consolidate logic to show No Result
2023-01-17 16:11:39 -08:00
Tan Nhu
1aa1123bd2 Consolidate pagination for the whole codebase + Use SearchInputWithSpinner component (#222)
* Remove center layout for empty repo info - hard to read

* Consolidate pagination for the whole codebase

* Use SearchInputWithSpinner component

* Use SearchInputWithSpinner component
2023-01-17 14:59:56 -08:00
Tan Nhu
a611a2c038 Remove center layout for empty repo info - hard to read (#219) 2023-01-16 12:34:59 -08:00
Tan Nhu
fd5bbc6904 Fix small git url typo (#218) 2023-01-16 12:26:41 -08:00
Tan Nhu
92c82f5c44 Disable branch creation when committing first new file into an empty repo (#217) 2023-01-16 12:20:09 -08:00
Tan Nhu
797e339e02 Implement flow to create a new file when repo is empty (#216)
* Implement flow to create a new file when repo is empty

* Implement flow to create a new file when repo is empty

* Fix edit file does not show content
2023-01-16 11:51:00 -08:00
Tan Nhu
bbae67299c Finish API integration for PR review box (#212) 2023-01-13 13:41:07 -08:00
Tan Nhu
c31c315459 Add ability to edit PR title (#211) 2023-01-13 12:17:24 -08:00
Tan Nhu
3b5542a61d Add Pagination for Diff view (#208) 2023-01-13 09:23:10 -08:00
Johannes Batzill
c827fa5e66 [MISC] Webhook Creation Default To Secure, Fix PR/Compare Commit Listing, Fix Merge Commit Message (#203)
This change is fixing a few things on both UI and backend side:
- update webhook creation screen to default to enable ssl verification (secure by default should always be the move)
- fix pr/compare commit listing to show correct diffs the head branch is ahead of the base branch (NOTE: THIS ONLY SHOWS THE LATEST 20 COMMITS - NO PAGINATION ADDED)
- fix merge commit message to contain the correct head branch, source repo path and pr numbers (similar'ish to github)
2023-01-13 02:49:39 -08:00
Johannes Batzill
d9a01ef9a3 [MISC] Update UI webhook creation to enable secure by default (#202) 2023-01-13 01:40:15 -08:00
Johannes Batzill
eabdf2ab86 [MISC] Show merged after PR got merged (#201) 2023-01-13 00:35:41 -08:00
Johannes Batzill
65c59d0b5b [MISC] Fix review bugs, regenerate swagger from latest service, fix webhook.has_secret in swagger (#198)
This change contains the following changes:
- allow submitting reviews without comment for approve
- fix openapi for /reviews api and fix UI calls for submitting reviews
- fix recently broken openapi for webhook (it removed has_secret field as part of openapi refactor)
- fix fatal submit review bug (we passed repo.UID not repo.GitUID to gitrpc - not sure how that ever worked?)
- add missing merge pr activity to list of all pr activity enum values
- return all PR states by default
- show Open PRs by default (instead of all) and fix state filtering query
- regenerate code services based on latest swagger
- fix UI code to work with regenerated code service
2023-01-12 22:39:38 -08:00
Tan Nhu
b7e0f6cce5 Minor change to disable Review changes button (#197)
* Minor change to disable Review changes button

* Update PR listing icons
2023-01-12 21:04:08 -08:00
Johannes Batzill
517166965b [UI] Add Tag Events, Enable All Events, Fix Empty Secret (#196)
* webhook edit from only show SECRET_MASK if webhook has a secret

* Add tag events, support 'all events', hide 'push events'
2023-01-12 18:24:37 -08:00
Tan Nhu
73bc9a55f7 Implement PR review changes flow (#195) 2023-01-12 12:45:31 -08:00
Tan Nhu
38fb97b8e2 Add placeholder for Review changes (#193) 2023-01-12 09:56:01 -08:00
Tan Nhu
1c5a588a83 Hide Review button when PR is merged + Fix PR.id issue (#191)
* Replace all references of PR.id by PR.number

* Hide Review button when PR is merged
2023-01-12 04:20:27 -08:00
Tan Nhu
b2bf061679 Replace all references of PR.id by PR.number (#190) 2023-01-12 02:18:16 -08:00
Tan Nhu
eb8d125f8b Minor text change (#189) 2023-01-12 02:05:50 -08:00
Tan Nhu
86bf9cb0c4 Render PR activity system type (#188) 2023-01-12 01:46:29 -08:00
Tan Nhu
6719e11c09 Add styling for two PR states (#187)
* Refresh activities after merging

* Fix activities API call using wrong PR number

* Update logic to submit webhook secret

* Update webhook with new fields (display_name, desc)

* Add styling for two PR states
2023-01-12 01:14:26 -08:00
Johannes Batzill
5b55f48772 [Tags] Adding EVENT and WEBHOOK Support For Tags (#185)
Adding tagcreated, tagupdated, and tagdeleted events.
Adding tag_created, tag_updated, and tag_deleted webhooks
2023-01-11 20:56:00 -08:00
Johannes Batzill
d4d74f0f44 [SWAGGER] update swagger with latest webhook changes and re-render web services (#184) 2023-01-11 17:41:01 -08:00
Tan Nhu
79318bd522 Fix activities API call using wrong PR number (#179)
* Refresh activities after merging

* Fix activities API call using wrong PR number
2023-01-11 12:02:22 -08:00
Tan Nhu
f7962785aa Add minor webhook edit flow improvements (#178) 2023-01-11 09:10:59 -08:00
Tan Nhu
abd132fdf6 Implement Webhook CRUD (#177) 2023-01-11 08:44:50 -08:00
Johannes Batzill
777eaadba7 regenerate web services to update to latest set of webhook triggers (#166) 2023-01-06 02:53:16 -08:00
Tan Nhu
1c769238f1 Small optimization when editing PR description (#165) 2023-01-06 02:12:01 -08:00
Tan Nhu
4938718aca Add Changes integration into PR Compare view (#164) 2023-01-06 01:56:37 -08:00
Tan Nhu
4c6c2b3b56 Fix service generation bug + fix reply to comment thread rendering (#162) 2023-01-05 23:08:39 -08:00
Tan Nhu
b2c4de4751 Full API integration for PR Conversation tab (#161) 2023-01-05 21:26:50 -08:00
Tan Nhu
8ac12ee341 API integration for Conversation comments (#153) 2023-01-02 16:14:51 -08:00
Tan Nhu
58a2d90973 Redirect to Compare when editing a file with new branch created (#149) 2022-12-29 22:41:43 -08:00
Marko Gaćeša
a79e187a88 DB & API refactor: Use snake case (#144)
Update DB and API to follow Harness Standard
2022-12-29 13:53:08 -08:00
Tan Nhu
e4ae2b269b Implement components to support PR commenting (#146) 2022-12-28 15:58:02 -08:00
Johannes Batzill
1337f729e7 [Webhook] Add Swagger (#145)
This change adds webhook APIs to swagger and regenerates the web service clients based on the latest swagger.
2022-12-28 14:42:13 -08:00
Tan Nhu
23792ab2f5 Add Diff view Line Break configuration (#135)
* Add Diff view Line Break configuration

* Minor string change
2022-12-23 00:57:56 -08:00
Johannes Batzill
63c3740e58 [UI] Consume Latest OpenAPI Specs (#134)
* regenerate CODE service code to match latest API specs

* update readme
2022-12-22 21:58:38 -08:00
Tan Nhu
9da9aa42b5 Remove bad tick from icons package (#133) 2022-12-22 15:48:00 -08:00
Tan Nhu
97e70cd581 Implement commenting thread (#132)
* Implement commenting thread

* Add extra comment example
2022-12-22 15:06:56 -08:00
Tan Nhu
da3bfc9bd0 Implement PR commenting prototype (#131)
* Remove unused packages

* Remove some unused packages

* Height adjustment calculation for DiffViewer with CommentBox inside

* Add logic to render existing comments

* Improve rendering performance

* Remove optimization that makes things slow

* Use 'auto' to boost re-layout performance

* Fix wrong height calculation when 'auto' is being sent

* Fix CommentBox height adjustment when comments got changed
2022-12-22 13:34:54 -08:00
Tan Nhu
43c7e94e06 Add markdown editor into commenting (#128)
* Small refactoring

* Refactoring: Make it a bit easier for DOM manipulation

* Add markdown editor into commenting
2022-12-20 11:28:56 -08:00
Tan Nhu
0d49ef1d69 Prototyping for diff annotations (#127) 2022-12-16 09:57:52 -08:00