Skip to content

Node Labels Migration#3134

Open
tuxpizza wants to merge 17 commits intodevfrom
node-labels-migration
Open

Node Labels Migration#3134
tuxpizza wants to merge 17 commits intodevfrom
node-labels-migration

Conversation

@tuxpizza
Copy link
Copy Markdown
Collaborator

@tuxpizza tuxpizza commented Mar 26, 2026

Issue Number (if Applicable): Fixes #

Description

Adds labels to the default nodes, and adds a settings migration for existing installations.

Adds isDefault bool to each node to more easily check the default node.

Adds isOfficial bool to each node to know which one is an official Cake node.

Adds isIncluded bool to each node to tag all included app nodes.

Pull Request - Checklist

  • Initial Manual Tests Passed
  • Double check modified code and verify it with the feature/task requirements
  • Format code
  • Look for code duplication
  • Clear naming for variables and methods
  • Manual tests in accessibility mode (TalkBack on Android) passed

@tuxpizza tuxpizza marked this pull request as ready for review March 28, 2026 05:22
@tuxpizza tuxpizza requested a review from OmarHatem28 April 1, 2026 20:15
Comment thread lib/entities/default_settings_migration.dart
shouldReplace = oldUri?.any((e) => currentNode.uriRaw.contains(e)) ?? true;
}

Node? oldDefaultNode = nodes.values.firstWhereOrNull(
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Are you modifying logic for an existing migration? This could potentially break something, especially if you're relying on this migration to run for existing installs as well (which it won't if the user keeps their app up-to-date). If you're just doing changes to still have it compile, that's fine, but generally don't modify old migration logic.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Its only for the current (in this version) and future runs to be compatible with the new node variables, previous runs won't matter.

Comment thread lib/entities/default_settings_migration.dart Outdated
Comment thread lib/src/screens/settings/manage_nodes_page.dart Outdated
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.

2 participants