var AppDispatcher = require('../dispatchers/AppDispatcher'); var AppConstants = require('../constants/AppConstants'); var AppActions = { addMemberToProject: function(project, login) { AppDispatcher.dispatch({ actionType: AppConstants.ADD_MEMBER, project: project, login: login }); }, changeLocation: function(newLocation) { AppDispatcher.dispatch({ actionType: AppConstants.CHANGE_LOCATION, location: newLocation }) }, listDepots: function() { AppDispatcher.dispatch({ actionType: AppConstants.LIST_DEPOTS }); }, listDir: function(dir) { AppDispatcher.dispatch({ actionType: AppConstants.LIST_DIR, dir: dir }); }, listMyProjects: function() { AppDispatcher.dispatch({ actionType: AppConstants.LIST_MY_PROJECTS }); }, listAllProjects: function() { AppDispatcher.dispatch({ actionType: AppConstants.LIST_ALL_PROJECTS }); }, logIn: function(user, password) { AppDispatcher.dispatch({ actionType: AppConstants.LOG_IN, user: user, password: password }); }, logOut: function() { AppDispatcher.dispatch({ actionType: AppConstants.LOG_OUT }); }, createProject: function(name, description, depotDir) { AppDispatcher.dispatch({ actionType: AppConstants.CREATE_PROJECT, name: name, description: description, depotDir: depotDir }); } }; module.exports = AppActions;
# | Change | User | Description | Committed | |
---|---|---|---|---|---|
#1 | 15688 | Doug Scheirer |
Populate -o //guest/perforce_software/helix-web-services/... //guest/doug_scheirer/helix-web-services/.... |
||
//guest/perforce_software/helix-web-services/main/source/helix_web_components/project_management/actions/AppActions.js | |||||
#1 | 15622 | tjuricek |
Move source code to 'source/' subdirectory of branch. build/ will remain where it is. |
||
//guest/perforce_software/helix-web-services/main/helix_web_components/project_management/actions/AppActions.js | |||||
#5 | 14176 | tjuricek |
Add a basic 'add member' function to the project details page. There appears to be some kind of funky caching issue with the components. The project data does get updated, so this UI is not 100% bug proof. Also, there's no autocomplete yet. |
||
#4 | 14151 | tjuricek |
Add depot tree control and selection to the create projects page. Styling and error checking is kept to a minimum for the time being. Our goal is just internal workflow and feedback. |
||
#3 | 14105 | tjuricek |
add 'listMy' and 'listAll' sync project variations to the JS API. Also, set up the project list to switch between the two project types. Also, setup each item in the project list to not be a grouped list item, but a custom view component. Not particularly useful, but it just displays a description now. |
||
#2 | 14020 | tjuricek | Simple project creation for the Project Management UI | ||
#1 | 13974 | tjuricek |
Moving 'ui/static' to 'helix_web_components' project, and altering some notes. Also, removed obsolete top-level Rake tasks. The "Helix Web Components" project will likely get moved elsewhere in the future. |
||
//guest/perforce_software/helix-web-services/main/ui/static/project_management/actions/AppActions.js | |||||
#3 | 13962 | tjuricek |
Add 'location' store and integrate "Jest" for unit testing. The location will trigger different views of the main ProjectManagement component. The Jest framework allows us to create headless tests of the React component logic. It's a little tricky, and right now has a dependency on node 0.10. |
||
#2 | 13769 | tjuricek | Add a trivial 'Header' component with a log out method. | ||
#1 | 13707 | tjuricek |
Infrastructure for including a "project management" React application. This attempts to create a fairly simple installer that creates a 'static' folder based on ui/static that gets hosted by the nginx front end. Right now, it's the only app, so the default page is this application. It was called "pws2" during a prototyping phase. Another prototype, "pws" and the related "project" module, is removed since that was a Sinatra-based approach that will be much more difficult to integrate into anything else. I'm running into a couple of issues with notifications setup, it's still not 100%, so I'm disabling this for now from the default 'god' configuration. (The service isn't 100% functional yet, anyway.) |
||
//guest/perforce_software/helix-web-services/main/ui/static/pms2/actions/AppActions.js | |||||
#1 | 13645 | tjuricek |
React.js + Flux prototype This just logs in and displays a list of projects (create one with the other app for now). |