Closed tuancoltech closed 9 months ago
@ShubertMunthali not sure what do you mean, I see that the title is stored into new .ark/user/properties
storage as JSON. It seems to allow empty description and/or empty title.
@tuancoltech the feature works good, the only issue is that it's not possible to modify title after initial creation if the content isn't changed. Because [save]
button doesn't allow saving same note twice. It shouldn't update the content, but any properties updates should be saved.
@ShubertMunthali not sure what do you mean, I see that the title is stored into new
.ark/user/properties
storage as JSON. It seems to allow empty description and/or empty title.@tuancoltech the feature works good, the only issue is that it's not possible to modify title after initial creation if the content isn't changed. Because
[save]
button doesn't allow saving same note twice. It shouldn't update the content, but any properties updates should be saved.
@kirillt At the moment, if we modify a note's content, a new note will be created instead of overwriting the existing note file.
Do we want to duplicate the note files, or overwriting in the same file in case user modify the note's description
and/or title
?
@ShubertMunthali not sure what do you mean, I see that the title is stored into new
.ark/user/properties
storage as JSON. It seems to allow empty description and/or empty title.@tuancoltech the feature works good, the only issue is that it's not possible to modify title after initial creation if the content isn't changed. Because
[save]
button doesn't allow saving same note twice. It shouldn't update the content, but any properties updates should be saved.
@kirillt I mean what you just explained, that save button does not work if only properties are edited, it works when content is edited. we need it to work with properties edited alone, or with properties edited together with content. That's what is required in #39
@ShubertMunthali not sure what do you mean, I see that the title is stored into new
.ark/user/properties
storage as JSON. It seems to allow empty description and/or empty title. @tuancoltech the feature works good, the only issue is that it's not possible to modify title after initial creation if the content isn't changed. Because[save]
button doesn't allow saving same note twice. It shouldn't update the content, but any properties updates should be saved.@kirillt At the moment, if we modify a note's content, a new note will be created instead of overwriting the existing note file. Do we want to duplicate the note files, or overwriting in the same file in case user modify the note's
description
and/ortitle
?
If only properties change we should overwrite, but whenever content changes we need a new file. Version tracking in #13 will handle the duplicates properly.
Yep, @ShubertMunthali is right here. We're missing ability to edit title/description when the content is untouched. We don't need to save the content twice in this case, only update user/properties
storage for the current resource id.
Yep, @ShubertMunthali is right here. We're missing ability to edit title/description when the content is untouched. We don't need to save the content twice in this case, only update
user/properties
storage for the current resource id.
@ShubertMunthali @kirillt Thanks for the idea, guys. I'm making changes to align with this.
@ShubertMunthali @kirillt Please help reviewing again. Title/description are now validated and stored independently from content.
@tuancoltech Good, but couple of nitpicks:
[x] If we create a note without providing title or description, the empty JSON is written to the properties storage: {"titles":[""],"descriptions":[""]}
. Can we avoid it in the app by simply treating absent properties file as empty JSON?
arklib-android
for this, then let's create the issue there.[ ] Graphical notes are modified in weird way when their title or description is modified.
Steps:
Result: 3 different SVG files.
$ xmllint --format 2035-514095390.svg > /tmp/a
$ xmllint --format 2035-1319256942.svg > /tmp/b
$ xmllint --format 2035-2093532239.svg > /tmp/c
$ diff /tmp/{a,b}
2c2
< <svg xmlns="http://www.w3.org/2000/svg" viewBox="0.0 0.0 1440.0 2550.0">
---
> <svg xmlns="http://www.w3.org/2000/svg" viewBox="0.0 0.0 1440.0 1535.0">
[kirill@lenovo Notes]$ diff /tmp/{b,c}
2c2
< <svg xmlns="http://www.w3.org/2000/svg" viewBox="0.0 0.0 1440.0 1535.0">
---
> <svg xmlns="http://www.w3.org/2000/svg" viewBox="0.0 0.0 1440.0 1398.0">
For some reason, viewBox
property is updated.
- If we create a note without providing title or description, the empty JSON is written to the properties storage:
{"titles":[""],"descriptions":[""]}
@kirillt For the empty JSON
issue, we could only handle that from arklib-android
.
I created an issue for it here: https://github.com/ARK-Builders/arklib-android/issues/137
For the second issue, it's because we are updating the viewBox
of current SVG
whenever there's size change of the drawing view as per in below screenshot.
I'm clarifying this with @ShubertMunthali .
Thank you @tuancoltech, that's perfect.
So, I guess it's easy to fix as soon as @ShubertMunthali share some info and we'll merge then.
We need to set dimensions for newly created note only here. @tuancoltech that's a bug indeed, we need a fix. You can provide it, if yo don't mind
We need to set dimensions for newly created note only here. @tuancoltech that's a bug indeed, we need a fix. You can provide it, if yo don't mind
@ShubertMunthali Definitely, I have fixed it by removing the unnecessary onSizeChanged
method.
Please re-review @kirillt !
Support dedicated title/description input fields. https://github.com/ARK-Builders/ARK-Memo/issues/22
(
Titling rule:
https://github.com/ARK-Builders/ARK-Memo/issues/22#issuecomment-1864432794)Fix a minor UI issue with the
Add note
FAB.