Commit Graph

1540 Commits

Author SHA1 Message Date
Lauren Melendez
81d211eb32
Storybook Storysource addon implementation (#38502)
* implemented storysource addon and docs addon

* format fix

* removed props for UI bug

* props error fix

* added comment for context

* added comment for context
2022-07-12 18:17:48 -04:00
Valery Bugakov
0ffa954b83
web: mute Polly.js error logging on CI (#38406) 2022-07-11 01:24:53 -07:00
GitStart-SourceGraph
2dc33d44bf
[SG-36701] Fix for json-schema which is vulnerable to Prototype Pollution (#37091)
* Fix for json-schema which is vulnerable to Prototype Pollution

Co-authored-by: gitstart-sourcegraph <gitstart@users.noreply.github.com>
2022-07-08 22:33:28 +07:00
Felix Kling
57b687ceff
codemirror: Upgrade to version 6 (#38422)
This commit upgrades all CodeMirror related packages to official major
version 6. There are no specific features that we need though bug fixes
are always nice.

The issue I encountered in 7d96c4c8ca do
not exist anymore (either we or CodeMirror changed something).
2022-07-08 09:36:54 +02:00
Oleg Gromov
2f535e86f3
HK: Remove @types from dependencies and move them to devDependencies (#38389) 2022-07-07 10:08:45 +00:00
Valery Bugakov
33a4527404
web: enable storyStoreV7 in Storybook (#38199) 2022-07-06 19:36:29 -07:00
Rok Novosel
beb6f7e8f6
search: remove onboarding tour (#38142) 2022-07-06 13:22:27 +02:00
Vova Kulikov
be4f21bf0e
Revert "Revert "Code Insights: Add pings for the standalone insight page" (#37865)" (#38112)
This reverts commit 71da598f59.
2022-07-05 10:54:56 -04:00
Valery Bugakov
260572ae2a
web: drop Datadog RUM support (#38063) 2022-07-05 00:15:44 -07:00
Chris Wendt
20f937d00b
Update jsonc-parser (#37050) 2022-07-01 10:59:43 -06:00
Felix Kling
7d96c4c8ca
codemirror: Migrate SiteAdminPingsPage to use CodeMirror (#38010)
Migrating this Monaco callsite seems low risk because it is a read-only
JSON view. The main Monaco feature used here appears to be code folding,
which CodeMirror also provides.

Overall I've identified the following features/characteristics:

- Read-only
- Syntax highlighting for JSON
- Code folding for JSON
- Fixed editor height
- Idendation guides

There is no "default" extension for idendation guides, so this feature
was not migrated. However, if this is strongly desired it's possible to
build a custom extension for that.

Since this it the first Monaco migration outside of Notebooks and the
search query input I also added a couple of default extensions meant to
be shared by other CodeMirror instances in the future. Specifically I
added a syntax highlighting theme to use our existing colors and tried
to approximate Monaco's theme.

**Note:** I'm deliberately using v0.20.0 of @codemirror/lang-json
because using the latest version would require updating the other
@codemirror/* packages. Those seem to cause some focus issue with our
main search query input and the menu though.
2022-07-01 09:41:57 +00:00
Vova Kulikov
71da598f59
Revert "Code Insights: Add pings for the standalone insight page" (#37865)
Revert "Code Insights: Add pings for the standalone insight page (#37521)"

This reverts commit 9611679cb9.
2022-06-28 15:39:31 -04:00
GitStart-SourceGraph
2c780067de
[SG-36532] NPM dependency upgrades: Improper Certificate Validation in xmlhttprequest-ssl (#37092)
* feat: upgrade version of socket.io-client and socket.io-client

Co-authored-by: gitstart-sourcegraph <gitstart@users.noreply.github.com>
2022-06-28 10:29:46 +07:00
GitStart-SourceGraph
3793507b51
[SG-36442] NPM dependency upgrades: Incorrect Comparison in axios (#36622)
* feat: upgrade chromatic and @slack/web-api for security axios

Co-authored-by: gitstart-sourcegraph <gitstart@users.noreply.github.com>
2022-06-28 10:04:57 +07:00
Vova Kulikov
9611679cb9
Code Insights: Add pings for the standalone insight page (#37521)
* Add standalone insight page view ping

* Add dashboard pills clicks ping

* Add standalone insight page edit clicks ping

* Add useDebounce package for throttling ping callback event

* Support onFormValueChange callback in the useForm API

* Add filters change ping for the standalone insight page

* Add new pings on the backend

* Add newly added pings to the code insights pings page

* Format after main rebasing

* Format types.go

* Fix onChange description comment

* Update doc/dev/background-information/insights/code_insights_pings.md

Co-authored-by: leo <leo.p@sourcegraph.com>

* Update internal/usagestats/code_insights.go

Co-authored-by: leo <leo.p@sourcegraph.com>

* Fix CodeInsightIndependentPageActions

* Fix code insights types

* Fix code insights metrics SQL

* fix missing quote on query

* add missing types in want

* Fix view insight ping event code in the doc

Co-authored-by: leo <leo.p@sourcegraph.com>
Co-authored-by: leo <leonore@protonmail.com>
2022-06-27 17:11:33 -04:00
Valery Bugakov
0642347ef8
web: introduce test-integration:debug command (#37595) 2022-06-24 03:51:00 -07:00
GitStart-SourceGraph
a378fda806
[SG-36530] NPM dependency upgrades: Prototype Pollution in lodash (#36614)
Co-authored-by: gitstart-sourcegraph <gitstart@users.noreply.github.com>
2022-06-23 12:14:34 +01:00
Jean-Hadrien Chabran
88dce333b9
Remove deprecated dev/sg/install.sh (#37567) 2022-06-22 19:46:49 +02:00
Tom Ross
8c9aea3862
<Icon />: Update component for more control over <svg> element (#37474) 2022-06-22 09:53:07 +01:00
Oleg Gromov
60de19cb21
Router V6 Migration: add CompatRouter and update Link component (#37348) 2022-06-21 15:30:54 +03:00
Tom Ross
8f02ed2871
<Icon />: Update to support @mdi/react instead of mdi-react (#37387) 2022-06-20 13:39:31 +01:00
Thorsten Ball
d6f0c8779a
Revert "WIP Router V6 migration: update Link component (#36285)" (#37267)
This reverts commit 4cda7bf0b4 introduced
in #36285.

It breaks the new reference panel on sourcegraph.com
2022-06-15 11:31:28 +00:00
Oleg Gromov
4cda7bf0b4
WIP Router V6 migration: update Link component (#36285) 2022-06-14 10:52:07 +03:00
TJ Kandala
bf6fadfed9
vscode: add experimental esbuild support (#34010)
Co-authored-by: Beatrix <68532117+abeatrix@users.noreply.github.com>
2022-06-09 22:42:45 -04:00
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