summaryrefslogtreecommitdiffstats
AgeCommit message (Collapse)AuthorFilesLines
2018-11-10Bump version numberMalf Furious1-1/+1
Signed-off-by: Malf Furious <m@lfurio.us>
2018-11-10Add 'No issues' message to empty closed issue listMalf Furious1-0/+4
Signed-off-by: Malf Furious <m@lfurio.us>
2018-11-10Merge branch 'bug/opt-assign-to-grp' into devMalf Furious4-3/+32
2018-11-10Add 'No issues' message to empty stage list itemsMalf Furious1-0/+4
Signed-off-by: Malf Furious <m@lfurio.us>
2018-11-10Fix bug in assignee selectionMalf Furious1-3/+5
Previously, issues on pads owned by a group (rather than by a user) would incorrectly present options for user assignment. It would show the group as a member of the list, misleadingly with the user icon to the left of it. This patch uses the new agent::getContainedUsers() function to resolve the pad's owner to an array of users accessible via the owner 'agent'. Signed-off-by: Malf Furious <m@lfurio.us>
2018-11-10Add function agent::getContainedUsers()Malf Furious3-0/+27
This function helps further abstract agents. We want to get all users belonging to a pad that is owned by a group, or more specifically - an agent. If this agent is a user, that user is our only user to collect. If this agent is a group, we want to capture _it's_ owner along with all of it's members. Signed-off-by: Malf Furious <m@lfurio.us>
2018-11-05Merge branch 'feature/view-closed-issues' into devMalf Furious6-46/+141
2018-11-05Only display 'iss-mesg-add' form for open issuesMalf Furious1-42/+44
Disallow posting to closed issues. This is a temporary soultion and will likely be reverted in the future. The main reason this is being done now is because this form, as written, depends on an open issue state. To aid diff comprehension, note that most lines are only indented one level, the code area affected is wrapped in a PHP if. Note that form submissions are still allowed for closed issues. This commit only disable the _displaying_ of the form. Signed-off-by: Malf Furious <m@lfurio.us>
2018-11-05Add link to closed issues viewMalf Furious1-3/+9
Signed-off-by: Malf Furious <m@lfurio.us>
2018-11-05Add pad closed issues viewMalf Furious3-1/+70
This view is routable from app/<pad_guid>/closed. It is a separate view for displaying the closed issues of a pad. index.php as well as the pad model code is also updated to support this view. This view currently *does not* support paging. This will very likely be added in the future. Signed-off-by: Malf Furious <m@lfurio.us>
2018-11-05Add function pad::getClosedIssues_ordByClosed()Malf Furious1-0/+18
This returns an array of all issues which directly parent the pad object. These are the pad's closed issues. Most recently closed issues are first in the array. Signed-off-by: Malf Furious <m@lfurio.us>
2018-11-05Fix bug in 'iss-mesg-add' form handlerMalf Furious1-1/+1
When closing issues, we were using a malformed format string. The 's' from the '%s' was missing. Signed-off-by: Malf Furious <m@lfurio.us>
2018-11-05Return code 404 when displaying the 404 pageMalf Furious1-0/+1
To be more compliant with the HTTP standard, we will _actually_ return '404 Not Found' status when we decide to show the 404 view. A status of '200 OK' is misleading and incorrect. Signed-off-by: Malf Furious <m@lfurio.us>
2018-11-04Merge branch 'feature/assign-issue' into devMalf Furious2-0/+44
2018-11-04Implement 'add assignee' form handlerMalf Furious1-0/+18
The 'iss-mesg-add' form now handles when the 'assIssue' submission is sent. This is the only submission of this form that looks at the (usually hidden) 'assignee' dropdown field, which has been made a required field however. Signed-off-by: Malf Furious <m@lfurio.us>
2018-11-04Add user interface for issue assignmentMalf Furious1-0/+26
This allows users to add assignees when posting to an issue. A dropdown is revealed which contains the pad owner and all members. Signed-off-by: Malf Furious <m@lfurio.us>
2018-11-01Merge branch 'feature/adv-issue' into devMalf Furious2-12/+46
2018-11-01Implement iss-mesg-add 'advIssue' submissionMalf Furious1-1/+22
Handler now includes logic for optionally advancing the issue through the pipeline. If this happens, 'closeIssue' (for example) will not be checked, as only one submission can be used. Signed-off-by: Malf Furious <m@lfurio.us>
2018-11-01Fix 'closeIssue' form submissionMalf Furious1-0/+6
I was failing to assert user has modify permissions for the issue. Signed-off-by: Malf Furious <m@lfurio.us>
2018-11-01Make issue reply message optionalMalf Furious1-8/+11
The 'iss-mesg-add' form will now allow a mesg to be omitted, since it will also be handling other events. These events are part of the same form since the UI allows users to post a message and trigger these other actions at the same time. We now only create a mesg object if a mesg is given. Note that an attachment requires a message. IE: any attachment is ignored if no message is created. Signed-off-by: Malf Furious <m@lfurio.us>
2018-11-01Add advance button to issue message formMalf Furious1-0/+4
If this submit button is used, the message will be posted as usual, then the issue will be moved to the next stage in the pipeline. Signed-off-by: Malf Furious <m@lfurio.us>
2018-11-01Update issue message submit buttonsMalf Furious1-4/+4
I'm going to be adding another button down here in the btn-group (more later). So to make room, I'm removing the text on these buttons, leaving only the icons. The text will instead be a tooltip, visible when the button is hovered. In the case of the 'Close issue' button, it is changed from btn-success to btn-default. I will tweak colors once this portion of the UI matures. For now, I don't want the rainbow in my face. Signed-off-by: Malf Furious <m@lfurio.us>
2018-10-31Merge branch 'bug/more-image-mimes' into devMalf Furious2-6/+15
2018-10-31Fix bug in image supportMalf Furious2-10/+13
Adds 'image/x-ms-bmp' as an allowed mimetype for images, and is equivalent to 'image/bmp'. The image module is also updated to expect this new type. I found an image of mine that, when uploaded, PHP thought was 'image/bmp', so it was allowed. However, when cropping, PHP though it was 'image/x-ms-bmp' and failed to lookup a loading/writing function. Signed-off-by: Malf Furious <m@lfurio.us>
2018-10-31Add bmp image supportMalf Furious2-0/+3
Adds 'image/bmp' as an allowed mimetype for images. The image module is also updated to expect this new type. Signed-off-by: Malf Furious <m@lfurio.us>
2018-10-31Add gif image supportMalf Furious2-0/+3
Adds 'image/gif' as an allowed mimetype for images. The image module is also updated to expect this new type. For background images, animated gifs will work properly. For head images, the cropping process truncates the image to only one frame; this is probably for the best. Signed-off-by: Malf Furious <m@lfurio.us>
2018-10-27Merge branch 'rel/v0.1'v0.1Malf Furious82-0/+13734
2018-10-27Rename examples/ directoryMalf Furious8-0/+0
In preparation for the release, I'm renaming this directory since 'examples' is confusion and misleading. Really this directory just holds some old code that needs re-integrated, so I name it 'todo'. Signed-off-by: Malf Furious <m@lfurio.us>
2018-10-27Rename README fileMalf Furious1-0/+0
There is not any markdown in this file. Rename it just to a plain .txt file. Signed-off-by: Malf Furious <m@lfurio.us>
2018-10-27Remove unnecessary commentMalf Furious1-8/+1
Signed-off-by: Malf Furious <m@lfurio.us>
2018-10-27Cleanup appearance of issueListItemMalf Furious1-14/+1
This was left in a messy state. I'm just cleaning it up a little bit for now for the release. Signed-off-by: Malf Furious <m@lfurio.us>
2018-10-27Replace pad and group view headsMalf Furious2-2/+2
Since there is currently no way to set heads for these objects, I am replacing them with the appropriate glyphicon. Signed-off-by: Malf Furious <m@lfurio.us>
2018-10-27Fix bug in database schemaMalf Furious1-2/+2
These text fields need a default of NULL aparently. Signed-off-by: Malf Furious <m@lfurio.us>
2018-10-27Center text on incomplete pagesMalf Furious2-2/+2
Signed-off-by: Malf Furious <m@lfurio.us>
2018-10-27Write README fileMalf Furious1-0/+53
Signed-off-by: Malf Furious <m@lfurio.us>
2018-10-27Bump version numberMalf Furious1-1/+1
Signed-off-by: Malf Furious <m@lfurio.us>
2018-10-27Merge branch 'feature/404-page' into devMalf Furious2-0/+47
Signed-off-by: Malf Furious <m@lfurio.us>
2018-10-27Add 404 Page not found viewMalf Furious2-0/+47
Previously, when the app was asked for non-existant paths, no content was returned and a blank page was presented to the user. Now a canned message stating that the requested page does not exist is shown, along with a helpful link back to the Dashboard page. Signed-off-by: Malf Furious <m@lfurio.us>
2018-10-26Merge branch 'feature/logging' into devMalf Furious4-0/+9
Signed-off-by: Malf Furious <m@lfurio.us>
2018-10-26settings: Add log event when admin alters global settingsMalf Furious1-0/+2
Signed-off-by: Malf Furious <m@lfurio.us>
2018-10-26user: Add log events for some basic user mgmtMalf Furious1-0/+5
Signed-off-by: Malf Furious <m@lfurio.us>
2018-10-26issue: Add logging events for issue open and closeMalf Furious2-0/+2
Signed-off-by: Malf Furious <m@lfurio.us>
2018-10-25issue: Fix bug in iss-mesg-add formMalf Furious1-1/+1
Since this form submits a file upload, we need it to be set enctype="multipart/form-data". Signed-off-by: Malf Furious <m@lfurio.us>
2018-10-25issue: Implement form handler iss-mesg-addMalf Furious2-0/+58
Submissions to the iss-mesg-add form are now handled by this function. User must be logged in and permitted to post to the issue in question. Signed-off-by: Malf Furious <m@lfurio.us>
2018-10-24obj: Fix bug in function getMesgs_ordByDatetime()Malf Furious1-2/+2
The SQL query here, as written, was omitting 'log' type messages from the results. Signed-off-by: Malf Furious <m@lfurio.us>
2018-10-24issue: Add message log to issue view modalMalf Furious1-0/+62
Listing all message (and log messages) beneath the OP in chrono order. There is a form at the bottom to submit new messages. Signed-off-by: Malf Furious <m@lfurio.us>
2018-10-23Fix bug in various form handlersMalf Furious2-4/+24
Some form handlers use the current logged in user (user::getCurrent()), however do so without asserting that we are _actually_ logged in. This is probably due to that fact that index.php (usually) catches all page requests that are logged out and diverts control before any other handler can be invoked. But a few handlers sneak through the cracks. In the future, the app will be better about supportting logged out browsing, the alpha was not written with this in the forground. Signed-off-by: Malf Furious <m@lfurio.us>
2018-10-23datamods: Implement new issue modal form handlerMalf Furious1-0/+38
POSTs to the dm-issue-add form are handled by this new handler. Pad data is passed via the form, we create the new issue in the pad's first stage, crediting the current logged in user. New issue is unassigned. I call `location()` at the bottom, since not doing so leaves the page in a weird state. The reason being that most of the page rendering logic operates off of the 'pageObj', which is instanciated and assigned prior to the invocation of this handler. This is to be fleshed-out during the v0.2-v0.3 development iteration. Signed-off-by: Malf Furious <m@lfurio.us>
2018-10-22pad: Add on-page button to open new issueMalf Furious1-0/+4
First button added to the header of pad views is to open new issues. This interface is still very crude and subject to change in the near future. Signed-off-by: Malf Furious <m@lfurio.us>
2018-10-22stdpage: Add 'New Issue' option to navbarMalf Furious1-0/+9
When viewing a pad, offer the 'New Issue' option under the additions menu in the navbar. Will will display the just-added new issue modal, for the user to open a new issue on the first stage of the pad being viewed. Signed-off-by: Malf Furious <m@lfurio.us>