forked from AY2324S2-CS2103-F08-3/tp
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'upstream/master'
- Loading branch information
Showing
6 changed files
with
93 additions
and
60 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -42,24 +42,41 @@ StaffConnect (SC) is a **desktop app for managing contacts of Professors and Tut | |
|
||
## Navigability | ||
|
||
### Overall UI layout | ||
<br>![Overall Layout](images/OverallLayout.png) | ||
|
||
|
||
### Mouse and Keyboard controls | ||
|
||
Before we get started StaffConnect offers a unique suite of UI controls for users to customise their own unique experience! | ||
|
||
1. Clicking any items on the left panel will allow you to select the person contact to display. | ||
<br>Alternatively, clicking anywhere in the list panel then using your arrow keys to navigate and hitting enter to select would give the same result. | ||
1. Clicking any items on the left contacts panel will allow you to select the person contact to display. | ||
<br>Alternatively, clicking anywhere in the contacts panel then using your arrow keys to navigate and hitting enter to select would give the same result. | ||
<br>**Intended Behaviour:** | ||
<br> Hovering the selection with mouse or arrow keys would not cause the details panel to switch to the selected person. This is to allow users to browse the contacts panel without switching. | ||
<br>![Region to select the person](images/personPanelRegion.png) | ||
|
||
|
||
2. There is a divider that is draggable up and down to hide and show details on the right side and to customise the look of your application. | ||
<br>![Region to select the divider](images/detailsDividerRegion.png) | ||
|
||
3. Each of the 3 display panes of information they are able to pan in all four directions to view the content: | ||
3. Each of the 2 detail panels on the right are able to pan in all four directions to view the content: | ||
- For mouse pad users, dragging around with two fingers the around would pan around the pane. | ||
- For mouse users, __[mouse wheel]__ will scroll up and down while __[shift + mouse wheel]__ will scroll left and right. | ||
- __[Left click + drag]__ would pan around in the details pane as well. | ||
- For mouse users, __[Mouse Wheel]__ will scroll up and down while __[Shift + Mouse wheel]__ will scroll left and right. | ||
- __[Left click + Drag Mouse]__ would pan around in the details pane as well. | ||
- Keyboard arrow keys are able to pan around as well, but the scroll speed may differ on different systems. | ||
- There are scroll bars at the vertical and horizontal dividers of the window pane, dragging them in the respective direction will pan around as well. | ||
|
||
|
||
4. The Result display:<br> | ||
The scroll bars can only be scrolled by two ways: | ||
1. For mouse pad users, dragging around with two fingers the around would pan around the pane. | ||
2. For mouse users, __[Mouse Wheel]__ will scroll up and down while __[Shift + Mouse Wheel]__ will scroll left and right. | ||
3. Simply dragging the scroll bar with a left mouse click. | ||
<br>**Scrolling by arrow keys is not fully supported in the result display** | ||
|
||
5. The Command box:<br> | ||
The input can only be scrolled by __[Holding Left Click + Drag Mouse]__ to the edge in the direction to scroll. This is to allow making adjustments on very long commands. | ||
|
||
|
||
<Br><Br> | ||
### Alternative UI arrangements | ||
|
@@ -69,7 +86,7 @@ Before we get started StaffConnect offers a unique suite of UI controls for user | |
|
||
**Intended Limitations** | ||
1. The divider position is not controllable by keyboard input, hence the only way to customise the look is mostly by mouse input. | ||
2. Pane switching by keyboard input, like a terminal is not supported. | ||
2. Panel switching by keyboard input, like a terminal is not supported. | ||
3. Font sizes does not automatically resize in this application, scroll bars will appear in smaller window variants of this application to help with the viewing of details. | ||
4. The UI will do a soft reset on its divider position every time the application is relaunched, as this is to allow users who wish to fall back to the default layout settings. | ||
|
||
|
@@ -137,6 +154,15 @@ Format: `list` | |
|
||
Edits an existing person in the contacts. | ||
|
||
<div markdown="block" class="alert alert-info"> | ||
|
||
**:information_source: Notes:**<br> | ||
|
||
* The displayed view in StaffConnect will reset to the default view after the `edit` command is called. | ||
|
||
* The changes made are displayed in the result display above the command box. | ||
</div> | ||
|
||
Format: `edit INDEX [n/NAME] [p/PHONE] [e/EMAIL] [m/MODULE] [f/FACULTY] [v/VENUE] [t/TAG]… [a/AVAILABILITY]…` | ||
|
||
* Edits the person at the specified `INDEX`. The index refers to the index number shown in the displayed person list. The index **must be a positive integer** 1, 2, 3, … | ||
|
@@ -159,7 +185,7 @@ Examples: | |
<br>**After editing the second person:** <br> | ||
![After editing the second person](images/AfterEditCommand.png) | ||
|
||
### Filtering persons by attribute: `filter` | ||
### Filtering persons: `filter` | ||
|
||
Filters persons whose module, faculty, tags or availabilities match the given filtering criteria. | ||
|
||
|
@@ -449,25 +475,45 @@ Furthermore, certain edits can cause the StaffConnect to behave in unexpected wa | |
## Known issues | ||
|
||
1. **When using multiple screens**, if you move the application to a secondary screen, and later switch to using only the primary screen, the GUI will open off-screen. The remedy is to delete the `preferences.json` file created by the application before running the application again. | ||
2. **Restrictions on the valid user input of `Faculty` values**: For the current version, a valid user input for `Faculty` with prefix `f/` can only match exactly the same string as suggested below. Cases can be ignored though. | ||
- Faculty of Arts of Social Sciences; Arts and Social Sciences; FASS | ||
- Business School; Business; Biz School; Biz | ||
- School of Computing; Computing; SoC | ||
- School of Continuing and Lifelong Education; Continuing and Lifelong Education; SCALE | ||
- Faculty of Dentistry; Dentistry | ||
- School of Design and Environment; Design and Environment; SDE | ||
- Duke-NUS Medical School; Duke-NUS | ||
- Faculty of Engineering; Engineering; FoE | ||
- Integrative Sciences and Engineering; ISEP | ||
- Faculty of Law; Law | ||
- Yong Loo Lin School of Medicine; Medicine | ||
- Yong Siew Toh Conservatory of Music; Music; TST Conservatory of Music | ||
- Saw Swee Hock School of Public Health; Public Health | ||
- Lee Kuan Yew School of Public Policy; Public Policy; LKY School of Public Policy | ||
- Faculty of Science; Science; FoS | ||
- University Scholars Programme; USP | ||
- Yale-NUS College; Yale-NUS | ||
|
||
-------------------------------------------------------------------------------------------------------------------- | ||
|
||
## Attribute summary | ||
|
||
Attribute | Prefix | Restrictions | Examples | ||
----------|--------|--------------|--------------------- | ||
Name | n/ | Case-sensitive.<br>Only alphanumeric characters allowed. Spaces are only allowed between alphanumeric characters. | `alex yeoh`, `Bernice Yu`, `test1` | ||
Phone Number | p/ | Numeric digits only, no special characters, at least 3 digits long. | `123`, `88888888, 12345678` | ||
Email | e/ | Valid email of the format `local-part@domain`.<br>1. `local-part` should only contain alphanumeric characters and the special characters `+_.-`<br>2. `local-part` may not start or end with any special characters.<br>3. `local-part` must be followed by exactly one `@` and then a `domain` name.<br>4. `domain` must be made up of at least 2 `domain` labels separated by periods.<br>5. Each `domain` name must be at least 2 alphanumeric characters long.<br>6. Each `domain` name must start and end with alphanumeric characters.<br>7. Each `domain` name can only consist of alphanumeric characters, separated by hyphens, if any. | `[email protected]`, `[email protected]`, `[email protected]`, `[email protected]` | ||
Module | m/ | Case-insensitive.<br>Valid module consisting of 2-4 letters, followed by exactly 4 numeric digits, with a suffix that is at most 1 character long. | `gess1025`, `hsi1000`, `cs2103t` | ||
Faculty | f/ | Case-insensitive.<br>Restricted set of values (refer to [valid faculty values](#valid-faculty-values) below). | `soc`, `biz`, `School of Business` | ||
Venue | v/ | Any characters allowed, cannot be empty. | `belobog avenue`, `COM4-02-33`, `LT21`, `Kent Ridge Vale, Tulip Street, #12-34` | ||
Tag | t/ | Case-sensitive.<br>Only alphanumeric characters allowed. | `tutor`, `professor`, `BestProf`, `Number1TA` | ||
Availability | a/ | Valid format of `day start-time end-time`.<br>1. `day` should be a valid day of week: `Monday`, `mon`, `Tuesday`, `tue`, `tues`, `Wednesday`, `wednes`, `wed`, `Thursday`, `thurs`, `thur`, `thu`, `Friday`, `fri`, `Saturday`, `satur`, `sat`, `Sunday`, `sun`.<br>2. `day` is case-insensitive.<br>3. `start-time` and `end-time` should be in the time format of `HH:mm` where `HH` is in 24 hours (00-23) and `mm` are valid minutes (00-59). | `mon 13:00 14:00`, `monday 13:00 14:00`, `tues 14:00 21:00` | ||
Meeting Description | d/ | Case-sensitive.<br>Only alphanumeric characters allowed. Spaces are only allowed between alphanumeric characters. | `Meet for finals`, `Midterm revision` | ||
Meeting Start Time | s/ | Valid date and time format.<br>1. Valid date formats: `yyyy-MM-dd`, `yyyy-M-d`, `dd-MM-yyyy`, `yyyy-MM-d`, `d-MM-yyyy`, `d-M-yyyy`, `dd-M-yyyy`, `d/MM/yyyy`, `d-M-yyyy`, `dd-M-yyyy`, `dd/MM/yyyy`, `yyyy/MM/dd`, `yyyy/MM/d`, `yyyy/M/dd`, `yyyy/M/d`<br>where `yyyy` is a 4-digit year (0000-9999), `M` is a single digit month (1-9), `MM` is a valid month (01-12), `d` is a single digit day (1-9), `dd` is a valid day (01-31)<br>2. Valid time formats: `HH:mm`, `H:mm`, `HHmm`<br>where `H` is a single digit hour (1-9), `HH` is a valid 24-hour (00-23), `mm` are valid minutes (00-59). | `2002-11-02 19:00`, `1-12-2022 9:00`, `2024/1/1 0000` | ||
|
||
### Valid `Faculty` values | ||
|
||
Faculty | Other names | ||
--------|------ | ||
Faculty of Arts of Social Sciences | Arts and Social Sciences, FASS | ||
Business School | Business, Biz School, Biz | ||
School of Computing | Computing, SoC | ||
School of Continuing and Lifelong Education | Continuing and Lifelong Education, SCALE | ||
Faculty of Dentistry | Dentistry | ||
School of Design and Environment | Design and Environment, SDE | ||
Duke-NUS Medical School | Duke-NUS | ||
Faculty of Engineering, Engineering | FoE | ||
Integrative Sciences and Engineering | ISEP | ||
Faculty of Law | Law | ||
Yong Loo Lin School of Medicine | Medicine | ||
Yong Siew Toh Conservatory of Music | Music, TST Conservatory of Music | ||
Saw Swee Hock School of Public Health | Public Health | ||
Lee Kuan Yew School of Public Policy | Public Policy, LKY School of Public Policy | ||
Faculty of Science | Science, FoS | ||
University Scholars Programme | USP | ||
Yale-NUS College | Yale-NUS | ||
|
||
-------------------------------------------------------------------------------------------------------------------- | ||
|
||
|
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters