Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

dev: promote stage release to production #155

Merged
merged 266 commits into from
Jan 10, 2023
Merged
Show file tree
Hide file tree
Changes from 4 commits
Commits
Show all changes
266 commits
Select commit Hold shift + click to select a range
b62c464
Merge branch 'stage-release' of github.com:makeplane/plane into refac…
pablohashescobar Dec 27, 2022
0ebe406
refractor: removed modules from user.context
dakshesh14 Dec 27, 2022
27989be
refractor: removed cycles from user context
dakshesh14 Dec 27, 2022
aa2cbf5
refractor: removed state from user context
dakshesh14 Dec 27, 2022
fd2b97f
feat: implement channel protocol for tracking issue-activites
pablohashescobar Dec 27, 2022
29c7c1e
refactor: remove blocking code and add todo
pablohashescobar Dec 27, 2022
be5f238
refactor: refactor the consumer with function modules
pablohashescobar Dec 28, 2022
b7e4d9e
feat: add columns for identifiers for easier redirection
pablohashescobar Dec 28, 2022
116775c
style: minor padding, coloring and consistency changes
dakshesh14 Dec 28, 2022
ae2b347
feat: track blocker issues
pablohashescobar Dec 28, 2022
a0d3780
resolved merge conflict
dakshesh14 Dec 28, 2022
3552b96
feat: track issue after creation
pablohashescobar Dec 28, 2022
4b915b2
feat: add runworker in procfile
pablohashescobar Dec 29, 2022
3e13035
refractor: moved all context provider to _app for more clarity
dakshesh14 Dec 30, 2022
38de833
dev: added our icons
dakshesh14 Dec 30, 2022
1c592bf
refractor: removed issues from user context
dakshesh14 Dec 30, 2022
67740c5
refactor: rename db names to plural and remove admin register file
pablohashescobar Jan 2, 2023
b5dce00
Merge pull request #74 from dakshesh14/main
vamsi Jan 2, 2023
d4330f7
refactor: integrate permission layer in endpoints
pablohashescobar Jan 2, 2023
e9ba712
feat: create product email html templates
pablohashescobar Jan 2, 2023
5af103f
refractor: changed to getServerSide from getInitialProps, removed unu…
dakshesh14 Jan 2, 2023
19f5879
feat: remirror added
aaryan610 Jan 2, 2023
cc998eb
feat: workspace member user details endpoint
pablohashescobar Jan 2, 2023
ee04405
Merge pull request #81 from dakshesh14/stage
sriramveeraghanta Jan 2, 2023
d248601
fix: merge conflicts
venplane Jan 2, 2023
f9caac2
Merge pull request #84 from aaryan610/stage-release
vihar Jan 2, 2023
74fe4b7
fix: resolved build issue
venplane Jan 2, 2023
410f795
Merge pull request #85 from venplane/stage-release
venplane Jan 2, 2023
31e9d59
refactor: remove www
pablohashescobar Jan 2, 2023
707850c
Merge pull request #86 from pablohashescobar/refactor/remove_www
vihar Jan 2, 2023
9a7ee7c
feat: workspace details on user endpoint
pablohashescobar Jan 3, 2023
be795ad
feat: added authorization in project settings
dakshesh14 Jan 3, 2023
fb234f5
fix: removed hard-coded workspace slug value, and added workspace in …
dakshesh14 Jan 3, 2023
c0d6a29
refactor: invitation workflow for already existing users
pablohashescobar Jan 3, 2023
c3524a2
feat: modified remirror, fix: issue details sidebar
aaryan610 Jan 3, 2023
c6794de
Merge pull request #90 from aaryan610/master
vihar Jan 3, 2023
0c64415
fix: merge conflicts
aaryan610 Jan 3, 2023
11add2a
fix: merge conflicts
aaryan610 Jan 3, 2023
0d7c0b9
Merge pull request #91 from aaryan610/master
venplane Jan 3, 2023
d91ee89
fix: added missing dependencies
venplane Jan 3, 2023
ab47c76
Merge pull request #92 from venplane/stage-release
vihar Jan 3, 2023
0d3d6eb
Merge pull request #71 from pablohashescobar/feat/module_links
vamsi Jan 3, 2023
0b46ee5
Merge pull request #72 from pablohashescobar/fix/issue_modules
vamsi Jan 3, 2023
c84658a
Merge pull request #75 from pablohashescobar/refactor/issue_activities
vamsi Jan 3, 2023
ba5d2e9
Merge pull request #78 from pablohashescobar/refactor/models
vamsi Jan 3, 2023
2354e86
Merge pull request #79 from pablohashescobar/refactor/permission_layer
vamsi Jan 3, 2023
3b5cd27
Merge pull request #80 from pablohashescobar/feat/product_emails
vamsi Jan 3, 2023
830375c
refactor: remove user dependency from invitations
pablohashescobar Jan 3, 2023
c040444
Merge branch 'stage-release' of github.com:makeplane/plane into refac…
pablohashescobar Jan 3, 2023
15d15dd
Merge branch 'stage-release' of github.com:makeplane/plane into feat/…
pablohashescobar Jan 3, 2023
b0f2035
Merge pull request #83 from pablohashescobar/feat/workspace_member_en…
vamsi Jan 3, 2023
8c65e87
Merge pull request #87 from pablohashescobar/feat/user_endpoint_works…
vamsi Jan 3, 2023
c5b39d6
Merge pull request #89 from pablohashescobar/refactor/invitation_work…
vamsi Jan 3, 2023
b0d3b2e
refactor: issue description context is updated with manager
venplane Jan 3, 2023
b0ac248
dev: redis instance rewrite for ssl settings and remove REDIS_TLS env…
vamsi Jan 3, 2023
6c8cf66
chore: upgrade python package requirements
vamsi Jan 3, 2023
8d1a39f
dev: added new migrations for changes
vamsi Jan 3, 2023
78d0033
dev: ssl config for django channels redis connection
vamsi Jan 3, 2023
701aeac
chore: upgrade channels requirements
vamsi Jan 3, 2023
87ace28
refactor: better function for connecting with redis ssl django channels
vamsi Jan 3, 2023
138b663
chore: cleanup on manifest file
vamsi Jan 3, 2023
d17431e
revert: user endpoint changes
pablohashescobar Jan 4, 2023
9fe487d
Merge pull request #93 from venplane/stage-release
sriramveeraghanta Jan 4, 2023
1911ba5
build: setup asgi
pablohashescobar Jan 4, 2023
eb06b12
refactor: update invitation endpoint to do bulk operations
pablohashescobar Jan 4, 2023
6e379f4
style: cycles page, custom listbox, issue details page
aaryan610 Jan 4, 2023
e0d0e2f
refractor: changed routing
dakshesh14 Jan 4, 2023
a2a3ce8
Merge branch 'stage-release' of https://github.com/makeplane/plane in…
dakshesh14 Jan 4, 2023
a43fd18
refractor: removed folder that were moved to workspaceSlug
dakshesh14 Jan 4, 2023
fc3cd67
Merge pull request #88 from dakshesh14/stage
venplane Jan 4, 2023
9209ce5
fix: merge conflicts
aaryan610 Jan 4, 2023
f5fe719
Merge pull request #97 from aaryan610/master
venplane Jan 4, 2023
36885b8
Merge pull request #94 from pablohashescobar/revert/workspace_members
vamsi Jan 4, 2023
3296689
Merge pull request #95 from pablohashescobar/build/asgi_setup
vamsi Jan 4, 2023
c4dcb2e
dev: uvicorn in requirements
vamsi Jan 4, 2023
7fd7b7b
Update index.tsx
venplane Jan 4, 2023
97010f7
Merge pull request #98 from venplane/stage-release
vamsi Jan 4, 2023
5eda48d
Merge branch 'stage-release' of https://github.com/venplane/plane int…
venplane Jan 4, 2023
33d0d9c
refactor: get workspace slug on user endpoint
pablohashescobar Jan 4, 2023
a35b4b4
Merge pull request #99 from pablohashescobar/refactor/workspace_slug_…
vamsi Jan 4, 2023
7831e29
Merge branch 'stage-release' of https://github.com/makeplane/plane in…
vamsi Jan 4, 2023
dbb8ce6
fix: workspace slug redirections and slug value in user context
venplane Jan 4, 2023
5160381
Merge branch 'stage-release' of https://github.com/makeplane/plane in…
venplane Jan 4, 2023
bc63aea
Merge pull request #100 from venplane/stage-release
vamsi Jan 5, 2023
1b8d08b
fix: user context bugs, drag and drop in cycles and modules
aaryan610 Jan 5, 2023
891779a
fix: merge conflicts
aaryan610 Jan 5, 2023
b647b01
fix: user context and create issue modal
aaryan610 Jan 5, 2023
1856613
Merge pull request #101 from aaryan610/master
vamsi Jan 5, 2023
a2b1851
refactor: add extra columns for json and html description and script …
pablohashescobar Jan 5, 2023
6847352
refactor: move all 500 errors to 400
pablohashescobar Jan 5, 2023
f718bed
refractor: removed active project, active workspace, projects, and wo…
dakshesh14 Jan 5, 2023
a240b97
refractor: change from /home to /, added home page redirection logic
dakshesh14 Jan 5, 2023
21f5e34
fix: passing project id in command palette
dakshesh14 Jan 5, 2023
038abf2
style: home page, feat: image in remirror
aaryan610 Jan 5, 2023
6c770a3
Merge pull request #104 from dakshesh14/stage
vamsi Jan 5, 2023
9da163c
fix: merge conflicts
aaryan610 Jan 5, 2023
80cae76
Merge pull request #105 from aaryan610/master
vamsi Jan 5, 2023
54abc9a
fix: bugs
aaryan610 Jan 5, 2023
9129a11
Merge pull request #106 from aaryan610/master
vamsi Jan 5, 2023
91b98ef
Merge branch 'stage-release' of https://github.com/makeplane/plane in…
vamsi Jan 5, 2023
5487c48
chore: remove test_runner workflow from github actions
vamsi Jan 5, 2023
e291df5
dev: update Procfile worker count and python runtime upgrade
vamsi Jan 5, 2023
618b69c
refactor: update response from 404 to 403
pablohashescobar Jan 6, 2023
e86e0b8
feat: filtering using both name and issue identifier in command palette
dakshesh14 Jan 6, 2023
0ce2ee8
fix: mutation on different CRUD operations
dakshesh14 Jan 6, 2023
c1a9438
fix: redirection in my issues pages
dakshesh14 Jan 6, 2023
322f247
feat: added authorization in workspace settings, moved command palett…
dakshesh14 Jan 6, 2023
800e57c
feat: endpoint and column to store my issue props
pablohashescobar Jan 6, 2023
17d8b80
style: authorization new design,
dakshesh14 Jan 6, 2023
e75283e
Merge pull request #108 from dakshesh14/stage
vihar Jan 6, 2023
98a8a58
feat: return project details on modules and cycles
pablohashescobar Jan 6, 2023
bbf364f
fix: create cycle and state coming below issue modal, showing loader …
dakshesh14 Jan 6, 2023
124a42a
fix: issue delete mustation
dakshesh14 Jan 6, 2023
c7e78ee
Merge pull request #110 from dakshesh14/stage
pablohashescobar Jan 6, 2023
2099a98
fix: mutation bugs, remirror bugs, style: consistent droopdowns and b…
aaryan610 Jan 6, 2023
f35ec15
Merge pull request #111 from aaryan610/master
vamsi Jan 6, 2023
ad58a07
feat: user role in model
pablohashescobar Jan 6, 2023
8a828c5
Merge pull request #96 from pablohashescobar/refactor/bulk_invitations
vamsi Jan 6, 2023
391513b
Merge pull request #103 from pablohashescobar/refactor/update_500_400
vamsi Jan 6, 2023
b1cb887
Merge pull request #107 from pablohashescobar/feat/workspace_my_issue…
vamsi Jan 6, 2023
ef4be39
Merge pull request #109 from pablohashescobar/feat/projects_modules_c…
vamsi Jan 6, 2023
b3c4613
Merge pull request #112 from pablohashescobar/feat/user_role
vamsi Jan 6, 2023
3c6b0e9
Merge pull request #102 from pablohashescobar/feat/json_html_columns
vamsi Jan 6, 2023
10cf8f7
dev: added new migrations
vamsi Jan 6, 2023
090247e
fix: add url for workspace availability check
pablohashescobar Jan 6, 2023
7f75600
Merge pull request #113 from pablohashescobar/fix/workspace_check_url
vamsi Jan 6, 2023
b13fe87
feat: onboarding screens
aaryan610 Jan 6, 2023
0158485
Merge pull request #114 from aaryan610/master
vihar Jan 6, 2023
7c3b171
fix: update url for workspace name check and add authentication layer…
pablohashescobar Jan 6, 2023
ddc251c
refactor: bulk invitations message
pablohashescobar Jan 6, 2023
3366983
refactor: response on workspace invitarions
pablohashescobar Jan 6, 2023
0fc073b
refactor: update identifier endpoint
pablohashescobar Jan 6, 2023
8e95912
refactor: invitations endpoint
pablohashescobar Jan 6, 2023
7f0b060
feat: onboarding logic and validations
venplane Jan 6, 2023
740416d
Merge pull request #116 from venplane/stage-release
vihar Jan 6, 2023
04f5107
fix: email striep
pablohashescobar Jan 6, 2023
29cfa5e
Merge pull request #115 from pablohashescobar/fix/workspace_urls_invi…
vamsi Jan 7, 2023
0a48d22
dev: added workspace space member unique_together
vamsi Jan 7, 2023
05650a0
chore: back populate neccesary data for description field
vamsi Jan 7, 2023
67acea4
feat: emoji-picker gets close on select, public will be default optio…
dakshesh14 Jan 7, 2023
3d16250
fix: update error in project creation
pablohashescobar Jan 7, 2023
8e8f924
fix: mutation error on issue count in kanban view
dakshesh14 Jan 7, 2023
bcf42da
fix: module bugs
aaryan610 Jan 7, 2023
68437c2
fix: issue activities and issue comments mutation handled at issue de…
venplane Jan 7, 2023
f2e72dd
Merge pull request #118 from dakshesh14/stage
vamsi Jan 7, 2023
b79f2d1
fix: merge conflicts
aaryan610 Jan 7, 2023
af981a5
Merge pull request #119 from aaryan610/master
vamsi Jan 7, 2023
5b37612
Merge branch 'stage-release' of https://github.com/makeplane/plane in…
venplane Jan 7, 2023
1173ac5
fix: error message for creating updates without permissions
venplane Jan 7, 2023
d6b9df9
fix: showing no user left to invite in project invite
dakshesh14 Jan 7, 2023
d1eec29
Merge pull request #120 from venplane/stage-release
vamsi Jan 7, 2023
a32ca04
Merge pull request #121 from dakshesh14/stage
vamsi Jan 7, 2023
2e3abb1
refactor: file asset upload directory
pablohashescobar Jan 7, 2023
ea5c74d
fix: update last workspace id on user invitation accept
pablohashescobar Jan 7, 2023
21a61f4
style: onboarding screens
aaryan610 Jan 7, 2023
f45e38b
Merge pull request #124 from aaryan610/master
vamsi Jan 7, 2023
1a04bdf
style: cycles, issue activity
aaryan610 Jan 7, 2023
fa2d4c1
feat: add json and html column in issue comments
pablohashescobar Jan 7, 2023
993d4a4
Merge pull request #125 from aaryan610/master
vamsi Jan 7, 2023
5e79d25
fix: submitting create issue modal on enter click, project not gettin…
dakshesh14 Jan 7, 2023
87847a2
feat: file size validator
pablohashescobar Jan 7, 2023
35917e0
fix: emoji picker not closing on all emoji select
dakshesh14 Jan 7, 2023
3b37c3f
feat: added validation in identifier such that it only accept upperca…
dakshesh14 Jan 7, 2023
ff2f7c9
Merge pull request #123 from pablohashescobar/fix/last_workspace_on_i…
vamsi Jan 7, 2023
90a02e0
Merge pull request #126 from pablohashescobar/feat/issue_comments_json
vamsi Jan 7, 2023
76d9054
Merge pull request #117 from pablohashescobar/fix/project_name
vamsi Jan 7, 2023
c6ac64d
dev: commenting is now richer
vamsi Jan 7, 2023
c36c6c5
fix: shortcuts not getting opened in settings layouts
dakshesh14 Jan 7, 2023
da02acb
style: showing sidebar on unauthorized pages
dakshesh14 Jan 7, 2023
038720e
fix: error code on exception
pablohashescobar Jan 7, 2023
0c5326a
fix: add issue button is working on my issues pages
dakshesh14 Jan 7, 2023
22bda70
Merge pull request #122 from pablohashescobar/refactor/s3_uploads
vamsi Jan 7, 2023
a2d5b58
feat: new way of assets
vamsi Jan 7, 2023
535f00c
fix: updated activity content for description field
venplane Jan 7, 2023
a935563
Merge branch 'stage-release' of https://github.com/makeplane/plane in…
venplane Jan 7, 2023
d1a3b17
fix: mutation on project settings control
dakshesh14 Jan 7, 2023
4b45bc0
Merge pull request #127 from dakshesh14/stage
vamsi Jan 7, 2023
7800967
fix: description activity logging
pablohashescobar Jan 7, 2023
c1791bf
refactor: check for workspace slug on workspace creation
pablohashescobar Jan 7, 2023
dda5691
Merge pull request #129 from pablohashescobar/refactor/workspace_chec…
pablohashescobar Jan 7, 2023
1ccd59e
Merge pull request #128 from pablohashescobar/fix/description_issue_a…
pablohashescobar Jan 7, 2023
fbd1224
fix: typo on workspace url check
pablohashescobar Jan 7, 2023
62bd4d6
Merge pull request #130 from pablohashescobar/refactor/workspace_chec…
pablohashescobar Jan 7, 2023
7a9f758
fix: workspace name uniqueness
pablohashescobar Jan 7, 2023
feb94ee
Merge pull request #131 from pablohashescobar/fix/workspace_name_uniq…
pablohashescobar Jan 7, 2023
4773ded
fix: remove workspace from read only field
pablohashescobar Jan 7, 2023
0c7c77f
Merge pull request #132 from pablohashescobar/fix/workspace_slug
pablohashescobar Jan 7, 2023
4ef6e4f
fix: file upload endpoint, workspace slug check
aaryan610 Jan 7, 2023
f73a25e
Merge pull request #133 from aaryan610/master
pablohashescobar Jan 7, 2023
2ac2208
chore: drop unique_together constraint for name and workspace
vamsi Jan 7, 2023
dda3979
chore: settings files cleanup and use PubSub backend on django channels
vamsi Jan 7, 2023
ac2155a
chore: change in channels backend
vamsi Jan 7, 2023
a173662
feat: using remirror for comments create/update
venplane Jan 7, 2023
d4fc291
refactor: issue activity api to combine comments
pablohashescobar Jan 7, 2023
a210a7b
fix: instance created at key
pablohashescobar Jan 7, 2023
39c154f
fix: result list
pablohashescobar Jan 7, 2023
1cf3d1c
style: create project, cycle modal, view dropdown
aaryan610 Jan 8, 2023
1f3535b
Merge pull request #135 from aaryan610/master
vamsi Jan 8, 2023
a7f3135
feat: merged issue activities and issue comments into a single section
venplane Jan 8, 2023
4839625
fix: remirror dynamic update of issue description
venplane Jan 8, 2023
b380e62
Merge branch 'stage-release' of https://github.com/makeplane/plane in…
venplane Jan 8, 2023
8e2a608
fix: removed commented code
venplane Jan 8, 2023
67dd2e2
Merge pull request #136 from venplane/stage-release
venplane Jan 8, 2023
b07689d
Merge pull request #134 from pablohashescobar/refactor/activity_api
pablohashescobar Jan 8, 2023
fa2fd95
fix: issue acitivties mutation
venplane Jan 8, 2023
5cfe30a
Merge branch 'stage-release' of https://github.com/makeplane/plane in…
venplane Jan 8, 2023
6e746fe
Merge pull request #137 from venplane/stage-release
venplane Jan 8, 2023
74215f1
fix: empty comments cant be submitted
venplane Jan 8, 2023
09b6bb0
Merge branch 'stage-release' of https://github.com/makeplane/plane in…
venplane Jan 8, 2023
b1003e1
Merge pull request #138 from venplane/stage-release
vamsi Jan 8, 2023
14de27a
fix: workspace avatar has been updated while loading
venplane Jan 8, 2023
5f75c55
Merge branch 'stage-release' of https://github.com/makeplane/plane in…
venplane Jan 8, 2023
ee10629
refactor: update docker-compose to run redis and database in heroku a…
pablohashescobar Jan 8, 2023
8f35e87
refactor: removesingle docker file configuration
pablohashescobar Jan 8, 2023
fc1b54a
refactor: update take off script to run in asgi
pablohashescobar Jan 8, 2023
81ce49e
docs: added workspace, quickstart documentation
pablohashescobar Jan 8, 2023
ea32401
Merge pull request #142 from pablohashescobar/docs-v0.1
vihar Jan 8, 2023
5e54ef4
fix: reading editor values on focus out
venplane Jan 8, 2023
b539c54
Merge branch 'stage-release' of https://github.com/makeplane/plane in…
venplane Jan 8, 2023
580de70
refactor: cleanup environment variables and create .env.example
pablohashescobar Jan 9, 2023
71e0fc7
refactor: add extra variables in example env
pablohashescobar Jan 9, 2023
b59b676
fix: warning and erros on console
dakshesh14 Jan 9, 2023
650ae41
Merge pull request #139 from venplane/stage-release
vihar Jan 9, 2023
a602bfc
feat: env examples
pablohashescobar Jan 9, 2023
6413b85
fix: workspace member does not exist
pablohashescobar Jan 9, 2023
fcd2895
fi: remove pagination from issue list api
pablohashescobar Jan 9, 2023
591b787
Merge pull request #143 from dakshesh14/stage
venplane Jan 9, 2023
c4f1804
refactor: remove env example from root
pablohashescobar Jan 9, 2023
4ed62de
Merge pull request #141 from pablohashescobar/refactor/docker
pablohashescobar Jan 9, 2023
7a98dd2
feat: documentation for projects on plane
pablohashescobar Jan 9, 2023
7f3a01a
Merge branch 'stage-release' of github.com:makeplane/plane into feat/…
pablohashescobar Jan 9, 2023
1644b4a
Merge pull request #147 from pablohashescobar/feat/docs
vihar Jan 9, 2023
577fe3c
feat: create code of conduct and contributing guidelines
pablohashescobar Jan 10, 2023
9692ae2
Merge pull request #146 from pablohashescobar/fix/workspace_issue_pag…
vamsi Jan 10, 2023
23f54dc
Merge pull request #148 from pablohashescobar/feat/code_contributing
vamsi Jan 10, 2023
79f3cb8
fix: update docker setup to check handle redis
pablohashescobar Jan 10, 2023
9d6736e
revert: bring back pagination to avoid breaking
pablohashescobar Jan 10, 2023
069607f
Merge pull request #150 from pablohashescobar/revert/project_issue_pa…
vamsi Jan 10, 2023
385e04c
Merge pull request #149 from pablohashescobar/fix/docker_setup
vamsi Jan 10, 2023
d3fa487
feat: made image uploader modal, used it in profile page and workspac…
dakshesh14 Jan 10, 2023
a6c5fcd
feat: create workspace page, style: made ui consistent
aaryan610 Jan 10, 2023
56fdd27
style: updated onboarding and create workspace page design
aaryan610 Jan 10, 2023
5b2053b
Merge pull request #152 from aaryan610/master
vamsi Jan 10, 2023
64a5f9a
Merge branch 'stage-release' into stage
aaryan610 Jan 10, 2023
c04a73b
Merge pull request #151 from dakshesh14/stage
vamsi Jan 10, 2023
c74bda9
style: responsive sidebar
aaryan610 Jan 10, 2023
327abf6
Merge pull request #153 from aaryan610/master
vamsi Jan 10, 2023
04f9ef4
fix: updated ui imports
aaryan610 Jan 10, 2023
b7b1dd9
Merge pull request #154 from aaryan610/master
vamsi Jan 10, 2023
5c85f5a
Merge branch 'master' into stage-release
vamsi Jan 10, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions apps/app/components/command-palette/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,9 @@ const CommandPalette: React.FC = () => {
);

