Commit Graph
104 Commits
Author SHA1 Message Date
Sebastian Martinez ddf44cea4e Rename and reorganize tauri commands 2024-09-26 11:30:44 +02:00
Sebastian Martinez 665c5a96bd Remove unusued lineNumbersGutter fn
It was a copy pasta function from `radicle-explorer` that if we need to
highlight files by line in the future e.g. changesets we should do it
better than this.
2024-09-26 09:54:07 +02:00
Sebastian Martinez 3b29598c77 Add prettylights css file
To provide the stylesheets for the classes that `starry-night` outputs
we use the `starry-night/style/both` stylesheets provided at
https://github.com/wooorm/starry-night?tab=readme-ov-file#css
2024-09-26 09:53:32 +02:00
Sebastian Martinez 56522a6083 Add buffer dependency for fixing build step
With the addition of the buffer polyfill we need to add the
corresponding dependency to fix the build step
2024-09-25 22:44:52 +02:00
Rūdolfs Ošiņš 25c8042944 Add styling for patch diff stats 2024-09-25 17:34:59 +02:00
Rūdolfs Ošiņš 395c46958e Make sidebar scrollable 2024-09-25 17:31:57 +02:00
Rūdolfs Ošiņš 6b8cb91567 Add single issue view 2024-09-25 17:31:57 +02:00
Rūdolfs Ošiņš c316caec04 Port Markdown renderer component 2024-09-25 17:31:57 +02:00
Rūdolfs Ošiņš 0e2aefe052 Style issue/patch missing text 2024-09-25 17:31:57 +02:00
Sebastian Martinez 608d211083 Add repo::diff tauri command 2024-09-25 16:59:47 +02:00
Rūdolfs Ošiņš 8aae8e66ab Update dependencies 2024-09-24 13:46:01 +02:00
Rūdolfs Ošiņš 88981c3f2a Use new app icon that Daniel designed
Has a background and rounded corners.
2024-09-24 13:10:36 +02:00
Sebastian Martinez 037ac391f8 Add issues_by_id, patches_by_id, revisions_by_patch, revisions_by_id
Also provides all the types related to it and a new npm script that
allows generating those types quickly.
2024-09-24 06:40:50 +02:00
Sebastian Martinez 9334ffb3c5 Add tauri commands to create comments and reply 2024-09-19 16:00:13 +02:00
Sebastian Martinez 8731506b94 Improve the event threads in the backend 2024-09-18 17:37:40 +02:00
Rūdolfs Ošiņš f5ce15a673 Fix lint issue 2024-09-18 17:03:29 +02:00
Rūdolfs Ošiņš 0d84cf55a6 Make list scroll under the header properly 2024-09-18 16:59:43 +02:00
Rūdolfs Ošiņš 7ec692738e Add elevation shadow to popover 2024-09-18 16:59:26 +02:00
Rūdolfs Ošiņš b05bc05b3c Fix header image in packaged build 2024-09-18 16:41:54 +02:00
Rūdolfs Ošiņš ccd4c280a5 Wire up the revision count in PatchTeaser 2024-09-18 14:37:58 +02:00
Sebastian Martinez 91ba8ab390 Add timestamp and revisionCount to issue and patch listings 2024-09-18 14:37:58 +02:00
Rūdolfs Ošiņš 58f2ec2f51 Hook up the online/offline button to the new events 2024-09-18 12:59:17 +02:00
Sebastian Martinez ff6b7aa5dc Add ability to listen to node events from the frontend 2024-09-18 12:25:28 +02:00
Rūdolfs Ošiņš 797a64b8d7 Replace patch icon from band-aid to +- 2024-09-18 12:17:08 +02:00
Rūdolfs Ošiņš 4fcf3619d0 Add InlineTitle component and use it in Issue/Patch lists 2024-09-17 18:09:23 +02:00
Rūdolfs Ošiņš 7f567e354a Style issue and patch list views 2024-09-17 17:32:08 +02:00
Rūdolfs Ošiņš e103fa21fb Update dependencies 2024-09-17 13:47:18 +02:00
Rūdolfs Ošiņš f27974c23e Add sidebar 2024-09-17 10:22:19 +02:00
Rūdolfs Ošiņš a5601e7661 Extract header from repo card
This will be reused in the repo sidebar.
2024-09-13 17:16:27 +02:00
Rūdolfs Ošiņš 4f63f9e87f Link peer breadcrumb to home screen 2024-09-13 13:54:39 +02:00
Rūdolfs Ošiņš 44dae6bc12 Disallow text-selection by default 2024-09-13 13:54:39 +02:00
Rūdolfs Ošiņš 5725cec33f Add breadcrumbs 2024-09-13 13:54:39 +02:00
Rūdolfs Ošiņš 33e0b52e23 Use new button styling for header buttons 2024-09-12 14:26:31 +02:00
Rūdolfs Ošiņš 7c1f0fb28f Make copyable highlight on hover 2024-09-12 14:23:31 +02:00
Rūdolfs Ošiņš d7c811ba11 Add hero image to home screen 2024-09-11 17:58:06 +02:00
Rūdolfs Ošiņš c31652570f Make header sticky 2024-09-11 17:58:06 +02:00
Rūdolfs Ošiņš 1bb8a806aa Refactor header to use clip-path 2024-09-11 17:24:30 +02:00
Sebastian Martinez 43ad446dc7 Fix RepoInfo delegate type 2024-09-11 13:35:34 +02:00
Rūdolfs Ošiņš 8a417404b8 Add copyable current ID to the header 2024-09-11 09:44:48 +02:00
Rūdolfs Ošiņš c558235a49 Convert remaining on: events to onclick/ontouchstart 2024-09-10 11:55:37 +02:00
Sebastian Martinez ffff885ffb Event handlers with the on: directive are deprecated in svelte 5
Also bubbling events from HTML elements to the components have to be
done with `onclick` callback props.
2024-09-10 11:33:09 +02:00
Rūdolfs Ošiņš f09253f631 Add repo issues and patches routes 2024-09-10 11:13:45 +02:00
Rūdolfs Ošiņš cb82dae6eb Remove setTitle
There is no page title that is shown to the user, so there's no point in
setting it.
2024-09-10 11:12:21 +02:00
Rūdolfs Ošiņš 6cfd87fceb Prevent rubber-band effect on macOS when overscrolling
This yields a more native-app-like feel.
2024-09-09 17:38:11 +02:00
Sebastian Martinez 918cc213d8 Add the cargo checks to the check script 2024-09-09 10:54:19 +02:00
Rūdolfs Ošiņš 6017c191a9 Fix flickering on app load due to theme being loaded later
We read the theme before any of the svelte code is loaded. The benefit
is that it is executed first and there's no flickering if the stored
theme differs from the initial theme that is set in the design system.

The drawback is that this code isn't type-checked and will need to be
updated manually if we change the theme switching code in Svelte.
2024-09-06 15:51:09 +02:00
Sebastian Martinez 560891d1a6 Add tauri commands for single repo and cobs 2024-09-06 15:33:55 +02:00
Sebastian Martinez 0a059da762 Add CrabNebula dev tools
Allowed to see the time it takes for each tauri command to be processed,
is helpful for optimizing the desktop app
2024-09-06 14:51:11 +02:00
Sebastian Martinez 0f5d13da7e Remove double navigation on app load
We where navigating to the `home` route twice on load.

Once with `router.loadFromLocation` and then during `onMount` with
`navigate("home")` which triggered the repo listing twice.
2024-09-06 14:51:11 +02:00
Rūdolfs Ošiņš 5b33e1ecd5 Remove design system
It was only a placeholder until we get some content.
2024-09-05 13:42:39 +02:00