jamesgeorge007
73a5f4657c
refactor: cleanup CollectionsProperties component
2024-05-28 19:50:13 +05:30
jamesgeorge007
4ba53a8bf3
refactor: remove redundancy from provider API method signatures
2024-05-28 19:31:41 +05:30
jamesgeorge007
2374ceb808
refactor: update exportRESTCollections method signature
...
- Drop the `collections` parameter since the it is already available in the `PersonalWorkspaceProviderService` context.
- Make the above method return a left error of `NO_COLLECTIONS_TO_EXPORT` when the collections list is empty.
- Error handling updates.
2024-05-27 11:34:50 +05:30
jamesgeorge007
17169e1c46
chore: bump @hoppscotch/ui
2024-05-23 22:30:11 +05:30
jamesgeorge007
4c74d0f865
chore: cleanup
2024-05-23 14:20:42 +05:30
jamesgeorge007
8b930a6d3d
fix: resolve edge cases about moving collections under its sibling
...
- Increase test coverage.
- Move store mock data under `__tests__/__mocks__`.
- Rephrase test descriptions.
2024-05-22 21:00:49 +05:30
jamesgeorge007
f4a37f19c9
fix: empty state primary action for root collections
...
Ensure child collections are created instead of the action resulting in new root collections.
2024-05-22 21:00:49 +05:30
jamesgeorge007
86b17e2bd3
test: add test suite for personal workspace provider service
2024-05-22 21:00:49 +05:30
jamesgeorge007
e0083aa70d
fix: handle based updates post collection move to a sibling level collection below it
2024-05-22 21:00:49 +05:30
jamesgeorge007
25b0818016
refactor: update inherited properties for affected requests flow updates
2024-05-22 21:00:46 +05:30
jamesgeorge007
648cc8f5bd
refactor: handle based updates for affected requests post collection deletion
2024-05-22 20:59:59 +05:30
jamesgeorge007
6032cbb17b
refactor: handle based updates for affected requests post request deletion
2024-05-22 20:59:59 +05:30
jamesgeorge007
52bff8ee68
refactor: handle based updates post collection reorder
2024-05-22 20:59:59 +05:30
jamesgeorge007
e342e53db1
refactor: handle based updates post collection move
2024-05-22 20:59:58 +05:30
jamesgeorge007
141652ffb6
fix: affected request indices computation post request reorder
2024-05-22 20:59:38 +05:30
jamesgeorge007
bb57b2248c
fix: affected request indices computation post request move
2024-05-22 20:59:21 +05:30
jamesgeorge007
5d8da5fe49
chore: resolve type errors
2024-05-22 20:59:21 +05:30
Andrew Bastin
c8f0142b16
refactor: move more things to handles instead of handleref
2024-05-22 20:59:20 +05:30
jamesgeorge007
2f2273ee2c
refactor: move to inert handles
2024-05-22 20:58:28 +05:30
jamesgeorge007
b239b6b4a6
refactor: handle updates post move request action
...
- Filter out duplicate issued handle entries.
- Move from `getAffectedIndexes` helper function to a custom implementation for updating affected request indices.
2024-05-22 20:57:48 +05:30
jamesgeorge007
bbac317b71
refactor: move to handle based updates with request move action
2024-05-22 20:57:48 +05:30
jamesgeorge007
412daa4d17
refactor: tab saveContext resolution post collection remove action
2024-05-22 20:57:48 +05:30
jamesgeorge007
0abdc63f0e
refactor: better tab dirty check
...
Mark the tab (saved request under a collection) as not dirty if the request contents are reset to the value since previous save.
2024-05-22 20:57:47 +05:30
jamesgeorge007
9e8112a4e5
fix: make close all tabs action account for tabs with invalid request handles
2024-05-22 20:56:47 +05:30
jamesgeorge007
5aa57fce3f
refactor: add save context resolution logic post request deletion
2024-05-22 20:56:47 +05:30
jamesgeorge007
8b65090dfb
refactor: persist only request handles under tab saveContext at runtime
...
Remove provider, workspace and request IDs.
2024-05-22 20:56:47 +05:30
jamesgeorge007
7ca94a99b7
refactor: move tab saveContext resolution associated with actions on collections to be based on request handles
2024-05-22 20:56:46 +05:30
jamesgeorge007
fe3adeeb17
refactor: consider request handles with tab saveContext resolution for collection move/reorder actions
2024-05-22 20:56:17 +05:30
jamesgeorge007
3a195711a4
refactor: update data under request handles during tab save context resolution
2024-05-22 20:56:17 +05:30
jamesgeorge007
6cde6200ae
refactor: signify updates via handle reference mutation post request move action
2024-05-22 20:56:17 +05:30
jamesgeorge007
e5e1260632
fix: ensure request name updates reflect immediately on the tabs
2024-05-22 20:56:17 +05:30
jamesgeorge007
90c9f2a9b1
fix: make writable handle operate on refs within the createRESTRequest method
...
Wrap the request handle data in a `ref` and make the writable handle operate over it ensuring reactive updates are received.
2024-05-22 20:56:17 +05:30
jamesgeorge007
db9ba17529
refactor: convey updates via handle mutation for update request action
2024-05-22 20:56:17 +05:30
jamesgeorge007
197d253e8b
refactor: keep tab dirty status logic at the page level
2024-05-22 20:56:17 +05:30
jamesgeorge007
cd92dfec47
refactor: introduce writable handles to signify updates to handle references
...
A special list of writable handles is compiled in a list while issuing handles (request/collection creation, etc). Instead of manually computing the tab and toggling the dirty state, the writable handle is updated (changing the type to invalid on request deletion) and the tab with the request open can infer it via the update reflected in the request handle under the tab save context (reactive update trigger).
2024-05-22 20:53:49 +05:30
jamesgeorge007
8467417e7a
refactor: persist request handles under tab saveContext
...
Only the IDs (workspace, provider & request IDs) to restore the handle are stored under `localStorage` and the handle is restored back at runtime.
2024-05-22 20:53:15 +05:30
jamesgeorge007
f6067f14aa
fix: prevent infinite spinner state while expanding tree nodes
2024-05-22 20:52:57 +05:30
jamesgeorge007
3fd85df84b
refactor: view implementation to retrieve collections for exporting
2024-05-22 20:52:57 +05:30
jamesgeorge007
01573cc51c
chore: keep existing implementation for save context resolution
2024-05-22 20:52:57 +05:30
jamesgeorge007
b19486ea03
refactor: update provider method signatures + cleanup
2024-05-22 20:52:57 +05:30
jamesgeorge007
a729dfcacb
fix: ensure tree nodes are not computed for requests
2024-05-22 20:52:57 +05:30
jamesgeorge007
62612e6c51
refactor: remove unnecessary safeguards + cleanup
2024-05-22 20:52:57 +05:30
jamesgeorge007
f87a4c81d8
refactor: leverage helpers
2024-05-22 20:52:57 +05:30
jamesgeorge007
116f2fd279
refactor: update provider method signatures
2024-05-22 20:52:57 +05:30
jamesgeorge007
7e2deaac5b
fix: duplicate collection in search results
...
Ensure the entire collection tree is rendered if the search query matches a collection name.
2024-05-22 20:52:57 +05:30
jamesgeorge007
240b131e06
feat: support search at n level depth
2024-05-22 20:52:57 +05:30
jamesgeorge007
5b3986a53f
fix: ensure the collection tree for search immediately reflects actions performed over it
2024-05-22 20:52:57 +05:30
jamesgeorge007
84fc31e8a9
refactor: port collection tree empty states
2024-05-22 20:52:56 +05:30
jamesgeorge007
c0978c3b20
refactor: eliminate parentCollectionID field from RESTCollectionViewRequest type
...
Collection ID serves the purpose.
2024-05-22 20:52:56 +05:30
jamesgeorge007
d70d5bdb16
refactor: eliminate collectionID from tab saveContext
...
Collection ID can be inferred from request ID by removing last index from the path.
2024-05-22 20:52:56 +05:30