Commit Graph
5 Commits
Author SHA1 Message Date
zeripath 60ef2a7c67 Add fullTextSearch to dropdowns by default (#14694)
This PR adds `fullTextSearch: 'exact'` to most dropdown
invocations meaning that if there is a search box for the
dropdown it will automatically do a fullTextSearch looking
for the provided fragment instead of starting at the beginning

We should consider changing other places that use
`fullTextSearch: true` to `'exact'` because these will be using a
fuzzy-textual search that doesn't necessarily return the
expected results.

Fix #14689

Signed-off-by: Andrew Thornton <[email protected]>
2021-02-16 11:03:32 +08:00
zeripath c05a8abc76 Multiple GitGraph improvements: Exclude PR heads, Add branch/PR links, Show only certain branches, (#12766)
* Multiple GitGraph improvements.

Add backend support for excluding PRs, selecting branches and files.

Fix #10327

Signed-off-by: Andrew Thornton <[email protected]>

* as per @silverwind

Signed-off-by: Andrew Thornton <[email protected]>

* as per @silverwind

Signed-off-by: Andrew Thornton <[email protected]>

* Only show refs in dropdown we display on the graph

Signed-off-by: Andrew Thornton <[email protected]>

* as per @silverwind

Signed-off-by: Andrew Thornton <[email protected]>

* use flexbox for ui header

Signed-off-by: Andrew Thornton <[email protected]>

* Move Hide Pull Request button to the dropdown

Signed-off-by: Andrew Thornton <[email protected]>

* Add SHA and user pictures

Signed-off-by: Andrew Thornton <[email protected]>

* fix test

Signed-off-by: Andrew Thornton <[email protected]>

* fix test 2

Signed-off-by: Andrew Thornton <[email protected]>

* fixes

* async

* more tweaks

* use tabs in tmpl

Signed-off-by: Andrew Thornton <[email protected]>

* remove commented thing

Signed-off-by: Andrew Thornton <[email protected]>

* fix linting

Signed-off-by: Andrew Thornton <[email protected]>

* Update web_src/js/features/gitgraph.js

Co-authored-by: silverwind <[email protected]>

* graph tweaks

* more tweaks

* add title

Signed-off-by: Andrew Thornton <[email protected]>

* fix loading indicator z-index and position

Co-authored-by: silverwind <[email protected]>
Co-authored-by: techknowlogick <[email protected]>
Co-authored-by: Lauris BH <[email protected]>
2020-11-08 12:21:54 -05:00
zeripath 2c1ae6c82d Render the git graph on the server (#12333)
Rendering the git graph on the server means that we can properly track flows and switch from the Canvas implementation to a SVG implementation.

* This implementation provides a 16 limited color selection
* The uniqued color numbers are also provided
* And there is also a monochrome version
*In addition is a hover highlight that allows users to highlight commits on the same flow.

Closes #12209

Signed-off-by: Andrew Thornton [email protected]
Co-authored-by: silverwind <[email protected]>
2020-08-06 09:04:08 +01:00
zeripath 2ab185d3ab Rewrite GitGraph.js (#12137)
The current vendored gitgraph.js is no longer maintained and is
difficult to understand, fix and maintain.

This PR completely rewrites its logic - hopefully in a clearer fashion
and easier to maintain.

It also includes @silverwind's improvements of coloring the commit dots
and preventing the flash of incorrect content.

Further changes to contemplate in future will be abstracting out of the
flows to an object, storing the involved commit references on the flows
etc. However, this is probably a required step for this.

Replaces #12131
Fixes #11981 (part 3)

Signed-off-by: Andrew Thornton <[email protected]>
2020-07-05 02:04:24 +01:00
silverwind e03d627769 Misc JS linting and naming tweaks (#10652)
- lowercase all js filenames except Vue components
- enable new lint rules, mostly focused on shorter code
- autofix new lint violations
- apply misc transformations indexOf -> includes and onevent-> addEventListener

Co-authored-by: Antoine GIRARD <[email protected]>
2020-03-11 21:34:54 +02:00