feat: untagged notes smart view

This commit is contained in:
Mo
2022-02-27 17:46:55 -06:00
parent 16fc3eb521
commit 60bddd0f41
4 changed files with 17 additions and 11 deletions

View File

@@ -26,6 +26,7 @@ import {
EyeIcon, EyeIcon,
EyeOffIcon, EyeOffIcon,
HashtagIcon, HashtagIcon,
HashtagOffIcon,
HelpIcon, HelpIcon,
HistoryIcon, HistoryIcon,
InfoIcon, InfoIcon,
@@ -85,6 +86,7 @@ const ICONS = {
'chevron-right': ChevronRightIcon, 'chevron-right': ChevronRightIcon,
'cloud-off': CloudOffIcon, 'cloud-off': CloudOffIcon,
'eye-off': EyeOffIcon, 'eye-off': EyeOffIcon,
'hashtag-off': HashtagOffIcon,
'link-off': LinkOffIcon, 'link-off': LinkOffIcon,
'list-bulleted': ListBulleted, 'list-bulleted': ListBulleted,
'lock-filled': LockFilledIcon, 'lock-filled': LockFilledIcon,
@@ -92,8 +94,8 @@ const ICONS = {
'menu-arrow-down': MenuArrowDownIcon, 'menu-arrow-down': MenuArrowDownIcon,
'menu-arrow-right': MenuArrowRight, 'menu-arrow-right': MenuArrowRight,
'menu-close': MenuCloseIcon, 'menu-close': MenuCloseIcon,
'pencil-off': PencilOffIcon,
'pencil-filled': PencilFilledIcon, 'pencil-filled': PencilFilledIcon,
'pencil-off': PencilOffIcon,
'pin-filled': PinFilledIcon, 'pin-filled': PinFilledIcon,
'plain-text': PlainTextIcon, 'plain-text': PlainTextIcon,
'premium-feature': PremiumFeatureIcon, 'premium-feature': PremiumFeatureIcon,

View File

@@ -31,6 +31,10 @@ const smartViewIconType = (view: SmartView): IconType => {
if (view.uuid === SystemViewId.TrashedNotes) { if (view.uuid === SystemViewId.TrashedNotes) {
return 'trash'; return 'trash';
} }
if (view.uuid === SystemViewId.UntaggedNotes) {
return 'hashtag-off';
}
return 'hashtag'; return 'hashtag';
}; };

View File

@@ -57,7 +57,7 @@
"pretty-quick": "^3.1.3", "pretty-quick": "^3.1.3",
"sass-loader": "^12.6.0", "sass-loader": "^12.6.0",
"serve-static": "^1.14.2", "serve-static": "^1.14.2",
"@standardnotes/stylekit": "5.9.0", "@standardnotes/stylekit": "5.10.0",
"svg-jest": "^1.0.1", "svg-jest": "^1.0.1",
"ts-jest": "^27.1.3", "ts-jest": "^27.1.3",
"ts-loader": "^9.2.6", "ts-loader": "^9.2.6",
@@ -78,7 +78,7 @@
"@reach/tooltip": "^0.16.2", "@reach/tooltip": "^0.16.2",
"@standardnotes/components": "1.7.6", "@standardnotes/components": "1.7.6",
"@standardnotes/features": "1.33.1", "@standardnotes/features": "1.33.1",
"@standardnotes/snjs": "2.65.3", "@standardnotes/snjs": "2.66.0",
"@standardnotes/settings": "^1.11.3", "@standardnotes/settings": "^1.11.3",
"@standardnotes/sncrypto-web": "1.7.1", "@standardnotes/sncrypto-web": "1.7.1",
"mobx": "^6.4.2", "mobx": "^6.4.2",

View File

@@ -2445,10 +2445,10 @@
buffer "^6.0.3" buffer "^6.0.3"
libsodium-wrappers "^0.7.9" libsodium-wrappers "^0.7.9"
"@standardnotes/snjs@2.65.3": "@standardnotes/snjs@2.66.0":
version "2.65.3" version "2.66.0"
resolved "https://registry.yarnpkg.com/@standardnotes/snjs/-/snjs-2.65.3.tgz#a5a769c3aabb80623cd62e3f861a865c1f376bf8" resolved "https://registry.yarnpkg.com/@standardnotes/snjs/-/snjs-2.66.0.tgz#ae4dd3def15e6e093bf9f39a677f67b98ca9685a"
integrity sha512-5kCJ53IKwhdZ9/hWpwmBnJlQ5kVSvAtrqfOf23Y/wHBhBmqSbaME3WtwUcvDS+MNZ1DH2ikv/iGkElAC+aClVw== integrity sha512-/sJ/9+a/ADhA77/k11liW1NlVkWhiT833euo/uhFDv/lfiZB512w/8Y3pfUrYGBQewBOPV1IqsXk4FH/eiz/GQ==
dependencies: dependencies:
"@standardnotes/applications" "^1.1.1" "@standardnotes/applications" "^1.1.1"
"@standardnotes/auth" "^3.17.1" "@standardnotes/auth" "^3.17.1"
@@ -2461,10 +2461,10 @@
"@standardnotes/sncrypto-common" "^1.7.1" "@standardnotes/sncrypto-common" "^1.7.1"
"@standardnotes/utils" "^1.2.1" "@standardnotes/utils" "^1.2.1"
"@standardnotes/stylekit@5.9.0": "@standardnotes/stylekit@5.10.0":
version "5.9.0" version "5.10.0"
resolved "https://registry.yarnpkg.com/@standardnotes/stylekit/-/stylekit-5.9.0.tgz#16d62623335091062238c850a930dedaa5ad6f1d" resolved "https://registry.yarnpkg.com/@standardnotes/stylekit/-/stylekit-5.10.0.tgz#94bc1c6686663b2b89b004eb777a6792a0305f47"
integrity sha512-lIlEKwxKkQT+AttSmN40zvzWzfqpfI4VPTscZvRnWRqMQjYDEnSbcA1h0UDcT5tvnrna4RtsOiUL9o0KDx56sg== integrity sha512-W0vuqjfN1GD254ZTdlroMgKIQSebuhkJkc5Lh0tWQ5cpQyXrZ3HsHXd3H98PPbP+wtLS34XS5G/PHc7OjD146g==
dependencies: dependencies:
"@reach/listbox" "^0.15.0" "@reach/listbox" "^0.15.0"
"@reach/menu-button" "^0.15.1" "@reach/menu-button" "^0.15.1"