Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merge next into main for v6 Release #1628

Merged
merged 131 commits into from
Jan 30, 2024
Merged

Merge next into main for v6 Release #1628

merged 131 commits into from
Jan 30, 2024

Conversation

thomasdax98
Copy link
Member

@thomasdax98 thomasdax98 commented Jan 28, 2024

Migration Guide: #1629

fraxachun and others added 30 commits October 16, 2023 07:35
However, use generic type to set depth of recursion
Co-authored-by: Johannes Obermair <48853629+johnnyomair@users.noreply.github.com>
Configure admin-routes and -menu in single "RouteMenu" data-structure
…cope

Migrate ContentScope-Module to UserPermissionsModule
Remove role- and domain-fields from CurrentUser
In real applications the UserService will be provided externally,
so seperating the concerns make sense.
…ntrol-service

Move calculating permissions to AccessControlService
as this can be handled purely by content-scopes
johnnyomair and others added 13 commits January 15, 2024 08:55
The `core-without-import.js` file was originally added to fix a problem
with the `next/core-web-vitals` config that caused duplicate `import`
plugins. This problem doesn't exist anymore in our current setup, so we
may remove the extra file. This also prevents forgetting about adding
new rules to both files.
…` and `shouldShowFieldWarning` in `FinalFormContext` to match the corresponding methods in `Field` (#1570)

The API in `FinalFormContext` was changed from 

```tsx
// ❌
export interface FinalFormContext {
    shouldScrollToField: ({ fieldMeta }: { fieldMeta: FieldMetaState<any> }) => boolean;
    shouldShowFieldError: ({ fieldMeta }: { fieldMeta: FieldMetaState<any> }) => boolean;
    shouldShowFieldWarning: ({ fieldMeta }: { fieldMeta: FieldMetaState<any> }) => boolean;
}
```

to

```tsx
// ✅
export interface FinalFormContext {
    shouldScrollToField: (fieldMeta: FieldMetaState<any>) => boolean;
    shouldShowFieldError: (fieldMeta: FieldMetaState<any>) => boolean;
    shouldShowFieldWarning: (fieldMeta: FieldMetaState<any>) => boolean;
}
```
Prevents importing the file from outside the source folder.
The sites config was previously assumed to be `Record<string,
SiteConfg`. However, as the sites config is solely used in application
code, it could be of any shape. Therefore, the `SitesConfigProvider` and
`useSitesConfig` are made generic.

---------

Co-authored-by: Niko Sams <niko.sams@gmail.com>
The contentScopes now have to be checked for every permission
individually.
@auto-assign auto-assign bot requested a review from johnnyomair January 28, 2024 11:35
@thomasdax98 thomasdax98 removed the request for review from johnnyomair January 28, 2024 11:35
@thomasdax98 thomasdax98 marked this pull request as draft January 28, 2024 11:35
@thomasdax98 thomasdax98 changed the title Merge next into main for v6 Release Draft: Merge next into main for v6 Release Jan 28, 2024
.changeset/six-wolves-help.md Show resolved Hide resolved
.changeset/stale-wombats-reply.md Show resolved Hide resolved
.changeset/hungry-hornets-agree.md Show resolved Hide resolved
.changeset/dirty-trees-burn.md Show resolved Hide resolved
.changeset/odd-paws-speak.md Show resolved Hide resolved
.changeset/poor-boxes-explain.md Show resolved Hide resolved
.changeset/rich-crews-smell.md Show resolved Hide resolved
.changeset/sharp-readers-tie.md Show resolved Hide resolved
.changeset/sixty-cobras-brake.md Show resolved Hide resolved
.changeset/unlucky-files-compare.md Show resolved Hide resolved
@thomasdax98 thomasdax98 changed the title Draft: Merge next into main for v6 Release Merge next into main for v6 Release Jan 30, 2024
@thomasdax98 thomasdax98 marked this pull request as ready for review January 30, 2024 06:06
@auto-assign auto-assign bot requested a review from johnnyomair January 30, 2024 06:06
johnnyomair
johnnyomair previously approved these changes Jan 30, 2024
Co-authored-by: Franz Unger <franz.unger@vivid-planet.com>
Co-authored-by: Johannes Obermair <48853629+johnnyomair@users.noreply.github.com>
@thomasdax98 thomasdax98 merged commit dea2622 into main Jan 30, 2024
14 checks passed
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.

8 participants