Conversation
This stack of pull requests is managed by Graphite. Learn more about stacking. |
2af69e9 to
f1ed428
Compare
2d288bb to
a6cbf9a
Compare
f1ed428 to
7c35804
Compare
a6cbf9a to
bc9de49
Compare
bc9de49 to
bcd8b6e
Compare
15e5a3a to
882b3f0
Compare
882b3f0 to
bb2dbfc
Compare
bcd8b6e to
4223c4a
Compare
4223c4a to
b336e1a
Compare
f9ef198 to
4d515c7
Compare
045fa7a to
a70364d
Compare
a21c78b to
0ac16eb
Compare
a70364d to
020ba6c
Compare
0ac16eb to
8d24c73
Compare
a6739fb to
e19c055
Compare
8d24c73 to
76cc651
Compare
e19c055 to
629e8e6
Compare
76cc651 to
1800cff
Compare
629e8e6 to
e94cb92
Compare
src/components/shared/ReactFlow/FlowCanvas/ConfirmationDialogs/DeleteConfirmation.tsx
Show resolved
Hide resolved
| return str; | ||
| } | ||
|
|
||
| if (!options.breakWords) { |
There was a problem hiding this comment.
I'm 50/50. I see across the app we have kinda a mess around "truncating". This specific method is always used with {breakWords: false} which contradicts with defaults.
My suggestion is to remove "options" and keep this as a method "truncateWithoutBreakingWords" or smth.
There was a problem hiding this comment.
We do have a bit of a mess. I originally made a specific truncateWithoutBreakingWords style method but then realised maybe instead of adding to the mess I could make a generic wider-purpose truncate instead. Hence why I included options even though nothing is really consuming it at the moment. My hope is that we can migrate old code to it & use it in future for a more consistent system - like pluralize

Description
Can now delete a sticky note from the canvas using the DELETE key.
Related Issue and Pull requests
Progresses https://github.com/Shopify/oasis-frontend/issues/118
Type of Change
Checklist
Screenshots (if applicable)
Test Instructions
Additional Comments