GithubHelp home page GithubHelp logo

princeton-cdh / cdh-web Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 4.0 14.08 MB

the CDH website

Home Page: https://cdh.princeton.edu

License: Apache License 2.0

Python 76.60% CSS 0.04% JavaScript 1.51% HTML 8.06% Makefile 0.12% SCSS 13.67%
django events people projects python responsive-design website

cdh-web's People

Contributors

dependabot[bot] avatar kmcelwee avatar meg-codes avatar rlskoeser avatar thatbudakguy avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

cdh-web's Issues

Blog functionality

As a content editor, I want to be able to create, edit and manage my blog posts. As an admin editor, I want to be able to create, edit and manage all blog posts.

As an admin, I want an import of content from the previous version of the site so that all the information available on the old site is migrated to the new version.

Notes for testing

Updates 9/22:

  • now displaying tagline/subtitle on project detail page
  • confirmed drag and drop order works the way I think, updated import script to flip order
  • tweaked styles for profile education section
    Updates 9/21 for second round of testing.
  • Ran a complete import on fresh data from production this morning 9/21, so content should match what is there today.
  • See comment for notes on changes made in response to first round testing feedback: #2 (comment)
  • Be aware of manual cleanup that needs to be done after import (including updating the menus) #41 I have left things largely as is after the import so you can test the clean up as well, with the following exception: I associated images for one event and two projects and marked those projects as highlighted to test image and homepage display.

import content:

  • people
  • events
  • projects
  • blog posts
  • content pages
  • display tagline on project detail page
  • check drag & drop sort order
  • check formatting on profile page education

d

d

As an admin user, I want to create and edit project pages so that I can publish information about sponsored projects.

Notes for testing

  • for this story, test adding main project information: title, images, tagline, text content
  • test grant type and associating grants with projects via #33
  • test editing project roles and associating contributors with projects via #34
  • test editing resources via #35

As an admin user, I want to be able to create and edit project information, so that I can inform the Princeton community and public about contributions to DH projects. These include:

  • Setting a large image
  • Thumbnail image
  • tagline
  • Project contributors (linked to people in the site's database)
  • Project contributor roles
  • Paragraph text

As a user reading a blog post, I want links to next and previous posts so I can browse contents by date.

Notes for testing

Navigate to blog posts and pull up any individual post. At the bottom, you should see links for the next and previous blog post. Check that they display ok, that the link works. Check that the first post doesn't error (only has a previous and no next), check at least one middle post with both next and previous links, and check the last post (no error, only has next and no previous).

As an admin, I want user information and titles automatically populated so I don't have to manually enter it.

If people log in with CAS or we use a script to create their account, here is the information that should be populated:

  • basic user information: username, email, first and last name
  • people section, people list: more information under the 'profile' section. Title set from the person's display name; a slug based on the display name is autogenerated for use in the url; it also pulls in phone number and office location if available (currently has a small bug where it's pulling in "[]" for people without that).
  • If you go to the people / title list, job titles are created based on the imported person's job title in the directory, although they will have to be manually associated with people so you can add dates.

MVP Functonality

Provide MVP functionality that duplicates the current site functionality in the new database model and page framework

Determine roles and permissions

Determine the levels of access we want for now and create a migration to define groups with the appropriate permissions. Customize admin user display to add more detail to the display, including group memberships.

admins, content editors, blog contributors?

Maybe one group for each app (mix and match as needed): event editor/admin, project editor/admin, etc.

Admin: CAS User login

As an administrative user, I want to be able to login to my account using Princeton's CAS Login system. (Included in PUCAS, added for legacy)

Landing page - banner image

screen shot 2017-09-19 at 4 19 20 pm

  • banner image goes all the way to he top (there are area of overlap) so there won't be space between image and the navigation bar
  • banner image aligns center when resizing the window (might be a away to borrow the code from Derrida? same behavior)

As a user, I want to navigate using the header or footer menus, so that I can find the content I'm looking for.

Notes for testing

Updated 9/21. Menu is dynamic but styles are keyed to the content we currently expect (so it could be possible to break things if we're not careful).

  • Contact & Directions is no longer hard-coded in the footer and can be set via menu controls in admin; I think the Subscribe page is going away or just becoming a link, but either way should be handled in admin.
  • Social links in the footer have been added.

As a user I want to see a list of current projects so I can learn more about the work of CDH.

Notes for testing

  • Project list page should be accessible from the top-level navigation (I added a placeholder link to the test site), or by clicking the projects heading on the home page.
  • I just noticed the user story says "current projects", but it's not actually filtered right now (except based on published/unpublished). I think we should revise the user story to say all projects since that matches the current site functionality, and add a feature later to revise project display (filters, project archives, or something).
  • Note that a logged admin can see unpublished content. We plan to add a visual indicator for draft content, but that won't be included in this release.
  • Projects are currently sorted by title.

As an admin, I want to create and edit staff profiles so I can publish information about staff research and roles.

Notes for testing

  • edit under profiles -> people
  • the profile section defaults to collapsed but I haven't been able to figure out an easy way to change that, so we'll just have to live with that for now
  • update 9/20 added username to edit form, should fix the problem encountered before

Detailed items that this should include are:

  • large photo for detail page
  • thumbnail photo for listing
  • job title
  • education section
  • contact info
  • paragraph text

As a user, I want to view sponsored project details so I can read about project goals, progress, and contributors.

Notes for testing

Updated 9/21 to improve project member handling. Now displays project members associated with the most recent grant, even if the grant period has ended. Now also displays project alumni (project members not associated with the most recent grant.) Also better handling for person name display.


  • display current members or members of last active grant if no current grant
  • automatically display project alumni? (if easy)

As a user I want to view upcoming events and highlighted projects on the homepage so I can get a sense of the CDH and its activities.

Notes for testing

  • update 9/21: I think the image display issue was a media/deploy problem that's been resolved, please retest
  • displays next three upcoming events.
  • displays 4 random projects that are current (i.e. has a grant that is active now based on the dates) and active marked as highlighted
  • only displays events and projects that are published (but logged in admins will see draft content even though we don't yet have a marker for draft content)

updates for re-testing 9/5

  • "upcoming" events now includes events starting any time on the current day, even if it is already started. Please test with events before today, current day, and future.
  • Discussed project logic with Jean and renamed is_active to highlight and added help text. This is now the only qualifier for inclusion in home page rotation (although project must still be published).
  • Admins no longer see draft content anywhere on the site (disabled until/if we add a visual indicator for draft content so it can be distinguished from published content)

Manual cleanup needed after import

  • clean up pages in top and footer menus (remove coming soon, make contact footer only)
  • landing page images
  • tag lines for landing pages
  • images and file attachments are not included in the import and will be handled manually
    • profile thumbnails [partially complete]
    • profile images
    • event thumbnails
    • event images
    • project thumbnails
    • project images
    • blog post images
    • file attachments uploaded & associated with pages & events
  • blogpost
    • associate actual authors with posts
    • clean up formatting, remove extra underlining on urls
    • fix any broken embedded images
      • images missing in congrats to valedictorian
      • images missing in grassroots minstrelsy
      • images missing in materials across empire
      • images missing in challenges to neutral data
  • sort order for staff roles for staff will need to be manually assigned.
    • review sort order (Jean?)
  • duplicate roles will need to be standardized.
  • review project slugs and clean up / add redirects where needed
  • associate speakers with events
  • designate highlighted projects
  • manually assign values to project roles for proper sort order
  • credits page

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.