Skip to content

Commit 4026407

Browse files
bp-cosnsemetsNazar690dinlvkdnrrromchIk
authored
Update develop from main (#322)
* Fix/improvements (#319) * fix(meetings): fixed meetings small issues * fix(tooltips): added tooltips * fix(table): updated sorting * fix(settings): fixed update project * fix(bookmarks): updated bookmarks * fix(my-registrations): fixed my registrations * fix(developer-apps): fixed developer apps * fix(settings): updated tokens and notifications * fix(translation): removed dot * fix(info-icon): updated info icon translate * fix(profile-settings): fixed profile settings * fix(test): updated tests * fix(settings): updated settings * fix(user-emails): updated adding emails to user account * fix(tests): updated tests * fix(clean-up): clean up * fix(models): updated models * fix(models): updated region and license models * fix(styles): moved styles from assets * fix(test): fixed institution loading and test for view only link * fix(analytics): added check if is public * fix(analytics): updated analytics feature * fix(analytics): show message when data loaded * fix(view-only-links): updated view only links * fix(view only links): added shared components * fix(tests): fixed tests * fix(unit-tests): updated jest config * fix(view-only-links): update view only links for components * fix(create-view-link): added logic for uncheck --------- Co-authored-by: Nazar Semets <nazar690@gmail.com> * Test/387 settings page tokens (#318) * test(tokens): added new tests * test(tokens): added new unit tests * test(tokens): fixed tests and jest.config * test(tokens): fixed pr comments * Fix - Search (#286) * feat(search): added generic search component * feat(search): improved search for institutions * feat(search): remove unused files * feat(search): fixed some issues * fix(search): removed comments * fix(profile): renamed it to profile * fix(updates): updates * fix(branding): Minor fixed regarding provider hero for preprints and registry * refactor(search-results-container): Encapsulated some logic, reduced duplication * refactor(search-results-container): Encapsulated tabs logic * refactor(search): Refactored partly search section for preprints and profile * refactor(search): Refactored search logic for global, institutions page, registrations page search * refactor(search): Refactored search logic for global, institutions page, registrations page search * refactor(search): Refactored search logic for profile * feat(profile): Implemented my-profile and user/:id pages * refactor(preprint-provider-discover): Removed search section that uses old approach * refactor(search): Create shared component that encapsulates search logic and reused across the app * refactor(shared-search): Extracted state model. Reduced duplications. Fixed IndexValueSearch filters * refactor(search): Using ResourceType instead of ResourceTab. Fixed params for index-value-search * refactor(search-models): Cleaned up models - renamed files, moved models to appropriate locations * refactor(index-card-search): Refactored models * fix(resource-card): Fixed resource-card component * fix(resource-card-secondary-metadata): Fixed resource-card component * fix(search): Fixed PR comments and conflicts after merge * refactor(search): Renamed OsfSearch- to GlobalSearch- * fix(unit-tests): fixed unit tests --------- Co-authored-by: volodyayakubovskyy <vyakubovskyy477@gmail.com> Co-authored-by: nsemets <nsemets@exoft.net> * Fix/557 missing tooltip (#320) * fix(tooltip): added tooltip to next button * fix(emails): fixed emails bug * chore(test-env): added test env (#321) * Chore/test docs added more docs and updated docs in the ever expanding evolution. (#309) * chore(testing-docs): incremental update to the testing docs * chore(diagram): updated the ngx application diagram * chore(indexes): added indexes to all files * docs(updates): added new docs and explanations * chore(pr-updates): updated the files based on pr feedback --------- Co-authored-by: nsemets <nsemets@exoft.net> Co-authored-by: Nazar Semets <nazar690@gmail.com> Co-authored-by: dinlvkdn <104976612+dinlvkdn@users.noreply.github.com> Co-authored-by: rrromchIk <90086332+rrromchIk@users.noreply.github.com> Co-authored-by: volodyayakubovskyy <vyakubovskyy477@gmail.com>
1 parent cf5041d commit 4026407

File tree

461 files changed

+4321
-12776
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

461 files changed

+4321
-12776
lines changed

.github/workflows/review.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,7 @@ name: Require at least one approval
33

44
on:
55
pull_request:
6-
types: [opened, reopened, ready_for_review, synchronize]
7-
pull_request_review:
8-
types: [submitted, edited, dismissed]
6+
types: [opened, reopened, ready_for_review, synchronize, edited]
97

108
jobs:
119
check-approval:

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ take up to 60 seconds once the docker build finishes.
2525
- [Docker Commands](docs/docker.md).
2626
- [ESLint Strategy](docs/eslint.md).
2727
- [Git Conventions](docs/git-convention.md).
28+
- [i18n](docs/i18n.md).
2829
- [NGXS Conventions](docs/ngxs.md).
2930
- [Testing Strategy](docs/testing.md).
3031

angular.json

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,17 @@
9090
}
9191
]
9292
},
93+
"test-osf": {
94+
"optimization": false,
95+
"extractLicenses": false,
96+
"sourceMap": true,
97+
"fileReplacements": [
98+
{
99+
"replace": "src/environments/environment.ts",
100+
"with": "src/environments/environment.test-osf.ts"
101+
}
102+
]
103+
},
93104
"development": {
94105
"optimization": false,
95106
"extractLicenses": false,
@@ -117,6 +128,10 @@
117128
"local": {
118129
"buildTarget": "osf:build:local",
119130
"hmr": false
131+
},
132+
"test-osf": {
133+
"buildTarget": "osf:build:test-osf",
134+
"hmr": false
120135
}
121136
},
122137
"defaultConfiguration": "development"

