Skip to content

Conversation

@nmykhalkevch-exoft
Copy link
Contributor

No description provided.

WikiState,
MeetingsState,
RegistrationsState,
RegistriesState,
Copy link
Collaborator

Choose a reason for hiding this comment

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

Remove it from here and use it in registries routes

Copy link
Collaborator

Choose a reason for hiding this comment

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

Remove this.


@Component({
selector: 'osf-registries',
imports: [RouterModule],
Copy link
Collaborator

Choose a reason for hiding this comment

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

Use RouterOutlet instead of RouterModule.

Copy link
Collaborator

Choose a reason for hiding this comment

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

Add all exports.

@@ -0,0 +1,11 @@
import { Provider } from '../models';
import { ProvidersResponseJsonApi } from '../models/providers-json-api.model';
Copy link
Collaborator

Choose a reason for hiding this comment

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

Simplify it.

@@ -0,0 +1,11 @@
import { Project } from '../models';
import { ProjectsResponseJsonApi } from '../models/projects-json-api.model';
Copy link
Collaborator

Choose a reason for hiding this comment

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

Simplify it.

…nScience/angular-osf into feat/217-add-new-registries
…nScience/angular-osf into feat/217-add-new-registries
Copy link
Collaborator

Choose a reason for hiding this comment

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

Add also here subject-service.model export.

patchState({
providers: {
data: providers,

Copy link
Collaborator

Choose a reason for hiding this comment

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

Remove empty line


export class PageSchemaMapper {
static fromSchemaBlocksResponse(response: SchemaBlocksResponseJsonApi): PageSchema[] {
console.log('PageSchemaMapper.fromSchemaBlocksResponse', response);
Copy link
Collaborator

Choose a reason for hiding this comment

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

Remove console.log.


export const defaultSteps: StepOption[] = [
{
label: 'Metadata',
Copy link
Collaborator

Choose a reason for hiding this comment

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

What about translations?

projectId: this.fromProject ? (project ?? undefined) : undefined,
})
.subscribe(() => {
this.toastService.showSuccess('Draft created successfully');
Copy link
Collaborator

Choose a reason for hiding this comment

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

Add translation.

Comment on lines +112 to +119
<h3 class="mb-2">Upload File</h3>
<p class="mb-1">You may attach up to 5 file(s) to this question. Files cannot total over 5GB in size.</p>
<p>
Uploaded files will automatically be archived in this registration. They will also be added to a related
project that will be created for this registration.
</p>

<p>File input is not implemented yet.</p>
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 49 to 51
this.route.params.subscribe((params) => {
this.step.set(+params['step'].split('-')[0]);
});
Copy link
Collaborator

Choose a reason for hiding this comment

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

Try to use toSignal. I think you can add it instead of step = signal(this.route.snapshot.params['step'].split('-')[0]);.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

As you can see step is already signal, but without subscription, it doesn't reflect on the params changes

}

stepChange(step: number): void {
// TODO: before navigating, validate the current step
Copy link
Collaborator

Choose a reason for hiding this comment

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

Remove it or add correct format: [NM] TODO: ....

}

onFocusOut() {
// TODO: make request to update contributor if changed
Copy link
Collaborator

Choose a reason for hiding this comment

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

Make it right format [NM] TODO: .

Copy link
Collaborator

Choose a reason for hiding this comment

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

Rename component files to registries-subjects

@nmykhalkevch-exoft nmykhalkevch-exoft merged commit d3fa5a2 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