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

Dispute creation wizard (basic) integrated to the court v2 #1388

Merged
merged 33 commits into from
Jan 10, 2024
Merged
Changes from 1 commit
Commits
Show all changes
33 commits
Select commit Hold shift + click to select a range
0fc9bcc
feat(web): basic-dispute-resolver-ui
Harman-singh-waraich Dec 29, 2023
f457622
feat(web): add-dispute-data-collection-and-basic-dispute-creation
Harman-singh-waraich Jan 2, 2024
e0f9f04
feat(web): add-success-popup-on-dispute-creation-and-update-wrapWithT…
Harman-singh-waraich Jan 2, 2024
ddeb92c
fix(web): remove-dispute-data-from-localstorage-on-reset
Harman-singh-waraich Jan 2, 2024
33e3c00
fix(web): fixed-value-not-persisting-in-some-fields-in-resolver
Harman-singh-waraich Jan 3, 2024
52d0037
refactor(web): better-dispute-template-construction
Harman-singh-waraich Jan 3, 2024
2d6c702
fix(web): disable-submitCase-button-while-sending-txn
Harman-singh-waraich Jan 3, 2024
63c87dd
fix(web): fix-policy-uri-not-being-passed-in-props
Harman-singh-waraich Jan 3, 2024
f96dfdb
feat(web): handle-policy-upload
Harman-singh-waraich Jan 3, 2024
6b95e0c
refactor(web): better-enable-condition-for-dispute-submittion-prepare…
Harman-singh-waraich Jan 4, 2024
4014b05
fix(web): fix-courtId-prop-was-hardcoded-in-Preview-policy
Harman-singh-waraich Jan 4, 2024
269d772
feat(web): add-alias-handling-and-UI
Harman-singh-waraich Jan 4, 2024
22c21e6
feat(web): add-multiple-voting-options-support
Harman-singh-waraich Jan 4, 2024
3279eaa
refactor(web): fix-code-smells
Harman-singh-waraich Jan 5, 2024
dbe0c9c
refactor(web): fix-unique-id-as-key-instead-of-array-index
Harman-singh-waraich Jan 5, 2024
43f2887
refactor(web): better-decoding-logic-to-retrieve-dispute-id
Harman-singh-waraich Jan 8, 2024
3c6d76a
refactor(web): add-network-check-and-loading-ui-to-submit-case-button
Harman-singh-waraich Jan 8, 2024
327a6d5
refactor(web): disable-next-button-when-arbitration-cost-loading
Harman-singh-waraich Jan 8, 2024
2ccc6d7
refactor(web): use-uselocalstorage-hook-to-handle-dispute-data-persist
Harman-singh-waraich Jan 8, 2024
8b2cd78
refactor(web): remove-data-mappings-todo-from-submit-dispute-call
Harman-singh-waraich Jan 8, 2024
5ebbcd6
refactor(web): move-resolver-access-to-kleros-solution-list
Harman-singh-waraich Jan 8, 2024
961545c
fix(web): fix-typo
Harman-singh-waraich Jan 8, 2024
71cf0e3
feat(web): add-description-field-in-resolver-forms
Harman-singh-waraich Jan 9, 2024
8e8b6e1
feat(web): option-description-display-in-dispute-context
Harman-singh-waraich Jan 9, 2024
78600b0
feat(web): add-cta-for-dispute-resolver
Harman-singh-waraich Jan 9, 2024
dc7c187
refactor(web): update-voting-options-and-counterparties-layout
Harman-singh-waraich Jan 9, 2024
71f4afa
fix(web): disable-next-button-while-policy-uploading
Harman-singh-waraich Jan 9, 2024
54f64e5
fix(web): remove-default-court-id-let-user-select-explicitly
Harman-singh-waraich Jan 9, 2024
6993b98
feat(web): add-dispute-resolvation-estimate-date
Harman-singh-waraich Jan 9, 2024
7bf1ac9
refactor(web): update-wrap-with-toast-function
Harman-singh-waraich Jan 10, 2024
51806c6
refactor(web): update-policy-upload-placeholder
Harman-singh-waraich Jan 10, 2024
1fb2b05
refactor(web): addressing-sonar-check-issue
Harman-singh-waraich Jan 10, 2024
f0e01ec
fix: linter
jaybuidl Jan 10, 2024
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
Prev Previous commit
Next Next commit
fix(web): remove-dispute-data-from-localstorage-on-reset
  • Loading branch information
Harman-singh-waraich authored and jaybuidl committed Jan 10, 2024
commit ddeb92c3ecbd92ac230e70ef29ce79e1c0cc901a
6 changes: 5 additions & 1 deletion web/src/context/NewDisputeContext.tsx
Original file line number Diff line number Diff line change
@@ -84,13 +84,17 @@ export const NewDisputeProvider: React.FC<{ children: React.ReactNode }> = ({ ch
//keep updating disputeTemplate
const disputeTemplate = useMemo(() => disputeData as IDisputeTemplate, [disputeData]);

const resetDisputeData = () => {
localStorage.removeItem("disputeData");
setDisputeData(initialDisputeData);
};
return (
<NewDisputeContext.Provider
value={{
disputeData,
setDisputeData,
disputeTemplate,
resetDisputeData: () => setDisputeData(initialDisputeData),
resetDisputeData,
}}
>
{children}