Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: show default view name #6571

Merged
merged 2 commits into from
Oct 22, 2024
Merged

Conversation

Xazin
Copy link
Contributor

@Xazin Xazin commented Oct 17, 2024

Relates: #6524

Feature Preview


PR Checklist

  • My code adheres to AppFlowy's Conventions
  • I've listed at least one issue that this PR fixes in the description above.
  • I've added a test(s) to validate changes in this PR, or this PR only contains semantic changes.
  • All existing tests are passing.

@Xazin Xazin requested a review from LucasXu0 October 20, 2024 22:45
@LucasXu0
Copy link
Collaborator

Is it urgent to merge in 0.7.2? If not, keep it in v0.7.3

Comment on lines +128 to +136
(view) =>
view.id != currentViewId &&
view.name.toLowerCase().contains(search.toLowerCase()) ||
(view.name.isEmpty && search.isEmpty) ||
(view.name.isEmpty &&
LocaleKeys.menuAppHeader_defaultNewPageName
.tr()
.toLowerCase()
.contains(search.toLowerCase())),
Copy link
Collaborator

Choose a reason for hiding this comment

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

The filter logic looks a bit complicated. How about abstracting a function and adding some comments?

@LucasXu0
Copy link
Collaborator

@Xazin I merged this PR into v0.7.2. As for the suggestion, you can improve it in v0.7.3.

@LucasXu0 LucasXu0 merged commit da80c59 into AppFlowy-IO:main Oct 22, 2024
14 of 15 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants