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
Rūdolfs Ošiņš
43dbe2b7b7
Enable patch revision body editing and adding reactions
2025-01-08 09:30:56 +01:00
dnlklmn
4c37f6ad51
Update README
2025-01-07 22:30:56 +01:00
Rūdolfs Ošiņš
6b336b0f64
Remove hero image
2025-01-06 11:17:45 -06:00
Sebastian Martinez
153331f2e3
Infer file type for embeds for previews
2024-12-19 20:55:30 +01:00
Sebastian Martinez
01416e8aa5
Allow preview for empty body in ExtendedTextarea
...
Instead of disabling the preview feature when the body is empty, we show
`Nothing to preview`
2024-12-19 14:06:34 +01:00
Sebastian Martinez
684a5df136
Fix the Markdown height during preview in ExtendedTextarea
2024-12-19 14:03:27 +01:00
Sebastian Martinez
3276e5f7b5
Escape highlighted lines html tags
2024-12-19 13:54:25 +01:00
Sebastian Martinez
4647cea062
Fix syntax highlighting for languages with multiple injections
2024-12-19 13:54:25 +01:00
Rūdolfs Ošiņš
35201e6630
Tweak paddings in create issue view
2024-12-18 17:38:03 +01:00
Rūdolfs Ošiņš
26e77b52cf
Remove unused button
...
We can re-add it later when we actually have functionality for it.
2024-12-18 17:16:42 +01:00
Sebastian Martinez
6aef218254
Restrict DOM sanitization to limited whitelist
2024-12-18 13:57:25 +01:00
Rūdolfs Ošiņš
bec0404b17
Align text area with avatar when editing comments
2024-12-18 09:48:14 +01:00
Rūdolfs Ošiņš
bbb60c847c
Truncate ExtendedTextarea caption on smaller viewports
2024-12-17 19:02:37 +01:00
Rūdolfs Ošiņš
9f83489634
Decrease vertical spacing between comments
2024-12-17 16:50:03 +01:00
Sebastian Martinez
d6d9c43ee6
Fix regression on height of CreateIssue description field
...
Also instead of calculating the height of the description textarea we
should allow flexbox to extend the description field to fill the entire
height.
2024-12-17 12:06:42 +01:00
Sebastian Martinez
a71f6b7feb
Update dependencies
2024-12-17 10:42:51 +01:00
Rūdolfs Ošiņš
8171b11424
Make code block corners pixelated in markdown
2024-12-13 17:48:37 +01:00
Rūdolfs Ošiņš
480cbe7031
Divide patch page into patch and revision tabs
2024-12-13 17:47:03 +01:00
Rūdolfs Ošiņš
1bb8eaf9f7
Add patch metadata header
2024-12-13 16:57:38 +01:00
Rūdolfs Ošiņš
d07ee2c2e1
Fix FileDiff corner styling
2024-12-13 16:32:38 +01:00
Rūdolfs Ošiņš
6b54c4ab66
Fix sticky file header positioning
2024-12-13 14:59:29 +01:00
Rūdolfs Ošiņš
fc5970afcd
Remove unneeded border radius CSS properties
...
We don't have round corners anywhere in the designs.
2024-12-13 14:23:31 +01:00
Sebastian Martinez
5f26f71b86
Avoid issue creation without title or description
2024-12-13 12:26:51 +01:00