From 6ebffb5a46a03de46f04df4e670c3ffcfc77f4af Mon Sep 17 00:00:00 2001
From: Istvan Soos
Date: Mon, 7 Apr 2025 08:46:06 +0200
Subject: [PATCH 1/2] Additional package transfer notes when creating a
publisher.
---
.../templates/views/publisher/create_page.dart | 14 ++++++++++++++
.../frontend/golden/create_publisher_page.html | 5 +++++
pkg/web_app/lib/src/admin_pages.dart | 4 +++-
3 files changed, 22 insertions(+), 1 deletion(-)
diff --git a/app/lib/frontend/templates/views/publisher/create_page.dart b/app/lib/frontend/templates/views/publisher/create_page.dart
index 4ee0ecaae7..8cfe1e865e 100644
--- a/app/lib/frontend/templates/views/publisher/create_page.dart
+++ b/app/lib/frontend/templates/views/publisher/create_page.dart
@@ -63,6 +63,20 @@ d.Node createPublisherPageNode({
d.i(text: 'public contact email'),
d.text(' of the publisher (you can change this later).'),
]),
+ d.p(
+ children: [
+ d.text(
+ 'Note: packages are not transferred automatically to the publisher. '
+ 'After you create a verified publisher, you can transfer your '
+ 'packages to the publisher following '),
+ d.a(
+ href:
+ 'https://dart.dev/tools/pub/publishing#transferring-a-package-to-a-verified-publisher',
+ text: 'this guide',
+ ),
+ d.text('.'),
+ ],
+ ),
d.p(text: 'As a member of the publisher you can:'),
d.ul(children: [
d.li(children: [
diff --git a/app/test/frontend/golden/create_publisher_page.html b/app/test/frontend/golden/create_publisher_page.html
index 929752fa5f..8411ffb961 100644
--- a/app/test/frontend/golden/create_publisher_page.html
+++ b/app/test/frontend/golden/create_publisher_page.html
@@ -138,6 +138,11 @@ Create a verified publisher
public contact email
of the publisher (you can change this later).
+
+ Note: packages are not transferred automatically to the publisher. After you create a verified publisher, you can transfer your packages to the publisher following
+ this guide
+ .
+
As a member of the publisher you can:
-
diff --git a/pkg/web_app/lib/src/admin_pages.dart b/pkg/web_app/lib/src/admin_pages.dart
index 77940913b4..ae72cb5590 100644
--- a/pkg/web_app/lib/src/admin_pages.dart
+++ b/pkg/web_app/lib/src/admin_pages.dart
@@ -420,7 +420,9 @@ class _CreatePublisherWidget {
fn: () async {
await api_client.client.createPublisher(publisherId);
},
- successMessage: text('Publisher created. The page will reload.'),
+ successMessage: text(
+ 'Publisher created. You may transfer packages to this publisher. '
+ 'The page will reload.'),
onSuccess: (_) {
window.location.pathname = '/publishers/$publisherId/admin';
},
From 32b36b79cd4beb983762148be77acc92050c151b Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Istv=C3=A1n=20So=C3=B3s?=
Date: Mon, 7 Apr 2025 10:26:14 +0200
Subject: [PATCH 2/2] Update pkg/web_app/lib/src/admin_pages.dart
Co-authored-by: Sigurd Meldgaard
---
pkg/web_app/lib/src/admin_pages.dart | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/pkg/web_app/lib/src/admin_pages.dart b/pkg/web_app/lib/src/admin_pages.dart
index ae72cb5590..816249518d 100644
--- a/pkg/web_app/lib/src/admin_pages.dart
+++ b/pkg/web_app/lib/src/admin_pages.dart
@@ -421,7 +421,7 @@ class _CreatePublisherWidget {
await api_client.client.createPublisher(publisherId);
},
successMessage: text(
- 'Publisher created. You may transfer packages to this publisher. '
+ 'Publisher created. You can now transfer packages to this publisher. '
'The page will reload.'),
onSuccess: (_) {
window.location.pathname = '/publishers/$publisherId/admin';