Skip to content

Commit

Permalink
feat: untagged notes smart view
Browse files Browse the repository at this point in the history
  • Loading branch information
moughxyz committed Feb 27, 2022
1 parent 16fc3eb commit 60bddd0
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 11 deletions.
4 changes: 3 additions & 1 deletion app/assets/javascripts/components/Icon.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ import {
EyeIcon,
EyeOffIcon,
HashtagIcon,
HashtagOffIcon,
HelpIcon,
HistoryIcon,
InfoIcon,
Expand Down Expand Up @@ -85,15 +86,16 @@ const ICONS = {
'chevron-right': ChevronRightIcon,
'cloud-off': CloudOffIcon,
'eye-off': EyeOffIcon,
'hashtag-off': HashtagOffIcon,
'link-off': LinkOffIcon,
'list-bulleted': ListBulleted,
'lock-filled': LockFilledIcon,
'menu-arrow-down-alt': MenuArrowDownAlt,
'menu-arrow-down': MenuArrowDownIcon,
'menu-arrow-right': MenuArrowRight,
'menu-close': MenuCloseIcon,
'pencil-off': PencilOffIcon,
'pencil-filled': PencilFilledIcon,
'pencil-off': PencilOffIcon,
'pin-filled': PinFilledIcon,
'plain-text': PlainTextIcon,
'premium-feature': PremiumFeatureIcon,
Expand Down
4 changes: 4 additions & 0 deletions app/assets/javascripts/components/Tags/SmartViewsListItem.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,10 @@ const smartViewIconType = (view: SmartView): IconType => {
if (view.uuid === SystemViewId.TrashedNotes) {
return 'trash';
}
if (view.uuid === SystemViewId.UntaggedNotes) {
return 'hashtag-off';
}

return 'hashtag';
};

Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@
"pretty-quick": "^3.1.3",
"sass-loader": "^12.6.0",
"serve-static": "^1.14.2",
"@standardnotes/stylekit": "5.9.0",
"@standardnotes/stylekit": "5.10.0",
"svg-jest": "^1.0.1",
"ts-jest": "^27.1.3",
"ts-loader": "^9.2.6",
Expand All @@ -78,7 +78,7 @@
"@reach/tooltip": "^0.16.2",
"@standardnotes/components": "1.7.6",
"@standardnotes/features": "1.33.1",
"@standardnotes/snjs": "2.65.3",
"@standardnotes/snjs": "2.66.0",
"@standardnotes/settings": "^1.11.3",
"@standardnotes/sncrypto-web": "1.7.1",
"mobx": "^6.4.2",
Expand Down
16 changes: 8 additions & 8 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2445,10 +2445,10 @@
buffer "^6.0.3"
libsodium-wrappers "^0.7.9"

"@standardnotes/snjs@2.65.3":
version "2.65.3"
resolved "https://registry.yarnpkg.com/@standardnotes/snjs/-/snjs-2.65.3.tgz#a5a769c3aabb80623cd62e3f861a865c1f376bf8"
integrity sha512-5kCJ53IKwhdZ9/hWpwmBnJlQ5kVSvAtrqfOf23Y/wHBhBmqSbaME3WtwUcvDS+MNZ1DH2ikv/iGkElAC+aClVw==
"@standardnotes/snjs@2.66.0":
version "2.66.0"
resolved "https://registry.yarnpkg.com/@standardnotes/snjs/-/snjs-2.66.0.tgz#ae4dd3def15e6e093bf9f39a677f67b98ca9685a"
integrity sha512-/sJ/9+a/ADhA77/k11liW1NlVkWhiT833euo/uhFDv/lfiZB512w/8Y3pfUrYGBQewBOPV1IqsXk4FH/eiz/GQ==
dependencies:
"@standardnotes/applications" "^1.1.1"
"@standardnotes/auth" "^3.17.1"
Expand All @@ -2461,10 +2461,10 @@
"@standardnotes/sncrypto-common" "^1.7.1"
"@standardnotes/utils" "^1.2.1"

"@standardnotes/stylekit@5.9.0":
version "5.9.0"
resolved "https://registry.yarnpkg.com/@standardnotes/stylekit/-/stylekit-5.9.0.tgz#16d62623335091062238c850a930dedaa5ad6f1d"
integrity sha512-lIlEKwxKkQT+AttSmN40zvzWzfqpfI4VPTscZvRnWRqMQjYDEnSbcA1h0UDcT5tvnrna4RtsOiUL9o0KDx56sg==
"@standardnotes/stylekit@5.10.0":
version "5.10.0"
resolved "https://registry.yarnpkg.com/@standardnotes/stylekit/-/stylekit-5.10.0.tgz#94bc1c6686663b2b89b004eb777a6792a0305f47"
integrity sha512-W0vuqjfN1GD254ZTdlroMgKIQSebuhkJkc5Lh0tWQ5cpQyXrZ3HsHXd3H98PPbP+wtLS34XS5G/PHc7OjD146g==
dependencies:
"@reach/listbox" "^0.15.0"
"@reach/menu-button" "^0.15.1"
Expand Down

0 comments on commit 60bddd0

Please sign in to comment.