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

Undiscord 5.1 #455

Merged
merged 75 commits into from
Mar 6, 2023
Merged

Undiscord 5.1 #455

merged 75 commits into from
Mar 6, 2023

Conversation

victornpb
Copy link
Owner

@victornpb victornpb commented Mar 5, 2023

2023-03-05 14-46-19 2023-03-05 15_05_20

Changelog

User facing features:

  • Import Archive feature is back (import json)
    image

  • Delay settings are now sliders. They update and can be adjusted mid execution.
    image

  • Status bar, now display the Progress as well as the Elapsed time and estimated time remaining.
    image

  • Undiscord Icon now changes color while running and has a more visible progress bar
    image

  • Added a Toggle the sidebar button, for more real state
    2023-03-05 14-33-25 2023-03-05 14_34_37

  • Added Resize handler, so people know they can resize the window.
    2023-03-05 14-29-58 2023-03-05 14_31_19

  • More readable logs
    image

  • Cleaner redacted mode
    image

  • Increased size of the most important button. Start has been renamed to "(start) Delete" and Stop now has a stop emoji as an icon.
    image
    image

Under the hood:

There's a lot of things!

  • Major refactor of the codebase since 1.0
  • More defined separation between deletion logic (undiscord-core) and user interface (undiscord-ui)
  • Undiscord-core (formerly deleteMessages.js) is no longer a single recursive function, now it is a class, which fits better the model of being initialized by the UI and having a defined state. Each part is more indenpendent.
  • Significantly improved the development workflow. Development server lets you install the dev version from localhost which automatically generates a new version on each save.
  • Batching jobs are now a properly supported thing, so deleting multiple channels now works better and hole bunch of bugs due to hacky nature of tring to run multiple channels using the old function were eliminated.
  • Organized helper functions to own files
  • Generating dev version number
  • Removed unused packages
  • Improved stats reporting logs
  • Fixed confirm bug that sometimes didn't work properly
  • Implemented retry
  • Changed how redacted works, now its CSS only should be more performant
  • Improved CONTRIBUTING guidelines and added a instructions video.
  • Implemented onStart onProgress and onStop events so we can updated UI outside the Core logic
  • Delay gets updated live during execution
  • Implemented proper mutichannel deletion using runBatch(job<Array>)
  • updated rollup and devDependencies, now nodejs 18 is required for compilation.
  • Sourcemap inlined in the dev build

@victornpb victornpb changed the title 5.1 Undiscord 5.1 Mar 5, 2023
In order to prioritize code readability and ease of external auditing, we have compacted the CSS section of the userscript. This has significantly reduced the script length by 400 lines, allowing for quicker skimming and easier focus on the most important parts of the code. Despite the compacting, the CSS remains fully readable and unobfuscated.
@victornpb victornpb merged commit 8b254d8 into master Mar 6, 2023
@victornpb victornpb deleted the next branch March 6, 2023 07:03
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