Skip to content

Conversation

@andresgutgon
Copy link
Contributor

@andresgutgon andresgutgon commented Oct 23, 2025

What?

Implement base files for issue models

TODO

  • Repository
  • Base services for creation
  • Factories
  • Implement issues SQL filtering
  • Make back navigation work from the middle. direction=backward Implemented page/offset finally
  • Sort by relevance DESC hardcoded for now. No UI
  • Labels on title for escalating warning and new accent no icons
  • Put Seen at 11d ago / 3yr old
  • Change size of tab selector. Make normal default and small without fancy layer and 32px max like a normal button.
  • Regressed: it has histogram items after being resolved.
  • Toggle by active/regressed/archived
  • Implement document change selector filter
  • When only one date is selected means Last seen up to ...
  • Implement search by title input

@andresgutgon andresgutgon force-pushed the feature/issues-plumbing branch 9 times, most recently from c08e609 to d4630fa Compare October 30, 2025 11:21
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This monster query deserves tests. However, I won't be doing that in this PR, so I want to move on to another thing. Anyway this is not yet released

@andresgutgon andresgutgon force-pushed the feature/issues-plumbing branch from d4630fa to 70b99c2 Compare October 30, 2025 11:31
@andresgutgon andresgutgon requested a review from neoxelox October 30, 2025 11:31
@andresgutgon andresgutgon force-pushed the feature/issues-plumbing branch from 70b99c2 to b946a8a Compare October 30, 2025 11:48
@andresgutgon andresgutgon changed the title Add issues related plumbing files for testing and shit Initial issues dashboard with filters Oct 30, 2025
/**
* SWR cache key for issues list based on filters and sorting
*/
export function buildIssuesCacheKey({
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is more simpler if you just add the query string to the SWR cache key.... look how eval results v2 store work

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'll keep this way for now

const status = filters.status ?? serverParams.filters.status
const showStatus = status !== 'active'

if (noData) return <TableBlankSlate description='No issues in this project' />
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
if (noData) return <TableBlankSlate description='No issues in this project' />
if (noData) return <TableBlankSlate description='No issues found for this prompt yet' />

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It could be for all prompts if no document is selected

}: {
workspace: Workspace
project: Project
documentUuid: string
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why not pass the document here?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'll change when I use it in the next PR

},
transaction = new Transaction(),
) {
return transaction.call(async (tx) => {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we should publish an issueCreated event maybe?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same

Copy link
Contributor

@neoxelox neoxelox left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

review the main queries

@andresgutgon andresgutgon force-pushed the feature/issues-plumbing branch 3 times, most recently from db9bda0 to d3f9698 Compare November 3, 2025 13:52
@andresgutgon andresgutgon force-pushed the feature/issues-plumbing branch from d3f9698 to a031b03 Compare November 3, 2025 13:56
@andresgutgon andresgutgon dismissed neoxelox’s stale review November 3, 2025 13:58

Moved date filters to subquery in a having clause as requested

@andresgutgon andresgutgon merged commit 72c3870 into main Nov 3, 2025
7 checks passed
@andresgutgon andresgutgon deleted the feature/issues-plumbing branch November 3, 2025 14:10
@github-actions github-actions bot locked and limited conversation to collaborators Nov 3, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants