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
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.
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).
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)
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
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.
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
* 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
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>
* 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
* 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
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.
* 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
- 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>
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.
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.