Commit Graph

8379 Commits

Author SHA1 Message Date
Felix Kling
4497bba9ad
svelte: Add link to code-graph page to repo navigation (#62899)
This adds a link to the repository's code-graph page to the repo
navigation.

Additional changes:
- added a flag to each menu item that specifies whether
or not show the entry for non-admin users (defaults to `false`)
- updated vite's proxy configuration to properly load React repo pages
  from the server
2024-05-24 17:11:35 +02:00
Camden Cheek
53c3d3cfd1
Svelte: add copy button and reduce spacing (#62867)
This adds a copy button to the file path in the file view, reduces spacing between path elements, and removes spaces from the the copied text for the file path.
2024-05-24 13:40:59 +00:00
Felix Kling
7f7ea20e2d
svelte: Allow closing the diff and commit view from the history panel (#62901)
This updates the history panel entries to allowing closing the diff and
commit view by clicking the same link again (i.e. the commit subject or
the 'view at commit' button).
2024-05-24 15:37:49 +02:00
Felix Kling
1195dd9049
svelte: Format code (#62900)
This simply runs `pnpm format` and the LSPs formatter to format .svelte
files that have been recently added.

(we do not run the formatter for .svelte files in CI)
2024-05-24 12:30:21 +00:00
Felix Kling
d01b4cb140
svelte: Fix GraphQL error on contributors page (#62896) 2024-05-24 13:12:27 +02:00
David Veszelovszki
ebe14c4e01
SSC: Fix notification colors (#62860) 2024-05-24 10:26:09 +03:00
David Veszelovszki
86bfb30b6a
SSC: Fix invite date formatting (#62858) 2024-05-23 19:22:39 +00:00
Michael Bahr
d8284e34fe
feat: popover to configure editor (#62452)
Co-authored-by: Felix Kling <felix@felix-kling.de>
2024-05-23 16:36:58 +02:00
David Veszelovszki
aafce44cc7
Make the URL dynamic, now with a fallback (#62852) 2024-05-23 09:54:37 +00:00
Felix Kling
a376a02bf5
svelte: Fix failing/skipped playwright tests (#62866)
Follow up for #62820 to fix failing/skipped tests that are easy to fix
(which is all but one).
2024-05-22 23:10:02 +02:00
Camden Cheek
c95e4ed85f
Svelte: linkify and wrap dir entries (#62862)
This makes each dir entry in the file popover header a link, and allows wrapping so the full path is always visible. Uses the same wrapping logic as the file header so the slashes work right. Additionally, it linkifies the commit message to point to the same page as the OID link
2024-05-22 18:11:52 +00:00
Camden Cheek
cc7aebf187
Svelte: add default badge to default branch (#62829) 2024-05-22 11:45:44 -04:00
Camden Cheek
159c89c451
Svelte: remove site-admin-only data from repo popover (#62834)
The repo popover has deployed to S2, but it's not visible to anyone who is not a site admin because one of the GraphQL fields used is restricted to only site admins.

This updates the query to use a non-restricted field, and also fixes the code host capitalization while I'm at it.
2024-05-22 13:13:55 +00:00
Felix Kling
88de40c1df
svelte: Show correct byline when commit has author and committer (#62841)
It was reported that the "byline" isn't correct when a commit has an
author and a committer.

This fixes it.
2024-05-22 12:53:03 +02:00
Michael Bahr
9c905aa066
chore: skip failing tests (#62820) 2024-05-22 12:33:53 +02:00
Felix Kling
d24b981989
svelte: Improve commit page loading state (#62842) 2024-05-22 12:28:44 +02:00
David Veszelovszki
1652ed0c17
SSC: Three small fixes for Teams & invites (#62818)
* Fix logging mistakes
* Fix URL and logging
* Make invite count dynamic in notification
2024-05-22 08:58:41 +00:00
Chris Smith
59b51561ac
Fix woes related to undefined frontendCodyProConfig.sscBaseUrl (#62835) 2024-05-21 23:22:05 +00:00
Felix Kling
01dbcfccc6
svelte: Add tailling space to default repo search input (#62832)
The input is missing a trailing space.
2024-05-21 21:21:08 +00:00
Jason Hawk Harris
939e000cdc
Svelte: Implement and instantiate FilePopover (#62498)
Implements the file popover on the SvelteKit web app.

Co-authored-by: Camden Cheek <camden@ccheek.com>
2024-05-21 15:26:00 -04:00
Felix Kling
4bba154a15
svelte: Preserve current revision in repo search input (#62822) 2024-05-21 17:36:39 +02:00
Camden Cheek
899145fea8
Svelte: unrevert RepoPopover (#62744)
This re-applies #61989 after it was reverted. In addition to reapplying the change:

- It reverts the changes to Popover.svelte that removed the border.
- We only start loading data on hover, not on mount
- Various fixes in text overflow conditions
- Removes the language from the popover data because it can be very expensive to calculate 
   (another reason to pre-calculate language, but that's for another day)
- Moves the data loading out of the page loader. Exports the data loading function from 
   the component so data loading is still orchestrated by the caller. (I know this will be controversial, reasoning inline)
- Adds a delay to the popover so it doesn't get in the way as your mouse moves over the page.
- Uses the display name instead of the author name
- Linkifies the commit message
2024-05-21 13:20:26 +00:00
David Veszelovszki
376a737d61
Make SSC base url dynamic (#62790)
* Add config item, get it to the front end
* Use config on the front end
* Send team=1 if the team button is clicked
* Unrelated: Event logging cleanup
2024-05-21 09:58:08 +00:00
gitstart-app[bot]
e2a0fd6113
SG-61976 - Run a test to remove steps from the new user signup flow (#62413)
update: Remove A/B testing on web signup and keep on IDE signup

Co-authored-by: gitstart-sourcegraph <gitstart-sourcegraph@users.noreply.github.com>
Co-authored-by: GitStart-SourceGraph <89894075+gitstart-sourcegraph@users.noreply.github.com>
2024-05-21 06:28:54 +03:00
Chris Smith
622cf7d730
Fix auth-related error in the SSC REST API client hook (#62798)
* Fix bug in API client hooks

* lint
2024-05-20 12:45:21 -07:00
Chris Smith
49b99e65e9
Add missing API types (#62797)
* Add missing API types

* Run "bazel run //:configure"
2024-05-20 19:01:27 +00:00
David Veszelovszki
5d6ef98432
Change "Remove" button to a regular button (#62794) 2024-05-20 20:18:16 +02:00
David Veszelovszki
43012534ad
Fix up "Manage team" page UI (#62761)
* Remove "open in new" icon
* Make "Add seats" button of the "success" type
* Add title
* Left-align "Send" button
* Remove unneeded filter
* Convert table to grid
* Fix copy
* Center align action buttons
* Update button type
* Fix copy
* Add red outline to textbox if erroneous
* Error replaces help text
* Use text-uppercase in ADMIN and INVITED labels
2024-05-20 10:49:18 +00:00
Chris Smith
a4af00e716
Add Cody Pro REST API client library (#62715)
* Add Cody Pro REST API client library

* Expose REST API methods for Subscriptions

* Address PR feedback

* Address even more, great PR feedback

* Add unit tests

* Run 'sg lint', 'bazel run //:configure'

* Fix error from bad merge

* Lint
2024-05-17 14:58:10 -07:00
David Veszelovszki
4a049d894e
Fix a condition I negated by accident (#62763) 2024-05-17 13:56:58 +00:00
Philipp Spiess
1e3cb2bc68
Change chat defaults to Sonnet and autocomplete defaults to StarCoder or Haiku (#62757) 2024-05-17 14:04:10 +02:00
Michael Bahr
e85028b8bd
fix: update links for dev docs (#62758)
* fix: license checker info is in docs-legacy

* fix: update remaining dev links
2024-05-17 13:47:34 +02:00
Taiyab Raja
4b91a49999
Svelte: Increase search suggestions font size (#62724)
Increase search suggestions font size.
2024-05-16 20:07:03 +01:00
Camden Cheek
50f13cd418
Svelte: update navigation bar for dotcom deployment (#62682)
This updates the navigation bar in svelte to show the dotcom-specific nav bar on dotcom (whenever svelte is enabled there).
2024-05-16 14:55:26 -04:00
Camden Cheek
d84fdc55ad
Web: add mermaid diagram rendering (#62678)
This adds rendering for mermaid diagrams to the web app (both React and Svelte). We do not do this on the backend because mermaid is a JS library.
2024-05-16 14:54:43 -04:00
Felix Kling
3f5028cc20
svelte: Show correct keyboard shortcut on Linux in "search files" button (#62729) 2024-05-16 18:21:48 +02:00
Noah S-C
9b6ba7741e
bazel: transcribe test ownership to bazel tags (#62664) 2024-05-16 15:51:16 +01:00
David Veszelovszki
aae97ad078
SSC: Refactor team management (#62694) 2024-05-16 12:46:12 +00:00
Felix Kling
78a995831f
svelte: Fix various z-index/layering issues (#62726)
While looking into #62713 I stumbled upon two z-index issues. This
commit removes a bunch of z-index settings to simplifying layering.

- Instead of setting a z-index on the header to make the sidebar
  navigation work, we can "portal" the sidebar to the end of the
  document.
- Likewise the repo search input is portalled to ensure that it renders
  above all other content.
2024-05-16 14:30:23 +02:00
Michael Bahr
09da22edb7
fix: update search timeout docs (#62692) 2024-05-15 17:32:54 +01:00
Vova Kulikov
acc4d4cd11
Svelte: Fix global header navigation layers (#62697)
Fix global header navigation layers
2024-05-15 17:32:54 +01:00
Camden Cheek
7e2d0bf0d8
Svelte: follow up on display limit TODO (#62681)
This updates the svelte webapp to respect the new search.displayLimit.
2024-05-15 09:44:05 -04:00
Vova Kulikov
cb7b38e594
Svelte: First run on file tree visual update (#62585)
* First run on file tree visual update

* Fix spacings and colors for the file tree items

* Fix spacing for nested levels

* Add "move to scope" feature to the file tree

* Fix go to the root repository and improve move to scope transition

* Add a comment about resetting the cache before go to the root

* Move root button to the first row

* Add fixes by PR review comments

* Fix fuzzy finder state

* Fix ts problems

* Fix width layout problem for deep nested items
2024-05-15 14:52:15 +02:00
David Veszelovszki
99ebb4f89a
SSC: Teams and Invites: Create "Manage team" page (#62453) 2024-05-15 08:01:45 +00:00
Vova Kulikov
b19d5de4ca
Revert "Svelte [RepoPopover]: Instantiate the RepoPopover result across the web-app (#62684)
Revert "Svelte [RepoPopover]: Instantiate the RepoPopover result across the web-app (#61989)"

This reverts commit 0d8003f655.
2024-05-15 03:48:13 +02:00
Namit Chandwani
111503d2ad
feat: make display limit configurable from user settings (#60761)
- On the frontend:
	- Added a new field named `search.displayLimit` to the User settings
	- Started using the `search.displayLimit` value while performing stream search
- On the backend:
	- No changes
---------

Co-authored-by: Stefan Hengl <stefan@sourcegraph.com>
2024-05-14 13:04:34 -07:00
Felix Kling
196d3f6446
web: Cycle through in-file search results when pressing the numpad enter key (#62665)
We already cycle through results when pressing the "normal" Enter key.
This didn't work for the numpad enter key because `event.code` reports
`NumpadEnter`, not `Enter`. `event.key` returns the same value for both
keys.

This was adjusted in response to customer feedback.
2024-05-14 15:42:54 +00:00
Jason Hawk Harris
0d8003f655
Svelte [RepoPopover]: Instantiate the RepoPopover result across the web-app (#61989)
Instantiate RepoPopover.
2024-05-14 15:17:47 +00:00
Ólafur Páll Geirsson
f2bfaa39e9
LLM Models: add GPT-4o support (#62639)
Fixes https://linear.app/sourcegraph/issue/PRIME-236/enable-gpt-4o-in-gateway

Previously, we only supported GPT-4 Turbo and GPT-3.5 for chat. This PR
adds additional support for the new GPT-4o model.
2024-05-13 14:06:25 -07:00
Camden Cheek
63680e8ea1
Python notebooks: fix anchor offset (#62637)
This fixes an issue with Jupyter notebook rendering where the offset from the anchor can clip the left side of the header text. The issue is that we use margin-left: 1rem; to offset the anchor, but the anchor isn't guaranteed to be exactly 1rem wide. This makes the relationship explicit and adds a comment that those are linked.
2024-05-13 17:38:37 +00:00