-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update note card and other CSS #247
Update note card and other CSS #247
Conversation
Codecov Report
@@ Coverage Diff @@
## master #247 +/- ##
============================================
- Coverage 84.61% 84.44% -0.17%
- Complexity 851 864 +13
============================================
Files 110 110
Lines 2320 2372 +52
Branches 255 263 +8
============================================
+ Hits 1963 2003 +40
- Misses 271 280 +9
- Partials 86 89 +3
Continue to review full report at Codecov.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Manually tested GUI, LGTM.
@@ -9,7 +9,9 @@ | |||
*/ | |||
public class Tag { | |||
|
|||
public static final String MESSAGE_CONSTRAINTS = "Tags names should be alphanumeric"; | |||
public static final int MAX_CHARACTERS = 45; | |||
public static final String MESSAGE_CONSTRAINTS = "Tags names should be alphanumeric and be within " + MAX_CHARACTERS |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe rephrase to "maximum of 45 characters" instead of "be within 45 characters"?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
@FXML | ||
private Label header; | ||
@FXML | ||
private ListView<CountryNote> countryNoteListView; | ||
private VBox countryNoteListView; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should this be countryListView
since the subpanel contains a countryNoteListView
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This one is being used to display country notes if we're looking at one country only, so I just left it as countryNoteListView
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Description
Fixes #217, fixes #250
Changes (view ss below for reference):
Testing
Ran all test, passed all tests.
Ran the following commands:
country note delete 2
country note add c/US nt/blahblahabalmecor ncomn
country note view c/US
country note delete 1
client edit 1 t/pneumonoultramicroscopicsilicovolcanoconiosis
(success)client edit 1 t/pneumonoultramicroscopicsilicovolcanoconiosism
(fail)client add n/mmm p/901 e/m@c.com a/bac,lem c/SG tz/GMT+9 t/pneumonoultramicroscopicsilicovolcanoconiosis t/pneumonoultramicroscopicsilicovolcanoconiosimmm
(fail)client add n/mmm p/901 e/m@c.com a/bac,lem c/SG tz/GMT+9 t/pneumonoultramicroscopicsilicovolcanoconiosis t/pneumonoultramicroscopicsilicovolcanoconios
(success)Remarks
Not sure if we want to use the same way for clients as I did for notes (refer to point 3 of changes). @tankangliang @raysonkoh @rtshkmr @LeeEnHao what do y'all think? The current listview has buggy behavior with scrolling, if you have one cell that's much longer than the others, the scrollbar gets smaller when that cell is rendered, and then bigger again as you scroll on. Its most obvious when you click and drag the scrollbar.