Commit Graph

1516 Commits

Author SHA1 Message Date
Valery Bugakov
4a09ea0f27
web: upgrade Storybook (#36437) 2022-06-06 20:30:11 -07:00
Erik Seliger
5be5ab7d75
batches: fix ordinal representation of queue rank (#36615)
Fix ordinal representation of queue rank

Why is english so hard I need a library for this :upside_down:
2022-06-07 01:01:49 +02:00
Andre Eleuterio
db5ed8bd96
Upgrade marked dependency (#36494)
Upgrade marked dep
2022-06-06 16:03:14 -03:00
Philipp Spiess
f94359ea47
Update eslint-config (#36547) 2022-06-03 14:13:00 +00:00
Vova Kulikov
816ec34c4c
Code Insights: Update visx packages and remove legacy unused chart packages (#36345)
Update visx packages and remove legacy unused chart packages
2022-06-02 10:24:58 +08:00
Laura Hacker
feb3429727
[Wildcard] New Tooltip Component (#35870)
* Stub in basic example Tooltip compound component

* Add new Wildcard Tooltip using Radix, basic Storybook story

* Simplify Tooltip API, add Wildcard styles

* Updates from PR feedback

* Finalize Tooltip tests, ESLint rule

* Additional PR feedback, support conditional tooltips

* Fix existing Tooltip imports

* Remove old ESLint rule disabling import of Tooltip component from Wildcard

* Update which Tooltip component is used in main JetBrains app file
2022-05-31 13:40:48 -04:00
Philipp Spiess
0b3c8aa286
JetBrains: Encoding and bug fixes (#36282)
This PR fixes a lot if bugs that we had with our preview component. Specifically we:

- Change the content encoding in our JS -> Java bridge to be a base64 representation to avoid issues in the JSON parsing libraries (it would through before we could even do any workarounds in user space).
- Use a proper base64 encoding library on the JS side that handles all Unicode characters (`btoa()` would error on some files with `[Failed to execute 'btoa' on 'Window': The string to be encoded contains characters outside of the Latin1 range.](https://stackoverflow.com/questions/23223718/failed-to-execute-btoa-on-window-the-string-to-be-encoded-contains-characte)`).
- Make the `content` field optional in the JS -> Java bridge to support files with no preview out of the box (We use this for when previewing binary files but also for types that do not have a preview). **Note: We need to change the Java side rendering to use a label instead of the editor component when content is null.**
- We fix `getCharacterCountUntilLine` to ignore `\r\n` the same way that our content preparation is doing so that index match again.
- We query `highlight` in the Blob query to get a server-side error when the file we download is a binary file. We can use this to:
   - Avoid downloading the file when it's a binary
   - Know when we do not want to render a preview
- Add all support match types to `getFirstResultId()` to properly select the right match to preview automatically (previously this would either be the first content match if one content match was in the search result list or _nothing_).
2022-05-31 07:20:53 -07:00
GitStart-SourceGraph
00039658b5
Upgrade to the latest version of ESLint (#35111)
Co-authored-by: gitstart-sourcegraph <gitstart@users.noreply.github.com>
Co-authored-by: Valery Bugakov <skymk1@gmail.com>
2022-05-31 07:08:01 +01:00
Vova Kulikov
948ca3523d
WebApp [Typescript]: Update TS version to 4.7.2 (#36033)
* Update TS version to 4.7.2

* Update gql types and revert handling error type problems

* Update ts-loader

* Use T|null instead of Partial<T>| undefined for the GQL response data
2022-05-31 13:57:14 +08:00
Andre Eleuterio
709793f1fb
Upgrading dependencies (#36185)
* upgrade golang dependencies

* go mod tidy

* go mod tidy

* bump eventsource

* bump goland tools

Co-authored-by: Dave Try <davetry@gmail.com>
2022-05-30 10:43:58 -03:00
Ólafur Páll Geirsson
9dcdfb95d9
Remove unused LSIF Typed code (#35791)
* Add diff for a TypeScript file to trigger CI job

* Rename job

* Delete unnecessary TypeScript file after validating CI job

* Remove unused "LSIF Typed" code

This code got moved to a separate repo github.com/sourcegraph/scip.
2022-05-25 11:23:13 +00:00
Valery Bugakov
b3f63c939b
web: integrate @sourcegraph/eslint-plugin-sourcegraph (#35040) 2022-05-24 19:38:47 -07:00
GitStart-SourceGraph
241ddad77f
[SG-35349] Migrate to use @stripe/react-stripe-js from react-stripe-elements (#35610)
* feat: stripe/react-stripe-js migration from react-stripe-elements

Co-authored-by: gitstart-sourcegraph <gitstart@users.noreply.github.com>
2022-05-25 09:25:16 +07:00
Rijnard van Tonder
2615f93d64
compute: use authenticated endpoint via POST method (#35765) 2022-05-20 02:38:20 +00:00
Rijnard van Tonder
5eeff07537
Revert "compute: use authenticated endpoint via POST method" (#35764)
Revert "compute: use authenticated endpoint via POST method (#35758)"

This reverts commit 4154855409.
2022-05-19 19:44:15 -06:00
Rijnard van Tonder
4154855409
compute: use authenticated endpoint via POST method (#35758) 2022-05-20 00:41:20 +00:00
Felix Kling
1e03ba58ad
codemirror: Update packages and add undo/redo to search query input (#35566)
CodeMirror has been updated to v0.20, which introduces a new package structure (and other changes) as outlined here: https://discuss.codemirror.net/t/release-0-20-0/4302

This PR also introduces proper undo/redo to the search query input by adding the corresponding extension and keymaps.
2022-05-18 11:52:50 +02:00
Valery Bugakov
41ec983a9f
web: integrate @sourcegraph/stylelint-plugin-sourcegraph and ban bootstrap imports (#34956) 2022-05-05 04:27:26 +00:00
Valery Bugakov
35d47fea57
web: drop ts-morph package (#34685) 2022-04-29 05:37:16 +00:00
Tom Ross
d589a07e24
Accessibility: Support global announcements (#34506) 2022-04-28 10:16:52 +01:00
Philipp Spiess
99981f91c3 Fix eslint changed regex to not match kts files 2022-04-22 14:39:49 +02:00
Valery Bugakov
b553e2dd9d
web: initial Datadog RUM integration (#34063) 2022-04-22 06:09:34 +00:00
Valery Bugakov
0b191e08cb
ci: use merge-base to get a list of changed files for lint:changed commands (#34275) 2022-04-21 06:57:55 -07:00
Tom Ross
ceb72ab5bf
CI: Reduce log spam in CI to fix errors with Buildkite reporting (#34262) 2022-04-21 13:02:23 +01:00
Valery Bugakov
7f27382f25
web: lint root *.js files (#34164) 2022-04-20 05:22:08 -07:00
Vova Kulikov
fa2e2a7709
Code Insights: Migrate dashboard chart cards to new chart and card components API (#33799)
* Create InsightCard component (abstraction for building insight card for the dashboard page)

* Migrate BuiltIn (runtime insight) card component

* Improve type safety over data fetching state

* Revamp backend insight api methods

* Move locked chart view to insight folder

* Update some of @visx packages
2022-04-15 13:06:50 +04:00
Chris Wendt
1d6787f8cf
Add Squirrel to the new ref panel (#33638) 2022-04-15 04:12:08 +00:00
GitStart-SourceGraph
c5b2c95dd7
Fix integration test script command (#33898) 2022-04-14 11:57:12 +00:00
Valery Bugakov
7f93d86af3
web: allow empty input for lint:css:changed (#33899) 2022-04-14 11:50:56 +00:00
Valery Bugakov
5dff274350
web: fix stylelint issues (#33891) 2022-04-14 08:39:54 +00:00
Valery Bugakov
868472f43e
ci: run client linters on changed files (#33701) 2022-04-14 00:37:25 -07:00
TJ Kandala
17918fd041
vsce: implement search UI (#30084)
Co-authored-by: Beatrix <68532117+abeatrix@users.noreply.github.com>
Co-authored-by: Alex Isken <alex.isken@sourcegraph.com>
Co-authored-by: Sara Lee <87138876+jjinnii@users.noreply.github.com>
Co-authored-by: Philipp Spiess <hello@philippspiess.com>
Co-authored-by: Giselle Northy <northyg@oregonstate.edu>
Co-authored-by: Beatrix <beatrix@sourcegraph.com>
2022-04-13 12:41:07 -04:00
Taras Yemets
32969882ec
bext: refactor to use yarn workspaces in commands (#33700) 2022-04-12 10:13:18 +03:00
GitStart-SourceGraph
7ba3853c66
Upgrade to the latest version of React (#33641)
Co-authored-by: gitstart-sourcegraph <gitstart@users.noreply.github.com>
2022-04-11 16:14:26 +01:00
Rok Novosel
5d685c79f5
Notebooks outline (#33530) 2022-04-11 11:17:07 +02:00
Valery Bugakov
fe2f68eedf
web: split E2E tests per team based on survey results (#33582) 2022-04-10 22:56:45 -07:00
Andre Eleuterio
51a6b82641
Upgrade node-fetch version (#33194)
* Upgrade node-fetch version

* Fix yarn probs
2022-03-30 13:46:00 -03:00
Andre Eleuterio
bdd0f5d254
Upgrade graphiql (#33181)
* Upgrade graphiql

* web: yarn deduplicate

Co-authored-by: Valery Bugakov <skymk1@gmail.com>
2022-03-30 13:45:43 -03:00
Felix Kling
ce77168236
notebooks: Use CodeMirror for markdown block (#32919) 2022-03-28 13:56:56 +02:00
Milan Freml
f0376a1e15
[site-admin] Add feature flag override management to site admin (#33001)
* [site-admin] Add feature flag override management to site admin

* Fix graphql operation naming for gulp generate

* Fix linting problem in SCSS

* Add error handling for updating and deleting overrides

* Fix yarn build-ts errors

* Fix ESLint errors

* Change add override modal based on PR feedback

* Change label based on override type
2022-03-25 14:23:28 +01:00
Tom Ross
a2d6a94781
Integration tests: Add option to run automated accessibility audits (#32895) 2022-03-24 16:47:44 +00:00
Vova Kulikov
a59c3a51e4
Web: [Charts] Add new pie chart (#32935)
* Update @visx/annotation version

* Add pie chart
2022-03-24 19:44:43 +04:00
Felix Kling
7e0d079d94
search: Add possibilty to use CodeMirror for the search query input (#32446)
This commit introduces CodeMirror for the search query input, which is gated behind the new `editor` experimental feature flag. `LazyMonacoQueryInput` uses that value to determine which editor to load. If set to `codemirror6`, CodeMirror will be used for the search query input. For more information about this change, please see the PR description: https://github.com/sourcegraph/sourcegraph/pull/32446 .
2022-03-21 17:34:27 +01:00
Vova Kulikov
f30139e499
Web [Charts]: Use wildcard Popover instead of floating-ui (#32543)
* Use wildcard Popover instead of floating-ui
* Fix MenuList popover position prop
2022-03-16 12:30:38 +04:00
Vova Kulikov
ef15103878
Web: Update code style with the latest eslint-config (#32578)
* Update package.json

* Reformat code with the latest config

* Fix typecasting for the console.ts
2022-03-15 18:00:55 +04:00
Vova Kulikov
cb20941505
Webapp: Index tabs and tab panels for the panel blob component (#31130)
* Index tabs and tab panels for the panel blob component

* Revert "Revert "Webapp: Update @reach-ui and react-focus packages versions (#30845)" (#31132)"

This reverts commit 4a84d83503.

* Move StatoscopePlugin to the build-config package
2022-03-13 16:09:18 +04:00
Rijnard van Tonder
f0ca58171f
compute: add notebook block component (#32290) 2022-03-09 17:38:35 -08:00
Kelli Rockwell
2bfac7a91d
Wildcard V2: Introduce MultiSelect (#32103) 2022-03-09 09:56:19 -08:00
TJ DeVries
6187cdea71
syntax-highlighter: Add C# Support (#31811)
Add C# support and fix some multi-line bugs for tree-sitter highlighting
2022-03-02 12:02:36 -05:00
GitStart-SourceGraph
5188fab010
Enable eslint-plugin-wildcard globally (#30830)
* Enable eslint-plugin-wildcard globally

Co-authored-by: gitstart-sourcegraph <gitstart-sourcegraph@users.noreply.github.com>
2022-03-02 21:19:54 +07:00