issue-#63 fixes in StdStamps

User avatar
Robert
Posts: 1024
Joined: Sat Sep 28, 2013 11:04 am
Location: Edinburgh, Scotland

Re: issue-#63 fixes in StdStamps

Post by Robert »

I do not like the way this Draft version adds new comments.

Case 1: Open a new Stamp. Add a comment (eg "Potato"). The form displays a meaningless date of 0000. Now list the History.The comment is invisible. Save it to disc. Now list the History. It is visible. Now open the Comment editor. It is hidden; you have to click the Age field to see it. This makes it easy to overwrite it with a new Comment without knowing.

With my version when you first open the editor to add a comment it tells you the date the comment is associated with. Add it, then list the History. You can immediately see it is there; there is no hidden Comment queue. Save to disc. It is still visible in the history. Now open the Comment editor. It is immediately visible, and when you overwrite it you are doing so explicitly in the Editor field, not accidentally.


Case 2: An old Stamp with no comment for today. Add a comment. Close the editor. List the history - the comment is not visible. Open the Editor, The comment is also invisible. There is no way to know it is there, but save to disc and it appears without warning.

With my version it is always immediately visible in both the history, and in the comment editor. This is much more user friendly.


Case 3: An old Stamp with a comment for today. I open the editor, write and apply a new comment.
With the draft version I am unaware I have overwritten an existing comment, with my version this is immediately obvious in the editor.

A bit later I think about saving, and list the history, which I now think is ok (I have forgotten about the new, and hidden comment.) I save. The hidden comment overwrites the existing comment without warning or notification. This issues do not arise with my version.


In summary it is much simpler, for the user, if comments are applied and visible immediately. Deferring applying them, and in the meantime hiding them, is not helpful. (I know that finger prints cannot be pre-viewed, but I don't find that a problem.)

I agree that there is "Surprisingly tricky and buggy stuff in this module", and considering / implementing this behaviour takes a lot of time and effort. But in fact I think there are several places where my code is simpler than the current suggestion (mainly because the first comment is not treated as such a special case) although there are a few cases where it is less so. On balance it is simpler.
Last edited by Robert on Fri Oct 16, 2015 3:43 pm, edited 1 time in total.
User avatar
Robert
Posts: 1024
Joined: Sat Sep 28, 2013 11:04 am
Location: Edinburgh, Scotland

Re: issue-#63 fixes in StdStamps

Post by Robert »

If anyone wants to compare the behaviour of the draft Stamps with my version I include a test version in a module StampsRdc so it can coexist with the draft or Oms versions.

To use it add the Menu items

Code: Select all

	"Insert &Stamp"	""	"StdStamps.Deposit; StdCmds.PasteView"	"StdCmds.PasteViewGuard"
	"Insert RDC Stamp"	""	"StdStampsRdc.Deposit; StdCmds.PasteView"	"StdCmds.PasteViewGuard"
	"Copy -> RDC Stamp"	""	"StdStampsRdc.Copy"	"StdStampsRdc.CopyGuard"
If you select a populated StdStamp the last Menu item creates and inserts an "Rdc" version with the same entries for test purposes.
Two files: "Mod/StampsRdc.odc", & "Rsrc/StampsRdc.odc".

Code: Select all

PacCoder.Decode /.:C....6/o......./B.4w.N..j.3:.R./V.4o.Q./n.36.N./X.0s.Pk/Y
.4:..../rZCWq0Q6oE3rCenz6QW0T4yU6DY3bX9H41e1O181Q1cFn6L2IzYN0Ug:NxsU.d0.pG3k
jPqNEkoB7HEtE.VKzgVrR.sIzkGb/yHkyVSxjXImU4/gc3kXzk/Y/qy.wVJajkJYUvQQKFBV9YXM
Z1iBzr0dnGVIdEEN6WWwhYl/7t7.HrYYS80eB5e/8ap50vhPxcp3Gx8OHF32onOcCOBN/Wqe1N2x
yc//ZGRe2KOUpUoYSUaCEUKO127001E:FyEuUBx/VuVn0dac5yfI:ECSDdUbUN/EV:I3N:ERQbkH
47cBQLY77H0Q7Oy69GM.rE0EQ7XsaLno/42mEfwa0iRLx2kB5sVdVaaX5lIxo3WnxzDUTKd:YT0x
sjwZJ:G4xVTftRXjq.ORXioSykyfq0uQHq2rDMRZRv4MxDN2SmqgsdbTX0ahobgeI2sSY2RU4uxa
Fs:sc:08I4fzmeEXBEsegyzOk0SQMfi9DHWf44nX6kQb1mQ4JDNXnXUsjBC.V0LyBlVKnVDb6fWt
X7kKC2uKnUkb3XC3eHnV5b2n0zC7zdrnrUiHW.b/YuzC:0QDIs2BQNko228:se7locXC6aQRybQF
LSQ7ZTxC4iWLgLdveknhV4YFQbQLEeYI/r1G6QM4NxSDQVoJDzw:zw30ligtFlaK/TzyP.nk2Ghk
wzFFz.UbmsHfw28qtKxyuW6tSwIumSy9rISxzuIwUw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:Ix/CO0Mo.NKUGB/cO.3fETaUKB.8QcIYI4tO8VBPfLPvHXMWURuEcm.Cf3GqF7ibm6JR3Gff
v6gI26dFFEeIUMdQFEmWVl3ErUp2OXeRQHjLWVwBlEaBfxr30:N1pWVpYIEJOFJQr:I.L7Q78JwI
5C75FHuWbJ3.jbZxazh.mlITPon:C/mVyKSBb2IS0Kw29LxGzHWjwEn4vbvh8nL0PXj9sOddqVhf
vholT4vo:Q.Mwkk4yq2peDJC8dbgIK1x16ZMIz3.kSYvMbUThqomkb::8046:B.MEf0ZXhVOElqU
lE/YRq0n4Qa4En:.kRs401hV1Li8qdvR7uBLM6RRq00fZVbRvRo7vtv0F0OkkZVYnV6:15f/K4:k
:D5NUMk.l./UDk:MUMxEk7rqEM2Wg6x11ILxJu9cN8RfHfWOgRNK4efukT5K42Y:0mbQ:LUMqRNh
zg:GVQ45k:a8RPq4W1Sv.0ueksCRmOK4nEjm7EkMNxW:vV.DY.IT3f5TlNq67gx8UjDjqBCh/fe.
U7eI2EVHg2.8JjuLuOCsrdTlJ82Z8KrawIsw7uIZuI6YTHUO8GvGWwDZ8rUjqRT2eq/vCIu8DDt7
xT1yCjvGXgz/jjfziBdIF3:MkudynbEU7qzuk8T109jIK8TNR3DNe.cCGnIfVRUy4EdyXPk4ZFEI
JjC10Eb5G78tyEcJIdH4oIjDGUmbm128L1Wp8T4ObOZBmZ/dERGbFGav.qVI0izPOdEJfcgoqXoa
Z3j/HazGYmXCKuopDGiLGrRjCaFxo8zzzU
AtEndOfEncoding
User avatar
Josef Templ
Posts: 2047
Joined: Tue Sep 17, 2013 6:50 am

Re: issue-#63 fixes in StdStamps

Post by Josef Templ »

Robert, thanks for the feedback.

Most of your comments are now in the latest commit.
http://blackboxframework.org/unstable/i ... a1.262.zip

As a general remark, I would like to point out that the purpose of my exercise was
to produce a blend of the old behavior with the new requirements.
The old behavior should only be changed where it is required but not only because
the implementation can save 3 lines of code. With the old behavior I mean
- the seq nr must start with 1 for the first entry shown in the history
- the history contains the saving points of the document, i.e. it lists all times where the file has been saved and nothing else.
This behavior to me is the core of StdStamps and was not a problem except for implementation details.
The edited intermediate values can always be seen from the dialog and we are talking about rather
rare editing operations.

> Case 2: An old Stamp with no comment for today. Add a comment. Close the editor. List the history - the comment is not visible. Open the Editor, The comment is also invisible. ...

I cannot reproduce this behavior. When I open the editor the comment is visible.
Are you sure that you have observed this behavior? Is it fixed in the latest commit?

In order to provide more control over the insertion of a new entry versus the overwriting of an existing entry,
I added an option together with its own guard in the dialog.
This gives us full control over the behavior even if there is no comment set.
It also makes it explicit that there is an option before you press OK and it avoids a modal dialog.
(BTW, your Yes/No dialog was confusing to me because it creates a new entry when it actually says that it modifies the date. With your dialog I was able to create several entries with seq nr = 0.).

The programming interface has been extended in order to provide all the available information.

The change of the HandlePropMsg is not included because:
- it follows a standard pattern also used at several other places
- the outer WITH groups together the sequence of inner WITH cases and makes the reading easier
- the outer WITH jumps over all inner WITH cases in a single step when the msg is not a Preference message.

- Josef
Zinn
Posts: 476
Joined: Tue Mar 25, 2014 5:56 pm
Location: Frankfurt am Main
Contact:

Re: issue-#63 fixes in StdStamps

Post by Zinn »

Josef your version works as you described. The forward declaration of the procedure Update can be deleted.
- Helmut
User avatar
Robert
Posts: 1024
Joined: Sat Sep 28, 2013 11:04 am
Location: Edinburgh, Scotland

Re: issue-#63 fixes in StdStamps

Post by Robert »

1 - I appear to be wrong about my "Case 2" comment!

2 - I can't replicate the adding of several comments with serial no 0 with my version; in fact I can only obtain serial no 0 when saving an empty document. But discussing my version is probably not the most productive thing to do at the moment.

3 - With your latest version I can produce several entries, with different comments for, for today's date. In my opinion having more than 1 entry per day is definitely not the original behaviour, and is undesirable. We must reach agreement, I think, on whether this point is acceptable before we can agree on all the other finer details.

4 - I accept that the meaning of the two options in my Modal dialog was not as clear as we would like. But the three options you provide for adding a new comment when there is already a comment with today's date seem even more confusing.
The options are:
a) Use "Age" 1
b) Use "Age" 0 with "Force New" checked
c) Use "Age" 0 with "Force New" unchecked.
What precisely are the different behaviours, where are they explained, and do we need these three different options? - I don't think so.

