Commit Graph

231 Commits

Author SHA1 Message Date
Andy Chan (12beesinatrenchcoat)
ff0b026688 Update to Next 15 (and other dependencies) 2025-01-08 18:11:59 -05:00
Andy Chan (12beesinatrenchcoat)
259fa9546d Replace images.domain with images.remotePatterns
images.domains is deprecated as of Next 14.
2024-11-23 22:26:02 -05:00
Andy Chan (12beesinatrenchcoat)
073517dea2 Update to Next 14 (and other dependencies) 2024-11-23 22:18:18 -05:00
Andy Chan
596f648f31
Redesign landing page (#44)
* Redesign landing page

A bit empty right now, functionality non-existent

* Create search bar and filter pills

Not tied to any functionality at the moment, however

* Implement search result component

Searching not yet added, sample results added for testing

* Move ref in FilterPill to allow closing by clicking pill

Clicking on the pill would reopen the dropdown; it closes properly now
2024-11-20 15:54:54 -05:00
Andy Chan
d0a315c365
Keep Sidebar fixed + refactor Sidebar.tsx (#38)
* Refactor Sidebar.tsx (for /resource)

Will look weird on other pages.

* Move sidebar open button into Sidebar.tsx, apply to other pages

Significantly reduces boilerplate of sidebar on pages where it is used.

* Set sidebar to be open by default

* Minor code formatting
2024-11-05 19:52:09 -05:00
pmoharana-cmd
354946e19e Hotfix for Next.js route query paramater 2024-11-05 19:21:42 -05:00
Aidan Kim
7d705ac743
API Routes for Resources and Services (#40)
* Implemented API routes for getting all, creating, updating, and deleting resources, services, and tags.

* Updated main.py for API routes to include tags and rolled entities back.

* Created API routes for create, update, delete, get_all, and get_by_name. Deleted service methods for get by id.

* Defaults created_at to current time

* Write markdown file for HTTP requests using curl

---------

Co-authored-by: pmoharana-cmd <pmoharana032474@gmail.com>
2024-11-05 19:12:03 -05:00
Emma Foster
99e43c7b30
Resource Service and Tests (#41)
* Implement Resource service, tests, and test data with 97% coverage.

* Update slug service to return empty list and corresponding tests

* Update resource update tests to grab resource by id from the db to check
2024-11-04 15:10:58 -05:00
Nicolas Asanov
2e0dd3b987
Refactored Table Components (#43)
* Created mock/test table and resource page to see if implementation works

* Fixed typing for TagsInput

* cleaned up imports

* Started moving data manipulation into Table

* moved data manipulation logic into Table

* added useTagsHandler custom hook to consolidate getTagColor and presetOptions state into one function

* Fixed type errors for RowOpenAction

* Refactored ServiceIndex

* Refactored user table

* Updated imports and client facing routes

* added documentation for table components

* Added documentation for TagsHandler

* small changes for cleaner code

* refactored typing for tables. More work needs to be done to ensure tables are overall working properly

* added todo

* updated client paths with new table props

* alterned handleRowUpdate to only use setData

* diverted responsibility of handleRowChange to Drawer instead of Table to remove repetition

* updated documentation

* added sorting util function to Table.tsx to reduce repetition

* Edited sorting func to be more comaptible and edited hideData to be more concise

* formatting

* updated imports

* updated tags for all tables

* removed DataPoint dependecy from User, Service, and Resource models as it was unnecesary

* Added inline documentation to table components

* added documentation for DataPoint model

* Update package-lock.json
2024-11-04 15:10:13 -05:00
pmoharana-cmd
cb54c9829d Remove angular cli dependency 2024-10-15 19:28:32 -04:00
pmoharana-cmd
a43fb7429a Add start script 2024-09-27 19:43:00 -04:00
pmoharana-cmd
70906fa231 Update README.md for dev container 2024-09-21 16:04:27 -04:00
pmoharana-cmd
f9abc9169f Dependency bumps + new fastAPI CLI 2024-09-18 15:48:33 -04:00
Prajwal Moharana
38091128bf
Merge pull request #37 from cssgunc/backend-dockerfile-update
Add node to dockerfile
2024-04-25 15:33:01 -04:00
pmoharana-cmd
67dbf0623f Add node to dockerfile 2024-04-25 15:32:31 -04:00
Prajwal Moharana
ef42478c54
Merge pull request #36 from cssgunc/backend-frontend-integration
Backend frontend integration
2024-04-24 21:27:58 -04:00
pmoharana-cmd
6d477678a9 Demo ready 2024-04-24 21:23:43 -04:00
pmoharana-cmd
ba15bf7519 Implement resource api methods 2024-04-24 20:18:09 -04:00
Sushant Marella
4e090e5bd5 Update methods so that it checks for users' role and group directly in each method 2024-04-24 20:01:26 -04:00
Sushant Marella
6cc0d697d4 Modify methods to filter resources based on user access 2024-04-24 20:01:19 -04:00
blake hardee
e8068ff2ea resource service and permissions service wip 2024-04-24 20:01:13 -04:00
blake hardee
31b714e70d resource service methods wip 2024-04-24 20:01:05 -04:00
pmoharana-cmd
3fc8f0e149 Implement service api method 2024-04-24 19:57:44 -04:00
CheezyGarlicBread
34dd4ec48f bug fixes 2024-04-24 19:38:22 -04:00
CheezyGarlicBread
0ad8b5059d finally made tests work, added get_by_name 2024-04-24 19:38:15 -04:00
CheezyGarlicBread
bb39dd6686 adding changes 2024-04-24 19:38:10 -04:00
CheezyGarlicBread
c3385b0f0f changes to tests and services 2024-04-24 19:38:00 -04:00
pmoharana-cmd
f4f816b94c Fix bugs regarding service test data insertion 2024-04-24 19:37:58 -04:00
Aidan Kim
a107337737 updated the service methods and modified a few of the tests. 2024-04-24 19:37:29 -04:00
pmoharana-cmd
dfed92816d Intialize resource, service, and training-manual routes 2024-04-24 19:36:28 -04:00
pmoharana-cmd
150dde1b0a Restructure data 2024-04-24 17:54:16 -04:00
pmoharana-cmd
f0fabead01 Add loading animations and authentication handling 2024-04-24 17:24:54 -04:00
Meliora Ho
ea547026cf Completely forgot what I did 2024-04-24 01:29:34 +00:00
pmoharana-cmd
e13100e0f7 Reroute from root route to login page 2024-04-23 21:27:18 -04:00
pmoharana-cmd
a979d6b051 Fix enum bugs and sign out issues 2024-04-23 21:21:55 -04:00
pmoharana-cmd
b0ced6ef9f Merge branch 'admin-GEN-57-all-together-now' into backend-frontend-integration 2024-04-23 21:17:18 -04:00
pmoharana-cmd
edbb1565e8 Save current change currents 2024-04-23 21:06:12 -04:00
pmoharana-cmd
bdf892c6c2 Add basic route handlers and endpoints 2024-04-23 21:06:00 -04:00
pmoharana-cmd
755d1523d0 Add basic authentication and redirection handling 2024-04-23 21:05:49 -04:00
pmoharana-cmd
7dc5aca9ee Init files for authentication 2024-04-23 21:05:41 -04:00
pmoharana-cmd
23e7ee7b9f Add husky commit hook for linting and formatting 2024-04-23 21:05:30 -04:00
pmoharana-cmd
f2765ecb47 Add prettier and reformat project 2024-04-23 21:05:09 -04:00
pmoharana-cmd
3fd0a545e7 Basic api handling 2024-04-23 21:05:01 -04:00
pmoharana-cmd
c71d5d4026 Intialize API with basic user methods 2024-04-23 21:04:48 -04:00
Meliora Ho
f9a6e71484 Edited the UI 2024-04-23 23:26:16 +00:00
Meliora Ho
38d640edc9 Merge remote-tracking branch 'origin/Ilakkiya-admin-GEN-103-filter' into admin-GEN-57-all-together-now 2024-04-23 22:55:40 +00:00
Meliora Ho
601ad5ce4f Merge remote-tracking branch 'origin/varun-admin-GEN-59-page' into admin-GEN-57-all-together-now 2024-04-23 22:55:06 +00:00
Varun Murlidhar
f56e383798 Add tag fields to drawer, style drawer 2024-04-23 18:29:23 -04:00
Prajwal Moharana
5a4f04dcfc
Merge pull request #34 from cssgunc/emmafoster-backend-wip-GEN-114-user-services
Implement update and delete service methods and tests
2024-04-22 20:50:51 -04:00
pmoharana-cmd
682d6b4e26 Resolve pytest changes 2024-04-22 20:50:36 -04:00