Code Monkey home page Code Monkey logo

302-group-7's People

Contributors

acalza avatar chrismckerracher avatar codyhowarth avatar elamir3mmar avatar jreinertson avatar matthew-sadowski avatar munrocape avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

302-group-7's Issues

Don't close an already opened panel

Panels that are open should stay open - even if the alternate panel is opened or the user clicks outside of the panel.

  • Panel should not close when the user opens the other panel
  • Panel(s) should not close when the user clicks outside of the panels
  • A panel should close when the user clicks the corresponding button

This should be open to extension if we want the panels to close on certain actions (we add a close button, we want the dropdown to close immediately after the user performs an add/remove action)

Adding a new author creates a new project, not author.

In data/js/dropdownContentScript.js, starting on line 143

$("#submitNewAuthor").click(function(){
    if ($.trim( $('#newAuthorName').val() ) === '' ) {
        console.log('Blank input.');
        $(".authorName").html("Please enter an Author's name")
    }
    else {
        self.port.emit(ADD_NEW_PROJECT, $("#newAuthorName").val())
        self.port.emit(SEND_STORAGE, HOME)
        $('#main').css("display", "block");
        $('#createNewAuthorView').css("display", "none");
    }
})

especially note:

self.port.emit(ADD_NEW_PROJECT, $("#newAuthorName").val())
self.port.emit(SEND_STORAGE, HOME)

Its emitting the wrong thing.

Static dropdown HTML - initial view

This is the dropdown in the browser seen in this mockup: here.

Implement with materialize design - does not need to match mockup 1:1 except for button placement and what text appears.

Seed it with fake data

Manage references

screen shot 2016-04-04 at 11 07 57 am

Clicking on a source should go to a references page, where you can add/edit references

In select project view, add jQuery click listeners to each source

`self.port.on(SELECT_PROJECT, function(project) {
console.log(project.name + " selected")
$(".projectName").html(project.name)
let html = ''
for (let i = 0; i < project.sources.length; i++) {
console.log(project.sources[i])
html += '

  • '
    }
    $('.collection').html(html)

    })`

    Essentially for each i, if you scroll up earlier in the file, you see an example:
    $('#' + i).click(function() { // Handler for project i self.port.emit(SEND_STORAGE, SELECT_PROJECT, i) })
    Do something similar except add a listener to the i'th source, and add an id in my html string for the tag with source_ + i concatenated

    Adding a project leaves the name in the field

    When you add a project, and then add a second one, the name of the first one is still present. Also, if you have an empty project name, you cannot proceed and no help text is provided

    refactor

    Useless storing information about the id, going to refactor as it is not needed

    Create drop down handler, controller

    This controller will be tied to the drop down button and actions.

    Stub this out and connect it to the button created in #4

    Add angular into the project locally to reference. 1.3.x/1.4.x.

    Replace the console logging with logging within the controller based on button click.

    Use the data controller in #11 to get the references and current project

    Implement drop down HTML

    Allow the user to add the page as a reference, remove the page as a reference if it is already a reference.

    Refer to the finalized mockups from #8

    Static dropdown HTML - authors transition

    This is the "trasition: authors" dropdown seen here: here.

    Implement with materialize design - does not need to match mockup 1:1 except for button placement and what text appears.

    Seed it with fake data.

    Project click to go to respective project page.

    For now I set all the project names to go to the template projectView page. This should be updated to ref the project details, maybe a helper function to load the project details and port to the next view.

    In file: dropdownContentScript.js:9

    Finalize mockups for dropdown and footer views

    Work with @elAmir3mmar / the group to finalize layout.

    Refer to the use cases to identify what buttons and flows would be helpful

    The UI/X driving forces should carry over from the mockups and our design brief:

    • simple workflows
    • clear/intuitive intent
    • material design

    Set up messaging stubs to/from the extension to/from the tabs

    here is the general structure.

    Alongside the contentURL attribute in the respective Views we also need a contentScriptFile attribute that points to the content script. There should be one each for the dropdown/footer.

    • Set up one messenger and handler for each view to/from the extension index.js.

    Getting more done in GitHub with ZenHub

    Hola! @munrocape has created a ZenHub account for the munrocape organization. ZenHub is the leading team collaboration and project management solution built for GitHub.


    How do I use ZenHub?

    To get set up with ZenHub, all you have to do is download the browser extension and log in with your GitHub account. Once you do, you’ll get access to ZenHub’s complete feature-set immediately.

    What can ZenHub do?

    ZenHub adds a series of enhancements directly inside the GitHub UI:

    • Real-time, customizable task boards for GitHub issues;
    • Burndown charts, estimates, and velocity tracking based on GitHub Milestones;
    • Personal to-do lists and task prioritization;
    • “+1” button for GitHub issues and comments;
    • Drag-and-drop file sharing;
    • Time-saving shortcuts like a quick repo switcher.

    Add ZenHub to GitHub

    Still curious? See more ZenHub features or read user reviews. This issue was written by your friendly ZenHub bot, posted by request from @munrocape.

    ZenHub Board

    Static dropdown HTML - project transition

    This is for the "project transition" seen here: here.

    Implement with materialize design - does not need to match mockup 1:1 except for button placement and what text appears.

    Seed it with fake data

    Add new source

    Deal with adding a brand new source, the HTML will need to be changed slightly so it doesn't load an invalid page. Again mess around with the divs, and have the correct input fields when adding a source, follow the example in our fake_data.json:
    "sources": [{ "name": "Barnes Hut Algorithm", "link": "http://arborjs.org/docs/barnes-hut", "year": 2005, "authors": ["Tom Ventimiglia", "Kevin Wayne"], "references": ["http://www.cs.princeton.edu/courses/archive/fall03/cs126/assignments/barnes-hut.html"] }]

    Create multi-function button

    This is blocked by #3

    Here is a tutorial on how to make a multi-function button.

    • Create a button to add a resource, and the drop down for managing resources
    • Wire them up to print to the console different messages

    Static dropdown HMTL - sources transition

    This is the "trasition: sources" dropdown seen here: here.

    Implement with materialize design - does not need to match mockup 1:1 except for button placement and what text appears.

    Seed it with fake data.

    Create extension structure

    This issue encompasses creating the extension minutia that are required to be published on jpm.

    The best reference for this can be found here

    Authors fields add to source edit view

    screen shot 2016-04-05 at 1 20 55 pm

    screen shot 2016-04-05 at 1 21 02 pm

    At the end, if you look at the fake data we have an array of authors, include that using jQuery as usual do the same thing we've been doing for references and sources when appending new object, as well as a + to add a new author

    Create footer stub

    • should be the width of the window
    • should be anchored to the bottom of the page
    • should have an associated angular controller

    Updated README following conclusion of 302

    We shouldn't lose our documentation.

    I think there are two options:

    1. Migrate our collection of files to this repo
    2. Write a new README to encapsulate what we are going for in the spirit of README Driven Development.

    I prefer the second option - it gives us an opportunity to reflect on what we have done and where we want to go as well as adopt a more common format for future contributors / viewers of the project.

    Allow for setting a different hover-text for the button and dropdown menu

    Currently, we can only set one label on the dropdown. Extend it so that we can set two labels - one for the button, and one for the drop down.

    Unfortunately my screen capture doesn't pick up on hover text. But currently button.label is what sets this and we would need MenuButton.button_label and MenuButton.dropdown_label or something to that effect that we can define.

    Create overarching "data" controller

    This controller will be the data source for the footer and extension controllers. It will listen to events and react accordingly.

    Stub out the following:

    addReference()
    removeReference(projectId int, referenceId int)
    getReferences(projectId int)
    getProjects()
    getCurrentProject()
    setDefaultCitation()
    getDefaultCitation()
    generateCitation(projectId int)
    generateCitation(projectId int, bibFormatter func)
    

    For this sprint, seed the projects list with only one element. Set the current project to reference this.

    @ACalza @ChrisMckerracher did the UML. They will be a great resource in planning this out

    Static dropdown HTML - source options transition

    This is the "trasition: source options" dropdown seen here: here.

    Implement with materialize design - does not need to match mockup 1:1 except for button placement and what text appears.

    Seed it with fake data.

    Recommend Projects

    • React photo React

      A declarative, efficient, and flexible JavaScript library for building user interfaces.

    • Vue.js photo Vue.js

      🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

    • Typescript photo Typescript

      TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

    • TensorFlow photo TensorFlow

      An Open Source Machine Learning Framework for Everyone

    • Django photo Django

      The Web framework for perfectionists with deadlines.

    • D3 photo D3

      Bring data to life with SVG, Canvas and HTML. 📊📈🎉

    Recommend Topics

    • javascript

      JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

    • web

      Some thing interesting about web. New door for the world.

    • server

      A server is a program made to process requests and deliver data to clients.

    • Machine learning

      Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

    • Game

      Some thing interesting about game, make everyone happy.

    Recommend Org

    • Facebook photo Facebook

      We are working to build community through open source technology. NB: members must have two-factor auth.

    • Microsoft photo Microsoft

      Open source projects and samples from Microsoft.

    • Google photo Google

      Google ❤️ Open Source for everyone.

    • D3 photo D3

      Data-Driven Documents codes.