const router = useRouter();

const {
query: { workspaceSlug },
} = router;
const { toggleCollapsed } = useTheme();

const { setToastAlert } = useToast();
Expand Down Expand Up @@ -245,7 +247,7 @@ const CommandPalette: React.FC = () => {
htmlFor={`issue-${issue.id}`}
value={{
name: issue.name,
url: `/projects/${issue.project}/issues/${issue.id}`,
url: `/${workspaceSlug}/projects/${issue.project}/issues/${issue.id}`,
}}
className={({ active }) =>
classNames(
Expand Down
7 changes: 6 additions & 1 deletion apps/app/components/common/board-view/single-issue.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import React from "react";
// next
import Link from "next/link";
import Image from "next/image";
import { useRouter } from "next/router";
// swr
import useSWR from "swr";
// react-beautiful-dnd
Expand Down Expand Up @@ -55,6 +56,10 @@ const SingleBoardIssue: React.FC<Props> = ({
partialUpdateIssue,
}) => {
const { activeProject, activeWorkspace } = useUser();
const router = useRouter();
const {
query: { workspaceSlug },
} = router;

const { data: issues } = useSWR<IssueResponse>(
activeWorkspace && activeProject
Expand Down Expand Up @@ -92,7 +97,7 @@ const SingleBoardIssue: React.FC<Props> = ({
</button>
</div>
)}
<Link href={`/projects/${issue.project}/issues/${issue.id}`}>
<Link href={`/${workspaceSlug}/projects/${issue.project}/issues/${issue.id}`}>
<a>
{properties.key && (
<div className="mb-2 text-xs font-medium text-gray-500">
Expand Down
10 changes: 9 additions & 1 deletion apps/app/components/common/bulk-delete-issues-modal.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
// react
import React, { useState } from "react";
// next
import { useRouter } from "next/router";
// swr
import useSWR, { mutate } from "swr";
// react hook form
Expand Down Expand Up @@ -35,6 +37,12 @@ type Props = {
const BulkDeleteIssuesModal: React.FC<Props> = ({ isOpen, setIsOpen }) => {
const [query, setQuery] = useState("");

const router = useRouter();

const {
query: { workspaceSlug },
} = router;

const { activeWorkspace, activeProject } = useUser();

const { data: issues } = useSWR(
Expand Down Expand Up @@ -164,7 +172,7 @@ const BulkDeleteIssuesModal: React.FC<Props> = ({ isOpen, setIsOpen }) => {
htmlFor={`issue-${issue.id}`}
value={{
name: issue.name,
url: `/projects/${issue.project}/issues/${issue.id}`,
url: `/${workspaceSlug}/projects/${issue.project}/issues/${issue.id}`,
}}
className={({ active }) =>
classNames(
Expand Down
9 changes: 8 additions & 1 deletion apps/app/components/common/list-view/single-issue.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
// next
import Link from "next/link";
import { useRouter } from "next/router";
// swr
import useSWR from "swr";
// hooks
Expand Down Expand Up @@ -40,6 +41,12 @@ const SingleListIssue: React.FC<Props> = ({
}) => {
const { activeWorkspace, activeProject } = useUser();

const router = useRouter();

const {
query: { workspaceSlug },
} = router;

const { data: issues } = useSWR<IssueResponse>(
activeWorkspace && activeProject
? PROJECT_ISSUES_LIST(activeWorkspace.slug, activeProject.id)
Expand All @@ -63,7 +70,7 @@ const SingleListIssue: React.FC<Props> = ({
backgroundColor: issue.state_detail.color,
}}
/>
<Link href={`/projects/${activeProject?.id}/issues/${issue.id}`}>
<Link href={`/${workspaceSlug}/projects/${activeProject?.id}/issues/${issue.id}`}>
<a className="group relative flex items-center gap-2">
{properties.key && (
<span className="flex-shrink-0 text-xs text-gray-500">
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
// react
import { useEffect } from "react";
// next
import { useRouter } from "next/router";
// react-hook-form
import { Controller, useForm } from "react-hook-form";
// hooks
Expand Down Expand Up @@ -37,6 +39,11 @@ const defaultValues: Partial<ICycle> = {
const CycleDetailSidebar: React.FC<Props> = ({ cycle, cycleIssues }) => {
const { activeWorkspace, activeProject } = useUser();

const router = useRouter();
const {
query: { workspaceSlug },
} = router;

const { setToastAlert } = useToast();

const { reset, watch, control } = useForm({
Expand Down Expand Up @@ -87,7 +94,7 @@ const CycleDetailSidebar: React.FC<Props> = ({ cycle, cycleIssues }) => {
className="rounded-md border p-2 shadow-sm duration-300 hover:bg-gray-100 focus:border-indigo-500 focus:outline-none focus:ring-1 focus:ring-indigo-500"
onClick={() =>
copyTextToClipboard(
`https://app.plane.so/projects/${activeProject?.id}/cycles/${cycle.id}`
`https://app.plane.so/${workspaceSlug}/projects/${activeProject?.id}/cycles/${cycle.id}`
)
.then(() => {
setToastAlert({
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,9 @@ const SingleStat: React.FC<TSingleStatProps> = (props) => {
<Button
theme="secondary"
className="flex items-center gap-2"
onClick={() => router.push(`/projects/${activeProject?.id}/cycles/${cycle.id}`)}
onClick={() =>
router.push(`/${workspaceSlug}/projects/${activeProject?.id}/cycles/${cycle.id}`)
}
>
<ArrowPathIcon className="h-3 w-3" />
Open Cycle
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import React, { useEffect, useState } from "react";
// next
import Link from "next/link";
import dynamic from "next/dynamic";
import { useRouter } from "next/router";
// swr
import useSWR, { mutate } from "swr";
// react hook form
Expand Down Expand Up @@ -75,6 +76,12 @@ const CreateUpdateIssuesModal: React.FC<Props> = (props) => {
const [parentIssueListModalOpen, setParentIssueListModalOpen] = useState(false);
const [mostSimilarIssue, setMostSimilarIssue] = useState<string | undefined>();

const router = useRouter();

const {
query: { workspaceSlug },
} = router;

const { setToastAlert } = useToast();
const { activeWorkspace, activeProject, user } = useUser();

Expand Down Expand Up @@ -321,7 +328,7 @@ const CreateUpdateIssuesModal: React.FC<Props> = (props) => {
<div className="flex items-center gap-x-2">
<p className="text-sm text-gray-500">
<Link
href={`/projects/${activeProject?.id}/issues/${mostSimilarIssue}`}
href={`/${workspaceSlug}/projects/${activeProject?.id}/issues/${mostSimilarIssue}`}
>
<a target="_blank" type="button" className="inline text-left">
<span>Did you mean </span>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
import React, { useState } from "react";
// next
import { useRouter } from "next/router";
// swr
import useSWR from "swr";
// react hook form
Expand Down Expand Up @@ -63,6 +65,12 @@ const IssueDetailSidebar: React.FC<Props> = ({

const { activeWorkspace, activeProject } = useUser();

const router = useRouter();

const {
query: { workspaceSlug },
} = router;

const { setToastAlert } = useToast();

const { data: issues } = useSWR(
Expand Down Expand Up @@ -138,7 +146,7 @@ const IssueDetailSidebar: React.FC<Props> = ({
className="rounded-md border p-2 shadow-sm duration-300 hover:bg-gray-100 focus:border-indigo-500 focus:outline-none focus:ring-1 focus:ring-indigo-500"
onClick={() =>
copyTextToClipboard(
`https://app.plane.so/projects/${activeProject?.id}/issues/${issueDetail?.id}`
`https://app.plane.so/${workspaceSlug}/projects/${activeProject?.id}/issues/${issueDetail?.id}`
)
.then(() => {
setToastAlert({
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
import React, { useState } from "react";
// next
import Link from "next/link";
import { useRouter } from "next/router";
// swr
import useSWR from "swr";
// react-hook-form
Expand Down Expand Up @@ -40,6 +41,11 @@ const SelectBlocked: React.FC<Props> = ({ submitChanges, issueDetail, issuesList
const [query, setQuery] = useState("");
const [isBlockedModalOpen, setIsBlockedModalOpen] = useState(false);

const router = useRouter();
const {
query: { workspaceSlug },
} = router;

const { activeWorkspace, activeProject } = useUser();
const { setToastAlert } = useToast();

Expand Down Expand Up @@ -99,7 +105,7 @@ const SelectBlocked: React.FC<Props> = ({ submitChanges, issueDetail, issuesList
}}
>
<Link
href={`/projects/${activeProject?.id}/issues/${
href={`/${workspaceSlug}/projects/${activeProject?.id}/issues/${
issues?.results.find((i) => i.id === issue)?.id
}`}
>
Expand Down Expand Up @@ -186,7 +192,7 @@ const SelectBlocked: React.FC<Props> = ({ submitChanges, issueDetail, issuesList
htmlFor={`issue-${issue.id}`}
value={{
name: issue.name,
url: `/projects/${issue.project}/issues/${issue.id}`,
url: `/${workspaceSlug}/projects/${issue.project}/issues/${issue.id}`,
}}
className={({ active }) =>
classNames(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
import React, { useState } from "react";
// next
import Link from "next/link";
import { useRouter } from "next/router";
// swr
import useSWR from "swr";
// react-hook-form
Expand Down Expand Up @@ -42,6 +43,11 @@ const SelectBlocker: React.FC<Props> = ({ submitChanges, issuesList, watch }) =>
const { activeProject, activeWorkspace } = useUser();
const { setToastAlert } = useToast();

const router = useRouter();
const {
query: { workspaceSlug },
} = router;

const { data: issues } = useSWR(
activeWorkspace && activeProject
? PROJECT_ISSUES_LIST(activeWorkspace.slug, activeProject.id)
Expand Down Expand Up @@ -90,7 +96,7 @@ const SelectBlocker: React.FC<Props> = ({ submitChanges, issuesList, watch }) =>
className="group flex cursor-pointer items-center gap-1 rounded-2xl border border-white px-1.5 py-0.5 text-xs text-yellow-500 duration-300 hover:border-yellow-500 hover:bg-yellow-50"
>
<Link
href={`/projects/${activeProject?.id}/issues/${
href={`/${workspaceSlug}/projects/${activeProject?.id}/issues/${
issues?.results.find((i) => i.id === issue)?.id
}`}
>
Expand Down Expand Up @@ -187,7 +193,7 @@ const SelectBlocker: React.FC<Props> = ({ submitChanges, issuesList, watch }) =>
htmlFor={`issue-${issue.id}`}
value={{
name: issue.name,
url: `/projects/${issue.project}/issues/${issue.id}`,
url: `/${workspaceSlug}/projects/${issue.project}/issues/${issue.id}`,
}}
className={({ active }) =>
classNames(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,22 +39,21 @@ const SelectCycle: React.FC<Props> = ({ issueDetail, control, handleCycleChange,
const removeIssueFromCycle = (bridgeId: string, cycleId: string) => {
if (!activeWorkspace || !activeProject) return;

mutate<CycleIssueResponse[]>(
CYCLE_ISSUES(cycleId),
(prevData) => prevData?.filter((p) => p.id !== bridgeId),
false
);

mutate(
activeWorkspace && activeProject
? PROJECT_ISSUES_LIST(activeWorkspace.slug, activeProject.id)
: null
);

issuesService
.removeIssueFromCycle(activeWorkspace.slug, activeProject.id, cycleId, bridgeId)
.then((res) => {
console.log(res);
mutate<CycleIssueResponse[]>(
CYCLE_ISSUES(cycleId),
(prevData) => prevData?.filter((p) => p.id !== bridgeId),
false
);

mutate(
activeWorkspace && activeProject
? PROJECT_ISSUES_LIST(activeWorkspace.slug, activeProject.id)
: null
);
})
.catch((e) => {
console.log(e);
Expand All @@ -68,23 +67,6 @@ const SelectCycle: React.FC<Props> = ({ issueDetail, control, handleCycleChange,
<p>Cycle</p>
</div>
<div className="space-y-1 sm:basis-1/2">
{issueDetail?.issue_cycle && watch("issue_cycle") && (
<div className="flex flex-wrap gap-1">
<span
className="group flex cursor-pointer items-center gap-1 rounded-2xl border border-white px-1.5 py-0.5 text-xs text-red-500 duration-300 hover:border-red-500 hover:bg-yellow-50"
onClick={() =>
removeIssueFromCycle(
issueDetail.issue_cycle?.id ?? "",
issueDetail.issue_cycle?.cycle ?? ""
)
}
>
<ArrowPathIcon className="h-3 w-3" />
{watch("issue_cycle")?.cycle_detail.name}
<XMarkIcon className="h-2 w-2 opacity-0 duration-300 group-hover:text-red-500 group-hover:opacity-100" />
</span>
</div>
)}
<Controller
control={control}
name="issue_cycle"
Expand All @@ -103,16 +85,26 @@ const SelectCycle: React.FC<Props> = ({ issueDetail, control, handleCycleChange,
}
value={value}
onChange={(value: any) => {
handleCycleChange(cycles?.find((c) => c.id === value) as any);
value === null
? removeIssueFromCycle(
issueDetail?.issue_cycle?.id ?? "",
issueDetail?.issue_cycle?.cycle ?? ""
)
: handleCycleChange(cycles?.find((c) => c.id === value) as any);
}}
>
{cycles ? (
cycles.length > 0 ? (
cycles.map((option) => (
<CustomSelect.Option key={option.id} value={option.id}>
{option.name}
<>
<CustomSelect.Option value={null} className="capitalize">
<>None</>
</CustomSelect.Option>
))
{cycles.map((option) => (
<CustomSelect.Option key={option.id} value={option.id}>
{option.name}
</CustomSelect.Option>
))}
</>
) : (
<div className="text-center">No cycles found</div>
)
Expand Down
Loading