Auriga Widgets
From Project Auriga
We're finding the best way to use Dojo is to define custom widgets based on dijit._Widget and dijit._templated. This makes it easy to create portable UI elements that can be opened multiple times on a page without conflicting with each other, among other things.
We still need to figure out how to break these items into multiple builds so that you don't have to load all scripts when the site loads. However, for the time being we're building everything into a Dojo build...
Here's what's in each module:
Contents |
[edit] auriga.Account
Mostly utility functions for working with the account synchronization screen: link, load, save, etc.
[edit] auriga.Main
Utility class for interacting with the UI.
Also contains auriga.DateTextBox, a subclass of dijit.form.DateTextBox that overrides the serialize method to a date format that can be fed straight to MySQL.
[edit] auriga.Project
Functions for the project module, needs to be re-written as a class to allow multiple projects to be opened at the same time.
[edit] auriga.TaskChooser
A general widget for choosing tasks by account, project, or task for a particular owner.
[edit] auriga.Tasklist
A class for showing a set of tasks from a store, along with start/switch buttons, time entries, details, etc. Used on the projects module.
[edit] auriga.Timeclock
Widget that displays the current state of the timer, and will handle global changes to it.
[edit] auriga.Today
Class for showing all the tasks for a particular day (usually today). Allows rescheduling time, marking tasks complete, adding a note, etc.
[edit] auriga.UserMonth
Widget that shows a calendar with dates color-coded by availability. Loads a data store and marks each date in one of these colors:
- grey: weekend/unavailable
- green: scheduled hours less than (default: 50% of max/4 hours)
- yellow: scheduled hours less than "booked" (default: 75%/6 hours)
- orange: scheduled hours less than "max" (default: 100%/8 hours)
- red: scheduled hours greater than/equal to max (default: 8 hours)
Accepts today_time and task_time items dropped onto a date. If the resulting scheduled time exceeds "booked" or if the control key is held down, UserMonth displays a dialog for the user to choose how much time to schedule.
[edit] auriga.Workpane
Miscellaneous utility functions related to events, panels, and other things gradually moving to auriga.Main.