commitlint.config.cjs

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,16 @@ module.exports = {
55
2,
66
'always',
77
[
8+
'chore', // Build process, CI/CD, dependencies
9+
'docs', // Documentation update
810
'feat', // New feature
911
'fix', // Bug fix
10-
'docs', // Documentation update
11-
'style', // Code style (formatting, missing semicolons, etc.)
12-
'refactor', // Code refactoring (no feature changes)
12+
'lang', // All updates related to i18n changes
1313
'perf', // Performance improvements
14-
'test', // Adding tests
15-
'chore', // Build process, CI/CD, dependencies
14+
'refactor', // Code refactoring (no feature changes)
1615
'revert', // Reverting changes
16+
'style', // Code style (formatting, missing semicolons, etc.)
17+
'test', // Adding tests
1718
],
1819
],
1920
'scope-empty': [2, 'never'], // Scope must always be present

docs/admin.knowledge-base.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,18 @@
11
# Admin Knowledge Base
22

3+
## Index
4+
5+
- [Overview](#overview)
6+
- [All things GitHub](#all-things-github)
7+
8+
---
9+
10+
## Overview
11+
312
Information on updates that require admin permissions
413

14+
---
15+
516
## All things GitHub
617

718
### GitHub pipeline
@@ -16,6 +27,8 @@ The `.github` folder contains the following:
1627
.github/workflows
1728
4. The GitHub PR templates
1829
.github/pull_request_template.md
30+
5. The backup json for the settings/rules
31+
.github/rules
1932

2033
### Local pipeline
2134

docs/assets/osf-ngxs-diagram.png

3.28 KB
Loading

docs/commit.template.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
## 📝 Enabling the Shared Commit Template
22

3+
## Overview
4+
35
This project includes a Git commit message template stored at:
46

57
```

docs/compodoc.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,20 @@
11
# Angular Documentation with Compodoc
22

3+
## Index
4+
5+
- [Overview](#overview)
6+
- [How to Generate Documentation](#how-to-generate-documentation)
7+
- [Documentation Coverage Requirements](#documentation-coverage-requirements)
8+
- [Pre-commit Enforcement via Husky](#pre-commit-enforcement-via-husky)
9+
- [CI/CD Enforcement](#cicd-enforcement)
10+
- [Tips for Passing Coverage](#tips-for-passing-coverage)
11+
- [Output Directory](#output-directory)
12+
- [Need Help?](#need-help)
13+
14+
---
15+
16+
## Overview
17+
318
This project uses [Compodoc](https://compodoc.app/) to generate and enforce documentation for all Angular code. Documentation is mandatory and must meet a **100% coverage threshold** to ensure consistent API clarity across the codebase.
419

520
---

docs/docker.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,15 @@
11
# Docker
22

3+
## Index
4+
5+
- [Overview](#overview)
6+
- [Docker Commands](#docker-commands)
7+
- [Troubleshooting](#troubleshooting)
8+
9+
---
10+
11+
## Overview
12+
313
The OSF angular project uses a docker image to simplify the developer process.
414

515
### Volumes
@@ -33,6 +43,8 @@ If you don’t see the site, ensure the start script includes:
3343
"start": "ng serve --host 0.0.0.0 --port 4200 --poll 2000"
3444
```
3545

46+
---
47+
3648
## Docker Commands
3749

3850
### build + run in background (build is only required for the initial install or npm updates)
@@ -105,6 +117,8 @@ docker rmi <image_name>:<tag>
105117
docker rmi -f <IMAGE_ID>
106118
```
107119

120+
---
121+
108122
## Troubleshooting
109123

110124
If the application does not open in your browser at [http://localhost:4200](http://localhost:4200), follow these steps in order:

docs/eslint.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,13 @@
11
# Linting Strategy – OSF Angular
22

3+
## Index
4+
5+
- [Overview](#overview)
6+
- [Linting Commands](#linting-commands)
7+
- [ESLint Config Structure](#eslint-config-structure)
8+
- [Pre-Commit Hook](#pre-commit-hook)
9+
- [Summary](#summary)
10+
311
---
412

513
## Overview
@@ -12,6 +20,9 @@ This project uses a **unified, modern ESLint flat config** approach to enforce c
1220

1321
It also integrates into the **Git workflow** via `pre-commit` hooks to ensure clean, compliant code before every commit.
1422

23+
**IMPORTANT**
24+
The OSF application must meet full accessibility (a11y) compliance to ensure equitable access for users of all abilities, in alignment with our commitment to inclusivity and funding obligations.
25+
1526
---
1627

1728
## Linting Commands

0 commit comments

Comments
 (0)