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

III-6365 - Add ownerships managements page #956

Open
wants to merge 38 commits into
base: main
Choose a base branch
from

Conversation

simon-debruijn
Copy link
Contributor

@simon-debruijn simon-debruijn commented Nov 20, 2024

Added

  • management page ownerships
  • useOwnershipActions hook that we could reuse on organizer detail page in later PR

Changed

  • Refactor and reuse OwnershipsTable

Removed


Ticket: https://jira.uitdatabank.be/browse/III-6365

Copy link

sentry-io bot commented Nov 20, 2024

🔍 Existing Issues For Review

Your pull request is modifying functions with the following pre-existing issues:

📄 File: src/pages/organizers/[organizerId]/ownerships/index.page.tsx

Function Unhandled Issue
Ownership ReferenceError: creator is not defined Ownership(...
Event Count: 2 Affected Users: 1
Ownership TypeError: Cannot read properties of undefined (reading 'location') Ownership(src/pages/organizers/[organizerId]/ownersh...
Event Count: 1 Affected Users: 1
Ownership ReferenceError: getO is not defined Ownership(src...
Event Count: 1 Affected Users: 1

Did you find this useful? React with a 👍 or 👎

@simon-debruijn simon-debruijn marked this pull request as ready for review December 11, 2024 13:00
Copy link
Contributor

@Anahkiasen Anahkiasen left a comment

Choose a reason for hiding this comment

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

Nice reabstraction of the logic and nice cleanup on the types as well 👏 I think this should be the last major chunk? so that's nice that the hooks and stuff will get a bit more stable now

...configuration,
enabled: !!name && configuration.enabled === true,
Copy link
Contributor

Choose a reason for hiding this comment

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

Should this maybe account for when enabled is not passed as part of configuration? I'm worried it might make enabled always false then 🤔

const searchParams = new URLSearchParams();
if (paginationOptions) {
searchParams.set('limit', `${paginationOptions.limit}`);
searchParams.set('offset', `${paginationOptions.start}`);
Copy link
Contributor

@Anahkiasen Anahkiasen Jan 13, 2025

Choose a reason for hiding this comment

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

Are the template strings to cast to string or leftover maybe?

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.

3 participants