Commit Graph
168 Commits
Author SHA1 Message Date
Rūdolfs Ošiņš e0a5e37fb7 Tweak dropdown list selected item colors 2023-12-05 09:53:29 +01:00
Sebastian Martinez bf2e524a53 Use unique ids for svg linearGradients 2023-12-04 11:59:12 +01:00
Sebastian Martinez 3198bbd330 Add a yellow-outline Badge variant 2023-12-04 11:59:12 +01:00
Sebastian Martinez d00b8f5a1a Improve positioning of ActivityDiagram on ProjectCard 2023-12-04 11:59:12 +01:00
Sebastian Martinez 5265a6b245 Display badge for private repos 2023-12-04 11:59:12 +01:00
Rūdolfs Ošiņš 90cfaca9be Fix "moved" badge alignment 2023-12-01 18:06:07 +01:00
Sebastian Martinez 095b99fcec Fix issue text horizonal overflow 2023-12-01 12:28:27 +01:00
Rūdolfs Ošiņš 7bbe4716d9 Change red badge text color to background 2023-11-30 21:19:52 +01:00
Rūdolfs Ošiņš 9be4c4458f Use the same color for link underline as the link text 2023-11-28 21:34:19 +01:00
Rūdolfs Ošiņš 4669c5f18e Force slashed zero font feature on button body text 2023-11-28 21:34:19 +01:00
Rūdolfs Ošiņš 333c31c4ba Don't underline icon in the ExternalLink component 2023-11-28 21:34:19 +01:00
Rūdolfs Ošiņš 4fb457c7cb Make dropdown styling consistent with design system 2023-11-28 21:34:19 +01:00
Sebastian Martinez 95ed1a0353 Adding embed editing in issues and patches 2023-11-28 10:59:55 +01:00
Sebastian Martinez aa7a1b7040 Handles error when parsing frontmatter 2023-11-28 10:15:11 +01:00
Sebastian Martinez 575f44e434 Unify lodash imports
We currently use all three ways of importing lodash.
The one that provides us with the smalles bundle size is.

```
import isEqual from "lodash/isEqual";
```

So we should use that everywhere
2023-11-28 09:25:13 +01:00
Sebastian Martinez b107b43ad0 Spread other error information in ErrorMessage
The current Error that can be copied by users, isn't very helpful for
debugging.

We should stringify the entire error, with zodIssues, path, body, etc.
for useful debugging.
2023-11-27 20:53:10 +01:00
Sebastian Martinez 0621067804 Fix issue in Embed preview 2023-11-27 14:16:16 +01:00
Sebastian Martinez b6ac9bd4a7 Improve handling of rawPath
Instead of computing it in multiple components, we should do it in
router.ts in the routes where we need it, and add the commit param when
we have it.
2023-11-27 14:12:24 +01:00
Rūdolfs Ošiņš 7e613952f5 Fix NodeId popover padding 2023-11-23 17:09:40 +01:00
Rūdolfs Ošiņš 6d7d7660d5 Move popover padding into the component
This makes sure all popovers are styled the same way.
2023-11-23 10:20:28 +01:00
Sebastian Martinez b8408db4f1 Improve the Branch Selector
We now also let people select branches if they only have one branch.
Renamed also some variables to make it clearer what they represent.
2023-11-23 09:57:35 +01:00
Rūdolfs Ošiņš 6cf78832de Fix comment border overflow issue 2023-11-22 17:36:20 +01:00
Rūdolfs Ošiņš 159f766157 Tweak primary/secondary toggle button styling 2023-11-21 16:44:07 +01:00
Rūdolfs Ošiņš ad84bc9f30 Add breadcrumbs to header 2023-11-21 13:57:25 +01:00
Sebastian Martinez eeba82017d Add permission checks for delegates and authors 2023-11-20 22:13:51 +01:00
Sebastian Martinez b331f446ee Remove not allowed cursor from Contributors and BranchSelector
Adds also HoverPopover tooltips, with some hints
2023-11-17 10:19:57 +01:00
Rūdolfs Ošiņš 6435d62fb5 Show avatar and alias in NodeId popover
This also adjusts colors and font styling as per design.
2023-11-16 12:12:34 +01:00
Rūdolfs Ošiņš 4bd03f55dc Tweak sync/authenticate/connect buttons
- simplify positioning
- make sure they expand depending on content, yet have a min width
- add a popover for the connected button state, move httpd info from the
  authenticated button into this popover
- fix external link styling
- make the hover outline color pink
2023-11-16 11:54:44 +01:00
Sebastian Martinez 7f4af6fb72 Inherit font-size for non code blocks 2023-11-15 17:08:08 +01:00
Rūdolfs Ošiņš c7027c1f2f Extract all external link styling into a component 2023-11-15 16:34:17 +01:00
Sebastian Martinez 0f8bd0d1dc Fix flakiness in comment and reply e2e test 2023-11-15 16:21:47 +01:00
Sebastian Martinez 84addf467d Show node state indicator 2023-11-15 16:21:47 +01:00
Sebastian Martinez 1188e84c87 Cleaning up state flags 2023-11-15 09:32:12 +01:00
Sebastian Martinez 5742f15e28 Refactor Issue actions and related components 2023-11-15 09:32:10 +01:00
Rūdolfs Ošiņš dabfab083e Tweak icons
- use key icon in connect/authenticate modal
- use person without hat for contributors
- use +- icon for diffs
- use color to distinguish between track/tracking states
2023-11-09 15:34:50 +01:00
Rūdolfs Ošiņš 179f22cf66 Make IDs copyable by clicking anywhere in the body 2023-11-09 10:55:10 +01:00
Thomas Scholtes f44b0f4709 Eliminate popoverWidth property
Users of `Popover` can set the width by setting it on the slot element.

Signed-off-by: Thomas Scholtes <geigerzaehler@axiom.fm>
2023-11-08 17:16:50 +01:00
Thomas Scholtes b757e62691 Avoid nested button for Popover
We elminitate the element with the “button” role that wrapped the
Popover toggle slot. The element rendered into the slot is in all cases
already a button. This prevents issues where `getByRole("button")` finds
_two_ buttons for popover toggles.

We take the opportunity to simplify the popover toggling by making the
slot responsible for the toggle. This has a couple of advantages:

* We don’t need a `disabled` property for Popover. This is handled by
  the button. (This fixes a bug we did not disable the PeerSelector
  Popover properly.)
* The popover is opened on key events

In the future this also gives us more flexibility in determining how to
toggle the Popover.

Signed-off-by: Thomas Scholtes <geigerzaehler@axiom.fm>
2023-11-08 17:16:50 +01:00
Sebastian Martinez 79b1e9c9f8 Add clipboard button to code blocks
Signed-off-by: Sebastian Martinez <me@sebastinez.dev>
2023-11-06 18:38:11 +01:00
Rūdolfs Ošiņš db2c744e45 Reduce blue color usage in menu buttons buttons
This makes the interface overall more legible.

Signed-off-by: Rūdolfs Ošiņš <rudolfs@osins.org>
2023-10-30 14:41:23 +01:00
Rūdolfs Ošiņš 98568fd2ff Improve collapse/expand button visuals
Signed-off-by: Rūdolfs Ošiņš <rudolfs@osins.org>
2023-10-30 13:49:36 +01:00
Rūdolfs Ošiņš 4bdbe7ff8b Fixes sticky file header being on top of popovers
Signed-off-by: Rūdolfs Ošiņš <rudolfs@osins.org>
2023-10-30 11:58:20 +01:00
Sebastian Martinez c00c879d0c Expand and collapse all files in a changeset quickly
Signed-off-by: Sebastian Martinez <me@sebastinez.dev>
2023-10-27 15:53:47 +02:00
Rūdolfs Ošiņš ab88f31eef Improve attachment interactions on textareas
Signed-off-by: Rūdolfs Ošiņš <rudolfs@osins.org>
2023-10-26 18:17:52 +02:00
Sebastian Martinez c1740beb12 Add embeds to patches
Signed-off-by: Sebastian Martinez <me@sebastinez.dev>
2023-10-26 16:58:14 +02:00
Sebastian Martinez 5e5f7fc12f Add editing to issue/patch descriptions, comments and replies
Also does some refactoring for `action`, `editable` and other variables
we were using which weren't very clear

Signed-off-by: Sebastian Martinez <me@sebastinez.dev>
2023-10-26 16:27:54 +02:00
Rūdolfs Ošiņš 9530af9ada Fix revision expand button initial state
Signed-off-by: Rūdolfs Ošiņš <rudolfs@osins.org>
2023-10-26 16:11:32 +02:00
Rūdolfs Ošiņš cdf62f2883 Add track button to project header
This replaces the "Nodes <counter>" tab in the project view.

Signed-off-by: Rūdolfs Ošiņš <rudolfs@osins.org>
2023-10-24 12:16:12 +02:00
Rūdolfs Ošiņš 6f4f7894a3 Implement sticky file headers
Signed-off-by: Rūdolfs Ošiņš <rudolfs@osins.org>
2023-10-20 09:34:55 +02:00
Rūdolfs Ošiņš 77b49dcb60 Auto-resize textarea height on user input
We want the textarea to grow when a user writes longer text. This also
fixes the `resizable` property, which when `true` allows the user to
resize the textarea with their mouse.

Signed-off-by: Rūdolfs Ošiņš <rudolfs@osins.org>
2023-10-18 11:36:16 +02:00