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

Fix CSS/JS Issues + QOL Improvements #108

Merged
merged 32 commits into from
May 20, 2024
Merged

Fix CSS/JS Issues + QOL Improvements #108

merged 32 commits into from
May 20, 2024

Conversation

1337Syntax
Copy link
Contributor

@1337Syntax 1337Syntax commented May 4, 2024

Issues Addressed in this PR:

  • Fixed Missing Embed Colours
  • Fixed Emojis being Mis-Aligned on Button Labels & Normal Text Content
  • Fixed the Un-Equal Footer Width (Padding on the Left was More than the Right Side)
  • Fixed User Pop-Out not Appearing
  • Fixed Scrolling when Clicking Message Replies/etc
  • Fixed quick_export() (Was Raising due to attachment_handler Arg Missing)

New Features:

  • Hover on User Avatars
  • Clicking Buttons/Images/Assets will Open in New Tab
  • Changed BOT Tag to the New APP Tag
  • Slightly Updated README on the AttachmentHandler Section

@1337Syntax 1337Syntax changed the title Fix CSS Issues Fix CSS/JS Issues + QOL Improvements May 4, 2024
README.md Outdated Show resolved Hide resolved
README.md Outdated Show resolved Hide resolved
@1337Syntax
Copy link
Contributor Author

Oops, I forgot I was on master branch, my mistake. Reverted those README Changes @mahtoid.

Copy link
Contributor

@doluk doluk left a comment

Choose a reason for hiding this comment

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

Nice pr, a lot of new stuff. Some of the changes would need a little more explanation for me to understand what/why it was changed

chat_exporter/construct/assets/attachment.py Outdated Show resolved Hide resolved
chat_exporter/construct/assets/component.py Outdated Show resolved Hide resolved
chat_exporter/html/attachment/audio.html Show resolved Hide resolved
chat_exporter/html/base.html Show resolved Hide resolved
@mahtoid
Copy link
Owner

mahtoid commented May 17, 2024

It would be good if you could provide screenshots on changed too where applicable. I won't be able to spin up and check anytime soon, so screenshots will give me some sanity 👀

@mahtoid mahtoid changed the base branch from master to 2.8.0 May 17, 2024 01:17
@1337Syntax
Copy link
Contributor Author

1337Syntax commented May 17, 2024

It would be good if you could provide screenshots on changed too where applicable. I won't be able to spin up and check anytime soon, so screenshots will give me some sanity 👀

Here are 2 links to transcripts generated that should hopefully work and show some of the changes.

From those you should be able to see the difference in embed colours, emoji mis-alignment, button padding, footer width, user pop-outs, hover on avatar and scrolling on messages.

For reference, they were generated via the following:

transcript = await chat_exporter.raw_export(
    channel=channel,
    messages=messages,
    tz_info="UTC",
    bot=bot,
    military_time=True,
    fancy_times=True,
    support_dev=False
)

I also did a commit to fix the bug where hovering over a message shows "AM/PM" on the left of it instead of the actual time "MIN:HR".

chat_exporter/construct/assets/component.py Outdated Show resolved Hide resolved
chat_exporter/construct/assets/component.py Outdated Show resolved Hide resolved
chat_exporter/construct/assets/component.py Outdated Show resolved Hide resolved
chat_exporter/construct/assets/component.py Outdated Show resolved Hide resolved
chat_exporter/construct/assets/component.py Outdated Show resolved Hide resolved
chat_exporter/html/component/component_button.html Outdated Show resolved Hide resolved
pyproject.toml Show resolved Hide resolved
chat_exporter/html/base.html Outdated Show resolved Hide resolved
chat_exporter/construct/message.py Outdated Show resolved Hide resolved
chat_exporter/ext/html_generator.py Show resolved Hide resolved
1337Syntax and others added 10 commits May 20, 2024 16:40
Co-authored-by: Lukas Dobler <69309597+doluk@users.noreply.github.com>
Co-authored-by: Lukas Dobler <69309597+doluk@users.noreply.github.com>
Co-authored-by: Lukas Dobler <69309597+doluk@users.noreply.github.com>
Co-authored-by: Lukas Dobler <69309597+doluk@users.noreply.github.com>
Co-authored-by: Lukas Dobler <69309597+doluk@users.noreply.github.com>
Co-authored-by: Lukas Dobler <69309597+doluk@users.noreply.github.com>
Co-authored-by: Lukas Dobler <69309597+doluk@users.noreply.github.com>
Co-authored-by: Lukas Dobler <69309597+doluk@users.noreply.github.com>
Co-authored-by: Lukas Dobler <69309597+doluk@users.noreply.github.com>
@1337Syntax
Copy link
Contributor Author

Thanks for the suggestions @doluk, I've committed those in.

@doluk
Copy link
Contributor

