-
Notifications
You must be signed in to change notification settings - Fork 0
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
Add object to list #272
Add object to list #272
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
Database schema changes have been appliedThe development database migrated with the migrations found in this branch. Warning: All preview and development environments use the same database. This migration can affect all preview and development environments. After merging this pull request, the development database changes will merge into the production database. |
@sdevalk, I just removed you as a reviewer. There is a bug in my last changes. |
27052ba
to
ed6683f
Compare
apps/researcher/src/app/[locale]/objects/[id]/object-lists-actions.ts
Outdated
Show resolved
Hide resolved
apps/researcher/src/app/[locale]/objects/[id]/object-lists-actions.ts
Outdated
Show resolved
Hide resolved
apps/researcher/src/app/[locale]/objects/[id]/object-lists-menu.tsx
Outdated
Show resolved
Hide resolved
apps/researcher/src/app/[locale]/objects/[id]/object-lists-menu.tsx
Outdated
Show resolved
Hide resolved
apps/researcher/src/app/[locale]/objects/[id]/object-lists-actions.ts
Outdated
Show resolved
Hide resolved
apps/researcher/src/app/[locale]/objects/[id]/object-lists-menu.tsx
Outdated
Show resolved
Hide resolved
0cfdc7f
to
a2d8ef1
Compare
This pull request will add a dropdown to the object detail page. The user can choose a list to add the object to. After adding the object, the object is shown on the community page.
The design of the object list dropdown I made myself, and maybe needs some changes later.
I made two schema changes:
1:
objectItem.listId
could be null. AnobjectItem
without a list makes no sense, so I made this property not null.2: The
objectItem.objectId
(hashed URI) was the primary key. But objectId is not unique because objects can be added to multiple lists. So, I have addedobjectItem.id
with an auto-increment and made this the primary key.