Commit Graph

8 Commits

Author SHA1 Message Date
Jordan Knott
df6140a10f feat: change url structure to use short ids instead of full uuids 2021-11-04 14:08:30 -05:00
Jordan Knott
d5d85c5e30 refactor(magefile): update schema generator to use 0644 file permissions 2021-10-26 14:42:04 -05:00
Jordan Knott
cf63783174 refactor: split resolver into multiple files based on domain 2021-10-25 17:42:57 -05:00
Jordan Knott
04c12e4da9 feat: projects can be set to public 2021-04-30 22:55:37 -05:00
Jordan Knott
4277b7b2a8 feat: add personal projects
personal projects are projects that have no team.

they can only seen by the project members (one of which is whoever first
creates the project).
2020-09-19 20:23:16 -05:00
Jordan Knott
9dba566660 feat: add pre-commit hooks & refactor code to pass linting 2020-08-20 18:37:36 -05:00
Jordan Knott
e64f6f8569 feat: enforce user roles
enforces user admin role requirement for
- creating / deleting / setting role for organization users
- creating / deleting / setting role for project users
- updating project name
- deleting project

hides action elements based on role for
- admin console
- team settings if team is only visible through project membership
- add project tile if not team admin
- project name text editor if not team / project admin
- add redirect from team page if settings only visible through project
  membership
- add redirect from admin console if not org admin

role enforcement is handled on the api side through a custom GraphQL
directive `hasRole`. on the client side, role information is fetched in
the TopNavbar's `me` query and stored in the `UserContext`.

there is a custom hook, `useCurrentUser`, that provides a user object
with two functions, `isVisibile` & `isAdmin` which is used to check
roles in order to render/hide relevant UI elements.
2020-08-11 21:03:21 -05:00
Jordan Knott
e5d5e6da01 arch: move web folder into api & move api to top level 2020-07-04 18:08:37 -05:00