Commit Graph
1154 Commits
Author SHA1 Message Date
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
Rūdolfs Ošiņš af6462c3a7 Remove unneeded CSS class 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 1167dcfab6 Improves changeset schemas and fix moved diff syntax highlighting 2023-11-28 10:39:32 +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ņš 3d24c5f79f Improve contributor popover wording 2023-11-23 10:20:54 +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
Thomas Scholtes 72352835eb Update heartwood version
The update resulted in changes to all issue and patch IDs. We adapt the
tests so that they do not rely on fixed IDs.

Signed-off-by: Thomas Scholtes <geigerzaehler@axiom.fm>
2023-11-23 09:21:37 +01:00
Rūdolfs Ošiņš 6cf78832de Fix comment border overflow issue 2023-11-22 17:36:20 +01:00
Rūdolfs Ošiņš 4e68b98ef9 Fix project sub-view breadcrumb alignment 2023-11-22 16:57:41 +01:00
Rūdolfs Ošiņš d7fc70a1f3 Don't show "Source" segment in breadcrumbs
It is redundant, we can already go to the "Source"/"Files" tab by
clicking on the project title in the breadcrumbs.

This also fixes some of the links that were linking to "Source"
incorrectly.
2023-11-22 15:29:41 +01:00
Rūdolfs Ošiņš 159f766157 Tweak primary/secondary toggle button styling 2023-11-21 16:44:07 +01:00
Sebastian Martinez 2f013df4e1 Refactor CobHeader 2023-11-21 15:15:27 +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 e6c560b58b Fix cob commit listing borderline not expanding 2023-11-20 15:12:34 +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 54be2b78e4 Simplify nodeStore, and make it part of the httpdStore 2023-11-16 10:03:06 +01:00
Sebastian Martinez 7f4af6fb72 Inherit font-size for non code blocks 2023-11-15 17:08:08 +01:00
Rūdolfs Ošiņš 57c82e0c41 Tweak tracking button popover width 2023-11-15 16:34:17 +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 e658e67c43 Fix issue with dismiss changes in title 2023-11-15 09:32:12 +01:00
Sebastian Martinez 56c87787ed Add e2e tests for editing patches, issues, comments, labels and assignees 2023-11-15 09:32:12 +01:00
Sebastian Martinez 1188e84c87 Cleaning up state flags 2023-11-15 09:32:12 +01:00
Sebastian Martinez 664158e472 Refactor Patch actions and related components 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ņš 5fc49faf6b Update color tokens 2023-11-09 13:36:36 +01:00
Rūdolfs Ošiņš 92f3e32c90 Adjust commit message text size
This makes it look more balanced in comparison to the subject line.
2023-11-09 11:09:01 +01:00
Rūdolfs Ošiņš 179f22cf66 Make IDs copyable by clicking anywhere in the body 2023-11-09 10:55:10 +01:00
Sebastian Martinez ca28fc28b2 Display a top and bottom border in the file tree when overflowing 2023-11-08 17:43:11 +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 bc64e90d7f Display which revision was merged in patches 2023-11-07 17:15:05 +01:00
Sebastian Martinez a3a7f09181 Patch icon in revision timeline reflects patch state color 2023-11-07 13:04:10 +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
Sebastian Martinez 905b933e4a Remove last line in commits list
Introduces a new CobCommitListing component that displays all the
commits of a Revision.
Is needed to have different border heights on the left.
2023-11-06 18:23:34 +01:00
Sebastian Martinez 8d67698575 Reduce requests on label and assignee changes
Instead of sending a request for each label and assignee change on a
existing issue or patch, we should just do that for the new form,
where we wait for the confirmation for the final creation of the issue or patch.
2023-11-06 18:16:19 +01:00