summaryrefslogtreecommitdiff
path: root/app/assets/javascripts/diffs/store/actions.js
Commit message (Collapse)AuthorAgeFilesLines
* Collapse diff tree is only one file is presentPhil Hughes2019-03-191-2/+5
| | | | Closes https://gitlab.com/gitlab-org/gitlab-ce/issues/53139
* Fix expand all button not workingPhil Hughes2019-03-111-0/+3
| | | | Closes https://gitlab.com/gitlab-org/gitlab-ce/issues/51737
* Add option to expand diff to full filePhil Hughes2019-03-061-0/+35
| | | | | | The user can also toggle between the diff changes and the full file diff. Closes https://gitlab.com/gitlab-org/gitlab-ce/issues/19054
* Set up basic keyboard next/previous navigation in diff listDenys Mishunov2019-02-271-2/+2
| | | | | | | | | | | | Mousetrap is used as the help-tool to listen to keystrokes Added currentDiffIndex getter to store that holds the index of currently active diff file in the list Instead of computing it on the component, we will take advantage of it being available for all components in DiffsApp Testing keyboard navigation and jumpToFile()
* Merge branch 'fix-diffs-not-rendering' into 'master'Filipa Lacerda2019-02-181-0/+2
|\ | | | | | | | | Fix diff files not rendering See merge request gitlab-org/gitlab-ce!25358
| * Fix diff files not renderingPhil Hughes2019-02-181-0/+2
| | | | | | | | | | | | | | Fixes some diff files not rendering when the renderIt property is updated. Previously it was using a local copy of renderIt which meant Vue wouldn't update it when the files renderIt property was updates
* | Merge branch 'diff-tree-resizable' into 'master'Filipa Lacerda2019-02-181-0/+5
|\ \ | |/ |/| | | | | | | | | Make the file tree in merge requests resizable Closes #51857 See merge request gitlab-org/gitlab-ce!25097
| * Make the file tree in merge requests resizablePhil Hughes2019-02-151-0/+5
| | | | | | | | Closes https://gitlab.com/gitlab-org/gitlab-ce/issues/51857
* | Replaced part of diff file properties with diff viewerNatalia Tepluhina2019-02-151-2/+4
|/ | | | | | - replaced file.too_large - replaced file.text - replaced file.collapsed
* Added fuzzy file finder to merge requestsPhil Hughes2019-02-051-0/+4
| | | | Closes https://gitlab.com/gitlab-org/gitlab-ce/issues/53304
* Added dropdown for diff settingsPhil Hughes2019-01-241-1/+19
| | | | | | | Dropdown includes buttons for tree view rendering mode and buttons for the compare view (inline or side-by-side) Closes https://gitlab.com/gitlab-org/gitlab-ce/issues/55491
* Collapses directory structure in merge request treePhil Hughes2019-01-151-1/+14
| | | | Closes https://gitlab.com/gitlab-org/gitlab-ce/issues/53069
* Resolve "Navigating unresolved discussions on Merge Request page"André Luís2018-12-081-1/+27
|
* Pass commit when posting diff discussionsWinnie Hellmann2018-12-051-1/+2
|
* Fixed expanding diff commit filesPhil Hughes2018-12-051-6/+12
| | | | Closes https://gitlab.com/gitlab-org/gitlab-ce/issues/50662
* Fixed diff files not expandingPhil Hughes2018-12-041-1/+1
| | | | Closes https://gitlab.com/gitlab-org/gitlab-ce/issues/54868
* Resolve "Merge request refactor does not highlight selected line"Sam Bigelow2018-11-301-2/+6
|
* Improve discussion rendering performancePhil Hughes2018-11-271-5/+5
| | | | | | | | | | | Improve the renderign of new and existing discussions by reducing the number of watchers on each object & array. Previously every discussion change would trigger an update for every discussion component. Also tidied up some components to get them closer to our docs. Closes https://gitlab.com/gitlab-org/gitlab-ce/issues/51506
* Prettify all the thingsMike Greiling2018-11-201-5/+7
|
* Rename diffs store variableGeorge Tsiolis2018-11-151-1/+1
|
* Made diff & note data consistentPhil Hughes2018-11-141-3/+3
| | | | | | | | | | This caused many pain points when working with it. Part of the data was camel cased the other snake case. Other parts where snake case & then getting converted in components, this conversion has the potential for leaking memory. This changes that & makes it consistent with what it returned from the API, snake case.
* Init task list when creating new note & discussionPhil Hughes2018-11-091-0/+1
|
* Re-implemented image commenting on diffsPhil Hughes2018-11-051-2/+17
| | | | | | | | | | | | | | | | | | | | | This re-implements image commenting in merge request diffs. This feature was previously lost when the merge request page was refactored into Vue. With this, we create an overlay component. The overlay component handles displaying the comment badges and the comment form badge. Badges are displayed based on the position attribute sent with the discussion. Comment forms for diff files are controlled through a different state property. This is so we don't tie comment forms to diff files directly creating deep nested state. Instead we create a flat array which holds the file hash & the X & Y position of the comment form. Closes https://gitlab.com/gitlab-org/gitlab-ce/issues/48956
* Update the state, not a paramPhil Hughes2018-10-251-20/+4
| | | | | Also fixed a bug where discussions wouldn't be assigned to a line when switching from discussion tab to changes tab
* Impove diff discussion datamr-diff-dataPhil Hughes2018-10-241-15/+27
| | | | Pre-request to https://gitlab.com/gitlab-org/gitlab-ce/issues/48956
* Added file tree to merge request diffsPhil Hughes2018-10-031-0/+19
| | | | | | | | | | | | | | | 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
* Use returned discussion from APIPhil Hughes2018-09-211-1/+18
| | | | | | | We now use the returned discussion instead of re-fetching all of the discussions and filtering out the ones we don't need. This speeds up the process of creating a diff discussions by saving us another API request before we can render the discussion
* Resolve "Link to file in Changes tab of MR no longer works for all files ↵André Luís2018-09-201-1/+20
| | | | after incremental rendering improvement"
* Resolve "Merge requests show outdated discussions on changes tab"André Luís2018-09-081-2/+9
|
* Adapted so utils + actions don't include any mutations and mutations are ↵Tim Zallmann2018-09-071-53/+5
| | | | always against state
* Fixes based on MR discussion around naming, mutations, handling of stateTim Zallmann2018-09-071-11/+7
|
* Made the discussion tests artificial to have them stable, mocked RAF + RICTim Zallmann2018-09-071-0/+1
|
* Fixed Resolving, Loading more and Line BugsTim Zallmann2018-09-071-8/+13
|
* Fix for displaying left side comments when no discussion availableTim Zallmann2018-09-071-5/+7
|
* Fixed Left side commentsTim Zallmann2018-09-071-1/+5
|
* Delete Discussions fixTim Zallmann2018-09-071-0/+24
|
* Fixed Problems with Inline View + SpecsTim Zallmann2018-09-071-9/+15
|
* Removed the testing console.log'sTim Zallmann2018-09-071-8/+0
|
* Adding new threads to MR pageTim Zallmann2018-09-071-1/+2
|
* Loading Discussions later on DiffsTim Zallmann2018-09-071-14/+53
|
* Fixed text removal memory saving + Fixed collapsed non text filesTim Zallmann2018-08-081-1/+3
|
* ESLint FixesTim Zallmann2018-08-081-1/+0
|
* Incremental Rendering of the MRTim Zallmann2018-08-081-0/+20
|
* Adds specs for toggleFileDiscussions actionFilipa Lacerda2018-07-111-3/+1
|
* Adds specs for getters in merge request vuex diff moduleFilipa Lacerda2018-07-111-1/+0
|
* Merge branch 'master' into 48237-toggle-file-commentsFilipa Lacerda2018-07-101-12/+2
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * master: (38 commits) Update bitbucket.md to fix typo and small grammar touchups. Update time_helper.rb to fix output for exact minutes. Document update for GitLab Pages users. Support manually stopping any environment from the UI Fix link to frontend in handbook Shorten CHANGELOG filename to avoid breaking ecryptfs users Replace 48976-rails5-invalid-single-table-inheritance-type-group-is-not-a-subclass-of-gitlab-backgroundmigration-fixcrossprojectlabellinks-namespace.yml Fix mountComponent helper path in docs Fix #48537 - Update avatar only via the projects API Add additional headline for Adding SSH keys to GitLab Request to be a proofreader. Fix specs Fix search bar text input alignment Fix API docs on unauthenticated projects return Adds with_projects optional parameter to /groups/:id API endpoint Docs: make it clear that you need a completely separate domain for Pages Document that we don't want to wait in tests Removes unused store in diffs mr refactor Removes double export for actions in diffs module in mr refactor Remove useless return Use latest gitlab-styles ...
| * Removes unused store in diffs mr refactorFilipa Lacerda2018-07-091-11/+2
| | | | | | | | Removes double export for actions in diffs module in mr refactor
* | Fixes toggle discussion button not expanding collapsed discussionsFilipa Lacerda2018-07-101-0/+31
|/ | | | | | | | | | | | | | Discussions were being toggled by jquery DOM querying them and toggling visibility but in vue, only the open discussions will be in the DOM Fix includes: - Adds a getter to the store to get the expanded discussions - Adds an action to collapse a discussion - When the user clicks the button, all data needed is now accessible through a getter and we can dispatch an action to toggle the discussion within the state, instead of showing/hiding with jQuery - Removes hardcoded properties Resolves #48237
* Prevent fetching diffs and discussions data unnecessarily on MR pageFatih Acet2018-06-291-5/+0
|
* Added Diff Viewer to new VUE based MR pageTim Zallmann2018-06-261-3/+4
|