Commit Graph
66 Commits
Author SHA1 Message Date
Rūdolfs Ošiņš a55a138a7f Improve code review usability
This patch moves the revision list from the tab bar drop-down to a sidebar
on wide screens and above the current revision on narrow screens. This
way all revisions are visible at all times.

We also move and nest the revision reviews into that list so that one
can see whether there's anything actionable at a glance.

Other tweaks:

  - added comment counts to revisions and reviews
  - displayed unresolved comment thread counts per review
  - swapped icons for accepted/rejected and neutral reviews to avoid clashing
    with resolved/unresolved comment icons
  - made label and assignee sections more compact with hover-triggered "+" buttons
  - added author and status sections to the sidebar
  - enabled patch state changes from the title bar
  - made "Review revision" the primary action and "Checkout patch" secondary
  - added "Draft" label to draft patches
  - capitalized all badges for consistent UI text
2025-07-03 11:46:39 +02:00
Sebastian Martinez 641b809d56 Add Check for Update into Settings popover 2025-07-02 13:15:42 +02:00
Thomas Scholtes 17586953bb Draft reviews before publishing
Reviews are locally persisted but only published to the network by an
explicit user action.

- [ ] Delete line comments on draft reviews

[squash] Sort imports, separate type imports into own section
2025-07-01 14:31:55 +02:00
Thomas Scholtes 3adbfeecc2 Wrap invoke rejection reasons in Error instance
This way we get stack traces and more informative console logs (instead
of "[Object object]").
2025-06-27 16:29:03 +02:00
Sebastian Martinez c8b0861662 Remove unused event listeners 2025-06-18 16:24:07 +02:00
Sebastian Martinez 499a0983ea Add rebuild cache functionality to issue and patch listing
In case of an outdated cobs cache we display a banner on top of the
patch or issue listing, to allow users to rebuild the cobs cache of a
repo similar to running `rad patch cache`
After rebuilding we fetch the issues or patches from the start.

Small caveat with patches:
The banner can only be shown after a user fetched all patches from the
backend, so we are sure we tried to fetch all of them.
2025-06-11 18:24:27 +02:00
Rūdolfs Ošiņš f539a2a350 Implement breadcrumbs 2025-05-22 11:10:02 +02:00
Rūdolfs Ošiņš 71069ef19e Move inbox to a global popover 2025-05-20 15:46:00 +02:00
Sebastian Martinez f7cfae720e Update dependencies 2025-05-14 11:16:26 +02:00
Sebastian Martinez ff13c1e4f3 Move onboarding instructions to popover 2025-05-08 13:38:43 +02:00
Rūdolfs Ošiņš bb38192b7e Implement repo home page
- by default open repos on the home view
- show a rendered README on the repo home page
- show repo metadata: visibility, canonical branch, threshold, delegates
  and allow list with aliases
- make layout responsive on repo home
- add copy button to code blocks in markdown
2025-05-06 10:11:01 +02:00
Sebastian Martinez 03d7f8ae6e Fix prettier warning 2025-04-17 14:10:41 +02:00
Sebastian Martinez 5232b85e12 Adjust font size 2025-04-17 13:53:38 +02:00
Sebastian Martinez 74bb631381 Fix inbox pagination cursor and sorting 2025-04-08 17:53:04 +02:00
Rūdolfs Ošiņš 1a4dba2065 Deduplicate the diff/cob Stats type 2025-04-01 17:16:03 +02:00
Rūdolfs Ošiņš 7c0da906a8 Cache content-addressed API calls on the frontend 2025-04-01 17:16:03 +02:00
Sebastian Martinez 31e273395f Fix notification summary for revision comments
Instead of showing `left a review comment` we should just say `left a
comment` for a revision comment.
2025-03-27 10:33:06 +01:00
Sebastian Martinez efe3c51d05 Add identity and repo creation flow 2025-03-18 23:01:07 +01:00
Sebastian Martinez 738e7f4fb4 Remove AuthenticationError component 2025-03-18 21:21:02 +01:00
Sebastian Martinez 618ae682bc Fix review.edit compressed notification summary
Instead of saying `edited 6 reviews` we should say `edited review 6
times`
2025-02-20 11:24:24 +01:00
Rūdolfs Ošiņš 7089e992e9 Use proper color for verdict badge icon 2025-02-18 15:29:46 -06:00
Rūdolfs Ošiņš 4add00d682 Add review page 2025-02-18 12:06:03 -06:00
Rūdolfs Ošiņš c35b4a3dc5 Fix flaky tests
It's normal that some of the "alias" queries return a 404 if a DID can't
be looked up, in this case the endpoint returns a 404 and we just log
it.
2025-02-13 09:54:32 -06:00
Sebastian Martinez 365674bc58 Provide a sync_status store
The `sync_status` would update every 10 seconds with the latest state of
all repos, to be displayed in the repo where needed.
2025-02-10 11:55:14 -06:00
Rūdolfs Ošiņš 0817e694ac Render ~~strikethrough~~ in markdown
So that I can strike through unfinished thoughts after I edit my
comments.
2025-02-07 13:19:11 -06:00
Rūdolfs Ošiņš 8babf383d3 Fix emoji reactivity bug 2025-02-07 09:30:47 +01:00
Rūdolfs Ošiņš 67836558ca Remove old Upstream license header 2025-02-05 13:07:24 +01:00
Rūdolfs Ošiņš 014a3e9eee Add revision commit list 2025-02-04 15:49:00 -06:00
Sebastian Martinez 19fdd17f99 Fix repo listing not displaying all repos
`Show::All` which is the default value should return all values obtained
from `storage.repositories()`.
This commit adds a `Show::Contributor` enum variant to only get repos
that the user has forked, initialized or contributed in some way.
2025-01-27 13:19:42 +01:00
Sebastian Martinez d5632ed534 Add global inbox 2025-01-23 22:28:00 +01:00
Sebastian Martinez 6aef218254 Restrict DOM sanitization to limited whitelist 2024-12-18 13:57:25 +01:00
Sebastian Martinez ca4d9d13fd Add embeds to the Textarea 2024-12-13 12:26:51 +01:00
Rūdolfs Ošiņš 7d5ff0ac1d Implement assignee editing 2024-12-05 15:55:19 +01:00
Sebastian Martinez 06437656c0 Add filter for repos to list_repos command
Instead of only returning seeded repos, this repo adds 3 new filter
options to the `list_repos` command, under the `show` field

- *all* - All repos that a user has initialized or forked (own
namespace)
- *seeded* - Repos that are beeing seeded by the user
- *delegate* - Repos that the current user is a delegate of.
2024-11-22 09:35:26 +01:00
Sebastian Martinez f23206b83d Instrument authentication for e2e tests 2024-11-21 10:29:14 +01:00
Rūdolfs Ošiņš 982ce568b7 Check auth status periodically 2024-11-19 17:15:00 +01:00
Sebastian Martinez 777430ab92 Add tests for clipboard, issue listing and issues 2024-11-05 12:43:52 +01:00
Sebastian Martinez 58891de06f Add svelte runes 2024-11-05 10:54:09 +01:00
Rūdolfs Ošiņš 3df2d3ec14 Parallelise all requests 2024-11-01 11:43:45 +01:00
Sebastian Martinez e37369062f Add playwright for e2e testing 2024-10-30 10:07:52 +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
Rūdolfs Ošiņš c01a48939e Add comment threads 2024-10-25 10:46:53 +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
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
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
Rūdolfs Ošiņš ea9a425cf0 Add single patch route 2024-09-27 16:59:16 +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