Commit Graph

279 Commits

Author SHA1 Message Date
Johann Hubert Sonntagbauer 6f5723a169 enable jasmine/new-line-before-expect 2018-10-17 06:57:29 +02:00
Phil Hughes ff55aa7ebb
Fixed file templates not clearing in Web IDE
This fixes a bug where the file templates would not be cleared
after changing the template type.
Previously the templates would get pushed into the array
creating a list of templates for the different types.
This changes that by clearing the templates array
when the template type gets changed.

Closes https://gitlab.com/gitlab-org/gitlab-ce/issues/52487
2018-10-15 10:02:40 +01:00
Phil Hughes 33c4c5b8f3
Added file tree to merge request diffs
This file tree displays all the diff files in a tree like format
Each file is taken and converted into a tree with folders
Each folder can be toggled open & closed
Clicking a file will scroll to the diff file & highlight with a glow affect

Searching the tree list will search only files & return a list of the
files without any folders

Each file row contains an icon to show changed, new file or deleted
Each row will also contain the added & removed lines count

Closes https://gitlab.com/gitlab-org/gitlab-ce/issues/14249
2018-10-03 10:05:43 +01:00
Phil Hughes aac9d70a8c Merge branch 'ide-keep-right-pane-tabs-alive' into 'master'
Keep IDE RightPane views alive

See merge request gitlab-org/gitlab-ce!21980
2018-10-01 13:00:08 +00:00
Paul Slaughter adbf6149cf Keep IDE RightPane views alive
**Why?**
- This is needed for the Web Terminal feature.
  https://gitlab.com/gitlab-org/gitlab-ee/issues/5426

**Notes:**
- Introduces a `pane` Vuex module.
- Some views should not be kept alive (i.e. job details).
  This is why a `keepAlive` flag was introduced for views.
2018-09-28 15:03:39 -05:00
Phil Hughes 17735dc876
Fixed file templates not being fully fetched in Web IDE
Closes #51912
2018-09-28 19:12:45 +01:00
Clement Ho 2a6cd526ac Add gitlab-ui skeleton loading 2018-09-25 20:03:40 +00:00
Phil Hughes b328218a71
Updated specs to account for removed buttons 2018-09-21 06:51:23 +01:00
Phil Hughes 163ec966c1
Decouple file row from IDE
This makes the file row component re-usable ouside of the Web IDE

Pre-request for https://gitlab.com/gitlab-org/gitlab-ce/issues/14249
2018-09-17 12:17:00 +01:00
Phil Hughes feae897552
karma fixes 2018-09-07 11:28:03 +01:00
Phil Hughes 9badf9e723
fixed `list_item_spec.js` 2018-09-07 11:28:03 +01:00
Phil Hughes 93e84c8f28
fixed tests 2018-09-07 11:28:02 +01:00
Phil Hughes 1f808ffe9e
update components to match designs in commit section 2018-09-07 11:28:01 +01:00
Phil Hughes 21ed2da067
fixed double scroll
improved variable & prop names
2018-09-07 08:24:42 +01:00
Phil Hughes 3f6500383f
fixed some bugs around with the template dropdowns 2018-09-07 08:24:42 +01:00
Phil Hughes 5b84c2fbc2
added component specs 2018-09-07 08:24:01 +01:00
Phil Hughes c883b52686
renames file when template type is changed 2018-09-07 08:24:00 +01:00
Phil Hughes 27bce7ad2c
Fixed IDE file row jumping into view on hover
Closes #50751
2018-08-31 10:27:44 +01:00
Phil Hughes 3a283fa861
Enabled multiple uploads in the Web IDE
Closes #50405
2018-08-29 16:05:30 +01:00
Paul Slaughter 6bb0854257 Resolve "It's impossible to commit twice to the same branch" 2018-08-28 08:06:40 +00:00
Filipa Lacerda 726f5cdc2b Merge branch 'ide-file-templates-store' into 'master'
Added store for file templates in the Web IDE

See merge request gitlab-org/gitlab-ce!21272
2018-08-22 10:26:15 +00:00
Filipa Lacerda ccdd16dcd3 Merge branch 'ide-live-preview-merge-requests' into 'master'
Fixed Web IDE live preview crashing when loading from merge request

Closes #50392

See merge request gitlab-org/gitlab-ce!21252
2018-08-17 08:40:40 +00:00
Phil Hughes d80149e60e
Added store for file templates in the Web IDE
#47947
2018-08-17 09:29:59 +01:00
Phil Hughes 0ac3cd801d
fixed karma spec 2018-08-16 16:42:37 +01:00
Phil Hughes 177a5e69b6
Fixed deleting new files creating wrong state in IDE
Closes #50255
2018-08-15 14:17:44 +01:00
Filipa Lacerda 632d3a9412 Merge branch 'ide-header-buttons-tooltip' into 'master'
Added tooltips to tree list header buttons in Web IDE

