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

Move list title to redux #1902

Merged
merged 2 commits into from
Feb 13, 2020
Merged

Conversation

belcherj
Copy link
Contributor

Fix

Move list title to redux. The list title is used as the placeholder for the search field.

Test

  1. Should be 'All Notes' when page loads
  2. Open trash, should be 'Trash'
  3. Select tag, should be the tags name.

@belcherj belcherj requested a review from a team February 12, 2020 20:35
@belcherj belcherj self-assigned this Feb 12, 2020
lib/state/ui/reducer.ts Outdated Show resolved Hide resolved
lib/state/ui/reducer.ts Outdated Show resolved Hide resolved
Copy link
Member

@dmsnell dmsnell left a comment

Choose a reason for hiding this comment

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

Nice update. I like how this pulls together the places that impact the placeholder. Mentioning the placeholder it earmarks some future work where maybe this should be less a string value and more a mode that gets translated (eventually) in render()

This might very well be a key part to understanding the role of trash and fit into state-bound URL paths.

Except for the optional-chaining which I didn't think was necessary you have my ✅

@belcherj belcherj merged commit 342ad49 into develop Feb 13, 2020
@belcherj belcherj deleted the refactor/move-list-title-to-redux branch February 13, 2020 16:23
@codebykat codebykat added this to the state refactor milestone Oct 21, 2020
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.

3 participants