Move Pending Signatures from the wallet home screen to the Bridge screen

Wrong screen in the previous commit - moved it to sit right below the
existing per-leg renewal sign buttons on the Bridge input screen, which
is where it was actually asked for: a signatory renewing their own
wUSDT/Polkadot USDT allowance there should also see (and be able to
jump to) other pending multisig operations - e.g. someone else's large
bridge swap - waiting on their signature, without navigating elsewhere.

BalanceListFragment/ViewModel/Module are reverted to their prior state.
The reusable pieces (PendingSignatureModel, item_pending_signature_row
layout) are kept and repurposed for the Bridge screen; the RecyclerView
SingleItemAdapter/card layout built for the home screen are removed
since Bridge is a plain (non-RecyclerView) fragment - rows are inflated
directly into a LinearLayout container instead, same underlying data
and MultisigCallFormatter reuse as before.

The feature-assets -> feature-multisig:operations dependency and the
FeatureApi wiring (AssetsFeatureComponent/Dependencies/Holder) from the
previous commit stay as-is - Bridge is the same Gradle module, so no
change needed there.
This commit is contained in:
2026-07-17 14:43:18 -07:00
parent 707d1baba4
commit 6f14c8bf05
10 changed files with 124 additions and 187 deletions
@@ -214,6 +214,26 @@
android:text="@string/bridge_sign_button"
android:visibility="gone" />
<!-- Pending multisig operations awaiting this signatory's own approval (someone
else's swap, not this wallet's own renewal above) - one row per operation,
populated dynamically, see BridgeViewModel.pendingSignatures. -->
<TextView
android:id="@+id/bridgePendingSignaturesTitle"
style="@style/TextAppearance.NovaFoundation.SemiBold.Caption1"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="16dp"
android:text="@string/pending_signatures_title"
android:textColor="@color/text_secondary"
android:visibility="gone" />
<LinearLayout
android:id="@+id/bridgePendingSignaturesContainer"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="4dp"
android:orientation="vertical" />
</LinearLayout>
</ScrollView>
@@ -1,35 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<com.google.android.material.card.MaterialCardView xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginHorizontal="16dp"
app:cardBackgroundColor="@android:color/transparent"
app:cardCornerRadius="20dp"
app:cardElevation="0dp"
app:strokeWidth="0dp">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="@drawable/bg_pezkuwi_dashboard"
android:orientation="vertical"
android:paddingHorizontal="16dp"
android:paddingVertical="12dp">
<TextView
style="@style/TextAppearance.NovaFoundation.SemiBold.Caption1"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginBottom="4dp"
android:text="@string/pending_signatures_title"
android:textColor="@color/text_secondary" />
<LinearLayout
android:id="@+id/pendingSignaturesRowsContainer"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical" />
</LinearLayout>
</com.google.android.material.card.MaterialCardView>