Port data-request feature after main rebase

Main's new compliance-portal data-request pages (rights request
submission and listing) still referenced the sign-in dialog and
package names the earlier rebase's OAuth /initiate migration and
compliancepage -> complianceportal rename had already replaced.
Gate the "New Request" button behind OAuth like the rest of the
portal and point resolvers at the flattened visitor.Service methods.

Signed-off-by: Bryan Frimin <bryan@probo.com>
This commit is contained in:
Bryan Frimin
2026-07-20 16:42:03 +02:00
parent 4b4e7ea1f8
commit 69a7c5fca7
2 changed files with 8 additions and 6 deletions

View File

@@ -225,10 +225,10 @@ func (r *queryResolver) MyRightsRequests(ctx context.Context, first *int, after
return types.NewRightsRequestConnection(emptyPage), nil
}
compliancePage := compliancepage.CompliancePageFromContext(ctx)
compliancePage := complianceportal.CompliancePageFromContext(ctx)
scope := coredata.NewScopeFromObjectID(compliancePage.OrganizationID)
result, err := r.trust.RightsRequests.ListForOrganizationIDAndContact(
result, err := r.trust.ListRightsRequestsForOrganizationIDAndContact(
ctx,
scope,
compliancePage.OrganizationID,