mirror of
https://github.com/makeplane/plane
synced 2024-06-14 14:31:34 +00:00
bef166a65f
* refractor: removed modules from user.context * refractor: removed cycles from user context * refractor: removed state from user context * feat: implement channel protocol for tracking issue-activites * refactor: remove blocking code and add todo * refactor: refactor the consumer with function modules * feat: add columns for identifiers for easier redirection * style: minor padding, coloring and consistency changes * feat: track blocker issues * feat: track issue after creation * feat: add runworker in procfile * refractor: moved all context provider to _app for more clarity * dev: added our icons * refractor: removed issues from user context * refactor: rename db names to plural and remove admin register file * refactor: integrate permission layer in endpoints * feat: create product email html templates * refractor: changed to getServerSide from getInitialProps, removed unused component imports and minor refractoring * feat: remirror added * feat: workspace member user details endpoint * fix: resolved build issue * refactor: remove www * feat: workspace details on user endpoint * feat: added authorization in project settings refractor: improved code readability * fix: removed hard-coded workspace slug value, and added workspace in user interface * refactor: invitation workflow for already existing users * feat: modified remirror, fix: issue details sidebar * fix: merge conflicts * fix: merge conflicts * fix: added missing dependencies * refactor: remove user dependency from invitations * refactor: issue description context is updated with manager * dev: redis instance rewrite for ssl settings and remove REDIS_TLS env variable * chore: upgrade python package requirements * dev: added new migrations for changes * dev: ssl config for django channels redis connection * chore: upgrade channels requirements * refactor: better function for connecting with redis ssl django channels * chore: cleanup on manifest file * revert: user endpoint changes * build: setup asgi * refactor: update invitation endpoint to do bulk operations * style: cycles page, custom listbox, issue details page * refractor: removed folder that were moved to workspaceSlug * dev: uvicorn in requirements * Update index.tsx * refactor: get workspace slug on user endpoint * fix: workspace slug redirections and slug value in user context * fix: user context bugs, drag and drop in cycles and modules * fix: merge conflicts * fix: user context and create issue modal * refactor: add extra columns for json and html description and script for back migrating old issues * refactor: move all 500 errors to 400 * refractor: removed active project, active workspace, projects, and workspaces from user context * refractor: change from /home to /, added home page redirection logic added explict GET method on fetch request, and fixed invitation page not fetching all invitations * fix: passing project id in command palette * style: home page, feat: image in remirror * fix: bugs * chore: remove test_runner workflow from github actions * dev: update Procfile worker count and python runtime upgrade * refactor: update response from 404 to 403 * feat: filtering using both name and issue identifier in command palette showing my issues instead of project issue in command palette, hiding again according to route in command palette * fix: mutation on different CRUD operations * fix: redirection in my issues pages * feat: added authorization in workspace settings, moved command palette to app-layout * feat: endpoint and column to store my issue props * style: authorization new design, fix: made whole button on authorization page clickable, lib/auth on unsuccessful api call redirecting to error page * feat: return project details on modules and cycles * fix: create cycle and state coming below issue modal, showing loader for rich text editor refractor: changed from sprint to cycle in issue type * fix: issue delete mustation and some code refractor * fix: mutation bugs, remirror bugs, style: consistent droopdowns and buttons * feat: user role in model * dev: added new migrations * fix: add url for workspace availability check * feat: onboarding screens * fix: update url for workspace name check and add authentication layer and fix invitation endpoint * refactor: bulk invitations message * refactor: response on workspace invitarions * refactor: update identifier endpoint * refactor: invitations endpoint * feat: onboarding logic and validations * fix: email striep * dev: added workspace space member unique_together * chore: back populate neccesary data for description field * feat: emoji-picker gets close on select, public will be default option in create project * fix: update error in project creation * fix: mutation error on issue count in kanban view some minor code refractoring * fix: module bugs * fix: issue activities and issue comments mutation handled at issue detail * fix: error message for creating updates without permissions * fix: showing no user left to invite in project invite fix: - mutation in project settings control, style: - showing loader in project settings controller, - showing request pending for user that hasn't accepted invitation * refactor: file asset upload directory * fix: update last workspace id on user invitation accept * style: onboarding screens * style: cycles, issue activity * feat: add json and html column in issue comments * fix: submitting create issue modal on enter click, project not getting deselected * feat: file size validator * fix: emoji picker not closing on all emoji select * feat: added validation in identifier such that it only accept uppercase text * dev: commenting is now richer * fix: shortcuts not getting opened in settings layouts * style: showing sidebar on unauthorized pages * fix: error code on exception * fix: add issue button is working on my issues pages * feat: new way of assets * fix: updated activity content for description field * fix: mutation on project settings control style: blocker and blocked changed to outline button * fix: description activity logging * refactor: check for workspace slug on workspace creation * fix: typo on workspace url check * fix: workspace name uniqueness * fix: remove workspace from read only field * fix: file upload endpoint, workspace slug check * chore: drop unique_together constraint for name and workspace * chore: settings files cleanup and use PubSub backend on django channels * chore: change in channels backend * refactor: issue activity api to combine comments * fix: instance created at key * fix: result list * style: create project, cycle modal, view dropdown * feat: merged issue activities and issue comments into a single section * fix: remirror dynamic update of issue description * fix: removed commented code * fix: issue acitivties mutation * fix: empty comments cant be submitted * fix: workspace avatar has been updated while loading * refactor: update docker-compose to run redis and database in heroku and docker environment * refactor: removesingle docker file configuration * refactor: update take off script to run in asgi * docs: added workspace, quickstart documentation * fix: reading editor values on focus out * refactor: cleanup environment variables and create .env.example * refactor: add extra variables in example env * fix: warning and erros on console lazy loading images with low priority, added validation on onboarding for user to either join or create workspace, on onboarding user can't click button while form is getting submitted, profile page going into loading state when updated, refractor: made some state local, removed unnecessary console logs and comments, changed some variable and function name to make more sence * feat: env examples * fix: workspace member does not exist * fi: remove pagination from issue list api * refactor: remove env example from root * feat: documentation for projects on plane * feat: create code of conduct and contributing guidelines * fix: update docker setup to check handle redis * revert: bring back pagination to avoid breaking * feat: made image uploader modal, used it in profile page and workspace page, delete project from project settings page, join project modal in project list page * feat: create workspace page, style: made ui consistent * style: updated onboarding and create workspace page design * style: responsive sidebar * fix: updated ui imports
150 lines
7.6 KiB
TypeScript
150 lines
7.6 KiB
TypeScript
// Base URLS
|
|
export const BASE_PROD = "https://api.plane.so";
|
|
export const BASE_STAGING = "https://api.plane.so";
|
|
export const BASE_LOCAL = "http://localhost:8000";
|
|
|
|
// authentication urls
|
|
export const SIGN_IN_ENDPOINT = "/api/sign-in/";
|
|
export const SIGN_UP_ENDPOINT = "/api/sign-up/";
|
|
export const SIGN_OUT_ENDPOINT = "/api/sign-out/";
|
|
export const SOCIAL_AUTH_ENDPOINT = "/api/social-auth/";
|
|
export const MAGIC_LINK_GENERATE = "/api/magic-generate/";
|
|
export const MAGIC_LINK_SIGNIN = "/api/magic-sign-in/";
|
|
|
|
// user
|
|
export const USER_ENDPOINT = "/api/users/me/";
|
|
export const CHANGE_PASSWORD = "/api/users/me/change-password/";
|
|
export const USER_ONBOARD_ENDPOINT = "/api/users/me/onboard/";
|
|
export const USER_ISSUES_ENDPOINT = (workspaceSlug: string) =>
|
|
`/api/workspaces/${workspaceSlug}/my-issues/`;
|
|
export const USER_WORKSPACES = "/api/users/me/workspaces";
|
|
|
|
// s3 file url
|
|
export const S3_URL = (workspaceSlug: string) => `/api/workspaces/${workspaceSlug}/file-assets/`;
|
|
|
|
// LIST USER INVITATIONS ---- RESPOND INVITATIONS IN BULK
|
|
export const USER_WORKSPACE_INVITATIONS = "/api/users/me/invitations/workspaces/";
|
|
export const USER_PROJECT_INVITATIONS = "/api/users/me/invitations/projects/";
|
|
export const LAST_ACTIVE_WORKSPACE_AND_PROJECTS = "/api/users/last-visited-workspace/";
|
|
export const USER_WORKSPACE_INVITATION = (invitationId: string) =>
|
|
`/api/users/me/invitations/${invitationId}/`;
|
|
|
|
export const JOIN_WORKSPACE = (workspaceSlug: string, invitationId: string) =>
|
|
`/api/users/me/invitations/workspaces/${workspaceSlug}/${invitationId}/join/`;
|
|
export const JOIN_PROJECT = (workspaceSlug: string) =>
|
|
`/api/workspaces/${workspaceSlug}/projects/join/`;
|
|
|
|
// workspaces
|
|
export const WORKSPACES_ENDPOINT = "/api/workspaces/";
|
|
export const WORKSPACE_DETAIL = (workspaceSlug: string) => `/api/workspaces/${workspaceSlug}/`;
|
|
export const WORKSPACE_SLUG_CHECK = (slug: string) => `/api/workspace-slug-check/?slug=${slug}`;
|
|
|
|
export const INVITE_WORKSPACE = (workspaceSlug: string) =>
|
|
`/api/workspaces/${workspaceSlug}/invite/`;
|
|
|
|
export const WORKSPACE_MEMBERS = (workspaceSlug: string) =>
|
|
`/api/workspaces/${workspaceSlug}/members/`;
|
|
export const WORKSPACE_MEMBER_DETAIL = (workspaceSlug: string, memberId: string) =>
|
|
`/api/workspaces/${workspaceSlug}/members/${memberId}/`;
|
|
export const WORKSPACE_MEMBER_ME = (workspaceSlug: string) =>
|
|
`/api/workspaces/${workspaceSlug}/workspace-members/me/`;
|
|
|
|
export const WORKSPACE_INVITATIONS = (workspaceSlug: string) =>
|
|
`/api/workspaces/${workspaceSlug}/invitations/`;
|
|
export const WORKSPACE_INVITATION_DETAIL = (workspaceSlug: string, invitationId: string) =>
|
|
`/api/workspaces/${workspaceSlug}/invitations/${invitationId}/`;
|
|
|
|
// projects
|
|
export const PROJECTS_ENDPOINT = (workspaceSlug: string) =>
|
|
`/api/workspaces/${workspaceSlug}/projects/`;
|
|
export const PROJECT_DETAIL = (workspaceSlug: string, projectId: string) =>
|
|
`/api/workspaces/${workspaceSlug}/projects/${projectId}/`;
|
|
|
|
export const INVITE_PROJECT = (workspaceSlug: string, projectId: string) =>
|
|
`/api/workspaces/${workspaceSlug}/projects/${projectId}/members/add/`;
|
|
|
|
export const PROJECT_MEMBERS = (workspaceSlug: string, projectId: string) =>
|
|
`/api/workspaces/${workspaceSlug}/projects/${projectId}/members/`;
|
|
export const PROJECT_MEMBER_DETAIL = (workspaceSlug: string, projectId: string, memberId: string) =>
|
|
`/api/workspaces/${workspaceSlug}/projects/${projectId}/members/${memberId}/`;
|
|
export const PROJECT_MEMBER_ME = (workspaceSlug: string, projectId: string) =>
|
|
`/api/workspaces/${workspaceSlug}/projects/${projectId}/project-members/me/`;
|
|
export const PROJECT_VIEW_ENDPOINT = (workspaceSlug: string, projectId: string) =>
|
|
`/api/workspaces/${workspaceSlug}/projects/${projectId}/project-views/`;
|
|
|
|
export const PROJECT_INVITATIONS = (workspaceSlug: string, projectId: string) =>
|
|
`/api/workspaces/${workspaceSlug}/projects/${projectId}/invitations/`;
|
|
export const PROJECT_INVITATION_DETAIL = (
|
|
workspaceSlug: string,
|
|
projectId: string,
|
|
invitationId: string
|
|
) => `/api/workspaces/${workspaceSlug}/projects/${projectId}/invitations/${invitationId}/`;
|
|
|
|
export const CHECK_PROJECT_IDENTIFIER = (workspaceSlug: string) =>
|
|
`/api/workspaces/${workspaceSlug}/project-identifiers`;
|
|
|
|
// issues
|
|
export const ISSUES_ENDPOINT = (workspaceSlug: string, projectId: string) =>
|
|
`/api/workspaces/${workspaceSlug}/projects/${projectId}/issues/`;
|
|
export const ISSUE_DETAIL = (workspaceSlug: string, projectId: string, issueId: string) =>
|
|
`/api/workspaces/${workspaceSlug}/projects/${projectId}/issues/${issueId}/`;
|
|
export const ISSUES_BY_STATE = (workspaceSlug: string, projectId: string) =>
|
|
`/api/workspaces/${workspaceSlug}/projects/${projectId}/issues/?group_by=state`;
|
|
export const ISSUE_PROPERTIES_ENDPOINT = (workspaceSlug: string, projectId: string) =>
|
|
`/api/workspaces/${workspaceSlug}/projects/${projectId}/issue-properties/`;
|
|
export const ISSUE_COMMENTS = (workspaceSlug: string, projectId: string, issueId: string) =>
|
|
`/api/workspaces/${workspaceSlug}/projects/${projectId}/issues/${issueId}/comments/`;
|
|
export const ISSUE_COMMENT_DETAIL = (
|
|
workspaceSlug: string,
|
|
projectId: string,
|
|
issueId: string,
|
|
commentId: string
|
|
) =>
|
|
`/api/workspaces/${workspaceSlug}/projects/${projectId}/issues/${issueId}/comments/${commentId}/`;
|
|
export const ISSUE_ACTIVITIES = (workspaceSlug: string, projectId: string, issueId: string) =>
|
|
`/api/workspaces/${workspaceSlug}/projects/${projectId}/issues/${issueId}/history/`;
|
|
|
|
export const ISSUE_LABELS = (workspaceSlug: string, projectId: string) =>
|
|
`/api/workspaces/${workspaceSlug}/projects/${projectId}/issue-labels/`;
|
|
export const ISSUE_LABEL_DETAILS = (workspaceSlug: string, projectId: string, labelId: string) =>
|
|
`/api/workspaces/${workspaceSlug}/projects/${projectId}/issue-labels/${labelId}/`;
|
|
|
|
export const FILTER_STATE_ISSUES = (workspaceSlug: string, projectId: string, state: string) =>
|
|
`/api/workspaces/${workspaceSlug}/projects/${projectId}/issues/?state=${state}`;
|
|
export const BULK_DELETE_ISSUES = (workspaceSlug: string, projectId: string) =>
|
|
`/api/workspaces/${workspaceSlug}/projects/${projectId}/bulk-delete-issues/`;
|
|
|
|
// states
|
|
export const STATES_ENDPOINT = (workspaceSlug: string, projectId: string) =>
|
|
`/api/workspaces/${workspaceSlug}/projects/${projectId}/states/`;
|
|
export const STATE_DETAIL = (workspaceSlug: string, projectId: string, stateId: string) =>
|
|
`/api/workspaces/${workspaceSlug}/projects/${projectId}/states/${stateId}/`;
|
|
|
|
// CYCLES
|
|
export const CYCLES_ENDPOINT = (workspaceSlug: string, projectId: string) =>
|
|
`/api/workspaces/${workspaceSlug}/projects/${projectId}/cycles/`;
|
|
export const CYCLE_DETAIL = (workspaceSlug: string, projectId: string, cycleId: string) =>
|
|
`/api/workspaces/${workspaceSlug}/projects/${projectId}/cycles/${cycleId}/cycle-issues/`;
|
|
export const REMOVE_ISSUE_FROM_CYCLE = (
|
|
workspaceSlug: string,
|
|
projectId: string,
|
|
cycleId: string,
|
|
bridgeId: string
|
|
) =>
|
|
`/api/workspaces/${workspaceSlug}/projects/${projectId}/cycles/${cycleId}/cycle-issues/${bridgeId}/`;
|
|
|
|
// modules
|
|
export const MODULES_ENDPOINT = (workspaceSlug: string, projectId: string) =>
|
|
`/api/workspaces/${workspaceSlug}/projects/${projectId}/modules/`;
|
|
export const MODULE_DETAIL = (workspaceSlug: string, projectId: string, moduleId: string) =>
|
|
`/api/workspaces/${workspaceSlug}/projects/${projectId}/modules/${moduleId}/`;
|
|
export const MODULE_ISSUES = (workspaceSlug: string, projectId: string, moduleId: string) =>
|
|
`/api/workspaces/${workspaceSlug}/projects/${projectId}/modules/${moduleId}/module-issues/`;
|
|
export const MODULE_ISSUE_DETAIL = (
|
|
workspaceSlug: string,
|
|
projectId: string,
|
|
moduleId: string,
|
|
bridgeId: string
|
|
) =>
|
|
`/api/workspaces/${workspaceSlug}/projects/${projectId}/modules/${moduleId}/module-issues/${bridgeId}/`;
|