Commit Graph

12745 Commits

Author SHA1 Message Date
Giuseppe Digilio
5dbc6ce7a8 [DURACOM-237] Fix issue on drag end 2024-03-29 12:47:03 +01:00
Yury Bondarenko
c4b32febc1 Explain themed-component-classes rule 2024-03-29 10:52:55 +01:00
Yury Bondarenko
08a5443cc2 Add generated docs to source 2024-03-29 10:47:04 +01:00
Yury Bondarenko
515e5f00cf Improve documentation 2024-03-29 10:46:20 +01:00
Yury Bondarenko
2c68589416 Move generated documentation to docs/lint/ 2024-03-29 10:12:57 +01:00
Giuseppe Digilio
1f4aca800b [DURACOM-234] Migrate fo functional resolver 2024-03-28 23:34:37 +01:00
Yury Bondarenko
a6e093038c Manual fix: use base components in unit test templates
`Themed*` components should be used in the actual codebase to ensure we retain theme support.
However, in unit tests these components won't work without a fully-functional `ThemeService` & `Store`.

For this reason, the lint plugin allows `ds-base-*` selectors in unit test templates.
2024-03-28 18:52:06 +01:00
Yury Bondarenko
762e4616cc Manual fix: sync removed imports between tests and components
The automatic migration made it so HTML always uses the `Themed*` component, and it must therefore be imported in all standalone components that use it.
Afterwards, many unit tests fail because the removed imports no longer match up (can't inject `ThemeService`).

While we could try to support this as part of the automatic migration, there are too many edge cases for this to be consistent.
2024-03-28 18:52:06 +01:00
Yury Bondarenko
0b9741d252 Manual fix: update i/o for ThemedConfigurationSearchPageComponent
Fixes compile-time errors due to out-of-sync inputs and outputs between ThemedConfigurationSearchPageComponent and SearchComponent

(note that this is was an existing problem in the source code that flew under the radar until we flipped the selector convention!)
2024-03-28 18:52:06 +01:00
Yury Bondarenko
6051b82821 Automatically migrate to new themeable component convention 2024-03-28 18:33:46 +01:00
Yury Bondarenko
e40b6ae612 Update plugins to support standalone components
- ThemedComponent wrappers should always import their base component. This ensures that it's always enough to only import the wrapper when we use it.
- This implies that all themeable components must be standalone

→ added rules to enforce this
→ updated usage rule to improve declaration/import handling
2024-03-28 18:33:46 +01:00
Giuseppe Digilio
549609e2ea [DURACOM-234] Fix Markdown Config 2024-03-28 16:49:14 +01:00
Giuseppe Digilio
abae9b9246 [DURACOM-234] WIP fix SSR 2024-03-28 16:37:42 +01:00
Giuseppe Digilio
3cb000db7c Merge branch 'DURACOM-234' into DURACOM-234-ANGULAR-17
# Conflicts:
#	src/main.server.ts
2024-03-27 14:22:42 +01:00
lotte
722bd6f7f5 113500: Fixed lint error 2024-03-27 14:15:20 +01:00
lotte
4e0046022b 113500: Fixed tests after bugfix 2024-03-27 14:07:55 +01:00
lotte
993ce1ab16 113500: Fix for warning on first describe step 2024-03-27 13:27:44 +01:00
Giuseppe Digilio
a8c3af097d [DURACOM-234] Switch to standalone bootstrapping API 2024-03-26 20:52:26 +01:00
Giuseppe Digilio
0c3e9b1535 [DURACOM-234] Fix NG0600 error 2024-03-26 18:42:29 +01:00
Alan Orth
43137fe676 Merge pull request #2879 from DSpace/backport-2877-to-dspace-7_x
[Port dspace-7_x] System-wide alert shouldn't be created when the message is empty
2024-03-26 11:26:31 +03:00
Alexandre Vryghem
d05438dc3e Prevent system-wide alert to be activated with empty message
(cherry picked from commit 767de4b5c8)
2024-03-26 07:12:03 +00:00
Alan Orth
b3b3ef8203 Merge pull request #2877 from alexandrevryghem/fix-systemwidealert-form-validation_contribute-main
System-wide alert shouldn't be created when the message is empty
2024-03-26 10:11:45 +03:00
Alexandre Vryghem
c476c4b343 Merge branch 'main' into minor-themed-component-fixes_contribute-main 2024-03-25 00:14:45 +01:00
Alexandre Vryghem
147b9f2efb Merge branch 'main' into minor-themed-component-fixes_contribute-main 2024-03-24 23:56:23 +01:00
Alexandre Vryghem
25cb0455e2 Fixed bug in BrowseService where findListByHref was called with null instead of undefined, which prevented its default values from being used
(cherry picked from commit e6bf2f0ca7)
2024-03-24 19:12:48 +01:00
Alexandre Vryghem
babe936c30 Merge branch 'w2p-109964_fix-vocabulary-options-with-url-as-stored-value_contribute-7.6' into w2p-109964_fix-vocabulary-options-with-url-as-stored-value_contribute-main
# Conflicts:
#	src/app/core/data/relationship-data.service.ts
#	src/app/core/data/relationship-type-data.service.ts
#	src/app/core/eperson/eperson-data.service.spec.ts
#	src/app/core/statistics/usage-report-data.service.ts
#	src/app/core/submission/submission-cc-license-url-data.service.ts
#	src/app/core/submission/workspaceitem-data.service.ts
2024-03-24 15:17:57 +01:00
Alexandre Vryghem
d5cf236938 Refactored code to always encode the RequestParams 2024-03-24 13:32:25 +01:00
Alexandre Vryghem
03e49907c1 Merge branch 'fix-systemwidealert-form-validation_contribute-7.6' into fix-systemwidealert-form-validation_contribute-main 2024-03-23 16:04:25 +01:00
Alexandre Vryghem
767de4b5c8 Prevent system-wide alert to be activated with empty message 2024-03-23 15:12:48 +01:00
Yury Bondarenko
4a39f33006 Add to config.example.yml 2024-03-22 16:23:39 +01:00
Alexandre Vryghem
548cc2d670 Merge remote-tracking branch 'upstream/main' into created-metadata-service-for-metadata-operations_contribute-main 2024-03-22 16:19:27 +01:00
Giuseppe Digilio
73ffa703cb Merge branch 'DURACOM-234' into DURACOM-234-ANGULAR-17 2024-03-21 17:41:58 +01:00
Giuseppe Digilio
e0855a46cc [DURACOM-234] Remove unsupported node 16 2024-03-21 17:29:52 +01:00
Giuseppe Digilio
969b42fee1 [DURACOM-234] Fix tests 2024-03-21 16:34:42 +01:00
Giuseppe Digilio
abb284a2d6 [DURACOM-237] Fix tests 2024-03-21 16:33:32 +01:00
Giuseppe Digilio
5d24691bc2 Merged in DURACOM-240-mathjax (pull request #1488)
Replace mathjax pipe with directive
2024-03-21 12:17:44 +00:00
Giuseppe Digilio
b325701f9f [DURACOM-240] Fix test 2024-03-21 13:11:08 +01:00
Giuseppe Digilio
a652600c7f [DURACOM-234] Remove fdescribe 2024-03-21 13:10:33 +01:00
Giuseppe Digilio
e2bbb43395 Merge branch 'DURACOM-234' into DURACOM-240-mathjax
# Conflicts:
#	src/app/shared/utils/markdown.pipe.spec.ts
2024-03-21 12:57:31 +01:00
Giuseppe Digilio
152e724c75 [DURACOM-234] Fix tests 2024-03-21 12:56:45 +01:00
Yury Bondarenko
568574585b Workaround/document edge case where node can't be found by token 2024-03-21 10:35:04 +01:00
Yury Bondarenko
6e22b5376a Make rules more type-safe 2024-03-21 10:11:04 +01:00
Yury Bondarenko
b0758c23e5 Enforce plugin structure and generate documentation 2024-03-21 10:11:04 +01:00
Yury Bondarenko
e83a0cd741 Fix lint lint issues 2024-03-21 10:11:04 +01:00
Yury Bondarenko
ae50780e28 Enable linting for the lint plugins 2024-03-21 10:11:04 +01:00
Yury Bondarenko
9a27db3835 Lint e2e tests, enforce selectors 2024-03-21 10:11:04 +01:00
Yury Bondarenko
13e9808df2 Don't enforce ThemedComponent selectors in test HTML 2024-03-21 10:11:04 +01:00
Yury Bondarenko
3937be13f2 Custom ESLint rules to enforce new ThemedComponent selector convention
The following cases are covered:
- ThemedComponent wrapper selectors must not start with ds-themed-
- Base component selectors must start with ds-base-
- Themed component selectors must start with ds-themed-
- The ThemedComponent wrapper must always be used in HTML
- The ThemedComponent wrapper must be used in TypeScript _where appropriate_:
  - Required
    - Explicit usages (e.g. modal instantiation, routing modules, ...)
    - By.css selector queries (in order to align with the HTML rule)
  - Unchecked
    - Non-routing modules (to ensure the components can be declared)
    - ViewChild hooks (since they need to attach to the underlying component)

All rules work with --fix to automatically migrate to the new convention
This covers most of the codebase, but minor manual adjustment are needed afterwards
2024-03-21 10:11:04 +01:00
Giuseppe Digilio
c072d5ddfc Merge branch 'main' into DURACOM-234 2024-03-21 09:52:13 +01:00
Giuseppe Digilio
418f07bbf2 [DURACOM-240] Assure the MathJax script has been registered before rendering 2024-03-21 09:46:14 +01:00