Skip to content

Kanban be integration#250

Open
oilagh wants to merge 6 commits intomainfrom
kanban-be-integration
Open

Kanban be integration#250
oilagh wants to merge 6 commits intomainfrom
kanban-be-integration

Conversation

@oilagh
Copy link
Copy Markdown
Contributor

@oilagh oilagh commented Apr 1, 2026

Description

Link backend up to the kanban page

Type of Change

  • Bug fix (non-breaking change that fixes an issue)
  • [ X] New feature (non-breaking change that adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Refactoring (code improvement without changing functionality)
  • Documentation update
  • Configuration/infrastructure change
  • Performance improvement
  • Test coverage improvement

Related Issue(s)

Closes # #227
Related to #

What Changed?

  • GetRequestsByStatusPaginated endpoint and added a hook that uses UseInfiniteQuery from tanstack to load more request cards (intersection observer pattern).
  • Fix requests endpoint to reflect versioning PR (make sure tables are returned based on request version)

Testing & Validation

How this was tested

  1. updates tests for cursor endpoint
  2. tested that the browser operates as expected for many request cards

Screenshots/Recordings

In the video you can see me highlight 5 versions of a request that has the same ID that is scheduled for march 3rd 6am and I go to that exact record and show that it it only appears once, as it's most recent record.

and you can see the cursor based pagination in action functioning correctly.

https://drive.google.com/file/d/1Ccd8NYUD7IS9NC6A0rFGkuzUYWBMC_1p/view?usp=sharing

Unfinished Work & Known Issues

  • None, this PR is complete and production-ready
  • The following items are intentionally deferred:



Notes & Nuances



Pre-Merge Checklist

Code Quality

  • Code follows the project's style guidelines and conventions
  • Self-review completed (I've reviewed my own code for obvious issues)
  • No debugging code, console logs, or commented-out code left behind
  • No merge conflicts with the base branch
  • Meaningful commit messages that explain the "why"

Testing & CI

  • All CI checks are passing
  • All new and existing tests pass locally
  • Test coverage hasn't decreased (or decrease is justified)
  • Linting passes without errors

Documentation

  • Code is self-documenting or includes helpful comments for complex logic
  • API documentation updated (if backend endpoints changed)
  • Type definitions are accurate and up-to-date

Reviewer Notes

  • Areas needing extra attention: ...
  • Questions for reviewers: ...

oilagh added 3 commits March 31, 2026 13:22
…est and implements useInfiniteQuery from tanstack, modified columns to be ordered by request status (so 3 columns) I think we should give users the option to display based on department as a filtering option instead but we can talk about that, added missing assigned colors and union type, completely redesigned the card while keeping style (added format for time, also lets talk about assignees row becuase we dont store that data currently, added conditional rendering for optional fields), and finally fixed formatting issues and added intersection observer with infinite scroll using our cursor based paginiation endpoint
…ursor rather than a uiud cursor so we can iterate through requests in ascending order
@codecov
Copy link
Copy Markdown

codecov bot commented Apr 1, 2026

Codecov Report

❌ Patch coverage is 6.89655% with 81 lines in your changes missing coverage. Please review.
✅ Project coverage is 8.26%. Comparing base (a1e6404) to head (f7db055).
⚠️ Report is 4 commits behind head on main.

Files with missing lines Patch % Lines
...ts/web/src/components/requests/RequestCardItem.tsx 0.00% 33 Missing ⚠️
clients/web/src/hooks/use-kanban-requests.ts 0.00% 19 Missing ⚠️
backend/internal/repository/requests.go 0.00% 12 Missing ⚠️
...ients/web/src/components/requests/KanbanColumn.tsx 0.00% 11 Missing ⚠️
clients/web/src/components/ui/GlobalTaskInput.tsx 0.00% 3 Missing ⚠️
...lients/web/src/components/requests/RequestCard.tsx 0.00% 2 Missing ⚠️
...b/src/components/requests/RequestCardTimestamp.tsx 0.00% 1 Missing ⚠️
Additional details and impacted files

Impacted file tree graph

@@           Coverage Diff            @@
##            main    #250      +/-   ##
========================================
+ Coverage   0.77%   8.26%   +7.49%     
========================================
  Files         67     107      +40     
  Lines       2324    3823    +1499     
========================================
+ Hits          18     316     +298     
- Misses      2306    3503    +1197     
- Partials       0       4       +4     
Flag Coverage Δ
backend 20.41% <29.41%> (?)
web 0.76% <1.42%> (-0.02%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

Files with missing lines Coverage Δ
backend/internal/handler/requests.go 89.90% <100.00%> (ø)
clients/web/src/routes/_protected/home.tsx 20.00% <100.00%> (ø)
clients/web/src/routes/_protected/test-api.tsx 0.00% <ø> (ø)
...b/src/components/requests/RequestCardTimestamp.tsx 0.00% <0.00%> (ø)
...lients/web/src/components/requests/RequestCard.tsx 4.34% <0.00%> (-0.20%) ⬇️
clients/web/src/components/ui/GlobalTaskInput.tsx 0.00% <0.00%> (ø)
...ients/web/src/components/requests/KanbanColumn.tsx 0.00% <0.00%> (ø)
backend/internal/repository/requests.go 0.00% <0.00%> (ø)
clients/web/src/hooks/use-kanban-requests.ts 0.00% <0.00%> (ø)
...ts/web/src/components/requests/RequestCardItem.tsx 0.00% <0.00%> (ø)

... and 38 files with indirect coverage changes

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant