Skip to content

changes in new-allocation-card - #654

Open
conwelld wants to merge 14 commits into
department-portal-basefrom
new-allocation-card
Open

changes in new-allocation-card#654
conwelld wants to merge 14 commits into
department-portal-basefrom
new-allocation-card

Conversation

@conwelld

Copy link
Copy Markdown

Allocation card revert merge

  • There was no way to access an allocation card from the department portals page, where one could view a summary of their allocations and click a view allocation button.

Changes

  • Added summary to the view allocation card that changes based on demo data
  • Added CSS styling to the HTML file
  • added allocation logic to the main routed file that iterates through labor status forms
  • Changed HTML to have card space for all three cards to be added
  • added demo data to students and forms so data looked more presentable
  • added information icon to AY as well as the break hours to give more context to what users are seeing.
  • added CSS styling to make the information icon
  • added JavaScript to allow for Bootstrap tooltips
  • added css styling that changes based on window size
image image image

Testing

  • Used 'flask run' to load the page, and everything shows up as it should
  • Reset the database, and no errors arose

@conwelld conwelld self-assigned this Jul 21, 2026
@conwelld
conwelld requested review from BetterRocket and fritzj2 July 21, 2026 14:59
Comment thread app/controllers/main_routes/main_routes.py Outdated
Comment thread app/controllers/main_routes/main_routes.py
Comment thread app/controllers/main_routes/main_routes.py Outdated
@conwelld conwelld changed the title added changes from previous branch to avoid all files being commited new-allocation-card changes in new-allocation-card Jul 21, 2026
Comment thread app/static/css/departmentPortal.css Outdated
@conwelld

Copy link
Copy Markdown
Author

Thanks for looking into this. I have fixed the comments you have made (removed code from other branches and added comments to logic)

Comment thread app/static/css/departmentPortal.css Outdated
fritzj2

This comment was marked as outdated.

Comment thread app/controllers/main_routes/main_routes.py Outdated
Comment thread app/controllers/main_routes/main_routes.py Outdated
Comment thread app/controllers/main_routes/main_routes.py Outdated
Comment thread app/controllers/main_routes/main_routes.py
Comment thread database/demo_data.py Outdated
@BetterRocket

Copy link
Copy Markdown
Contributor

No logic file and tests needed yet because the logic related to pulling allocations and allocation utilization will be standardized by another team, whereupon this will have to be modified to use those functions.

…rvice.

  See #657 but beyond that we created allo files
Comment thread app/controllers/main_routes/main_routes.py Outdated
Comment thread app/controllers/main_routes/main_routes.py Outdated
Comment thread app/controllers/main_routes/main_routes.py Outdated
Comment thread app/controllers/main_routes/main_routes.py Outdated
Comment thread app/controllers/main_routes/main_routes.py Outdated
Comment thread database/reset_database.sh
Comment thread app/templates/main/departmentPortal.html Outdated
Comment thread app/templates/main/departmentPortal.html Outdated
Comment thread app/templates/main/departmentPortal.html Outdated
Comment thread app/templates/main/departmentPortal.html Outdated
Comment thread app/controllers/main_routes/main_routes.py Outdated
Comment thread app/logic/getAllocation.py
Comment thread app/logic/getAllocation.py Outdated
Comment thread app/logic/getAllocation.py Outdated
Comment thread app/logic/getAllocation.py
Comment thread database/base_data.py Outdated
Comment thread database/demo_data.py Outdated
Comment thread database/demo_data.py
Comment thread database/demo_data.py
Comment thread app/logic/getAllocation.py
…tract countWorkers/getBreakHours with FormHistory approval filter, dynamic term in departmentPortal.html, and revert environment-specific path edits in base_data.py/demo_data.py. Add integration test coverage for the new logic functions.
…ve conflicts with the new Members card feature
@DanielRukwasha
DanielRukwasha requested review from MImran2002 and removed request for fritzj2 July 30, 2026 14:21
DanielRukwasha and others added 2 commits July 30, 2026 11:12
…llocation.py, excluding denied forms from countWorkers and the used count. Update tests to cover the new behavior.
…wording, and aligned Primary/Secondary table

Replace the raw "AY 2025-2026" term name with a computed current-semester
label (e.g. "Fall 2025") derived from the term's own year and today's month,
matching the Fall/Spring termCode convention used elsewhere. Reword ratios
as "X of Y" instead of "X/Y", rename the card title to "Current Allocation",
and rebuild the Primary/Secondary breakdown as a single table so every row
(term info, headers, hour buckets, break hours) shares the same column
alignment and stays legible down to mobile widths.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants