Skip to content

Conversation

@kpetrov24exoft
Copy link
Contributor

@kpetrov24exoft kpetrov24exoft commented Jun 25, 2025

commit: [establish routing, sidenav, store]

  • establish sidenav, so Registry details is visible when registries/my-registrations/:id, in the route
    Знімок екрана 2025-06-25 134856
  • add link to registration overview page, on search page;
  • add files for store;
  • establish registry overview component;

commit: [mapper, get bookmarks, overview-toolbar]

  • overview toolbar was done only for projects, so here it's updated to be reusable for other resources;
  • also on my projects we had getBookmarks, which got only bookmarked projects, but it should get also registrations and preprints so it's got fixed to;
  • and initial mapping to get registry by id;

@kpetrov24exoft kpetrov24exoft requested a review from nsemets June 25, 2025 10:51
@kpetrov24exoft kpetrov24exoft self-assigned this Jun 25, 2025
@kpetrov24exoft kpetrov24exoft marked this pull request as draft June 25, 2025 10:55
@kpetrov24exoft kpetrov24exoft force-pushed the feat/215-registries-overview branch from f68b7bb to 5eeac02 Compare June 30, 2025 22:58
@kpetrov24exoft kpetrov24exoft marked this pull request as ready for review June 30, 2025 22:58

<div class="flex gap-4">
<div class="left-section gap-4">
<!-- TODO: statuses and schema updates-->
Copy link
Collaborator

Choose a reason for hiding this comment

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

What this comment for? Is it not finished?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

No, currently working on it

{{ 'registry.overview.updates' | translate }}
</p-accordion-header>
<p-accordion-content>
<div class="content">Important</div>
Copy link
Collaborator

Choose a reason for hiding this comment

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

Translation

Comment on lines +59 to +86

addRegistrationToBookmarks(bookmarksId: string, registryId: string): Observable<void> {
const url = `${environment.apiUrl}/collections/${bookmarksId}/relationships/linked_registrations/`;
const payload = {
data: [
{
type: 'linked_registrations',
id: registryId,
},
],
};

return this.#jsonApiService.post<void>(url, payload);
}

removeRegistrationFromBookmarks(bookmarksId: string, registryId: string): Observable<void> {
const url = `${environment.apiUrl}/collections/${bookmarksId}/relationships/linked_registrations/`;
const payload = {
data: [
{
type: 'linked_registrations',
id: registryId,
},
],
};

return this.#jsonApiService.delete(url, payload);
}
Copy link
Collaborator

Choose a reason for hiding this comment

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

Why registration in collection service?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

because we had adding and removeing projects to bookmarks collection so I've also added adding\removing registrations to the same place

…r-osf into feat/215-registries-overview

# Conflicts:
#	src/app/features/project/overview/components/overview-toolbar/overview-toolbar.component.html
#	src/app/features/project/overview/components/overview-toolbar/overview-toolbar.component.ts
…r-osf into feat/215-registries-overview

# Conflicts:
#	src/app/core/components/nav-menu/nav-menu.component.ts
#	src/app/features/collections/store/collections.actions.ts
#	src/app/features/collections/store/collections.state.ts
#	src/app/features/my-projects/services/my-projects.service.ts
#	src/app/shared/components/index.ts
#	src/app/shared/models/index.ts
#	src/assets/i18n/en.json
@kpetrov24exoft kpetrov24exoft merged commit 46327a0 into main Jul 2, 2025
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