Commit Graph
331 Commits
Author SHA1 Message Date
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ņš 53d49e0bbf Clean up section collapsing logic 2025-02-10 08:58:20 +01:00
Rūdolfs Ošiņš 023b2f0503 Tweak spacings between sections 2025-02-10 08:58:20 +01:00
Rūdolfs Ošiņš e862a511ec Tweak discussion section
- show a Comment button
- collapse the section if there are no comments
- remove Reply button from the patch body
2025-02-10 08:58:20 +01:00
Rūdolfs Ošiņš 02a3aa8db4 Tweak review section
- show a review counter
- show a tooltip on disabled buttons explaining why they're disabled
- change review shortcut button position
- change Write review button styling
- make review teasers without body more compact
- use correct color for review icons
- fix review header alignment
2025-02-10 08:58:20 +01:00
Rūdolfs Ošiņš f58eb32e1c Move reviews above discussion 2025-02-10 08:58:20 +01:00
Rūdolfs Ošiņš 42ab1462ea Also render ~~strikethrough~~ in titles 2025-02-07 13:23:46 -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
Sebastian Martinez b854f1cd0f Only allow delegates to add labels or assignees to issues during creation
Non delegates are not allowed to execute the `assign` or the `label`
action on an issue so the issue creation fails silently.

So we should probably hide that in the issue creation.
2025-02-07 11:54:12 -06:00
Sebastian Martinez 4ff909c7e9 Add quick actions buttons to create an accepted or rejected review 2025-02-07 14:55:26 +01:00
Rūdolfs Ošiņš 263037d0a7 Add a shortcut button for going for inbox 2025-02-07 09:39:29 +01:00
Rūdolfs Ošiņš 8babf383d3 Fix emoji reactivity bug 2025-02-07 09:30:47 +01:00
Rūdolfs Ošiņš f08255a194 Add a proper empty file placeholder 2025-02-06 16:29:13 -06:00
Sebastian Martinez 0338e96d25 Add New Review button to Reviews section in patch revisions 2025-02-06 13:14:47 +01:00
Sebastian Martinez 450f6d6f0c Remove usage of DraftStore
@fintan:
The API of the DraftStore needs some improvement and it can be easy to
do the wrong thing when trying to publish the changes to the published
cob reference

Based on this PSA we should apply any changes to the patch revisions
directly, instead of using the `DraftStore`
2025-02-06 13:14:23 +01:00
Sebastian Martinez e06a12119c Add disabled state to NakedButton 2025-02-06 13:08:31 +01:00
Sebastian Martinez c952d71839 Change plus icon with new design from figma 2025-02-06 13:08:31 +01:00
Sebastian Martinez 9c021345dd Delete cobs/patch module 2025-02-06 13:08:31 +01:00
Michael Raitza 622585afb3 Update flake 2025-02-06 09:55:25 +01:00
Michael Raitza f238f24719 Adds Nix flake build files 2025-02-05 12:00:14 -06:00
Rūdolfs Ošiņš 67836558ca Remove old Upstream license header 2025-02-05 13:07:24 +01:00
Rūdolfs Ošiņš aa69bed09c Fix license in package.json 2025-02-05 13:07:24 +01:00
Rūdolfs Ošiņš 6a3adefbe5 Allow selecting commit messages and diffs in patches 2025-02-05 13:05:00 +01:00
Rūdolfs Ošiņš eb5738c33f Show comments on revision selector 2025-02-05 13:02:47 +01:00
Rūdolfs Ošiņš 8bfb0eb410 Use the same node version on CI as locally 2025-02-04 15:49:00 -06:00
Rūdolfs Ošiņš 014a3e9eee Add revision commit list 2025-02-04 15:49:00 -06:00
Sebastian Martinez f34522b689 Implement a custom list_patches method to read directly from cache 2025-02-03 14:25:39 +01:00
Sebastian Martinez 038a21cb51 Fix embeds not being added to cob actions
If we don't add `embeds` to the `embeds` map after saving them to disk,
they don't get added to the cobs action.
2025-01-31 15:29:57 -06:00
Sebastian Martinez 5dd75959a0 Cleanup img-src attributes in the CSP directive
By restricting `img-src` in our CSP, we weren't allowing images from
e.g. https://github.com like CI badges to display.

With this change we allow users to add images from any `https`, `data`
or `blob` source, which is more user friendly.
2025-01-31 15:17:47 -06:00
Rūdolfs Ošiņš 9632d61df4 Fix revision teaser background color 2025-01-31 09:54:28 +01:00
Rūdolfs Ošiņš 924130ce4b Style file header more nicely
- show `added`, `deleted`, `moved`, `copied` as colorful badges
- highlight the filename part of the path and make the path subdued
2025-01-30 13:48:45 -06:00
Rūdolfs Ošiņš e5278fd240 Add expand, collapse, expand all and collapse all buttons 2025-01-30 13:48:45 -06:00
Rūdolfs Ošiņš c4bef0e99b Use twemojis for reactions 2025-01-29 11:13:14 -06:00
Rūdolfs Ošiņš 557e96f98b Show reviews without a verdict 2025-01-29 10:26:47 +01:00
Rūdolfs Ošiņš 063cdf097b Add patch reviews 2025-01-29 10:23:21 +01:00
Rūdolfs Ošiņš 1db0108425 Make all icon buttons square 2025-01-28 13:00:07 -06:00
Rūdolfs Ošiņš ea43ffd44e Make second column breadcrumbs clickable 2025-01-27 12:49:16 -06:00
Rūdolfs Ošiņš 4367441be8 Tweak patch tab bar
- Square the dropdown icon
- Set the tab bar height to what it is in the design system
- Move dropdown button inside the tab
2025-01-27 12:49:16 -06:00
Rūdolfs Ošiņš 0aef841a43 Fix hover state of comment input placeholder
Previously hovering a container Border component would toggle the hover
state in any child Border components.
2025-01-27 12:47:39 -06:00
Rūdolfs Ošiņš 5f25380508 Don't show green right border in diff view for files
We'll fix this when we implement line selection and line commenting.
2025-01-27 12:47:39 -06:00
Rūdolfs Ošiņš 5752f410ad Fix patch body shining through header on scroll 2025-01-27 12:47:39 -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
Rūdolfs Ošiņš 9235f1867c Fix no repo placeholder alignment 2025-01-24 12:41:08 -06:00
Rūdolfs Ošiņš 2a7c705e3c Show the correct OID for revisions and tweak wording 2025-01-23 15:38:02 -06:00
Rūdolfs Ošiņš 08e32580f9 Highlight tabs on hover 2025-01-23 15:36:56 -06:00
Rūdolfs Ošiņš d2a25af485 Remove timeline title 2025-01-23 15:36:56 -06:00
Rūdolfs Ošiņš 1a86e52129 Show "no description" in revision selector when missing 2025-01-23 15:36:56 -06:00
Sebastian Martinez d5632ed534 Add global inbox 2025-01-23 22:28:00 +01:00
Sebastian Martinez dc87d3fa84 Adding Service and Storage traits for the inbox logic
To start making the backend codebase more future proof, I started
introducing the hexagonal architecture concept, of having `Service`
traits that is the public API and inner traits like `Storage`,
`Metrics`, etc. that can be implemented by different adapters like
`Sqlite`.

This is a first development in this direction.
2025-01-23 22:23:44 +01:00
Sebastian Martinez 62bdbc37d9 Fix creation of draft review in tauri command 2025-01-23 15:00:12 -06:00