5 - Sometimes when you Edit a Stamp the changes are visible in the Stamp listing immediately (see a above). Sometimes they are not visible in the listing until after the Document is next saved. I still think it is simpler, for the user, to make all changes visible immediately. But I will compromise on this point rather than continue this discussion for ever!

Good grief - this Module is proving more difficult that I would ever have imagined!

Regards
Zinn
Posts: 476
Joined: Tue Mar 25, 2014 5:56 pm
Location: Frankfurt am Main
Contact:

Re: issue-#63 fixes in StdStamps

Post by Zinn »

Robert wrote: 4 - I accept that the meaning of the two options in my Modal dialog was not as clear as we would like. But the three options you provide for adding a new comment when there is already a comment with today's date seem even more confusing.
The options are:
a) Use "Age" 1
b) Use "Age" 0 with "Force New" checked
c) Use "Age" 0 with "Force New" unchecked.
What precisely are the different behaviours, where are they explained, and do we need these three different options? - I don't think so.
Another approach could be to delete the "Force New" check box and oboe the rule
a) Use "Age" 1 for changing the comment without force a new entry
b) Use "Age" 0 insert a comment and force a new entry

- Helmut
User avatar
Josef Templ
Posts: 2047
Joined: Tue Sep 17, 2013 6:50 am

Re: issue-#63 fixes in StdStamps

Post by Josef Templ »

Robert, I agree that three options are one too many.
Following Helmut's proposal, I have removed 'Force New'.
Selecting Age = 0 implies Force New.

There was only one situation that required the third option and it is not relevant:
It allowed one to create multiple entries per day even without a comment.

Having multiple commented entries per day is required if you reach
several significant milestones within a single day. This is not impossible.
It must be left to the user to decide how to handle such a case.
A heuristics built into the stamp view cannot know it.

Further changes are:
Dialog.MapString used for header labels in the history.
docu updated.

And last but not least:
I have added a special first line in the history if an Age 0 comment exists.
It shows a 'seq nr. = ####', which means that a seq nr. is not yet available because it has not been saved.

http://blackboxframework.org/unstable/i ... a1.265.zip

See the diffs at:
http://redmine.blackboxframework.org/pr ... 805539926d

- Josef
User avatar
Robert
Posts: 1024
Joined: Sat Sep 28, 2013 11:04 am
Location: Edinburgh, Scotland

Re: issue-#63 fixes in StdStamps

Post by Robert »

I have had a very quick look at the latest version...

My initial impression is: "Much better"!
Zinn
Posts: 476
Joined: Tue Mar 25, 2014 5:56 pm
Location: Frankfurt am Main
Contact:

Re: issue-#63 fixes in StdStamps

Post by Zinn »

Thank you Robert and Josef for the cooperation. It is good teamwork.
The result here would not exist without Robert’s groundwork and Josef's revision.
It is an example that a team get better solutions than one person by its own.
Now it is ready for voting.
- Helmut
User avatar
Josef Templ
Posts: 2047
Joined: Tue Sep 17, 2013 6:50 am

Re: issue-#63 fixes in StdStamps

Post by Josef Templ »

A (hopefully final) improvement is to avoid the indirection via field 'Age' for selection of old/new
entries and to use a list box with sequence numbers for that purpose.
I have prepared such a variant in http://blackboxframework.org/unstable/i ... a1.269.zip.

Also ShowHistory for new entries is slightly improved in order to align the
appearance of new entries in the history with the information in the dialog box, i.e.
1. it shows the current date, and
2. instead of #### it uses the same term as in the 'Seq. Nr.' list box, viz. 'new'.

@Ivan: redmine currently cannot produce any diffs.
Could you please check this?

- Josef
Post Reply