Skip to content

feat : reset settings #384

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

Merged
merged 10 commits into from
Jul 8, 2025
Merged

feat : reset settings #384

merged 10 commits into from
Jul 8, 2025

Conversation

caro3801
Copy link
Contributor

@caro3801 caro3801 commented Jul 4, 2025

Linked to ICIJ/datashare#1785
Each page settings can be reset to default directly from the current view
image

@caro3801 caro3801 changed the title Feat/reset settings feat : reset settings Jul 4, 2025
@caro3801 caro3801 requested a review from a team July 4, 2025 15:51
Copy link
Member

@pirhoo pirhoo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I made small changes suggestions, for the rest, very cool!

@@ -153,8 +153,18 @@ export const useAppStore = defineStore(
*
* @returns {void}
*/
const resetSettings = () => {
Object.assign(settings, cloneDeep(SETTINGS))
const resetSettings = (view, name) => {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This function JSDoc must reflect the new parameters. Although I don't think we use the name anywhere in the code yet so we can probably remove that parameter :)

@caro3801 caro3801 requested a review from pirhoo July 7, 2025 08:03
@caro3801 caro3801 merged commit cad9fac into main Jul 8, 2025
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants