Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
47 commits
Select commit Hold shift + click to select a range
db49641
feat(submit-preprint-state): Implemented state for submit preprint
rrromchIk Jun 13, 2025
14acced
feat(select-preprint-state): Implemented select service page with api…
rrromchIk Jun 13, 2025
6d65b1b
feat(select-preprint-service): Enhance UI with dynamic translations
rrromchIk Jun 13, 2025
4efc298
feat(select-preprint-service): Enhance UI with dynamic translations
rrromchIk Jun 13, 2025
c5d0ea5
Merge remote-tracking branch 'origin/feat/submit-preprint' into feat/…
rrromchIk Jun 16, 2025
5bb72fb
fix(preprint-provider-hero): Added skeleton for search input while pr…
rrromchIk Jun 16, 2025
0a358c7
fix(preprints-styles): Fixed styles due to merge conflicts
rrromchIk Jun 16, 2025
70046df
Merge branch 'main' into feat/submit-preprint
rrromchIk Jun 16, 2025
7a34b3c
feat(nav-menu): Added subroutes for preprints
rrromchIk Jun 16, 2025
3bfc768
fix(preprints-search-input): Changed placeholder
rrromchIk Jun 16, 2025
f90c8c7
fix(comments): Fixed comments
rrromchIk Jun 16, 2025
964f310
fix(preprints-help-dialog): Fixed url to help guide
rrromchIk Jun 16, 2025
8aef899
feat(preprints-favicon): Implemented updating browser tab favicon and…
rrromchIk Jun 16, 2025
e4281a9
Merge branch 'main' into feat/submit-preprint
rrromchIk Jun 16, 2025
dffc84c
fix(select): remove duplicate style
rrromchIk Jun 16, 2025
2c7a628
feat(stepper): Implemented shared component
rrromchIk Jun 17, 2025
3bc707a
feat(submit-preprint-stepper): Created parent component for submit co…
rrromchIk Jun 17, 2025
48caa83
feat(submit-preprint-first-step): Partly implemented first step
rrromchIk Jun 17, 2025
7c42589
feat(submit-preprint-first-step): Finished title and abstract step
rrromchIk Jun 18, 2025
e17faa7
feat(submit-preprint-file-step): Partly implemented layout
rrromchIk Jun 19, 2025
d8e9b78
Merge branch 'main' into feat/submit-preprint
rrromchIk Jun 19, 2025
13b4175
feat(submit-preprint-file-step): Implemented file upload from computer
rrromchIk Jun 19, 2025
3ca76de
feat(submit-preprint-file-step): Partly implemented select from osf p…
rrromchIk Jun 20, 2025
17a7b5e
Merge branch 'main' into feat/submit-preprint
rrromchIk Jun 20, 2025
53cca7e
refactor(files-tree): Made files-tree more reusable by passing curren…
rrromchIk Jun 20, 2025
68867da
feat(submit-preprint-file-step): Implemented project files viewing
rrromchIk Jun 20, 2025
e53edf5
Merge branch 'main' into feat/submit-preprint
rrromchIk Jun 20, 2025
7c18f45
refactor(submit-preprint-stepper): Fixed comments
rrromchIk Jun 23, 2025
077ba1c
Merge branch 'main' into feat/submit-preprint
rrromchIk Jun 26, 2025
8ef907a
feat(submit-preprint-file-step): Implemented selecting file from project
rrromchIk Jun 26, 2025
40ea22d
feat(submit-preprint-file-step): Implemented version file
rrromchIk Jun 27, 2025
6c7c09c
style(submit-preprint-stepper): Adjusted styles for responsive
rrromchIk Jun 27, 2025
5ebc169
fix(submit-preprint-stepper): Fixed fetching node's file, next/back l…
rrromchIk Jun 27, 2025
b568996
feat(submit-preprint-metadata-step): Implemented contributors section…
rrromchIk Jun 27, 2025
2bd0ca0
style(base): Removed existing file
rrromchIk Jun 27, 2025
08d1b42
Merge branch 'main' into feat/submit-preprint
rrromchIk Jun 27, 2025
9be74a6
feat(submit-preprint-metadata-step): Implemented doi, publication dat…
rrromchIk Jun 30, 2025
48160ca
Merge branch 'main' into feat/submit-preprint
rrromchIk Jun 30, 2025
cfcdc84
fix(title-and-abstract): Fixed PR comments
rrromchIk Jun 30, 2025
2409908
Merge branch 'refs/heads/main' into feat/submit-preprint
rrromchIk Jun 30, 2025
7d8852e
feat(licenses): Introduced shared component and models. Used in metad…
rrromchIk Jul 1, 2025
b75101f
feat(licenses): Updated save button label, disabling button after save
rrromchIk Jul 1, 2025
1523360
Merge branch 'main' into feat/submit-preprint
rrromchIk Jul 1, 2025
29c06bb
fix(comments): Fixed comments
rrromchIk Jul 1, 2025
6ff200b
feat(tags): Added tags to metadata step
rrromchIk Jul 1, 2025
7dd7e0a
Merge branch 'main' into feat/submit-preprint
rrromchIk Jul 1, 2025
de92363
fix(state): Uncommented code
rrromchIk Jul 1, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,16 @@ <h2>Publication DOI</h2>
</div>
</p-card>

<p-card styleClass="m-t-24" class="card">
<div>
<h2>Tags (optional)</h2>

<div class="m-t-24">
<osf-tags-input [tags]="createdPreprint()?.tags || []" (tagsChanged)="updateTags($event)" />
</div>
</div>
</p-card>

<p-card styleClass="m-t-24" class="card">
<h2>Publication Date (optional)</h2>

Expand Down Expand Up @@ -69,7 +79,8 @@ <h2 class="m-b-24">Publication Citation (optional)</h2>
label="Next"
[pTooltip]="metadataForm.invalid ? 'Fill in \'Required\' fields to continue' : ''"
tooltipPosition="top"
[disabled]="metadataForm.invalid"
[disabled]="metadataForm.invalid || !createdPreprint()?.licenseId"
[loading]="isUpdatingPreprint()"
(click)="nextButtonClicked()"
/>
</section>
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ import {
SubmitPreprintSelectors,
UpdatePreprint,
} from '@osf/features/preprints/store/submit-preprint';
import { IconComponent, LicenseComponent, TextInputComponent } from '@shared/components';
import { IconComponent, LicenseComponent, TagsInputComponent, TextInputComponent } from '@shared/components';
import { INPUT_VALIDATION_MESSAGES } from '@shared/constants';
import { License, LicenseOptions } from '@shared/models';
import { CustomValidators, findChangedFields } from '@shared/utils';
Expand All @@ -43,6 +43,7 @@ import { ContributorsComponent } from './contributors/contributors.component';
TextInputComponent,
Tooltip,
LicenseComponent,
TagsInputComponent,
],
templateUrl: './metadata.component.html',
styleUrl: './metadata.component.scss',
Expand All @@ -62,6 +63,8 @@ export class MetadataComponent implements OnInit {

licences = select(SubmitPreprintSelectors.getLicenses);
createdPreprint = select(SubmitPreprintSelectors.getCreatedPreprint);
isUpdatingPreprint = select(SubmitPreprintSelectors.isPreprintSubmitting);

nextClicked = output<void>();

ngOnInit() {
Expand All @@ -84,6 +87,10 @@ export class MetadataComponent implements OnInit {
nonNullable: false,
validators: [Validators.maxLength(this.inputLimits.citation.maxLength)],
}),
tags: new FormControl(this.createdPreprint()?.tags || [], {
nonNullable: true,
validators: [],
}),
});
}

Expand Down Expand Up @@ -116,4 +123,10 @@ export class MetadataComponent implements OnInit {
selectLicense(license: License) {
this.actions.saveLicense(license.id);
}

updateTags(updatedTags: string[]) {
this.metadataForm.patchValue({
tags: updatedTags,
});
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,5 @@ export interface MetadataForm {
doi: FormControl<string>;
originalPublicationDate: FormControl<Date | null>;
customPublicationCitation: FormControl<StringOrNull>;
tags: FormControl<string[]>;
}
1 change: 1 addition & 0 deletions src/app/features/preprints/services/preprints.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ export class PreprintsService {
originalPublicationDate: 'original_publication_date',
doi: 'doi',
customPublicationCitation: 'custom_publication_citation',
tags: 'tags',
};

getPreprintProviderById(id: string): Observable<PreprintProviderDetails> {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ import {
defaults: {
selectedProviderId: null,
createdPreprint: {
data: { id: '6s4jg_v1' } as Preprint, // Temporary default value for testing
data: null,
isLoading: false,
error: null,
isSubmitting: false,
Expand Down