Skip to content
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

Pagination #1419

Merged
merged 27 commits into from
Nov 12, 2024
Merged

Pagination #1419

merged 27 commits into from
Nov 12, 2024

Conversation

fadingNA
Copy link
Contributor

@fadingNA fadingNA commented Nov 7, 2024

  • What kind of change does this PR introduce? (Bug fix, feature, docs update, ...)

New feature add pagination to Setting / Document for user that have uploaded multiple document have pagination to align the documents

Screenshot 2024-11-06 at 10 35 29 PM

@ManishMadan2882 thanks for this.

Copy link

vercel bot commented Nov 7, 2024

@fadingNA is attempting to deploy a commit to the Arc53 Team on Vercel.

A member of the Team first needs to authorize it.

Copy link

codecov bot commented Nov 7, 2024

Codecov Report

Attention: Patch coverage is 30.30303% with 23 lines in your changes missing coverage. Please review.

Project coverage is 34.00%. Comparing base (0425190) to head (6974db5).
Report is 74 commits behind head on main.

Files with missing lines Patch % Lines
application/api/user/routes.py 30.30% 23 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1419      +/-   ##
==========================================
- Coverage   34.03%   34.00%   -0.03%     
==========================================
  Files          69       69              
  Lines        3376     3405      +29     
==========================================
+ Hits         1149     1158       +9     
- Misses       2227     2247      +20     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link

vercel bot commented Nov 7, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
docs-gpt ✅ Ready (Inspect) Visit Preview 💬 Add feedback Nov 10, 2024 11:19pm

@fadingNA
Copy link
Contributor Author

fadingNA commented Nov 8, 2024

Fixed data fetching, pre calculate pagination data on backend, and passing along with original document for using in another components

Copy link
Contributor

@dartpain dartpain left a comment

Choose a reason for hiding this comment

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

LGTM, thank you!

@dartpain
Copy link
Contributor

dartpain commented Nov 8, 2024

There are some minor type errors here on build

src/Navigation.tsx(148,26): error TS2339: Property 'find' does not exist on type 'GetDocsResponse'.
src/Navigation.tsx(148,32): error TS7006: Parameter 'doc' implicitly has an 'any' type.
src/hooks/useDefaultDocument.ts(20,15): error TS2339: Property 'forEach' does not exist on type 'GetDocsResponse'.
src/upload/Upload.tsx(169,31): error TS2339: Property 'find' does not exist on type 'GetDocsResponse'.
src/upload/Upload.tsx(169,37): error TS7006: Parameter 'd' implicitly has an 'any' type.
src/upload/Upload.tsx(187,27): error TS2339: Property 'map' does not exist on type 'GetDocsResponse'.
Error: Command "npm run build" exited with 2

@fadingNA
Copy link
Contributor Author

fadingNA commented Nov 8, 2024

There are some minor type errors here on build

src/Navigation.tsx(148,26): error TS2339: Property 'find' does not exist on type 'GetDocsResponse'.
src/Navigation.tsx(148,32): error TS7006: Parameter 'doc' implicitly has an 'any' type.
src/hooks/useDefaultDocument.ts(20,15): error TS2339: Property 'forEach' does not exist on type 'GetDocsResponse'.
src/upload/Upload.tsx(169,31): error TS2339: Property 'find' does not exist on type 'GetDocsResponse'.
src/upload/Upload.tsx(169,37): error TS7006: Parameter 'd' implicitly has an 'any' type.
src/upload/Upload.tsx(187,27): error TS2339: Property 'map' does not exist on type 'GetDocsResponse'.
Error: Command "npm run build" exited with 2

Got it let me fix this

change routes /combine name, add route /api/source/paginated
add new endpoint source/paginated
fixing table responsive
create new function to handling api/source/paginated
@fadingNA
Copy link
Contributor Author

fadingNA commented Nov 9, 2024

Create new endpoint /api/sources/paginated, change api/combine to api/sources

fallback situational calling api/combine will redirect to api/sources

paginated instead of manually calculate using mongodb function with sort,skip,limit

Thanks
@dartpain @ManishMadan2882

@fadingNA
Copy link
Contributor Author

fadingNA commented Nov 9, 2024

Add dark theme to dropdown

min-w to get delete button
Screenshot 2024-11-09 at 4 58 37 PM

Copy link
Collaborator

@ManishMadan2882 ManishMadan2882 left a comment

Choose a reason for hiding this comment

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

Love the changes @fadingNA
Thanks!

@fadingNA
Copy link
Contributor Author

Love the changes @fadingNA Thanks!

Thank you so much Manish !!

@dartpain dartpain merged commit bed4939 into arc53:main Nov 12, 2024
6 of 8 checks passed
@fadingNA fadingNA deleted the pagination branch November 12, 2024 16:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants