Skip to content

feat(provider): remove provider attribute edit form from deploy-web#3266

Merged
baktun14 merged 1 commit into
mainfrom
feat/console-remove-provider-edit-page
Jun 3, 2026
Merged

feat(provider): remove provider attribute edit form from deploy-web#3266
baktun14 merged 1 commit into
mainfrom
feat/console-remove-provider-edit-page

Conversation

@baktun14
Copy link
Copy Markdown
Contributor

@baktun14 baktun14 commented Jun 3, 2026

Why

The deploy-web provider edit page (/providers/[owner]/edit) signs an on-chain MsgUpdateProvider to change provider attributes. This conflicts with helm/provider.yaml-based provider management — when a provider re-runs helm, the provider.yaml values overwrite whatever was set via the form, so there is no single source of truth. The new provider-console app is the right home for provider configuration, so deploy-web should simply drop this form.

Closes #194

What

Pure removal of the deploy-web provider attribute edit form plus cleanup of the now-orphaned supporting code:

  • Deleted the /providers/[owner]/edit route, EditProviderContainer, EditProviderForm, and the edit-only attribute helpers/data (utils/providerAttributes/{helpers,data}.ts).
  • Removed the "Edit" button from the provider detail page (ProviderDetailLayout) and the now-unused useWallet/Link/buttonVariants/cn imports.
  • Removed the providerDetailEdit URL helper, the orphaned getUpdateProviderMsg tx builder (+ its MsgUpdateProvider import), and the form-only Zod schema (providerAttributesFormValuesSchema) from deploy-web's types.
  • Trimmed the stale getUpdateProviderMsg entry from the onboarding spec's TransactionMessageData mock.

The read-only provider detail view is untouched — useProviderAttributesSchema and the ProviderAttributesSchema type are kept since they still drive the detail display. provider-console's own copy of the attribute schema is unaffected.

Verification: type-check clean for changed source files, lint clean, and the touched onboarding + providers test suites pass (34/34).

Summary by CodeRabbit

  • Chores
    • Removed provider editing functionality, including the edit page, form components, and associated utilities.

The deploy-web provider edit page signed an on-chain MsgUpdateProvider to
change attributes, which conflicts with helm/provider.yaml management and
leaves no single source of truth. This functionality now belongs in the
provider-console app, so deploy-web drops it.

Removes the /providers/[owner]/edit route, its container/form components,
the edit-only attribute helpers/data, the Edit button on the provider
detail page, the providerDetailEdit URL helper, the now-orphaned
getUpdateProviderMsg tx builder, and the form-only Zod schema. The
read-only provider detail view (useProviderAttributesSchema) is untouched.

Closes #194
@baktun14 baktun14 requested a review from a team as a code owner June 3, 2026 15:39
@coderabbitai
Copy link
Copy Markdown
Contributor

coderabbitai Bot commented Jun 3, 2026

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

Run ID: 9cce4536-0af1-486a-a769-dbabd2678968

📥 Commits

Reviewing files that changed from the base of the PR and between c3c1f2e and 57cb62d.

📒 Files selected for processing (10)
  • apps/deploy-web/src/components/onboarding/OnboardingContainer/OnboardingContainer.spec.tsx
  • apps/deploy-web/src/components/providers/EditProviderContainer.tsx
  • apps/deploy-web/src/components/providers/EditProviderForm.tsx
  • apps/deploy-web/src/components/providers/ProviderDetailLayout.tsx
  • apps/deploy-web/src/pages/providers/[owner]/edit/index.tsx
  • apps/deploy-web/src/types/providerAttributes.ts
  • apps/deploy-web/src/utils/TransactionMessageData.ts
  • apps/deploy-web/src/utils/providerAttributes/data.ts
  • apps/deploy-web/src/utils/providerAttributes/helpers.ts
  • apps/deploy-web/src/utils/urlUtils.ts
💤 Files with no reviewable changes (8)
  • apps/deploy-web/src/utils/providerAttributes/data.ts
  • apps/deploy-web/src/pages/providers/[owner]/edit/index.tsx
  • apps/deploy-web/src/utils/providerAttributes/helpers.ts
  • apps/deploy-web/src/components/providers/EditProviderContainer.tsx
  • apps/deploy-web/src/utils/TransactionMessageData.ts
  • apps/deploy-web/src/components/providers/EditProviderForm.tsx
  • apps/deploy-web/src/utils/urlUtils.ts
  • apps/deploy-web/src/types/providerAttributes.ts

📝 Walkthrough

Walkthrough

This PR removes the provider attribute editing feature from Cloudmos Console: EditProviderContainer and EditProviderForm components, the /providers/[owner]/edit page route, attribute validation schemas, form transformation helpers, the blockchain message builder for updates, and the edit route/URL action are deleted across the codebase.

Changes

Provider Attribute Editing Removal

Layer / File(s) Summary
Provider detail page integration cleanup
src/components/providers/ProviderDetailLayout.tsx
Removes wallet context import and the conditional edit button/link from provider detail layout, eliminating the edit UI action.
Blockchain transaction message removal
src/utils/TransactionMessageData.ts
Removes MsgUpdateProvider import and getUpdateProviderMsg static method that constructed provider update messages for blockchain broadcast.
Route and navigation cleanup
src/utils/urlUtils.ts
Removes providerDetailEdit route builder so no edit URL is generated.
Test mock data update
src/components/onboarding/OnboardingContainer/OnboardingContainer.spec.tsx
Removes mocked getUpdateProviderMsg from mockTransactionMessageData to match the removed transaction builder.

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~10 minutes


Assessment against linked issues

Objective Addressed Explanation
Remove provider attribute form and edit functionality [#194]

Suggested labels

size: L, experienced-contributor


Suggested reviewers

  • stalniy
✨ Finishing Touches
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch feat/console-remove-provider-edit-page

Warning

There were issues while running some tools. Please review the errors and either fix the tool's configuration or disable the tool if it's a critical failure.

🔧 ESLint

If the error stems from missing dependencies, add them to the package.json file. For unrecoverable errors (e.g., due to private dependencies), disable the tool in the CodeRabbit configuration.

ESLint install failed due to a network error.


Comment @coderabbitai help to get the list of available commands and usage tips.

@codecov
Copy link
Copy Markdown

codecov Bot commented Jun 3, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 66.49%. Comparing base (c3c1f2e) to head (57cb62d).
✅ All tests successful. No failed tests found.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #3266      +/-   ##
==========================================
- Coverage   67.29%   66.49%   -0.81%     
==========================================
  Files        1083      992      -91     
  Lines       26500    24162    -2338     
  Branches     6380     5896     -484     
==========================================
- Hits        17833    16066    -1767     
+ Misses       7591     7071     -520     
+ Partials     1076     1025      -51     
Flag Coverage Δ *Carryforward flag
api 84.72% <ø> (ø) Carriedforward from c3c1f2e
deploy-web 52.49% <ø> (+0.70%) ⬆️
log-collector ?
notifications 91.06% <ø> (ø) Carriedforward from c3c1f2e
provider-console 81.38% <ø> (ø) Carriedforward from c3c1f2e
provider-inventory ?
provider-proxy 86.37% <ø> (ø) Carriedforward from c3c1f2e
tx-signer ?

*This pull request uses carry forward flags. Click here to find out more.

Files with missing lines Coverage Δ
.../src/components/providers/ProviderDetailLayout.tsx 20.68% <ø> (+1.93%) ⬆️
...pps/deploy-web/src/utils/TransactionMessageData.ts 78.57% <ø> (+3.57%) ⬆️
apps/deploy-web/src/utils/urlUtils.ts 55.84% <ø> (-0.57%) ⬇️

... and 86 files with indirect coverage changes

🚀 New features to boost your workflow:
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@baktun14 baktun14 merged commit ccba7d8 into main Jun 3, 2026
57 checks passed
@baktun14 baktun14 deleted the feat/console-remove-provider-edit-page branch June 3, 2026 16:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Remove Provider Attribute Form

1 participant