Closes #50141

See merge request gitlab-org/gitlab-ce!21138
2018-08-13 08:58:03 +00:00
Filipa Lacerda 7167e3991f Merge branch 'ide-preview-hotreloading-fix' into 'master'
Fixed Web IDE live preview not hot reloading

Closes #50231

See merge request gitlab-org/gitlab-ce!21141
2018-08-13 08:51:30 +00:00
Paul Slaughter 0a3d18b0e2 Backstage/ide router refactoring 2018-08-13 08:12:21 +00:00
Phil Hughes dcec090736
added spec 2018-08-13 08:40:15 +01:00
Phil Hughes f3d37980ce
fixed karma spec 2018-08-10 16:50:49 +01:00
Paul Slaughter 0d6e50d542 Create Web IDE MR and branch picker 2018-08-07 15:15:56 +00:00
Phil Hughes 7b4b9e1cc4
Web IDE & CodeSandbox
This enables JavaScripts projects to have live previews straight in the
browser without requiring any local configuration. This uses the
CodeSandbox package `sandpack` to compile it all inside of an iframe.

This feature is off by default and can be toggled on in the admin
settings. Only projects with a `package.json` and a `main` key are
supported.

Updates happen in real-time with hot-reloading. We just watch for
changes to files and then send them to `sandpack` to allow it to reload
the iframe. The iframe includes a very simple navigation bar, the text
bar is `readonly` to stop users navigating away from the preview and
the back and forward buttons just pop/splice the navigation stack
which is tracked by a listener on `sandpack`

There is a button inside the iframe which allows the user to open the
projects inside of CodeSandbox. This button is only visible on
**public** projects. On private or internal projects this button
get hidden to protect private code being leaked into an external
public URL.

Closes #47268
2018-08-07 14:45:55 +01:00
Paul Slaughter db739548fe Web IDE context header redesign 2018-08-07 13:19:13 +00:00
Filipa Lacerda b901df220c Merge branch 'ide-rename-files' into 'master'
Enable renaming files & folders in the Web IDE

Closes #44845

See merge request gitlab-org/gitlab-ce!20835
2018-08-03 10:00:48 +00:00
Phil Hughes 19eecd01fa
fixed karma 2018-08-02 16:21:48 +01:00
Phil Hughes bc827dfd3a
fixed review mode diffs 2018-08-02 14:28:44 +01:00
Phil Hughes 9e5bc59968
Fixed Web IDE row dropdowns scrolling list incorrectly
Closes #49892
2018-08-02 13:47:23 +01:00
Phil Hughes 6112d8922c
more spec fixes 2018-08-02 09:21:30 +01:00
Phil Hughes f199e672a8
spec fixes 2018-08-02 08:49:10 +01:00
Phil Hughes 3cbc2ea114
fixed karma 2018-07-31 10:33:44 +01:00
Phil Hughes 9712a6dd18
specs 2018-07-31 09:18:24 +01:00
Filipa Lacerda 02e35a0d26 Merge branch 'ide-warn-staged-files' into 'master'
Warn in IDE when user navigates away with staged changes

See merge request gitlab-org/gitlab-ce!20857
2018-07-31 07:54:27 +00:00
Phil Hughes fd3ef2eb88
karma fixes 2018-07-30 17:35:56 +01:00
Phil Hughes 377afd65d1
Enable renaming files & folders in the Web IDE
Closes #44845
2018-07-30 11:45:14 +01:00
Felipe Artur 13ea4b387d Merge remote-tracking branch 'dev/master' 2018-07-26 18:30:50 -03:00
Felipe Artur Cardozo 9852304bef Merge branch 'security-ide-branch-name-xss' into 'master'
[master] Fixed XSS in branch name in Web IDE

See merge request gitlab/gitlabhq!2431
2018-07-26 21:16:24 +00:00
Phil Hughes cded268ca1 Enable deleting files in the Web IDE 2018-07-26 14:56:56 +00:00
Phil Hughes 4154477ca7
Warn in IDE when user navigates away with staged changes 2018-07-26 14:50:06 +01:00
Phil Hughes 832dcd6c90 Fixed IDE not opening JSON files 2018-07-26 08:34:05 +00:00
Clement Ho 3873617548 Merge branch '47530-replace-label-light-with-label-bold' into 'master'
Resolve "Replace all usages of `label-light` with `label-bold`"

Closes #47530 and #41725

See merge request gitlab-org/gitlab-ce!20727
2018-07-20 19:20:01 +00:00