Commit Graph
306 Commits
Author SHA1 Message Date
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
Sebastian Martinez 84572389a9 Fix function param for creating reviews 2025-01-23 15:00:12 -06:00
Sebastian Martinez 6da4ffe344 Remove optional argument from review comments 2025-01-23 20:03:00 +01:00
Sebastian Martinez 3419b62194 Strongly type patch review verdict
Instead of typing a review verdict as `string | null` we should do
`"accept" | "reject" | null`
2025-01-23 20:02:42 +01:00
Rūdolfs Ošiņš c2f38bb0cb Implement issue and patch filters in second column 2025-01-20 15:30:24 -06:00
Rūdolfs Ošiņš 4571d466db Use distinct icons for issue/patch states 2025-01-17 16:02:54 -06:00
Rūdolfs Ošiņš 296c046ef7 Fix overflow issue in patch body 2025-01-17 15:18:41 -06:00
Rūdolfs Ošiņš 67b685d3f5 Show revision state icons in revision selector 2025-01-17 15:18:41 -06:00
Rūdolfs Ošiņš aafba92ba0 Extract revision selector and revision badges into components 2025-01-17 15:18:41 -06:00
Rūdolfs Ošiņš eec0351de8 Move timeline to its own tab 2025-01-17 15:18:41 -06:00
Rūdolfs Ošiņš 1ee37b7ea9 Show revision counter in second patch column 2025-01-17 12:49:37 -06:00
Rūdolfs Ošiņš 5310fe0b92 Add revision selector 2025-01-17 12:49:37 -06:00
Rūdolfs Ošiņš 5069613ff6 Extract revision into its own component 2025-01-16 16:09:53 -06:00
Rūdolfs Ošiņš eb6afd28ef Show changes 2025-01-16 12:31:46 -06:00
Rūdolfs Ošiņš 8a326da7a8 Add patch discussions 2025-01-16 12:31:46 -06:00
Rūdolfs Ošiņš 63ec8cb473 Style patch tabs 2025-01-16 12:31:46 -06:00
Rūdolfs Ošiņš 6326863f21 Add issue timeline 2025-01-14 16:03:29 -06:00
Rūdolfs Ošiņš 7aebf9531c Add patch timeline 2025-01-14 16:01:15 -06:00
Sebastian Martinez 432db1ce5b Make Operation generic, and handle patch operations
So far we only supported issue operations on the `activity_by_id`
command.

With this commit we separate the commands into a `activity_by_issue` and
`activity_by_patch` command that calls a generic `activity_by_id` trait
implementation.

`Operation` now takes as a generic either `cob/issue/Action.ts` or
`cob/patch/Action.ts`.

Also `Operation` now stores the array of all `Action` that happened on
said operation. I'm not entirely sure if this will help us in the
future, but it represents more closely the state of the relation between
an `Operation` and the cob `Actions`.
2025-01-10 10:33:32 -06:00
Rūdolfs Ošiņš 63d1c87c7f Change the sidebar filter to match new patch state
When changing the state of a patch we want the sidebar filter to reflect
that, otherwise the patch just disappears from the sidebar unless the
user selected "show all states".
2025-01-10 16:52:32 +01:00
Rūdolfs Ošiņš 32ca4dc48d Allow patch title editing 2025-01-10 16:52:32 +01:00
Rūdolfs Ošiņš d4e2503b05 Fix issue error messages 2025-01-10 16:52:32 +01:00
Rūdolfs Ošiņš 8622dba111 Implement changing patch states 2025-01-10 16:52:32 +01:00
Sebastian Martinez 2ac0c54a85 Add heartwood stream module
Introducing the `stream` module from the `heartwood` repo from patch
`40a8d72`, for our global inbox
2025-01-09 11:10:07 +01:00
Rūdolfs Ošiņš 74470ecaff Tweak title line alignment everywhere 2025-01-08 09:57:49 +01:00
Rūdolfs Ošiņš 5832be5716 Move breadcrumbs to second column 2025-01-08 09:40:41 +01:00