diff --git a/lib/components/details_panel.dart b/lib/components/details_panel.dart index c4cbeba319..60979fea4e 100644 --- a/lib/components/details_panel.dart +++ b/lib/components/details_panel.dart @@ -739,16 +739,23 @@ class _DetailsPanelState extends State { leading: Row( mainAxisSize: MainAxisSize.min, children: [ - ArDriveIconButton( - tooltip: appLocalizationsOf(context).viewOnViewBlock, - icon: ArDriveIcons.newWindow(size: 20), - onPressed: () { - openUrl( - url: - 'https://viewblock.io/arweave/tx/${state.metadataTxId}', - ); - }, + Text( + '${state.metadataTxId.substring(0, 4)}...', + style: ArDriveTypography.body + .buttonNormalRegular() + .copyWith(decoration: TextDecoration.underline), ), + // const SizedBox(width: 4), + // ArDriveIconButton( + // tooltip: appLocalizationsOf(context).viewOnViewBlock, + // icon: ArDriveIcons.newWindow(size: 20), + // onPressed: () { + // openUrl( + // url: + // 'https://viewblock.io/arweave/tx/${state.metadataTxId}', + // ); + // }, + // ), const SizedBox(width: 12), CopyButton( text: state.metadataTxId, @@ -762,15 +769,36 @@ class _DetailsPanelState extends State { leading: Row( mainAxisSize: MainAxisSize.min, children: [ - ArDriveIconButton( - tooltip: appLocalizationsOf(context).viewOnViewBlock, - icon: ArDriveIcons.newWindow(size: 20), - onPressed: () { - openUrl( - url: 'https://viewblock.io/arweave/tx/${item.dataTxId}', - ); - }, + // only first 4 characters of the data tx id are shown + ArDriveClickArea( + child: GestureDetector( + onTap: () { + openUrl( + url: 'https://viewblock.io/arweave/tx/${item.dataTxId}', + ); + }, + child: Tooltip( + message: item.dataTxId, + child: Text( + '${item.dataTxId.substring(0, 4)}...', + style: + ArDriveTypography.body.buttonNormalRegular().copyWith( + decoration: TextDecoration.underline, + ), + ), + ), + ), ), + // const SizedBox(width: 4), + // ArDriveIconButton( + // tooltip: appLocalizationsOf(context).viewOnViewBlock, + // icon: ArDriveIcons.newWindow(size: 20), + // onPressed: () { + // openUrl( + // url: 'https://viewblock.io/arweave/tx/${item.dataTxId}', + // ); + // }, + // ), const SizedBox(width: 12), CopyButton( text: item.dataTxId, diff --git a/lib/entities/license_assertion.dart b/lib/entities/license_assertion.dart index a2c0d355a8..35eb05986b 100644 --- a/lib/entities/license_assertion.dart +++ b/lib/entities/license_assertion.dart @@ -35,8 +35,8 @@ class LicenseAssertionEntity with TransactionPropertiesMixin { TransactionCommonMixin transaction, ) { try { - // assert(transaction.getTag(LicenseTag.appName) == - // LicenseTag.appNameLicenseAssertion); + assert(transaction.getTag(LicenseTag.appName) == + LicenseTag.appNameLicenseAssertion); final additionalTags = Map.fromEntries(transaction.tags .where((tag) => !licenseAssertionTxBaseTagKeys.contains(tag.name)) .map((tag) => MapEntry(tag.name, tag.value))); diff --git a/lib/pages/drive_detail/components/drive_detail_data_list.dart b/lib/pages/drive_detail/components/drive_detail_data_list.dart index 6aaca6a5ef..a5c0fb6b9d 100644 --- a/lib/pages/drive_detail/components/drive_detail_data_list.dart +++ b/lib/pages/drive_detail/components/drive_detail_data_list.dart @@ -442,12 +442,9 @@ class DriveDataTableItemMapper { index: 0, pinnedDataOwnerAddress: fileEntry.pinnedDataOwnerAddress, isHidden: fileEntry.isHidden, - // thumbnailUrl: fileEntry.thumbnail != null - // ? Thumbnail.fromJson(jsonDecode(fileEntry.thumbnail!)) - // .variants - // .first - // .txId - // : null, + thumbnail: fileEntry.thumbnail != null + ? Thumbnail.fromJson(jsonDecode(fileEntry.thumbnail!)) + : null, ); } diff --git a/packages/ardrive_uploader/lib/src/ardrive_uploader.dart b/packages/ardrive_uploader/lib/src/ardrive_uploader.dart index cf1dba3e76..0b6fe6a371 100644 --- a/packages/ardrive_uploader/lib/src/ardrive_uploader.dart +++ b/packages/ardrive_uploader/lib/src/ardrive_uploader.dart @@ -206,7 +206,7 @@ class _ArDriveUploader implements ArDriveUploader { StreamController(), uploadSender, numOfWorkers: driveKey != null ? 2 : 5, - maxTasksPerWorker: driveKey != null ? 3 : 3, + maxTasksPerWorker: 3, ); for (var f in files) { diff --git a/packages/ardrive_uploader/lib/src/upload_strategy.dart b/packages/ardrive_uploader/lib/src/upload_strategy.dart index 2a45df6bde..fd4f94b056 100644 --- a/packages/ardrive_uploader/lib/src/upload_strategy.dart +++ b/packages/ardrive_uploader/lib/src/upload_strategy.dart @@ -184,14 +184,6 @@ class UploadFileUsingDataItemFiles extends UploadFileStrategy { error: result.error, ); } - - // final updatedTask = controller.tasks[task.id]!; - - // controller.updateProgress( - // task: updatedTask.copyWith( - // status: UploadStatus.complete, - // ), - // ); } }