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

chore: shift page.list to resource #418

Merged
merged 1 commit into from
Aug 8, 2024
Merged

chore: shift page.list to resource #418

merged 1 commit into from
Aug 8, 2024

Conversation

seaerchin
Copy link
Contributor

@seaerchin seaerchin commented Aug 2, 2024

TL;DR

Consolidates the page listing functionality into the resource module and updates related components.

What changed?

  • Replaced page.list calls with resource.list calls in various components and modals.
  • Updated resource.router.ts to include the list procedure previously in page.router.ts.
  • Removed the list procedure from page.router.ts.
  • Adjusted invalidation calls to use utils.resource.list instead of utils.page.list.

How to test?

  • Go to the base site page
  • ensure that you can see pages/folders
  • create a new page/folder
  • the ui should be updated

Why make this change?

This change aims to streamline the codebase by consolidating listing functionalities, reducing redundancy, and improving maintainability.

Copy link

vercel bot commented Aug 2, 2024

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

Name Status Preview Comments Updated (UTC)
isomer-studio ✅ Ready (Inspect) Visit Preview 💬 Add feedback Aug 8, 2024 8:43am

Copy link
Contributor Author

seaerchin commented Aug 2, 2024

@seaerchin seaerchin marked this pull request as ready for review August 2, 2024 08:14
@seaerchin seaerchin requested a review from a team as a code owner August 2, 2024 08:14
@seaerchin seaerchin mentioned this pull request Aug 6, 2024
Copy link
Contributor

@karrui karrui left a comment

Choose a reason for hiding this comment

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

yay lgtm

we want ot shift to resource as this returns pages + folders

also removed references to `page.list` in our codebase (as given by lsp)
@seaerchin seaerchin merged commit 895e530 into main Aug 8, 2024
16 checks passed
Copy link
Contributor Author

Merge activity

@seaerchin seaerchin deleted the 03-fix-page-list branch August 8, 2024 08:47
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.

2 participants