-
Notifications
You must be signed in to change notification settings - Fork 251
Initial issues dashboard with filters #1860
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
c08e609 to
d4630fa
Compare
There was a problem hiding this comment.
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
d4630fa to
70b99c2
Compare
70b99c2 to
b946a8a
Compare
| /** | ||
| * SWR cache key for issues list based on filters and sorting | ||
| */ | ||
| export function buildIssuesCacheKey({ |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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
...private)/projects/[projectId]/versions/[commitUuid]/issues/_components/IssuesTitle/index.tsx
Outdated
Show resolved
Hide resolved
...private)/projects/[projectId]/versions/[commitUuid]/issues/_components/IssuesTitle/index.tsx
Outdated
Show resolved
Hide resolved
...private)/projects/[projectId]/versions/[commitUuid]/issues/_components/IssuesTable/index.tsx
Outdated
Show resolved
Hide resolved
| const status = filters.status ?? serverParams.filters.status | ||
| const showStatus = status !== 'active' | ||
|
|
||
| if (noData) return <TableBlankSlate description='No issues in this project' /> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| if (noData) return <TableBlankSlate description='No issues in this project' /> | |
| if (noData) return <TableBlankSlate description='No issues found for this prompt yet' /> |
There was a problem hiding this comment.
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 |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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) => { |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same
There was a problem hiding this 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
db9bda0 to
d3f9698
Compare
d3f9698 to
a031b03
Compare
Moved date filters to subquery in a having clause as requested
What?
Implement base files for issue models
TODO
Make back navigation work from the middle.Implemented page/offset finallydirection=backwardescalatingwarning andnewaccent no iconsSeen at11d ago / 3yr oldnormaldefault andsmallwithout fancy layer and 32px max like a normal button.Last seen up to ...