Commit Graph
161 Commits
Author SHA1 Message Date
Rūdolfs Ošiņš 6052098c18 Allow editing issue titles 2024-10-28 14:11:48 +01:00
Rūdolfs Ošiņš 79dbe78751 Tweak create issue form styling 2024-10-28 14:11:48 +01:00
Rūdolfs Ošiņš 3f6e93203a Fix issue where preview would push down icon alignment 2024-10-28 14:11:48 +01:00
Rūdolfs Ošiņš c6c7f312c1 Add icons to comment reply, discard and save buttons 2024-10-28 14:11:48 +01:00
Sebastian Martinez d90dc0735c Add test-http-api crate to make app work in browser
A new `invoke` function calls either the tauri backend or the
`test-http-api` function if ran in a browser.
2024-10-28 13:56:23 +01:00
Sebastian Martinez e0323e34bc Use tokio::time::sleep instead of blocking threads
Great explanation by @LarsWirzenius on the why

> Async code in Rust runs in one or more threads. Usually there's a
small number of threads that are multiplexed between different async
functions. The async executor chooses what threads to use and which
thread runs which async code. If the async code takes a long time, such
as by calling std::thread::sleep, the whole thread stops doing anything
else, and then no other async code runs in that thread, either.
2024-10-25 12:48:33 +02:00
Rūdolfs Ošiņš 0693f4f806 Add announce preference to settings 2024-10-25 10:46:53 +02:00
Rūdolfs Ošiņš c01a48939e Add comment threads 2024-10-25 10:46:53 +02:00
Rūdolfs Ošiņš dbbbb63d16 Fix issue creation 2024-10-23 16:39:30 +02:00
Sebastian Martinez 56f55051eb Flatten Action with serde instead of ts_rs 2024-10-23 16:37:00 +02:00
Sebastian Martinez fc8613606d Fix entry_id field to camelCase 2024-10-23 12:47:52 +02:00
Sebastian Martinez 9b2240b933 Remove unused error variants 2024-10-23 12:22:34 +02:00
Rūdolfs Ošiņš f5c35b2d31 Fix overflow problem in Border component 2024-10-23 12:09:41 +02:00
Sebastian Martinez 5277028e1a Add edit_patch tauri command 2024-10-23 11:58:40 +02:00
Sebastian Martinez 874605633e Refactor types
- Improves the hierarchy of types into separate folders
- Improve the types generation making more structs and less serde_json
- Adding more optional values to the tauri commands
2024-10-23 11:58:37 +02:00
Sebastian Martinez 0bdf0e7192 Extract rust types into its own crate 2024-10-22 13:10:12 +02:00
Sebastian Martinez caebd0a325 Narrow down IssueOp type by flattening it 2024-10-22 12:29:35 +02:00
Sebastian Martinez 5ed10a408c Fix overflow repo title and descriptions in RepoCard 2024-10-22 11:27:12 +02:00
Sebastian Martinez 996f0817f6 Return comments and replies instead of Oids 2024-10-22 10:49:06 +02:00
Sebastian Martinez 7267961c0f Update dependencies
Start using svelte 5 stable instead of next versions
2024-10-21 08:19:44 +02:00
Sebastian Martinez 6d649aea6d Add get_diff tauri command 2024-10-15 09:36:42 +02:00
Sebastian Martinez ebbccccc9d Add embed fix and add save_embed command 2024-10-14 13:47:41 +02:00
Sebastian Martinez a3a0850b49 Add activity timeline to Issue.svelte 2024-10-14 10:38:22 +02:00
Sebastian Martinez 3f88cedd40 Add activity_by_id tauri command 2024-10-14 10:36:44 +02:00
Rūdolfs Ošiņš 9bed71d607 Refactor how we pass around DIDs 2024-10-11 11:58:02 +02:00
Rūdolfs Ošiņš 835b3f754b Add "edited" marker to issue header 2024-10-11 11:58:02 +02:00
Rūdolfs Ošiņš c6dbf21ade Add comment counter to issue teasers 2024-10-11 11:58:02 +02:00
Rūdolfs Ošiņš 59be840f80 Align placeholder with markdown content
So it doesn't visually jump around when toggling between issues with and
without description.
2024-10-11 11:58:02 +02:00
Sebastian Martinez 6ff895e9a5 Add embeds field to comments 2024-10-10 19:55:53 +02:00
Sebastian Martinez 2af8538851 Fix reactions TS types 2024-10-10 19:55:44 +02:00
Sebastian Martinez 98bd1ee6b5 Use number as type instead of bigint 2024-10-10 11:23:36 +02:00
Sebastian Martinez c17c659458 Remove return of ReviewId from create_draft_review for open reviews
Instead of returning the `ReviewId` for a existing `Review`
`create_draft_review` should return an error that the new `Review` is a
duplicate.
2024-10-10 09:43:25 +02:00
Sebastian Martinez c06ddc5b49 Use types.rs instead of the mod.rs system for types 2024-10-10 09:43:25 +02:00
Rūdolfs Ošiņš cfe1c546f9 Add markdown preview to create issue view 2024-10-09 21:12:12 +02:00
Rūdolfs Ošiņš 9958575626 Add Issue state/label/assignee section in single issue view 2024-10-09 21:12:12 +02:00
Sebastian Martinez 6ea83dec47 Add edit_issue command 2024-10-09 11:43:58 +02:00
Sebastian Martinez 05fc9ec46c Add create and edit of patch reviews 2024-10-09 10:06:49 +02:00
Sebastian Martinez 8d76c8317c Create a cargo workspace to handle multiple crates 2024-10-08 15:21:19 +02:00
Sebastian Martinez 54ce1864eb Fix linter issue 2024-10-08 13:06:33 +02:00
Sebastian Martinez aebd7dda3a Fix missing entry in Cargo.lock 2024-10-08 13:06:23 +02:00
Sebastian Martinez ab27beca87 Add CobOptions to issue creation 2024-10-08 12:57:13 +02:00
Sebastian Martinez 3139c98834 Add rid to missing Patch component 2024-10-08 12:14:25 +02:00
Sebastian Martinez cb3a5ee586 Add mainBinaryName config option
Allows us to separate the binary name for the name of the rust crate.
2024-10-08 12:09:20 +02:00
Sebastian Martinez b2ea2cd2c9 Move src-tauri crate to crates/radicle-tauri 2024-10-08 12:09:20 +02:00
Sebastian Martinez 8c80f7b228 Add get_file_by_oid command, enables support for embeds 2024-10-08 12:07:47 +02:00
Rūdolfs Ošiņš e5f90e20b8 Add create issue view 2024-10-08 11:27:44 +02:00
Sebastian Martinez 517d867f95 Revert to initial scroll position on filter change 2024-10-07 13:11:08 +02:00
Sebastian Martinez e51df19fed Add infinite scrolling for patches listing 2024-10-07 13:11:08 +02:00
Sebastian Martinez 6b8c73c615 Fix Patch revision listing 2024-10-03 16:56:02 +02:00
Sebastian Martinez c9f654f752 Rename Revision oid to head 2024-10-03 16:55:52 +02:00