doluk commented May 20, 2024

@1337Syntax could you please generate the example again? once with military and once with 12h time format?

@1337Syntax
Copy link
Contributor Author

@1337Syntax could you please generate the example again? once with military and once with 12h time format?

@doluk
Copy link
Contributor

doluk commented May 20, 2024

the time is 24 h in both 🧐

@1337Syntax
Copy link
Contributor Author

the time is 24 h in both 🧐

Seems that only the timestamp in the aside message part actually checks for military time usage whereas the other timestamps do not. I have pushed a commit to now fix that.

@doluk
Copy link
Contributor

doluk commented May 20, 2024

looks good to me now! Thank you for the work and the fast changes!

@mahtoid mahtoid merged commit acff601 into mahtoid:2.8.0 May 20, 2024
mahtoid added a commit that referenced this pull request Jul 1, 2024
* Fix type hinting compatibility with Python < 3.9 (#105)

* Merging master in to 2.8.0 (#110)

* Versioning

* Fix discord import for wrapper namespaces != discord (#104)

* Versioning

---------

Co-authored-by: mahtoid <git@mahto.id>
Co-authored-by: Lukas Dobler <69309597+doluk@users.noreply.github.com>

* Fix CSS/JS Issues + QOL Improvements (#108)

* Versioning

* Fix discord import for wrapper namespaces != discord (#104)

* Versioning

* Fix quick_export() Missing Argument

* Remove Use of 'proxy_url' due to Discord's CDN Changes

* Fix Embed Colour & Reduce Unnecessary Gaps

* Fix Emoji Mis-Alignment

* Fix Button Label Padding

* Equalise Footer Width

* Fix User Pop-Out

* Add Hover on User Avatars

* Fix Scrolling to Messages

* Open Buttons & Images in New Tabs + Fix Audio Container

* Change BOT Tag to New APP Tag

* Update README

* Add .vscode to Git-Ignore

* Update README.md for my Fork

* Update README.md

* Revert README Installation Changes

* Revert Asset URL Change back to Proxy URL

* Fixed Message Aside Timestamp

* Update chat_exporter/construct/assets/component.py

Co-authored-by: Lukas Dobler <69309597+doluk@users.noreply.github.com>

* Update chat_exporter/construct/assets/component.py

Co-authored-by: Lukas Dobler <69309597+doluk@users.noreply.github.com>

* Update chat_exporter/construct/assets/component.py

Co-authored-by: Lukas Dobler <69309597+doluk@users.noreply.github.com>

* Update chat_exporter/construct/assets/component.py

Co-authored-by: Lukas Dobler <69309597+doluk@users.noreply.github.com>

* Update chat_exporter/construct/assets/component.py

Co-authored-by: Lukas Dobler <69309597+doluk@users.noreply.github.com>

* Update chat_exporter/html/component/component_button.html

Co-authored-by: Lukas Dobler <69309597+doluk@users.noreply.github.com>

* Update chat_exporter/html/base.html

Co-authored-by: Lukas Dobler <69309597+doluk@users.noreply.github.com>

* Update chat_exporter/construct/assets/component.py

Co-authored-by: Lukas Dobler <69309597+doluk@users.noreply.github.com>

* Update chat_exporter/construct/message.py

Co-authored-by: Lukas Dobler <69309597+doluk@users.noreply.github.com>

* Refactoring

* Fixed Military Times

---------

Co-authored-by: mahtoid <git@mahto.id>
Co-authored-by: Lukas Dobler <69309597+doluk@users.noreply.github.com>

* Update discord link

* Fix a bug within LocalAttachmentHandler and regex search returning None causing AttributeError & add html meta tags to transcript (#111)

* Ensure unique filenames

Signed-off-by: doluk <69309597+doluk@users.noreply.github.com>

* Add html meta tags

Signed-off-by: doluk <69309597+doluk@users.noreply.github.com>

* Fix Local File handler

Signed-off-by: doluk <69309597+doluk@users.noreply.github.com>

* Fix regex search returning no match causing AttributeError

Signed-off-by: doluk <69309597+doluk@users.noreply.github.com>

* Exchange uuid4 with EPOCH timestamp with ms

Signed-off-by: doluk <69309597+doluk@users.noreply.github.com>

---------

Signed-off-by: doluk <69309597+doluk@users.noreply.github.com>

* Interaction Message (metadata)

* Backport Interaction

* interaction name

---------

Signed-off-by: doluk <69309597+doluk@users.noreply.github.com>
Co-authored-by: Argon <laiyeqi@gmail.com>
Co-authored-by: mahtoid <git@mahto.id>
Co-authored-by: Lukas Dobler <69309597+doluk@users.noreply.github.com>
Co-authored-by: syntax <me@syntax.fo>
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.

3 participants