Commit Graph
1432 Commits
Author SHA1 Message Date
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 64389809ff Remove lastCommit from diffBlobSchema 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
Thomas Scholtes 999adff9c1 Ensure correct order when setting up fixtures
When setting up the global fixtures we need to ensure that the peers
that create changes sync their changes to the seed (palm). The only
thing necessary is for the peer to discover palm as the seed for the
project. Then `git push rad --all` will sync all changes to palm.

It’s not necessary to listen for any other event and we remove the
corresponding calls to `waitForEvent` or `waitForRoutes`.

In fact, these calls never did anything besides sleep since the
implementation of `waitForEvent` was faulty. We fix that, too.

Signed-off-by: Thomas Scholtes <geigerzaehler@axiom.fm>
2023-11-25 06:40:30 +01:00
Thomas Scholtes 456a4287fd Always timeout when waiting for services
We want the tests to fail when one of the services fails to start or
stop.

Signed-off-by: Thomas Scholtes <geigerzaehler@axiom.fm>
2023-11-25 06:40:30 +01:00
Rūdolfs Ošiņš 7e613952f5 Fix NodeId popover padding 2023-11-23 17:09:40 +01:00
Thomas Scholtes 72fd099ecd Stop confirming removal of test tmp files
We stop asking for confirmation to remove the folders containing the
static generated fixtures. All the data is programatically generated so
it’s not a big deal if it is lost. In any case the data is retained
after a test run and only deleted before the next test run.

Signed-off-by: Thomas Scholtes <geigerzaehler@axiom.fm>
2023-11-23 16:47:14 +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 e172aac1af Set Playwright action timeout for quicker failures
When a Playwright action (like click) fails we want it to throw an error
after 5 seconds instead of waiting 30 seconds for the test timeout.

Signed-off-by: Thomas Scholtes <geigerzaehler@axiom.fm>
2023-11-23 09:37:13 +01:00
Thomas Scholtes b979862b08 Reuse log prefix colors if we run out
Signed-off-by: Thomas Scholtes <geigerzaehler@axiom.fm>
2023-11-23 09:37:13 +01:00
Thomas Scholtes c568757675 tests: Improve peer manager logging
* The log prefix now includes the command name in addition to the peer
  name. This allows us to distinguish `radicle-node` and `radicle-httpd`
  logs as well as the output of commands.
* We also log prettify the JSON event log so it is easier to debug.
* Don’t log ouput of `waitForRoutes`

Signed-off-by: Thomas Scholtes <geigerzaehler@axiom.fm>
2023-11-23 09:37:13 +01:00
Thomas Scholtes de64d7c151 Use more descriptive name for making log prefixes
Signed-off-by: Thomas Scholtes <geigerzaehler@axiom.fm>
2023-11-23 09:37:13 +01:00
Thomas Scholtes 5d4511e3a7 Fix noEmit option in tsconfig
Signed-off-by: Thomas Scholtes <geigerzaehler@axiom.fm>
2023-11-23 09:37:13 +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
Rūdolfs Ošiņš ffe7bbba17 Update colors 2023-11-20 21:38:31 +01:00
Sebastian Martinez e6c560b58b Fix cob commit listing borderline not expanding 2023-11-20 15:12:34 +01:00
Sebastian Martinez 181fcc15af Fix e2e change theme test 2023-11-17 11:54:33 +01:00
Sebastian Martinez 0b331ba515 Update to vite@5 2023-11-17 11:53:53 +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ņš 709450cbac Disable Firefox e2e tests on CI
They give us more headaches than they find bugs.
2023-11-16 17:53:30 +01:00
Rūdolfs Ošiņš efcb287c87 Update colors to match latest in Figma design system 2023-11-16 16:11:23 +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
Rūdolfs Ošiņš 2bd1893504 Tweak font features
This only enables the slashed zero font variant. We remove the other
settings because they mess up the monospace Jetbrains font in diffs.
2023-11-15 16:28:26 +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 94985d0489 Fix HMR issue with customElements 2023-11-15 15:46:15 +01:00
Rūdolfs Ošiņš 838ee1b420 Update transitive dependencies 2023-11-15 12:51:03 +01:00
Sebastian Martinez 3bdf21ec06 Update dependencies 2023-11-15 12:51:02 +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