Skip to content

Conversation

@josefinalliende
Copy link
Contributor

@josefinalliende josefinalliende commented Jul 22, 2025

Description

We had several widgets in the core/ui folder with inconsistent prefixes: some started with App, others with Custom or Whitenoise, and a few had no prefix at all.

To improve naming consistency, we decided to standardize them using the Wn prefix (short for WhiteNoise — the full name felt too long).

This PR:

  • Renames all those components accordingly. I chose Wn instead of WN because WN made file names look cluttered with underscores — for example, w_n_button.dart looked a bit odd.
  • Removes some unused code from the form.dart file.

I ran the app locally and everything seems to be working fine on my end, but I’d appreciate it if in the review you could check it locally as well, just in case I missed something.

Type of Change

  • ✨ New feature (non-breaking change which adds functionality)
  • 🛠️ Bug fix (non-breaking change which fixes an issue)
  • ❌ Breaking change (fix or feature that would cause existing functionality to change)
  • 🧹 Code refactor
  • ✅ Build configuration change
  • 📝 Documentation
  • 🗑️ Chore

Checklist

  • Run just precommit to ensure that formatting and linting are correct
  • Updated the CHANGELOG.md file with your changes

@josefinalliende josefinalliende marked this pull request as ready for review July 22, 2025 16:47
@josefinalliende josefinalliende linked an issue Jul 22, 2025 that may be closed by this pull request
@josefinalliende josefinalliende requested a review from codeswot July 22, 2025 18:04
@josefinalliende josefinalliende marked this pull request as draft July 23, 2025 03:03
@josefinalliende josefinalliende removed the request for review from codeswot July 23, 2025 03:03
lib/main.dart Outdated
import 'package:whitenoise/routing/router_provider.dart';
import 'package:whitenoise/src/rust/frb_generated.dart';
import 'package:whitenoise/ui/core/ui/toast_widget.dart';
import 'package:whitenoise/ui/core/ui/wn_toast_wrapper.dart';
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this was renamed to 'wn_toast_wrapper' from 'toast_widget' can it be 'wn_toast' basically the content (classes) in the file are all widgets but not all wrappers. so lets not call the file with suffix of wrapper

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the feedback! I'll rename it!

Copy link
Contributor Author

@josefinalliende josefinalliende Jul 23, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

now it's renamed to just WnToast

@josefinalliende josefinalliende force-pushed the refactor/components-prefix branch 3 times, most recently from 782cdcc to 8b8bfd3 Compare July 23, 2025 14:11
@josefinalliende josefinalliende force-pushed the refactor/components-prefix branch from 8b8bfd3 to 888afd6 Compare July 23, 2025 14:24
@josefinalliende josefinalliende marked this pull request as ready for review July 23, 2025 14:27
@josefinalliende josefinalliende requested a review from codeswot July 23, 2025 14:27
@codeswot codeswot merged commit 2512812 into master Jul 23, 2025
1 check passed
@josefinalliende josefinalliende deleted the refactor/components-prefix branch July 23, 2025 16:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Components Prefixes

3 participants