Commit Graph

6768 Commits

Author SHA1 Message Date
Zoë Bijl b418204ae3 [chore] fix lint:js errors
…related to the icons
2025-10-14 01:18:03 +02:00
Zoë Bijl 415b05d20a [feature] replace column move icons 2025-10-14 01:16:32 +02:00
Zoë Bijl 14f119be65 [bugfix] hide overflow text 2025-10-14 01:16:32 +02:00
Zoë Bijl 6fb2dd73be [feature] improve status-prepend display name hover state 2025-10-14 01:16:32 +02:00
Zoë Bijl f8f0b403af [bugfix] uncomment slim back button styles 2025-10-14 01:16:31 +02:00
Zoë Bijl 8b254ae288 [feature] refactor status styling
This does a bunch of stuff:

- split out status components into their own file
- unify spacing within a status
- outline all icons
- neatly fade the overflow part of a username
- add underlines to username links when appropriate
- correctly size all icons in a status
- restyle spoiler link (content warning button)
2025-10-14 01:16:31 +02:00
Zoë Bijl ebfbed0553 [feature] change content warning state icon 2025-10-14 01:16:31 +02:00
Zoë Bijl f70946ef48 [bugfix] remove unnecessary <span> 2025-10-14 01:16:22 +02:00
Zoë Bijl 312b157581 [bugfix] correctly align status prepend 2025-10-14 01:16:22 +02:00
Zoë Bijl 2cd3a82fc7 [bugfix] set correct icon state in detailed status view
This change was already made for the normal status view. It sets the icon to be filled when a status is boosted or favourited. Also forgoing the need for the Glitch checkmark.
2025-10-14 01:16:22 +02:00
Zoë Bijl e1c1325905 [feature] replace load-gap icon 2025-10-14 01:15:56 +02:00
Zoë Bijl d483cab118 [feature] align drawer and compose-panel components
- Neatly aligns both the `.drawer` and `.compose-panel` components
- Fixes `.search__input` padding  when inside the `.compose-panel`
2025-10-14 01:15:44 +02:00
Zoë Bijl 3c85b02b51 [feature] add “sizes” variables file 2025-10-14 01:15:44 +02:00
Zoë Bijl 7a4b9c6634 [feature] space out status action bar items 2025-10-14 01:15:44 +02:00
Zoë Bijl ebfd05be3d [bugfix] remove “sticky” background on focus 2025-10-14 01:15:44 +02:00
Zoë Bijl a977011b34 [feature] refactor status prepend box 2025-10-14 01:15:43 +02:00
Zoë Bijl 52fbda27ed [feature] add GTS specific CSS
provides a space to place rewritten CSS; should help keep track of what has been done.
2025-10-14 01:15:30 +02:00
Zoë Bijl 7209169ba9 [feature] add animations to status bar icons
When activated the status bar (under a toot) icons now do a cute lil animation, courtesy of Tangerine UI.
2025-10-14 01:15:30 +02:00
Zoë Bijl c0ea21299f [feature] refactor search box / add drawer outlines
- add outlines to some UI elements like the timeline and drawers
- search “clear” button is now an actual `<button>`
2025-10-14 01:15:08 +02:00
Zoë Bijl 82cc610ab7 [feature] set icons for lists 2025-10-14 01:14:47 +02:00
Zoë Bijl 004404dc83 [feature] refactor local settings navigation item 2025-10-14 01:14:18 +02:00
Zoë Bijl 9dbc200fd6 [feature] refactor column/drawer header 2025-10-14 01:14:18 +02:00
Zoë Bijl beb7a68b5e [fix] set correct icon size for action-bar 2025-10-14 01:14:18 +02:00
Zoë Bijl 6fb994abe6 [feature] refactor notifications filter bar 2025-10-14 01:14:18 +02:00
Zoë Bijl efaeb5d969 [refactor] compose form button bar CSS
Complete rewrite of the CSS for the compose form button bar. This makes the buttons and icons sit nicely in the available space.
2025-10-14 01:14:17 +02:00
Zoë Bijl 18fd2ef39a [feat] change unlisted icon from lock to moon
Makes easier to distinguish.
2025-10-14 01:14:17 +02:00
Zoë Bijl 5e16246d56 [fix] use <button> for emoji button
No idea why this was a `<div>`; this works fine in my testing.
2025-10-14 01:14:02 +02:00
Zoë Bijl 250b415a9d [fix] remove inline styling for icon button 2025-10-14 01:13:44 +02:00
Zoë Bijl ea3106c635 [feature] set toot footer icons based on state
When you favourite, boost, or bookmark a toot the icons turns into a filled version.
2025-10-14 01:13:08 +02:00
Zoë Bijl 5a6fd18ec2 [feature] add SVG icons 2025-10-14 01:12:47 +02:00
Zoë Bijl b62c1f4fc6 [feature] add SVG icons
# Conflicts:
#	.editorconfig

# Conflicts:
#	app/javascript/flavours/glitch/components/account.jsx
#	app/javascript/flavours/glitch/components/column_back_button.jsx
#	app/javascript/flavours/glitch/components/column_back_button_slim.jsx
#	app/javascript/flavours/glitch/components/column_header.jsx
#	app/javascript/flavours/glitch/components/dropdown_menu.jsx
#	app/javascript/flavours/glitch/components/media_gallery.jsx
#	app/javascript/flavours/glitch/components/status.jsx
#	app/javascript/flavours/glitch/components/status_action_bar.jsx
#	app/javascript/flavours/glitch/components/status_icons.jsx
#	app/javascript/flavours/glitch/components/status_prepend.jsx
#	app/javascript/flavours/glitch/components/status_visibility_icon.jsx
#	app/javascript/flavours/glitch/features/account/components/header.jsx
#	app/javascript/flavours/glitch/features/audio/index.jsx
#	app/javascript/flavours/glitch/features/compose/components/dropdown.jsx
#	app/javascript/flavours/glitch/features/compose/components/dropdown_menu.jsx
#	app/javascript/flavours/glitch/features/compose/components/emoji_picker_dropdown.jsx
#	app/javascript/flavours/glitch/features/compose/components/header.jsx
#	app/javascript/flavours/glitch/features/compose/components/options.jsx
#	app/javascript/flavours/glitch/features/compose/components/poll_form.jsx
#	app/javascript/flavours/glitch/features/compose/components/privacy_dropdown.jsx
#	app/javascript/flavours/glitch/features/compose/components/publisher.jsx
#	app/javascript/flavours/glitch/features/compose/components/reply_indicator.jsx
#	app/javascript/flavours/glitch/features/compose/components/search.jsx
#	app/javascript/flavours/glitch/features/compose/components/textarea_icons.jsx
#	app/javascript/flavours/glitch/features/favourites/index.jsx
#	app/javascript/flavours/glitch/features/getting_started/index.jsx
#	app/javascript/flavours/glitch/features/interaction_modal/index.jsx
#	app/javascript/flavours/glitch/features/local_settings/navigation/item/index.jsx
#	app/javascript/flavours/glitch/features/notifications/components/admin_report.jsx
#	app/javascript/flavours/glitch/features/notifications/components/admin_signup.jsx
#	app/javascript/flavours/glitch/features/notifications/components/clear_column_button.jsx
#	app/javascript/flavours/glitch/features/notifications/components/filter_bar.jsx
#	app/javascript/flavours/glitch/features/notifications/components/follow.jsx
#	app/javascript/flavours/glitch/features/notifications/components/follow_request.jsx
#	app/javascript/flavours/glitch/features/notifications/index.jsx
#	app/javascript/flavours/glitch/features/picture_in_picture/components/footer.jsx
#	app/javascript/flavours/glitch/features/reblogs/index.jsx
#	app/javascript/flavours/glitch/features/status/components/action_bar.jsx
#	app/javascript/flavours/glitch/features/status/components/detailed_status.jsx
#	app/javascript/flavours/glitch/features/status/index.jsx
#	app/javascript/flavours/glitch/features/ui/components/column_header.jsx
#	app/javascript/flavours/glitch/features/ui/components/column_link.jsx
#	app/javascript/flavours/glitch/features/ui/components/doodle_modal.jsx
#	app/javascript/flavours/glitch/features/ui/components/embed_modal.jsx
#	app/javascript/flavours/glitch/features/ui/components/filter_modal.jsx
#	app/javascript/flavours/glitch/features/ui/components/focal_point_modal.jsx
#	app/javascript/flavours/glitch/features/ui/components/image_modal.jsx
#	app/javascript/flavours/glitch/features/ui/components/media_modal.jsx
#	app/javascript/flavours/glitch/features/ui/components/notifications_counter_icon.js
#	app/javascript/flavours/glitch/features/ui/components/report_modal.jsx
2025-10-14 01:12:16 +02:00
Zoë Bijl 1ff70886a1 [build] upgrade eslint to 9.37.0 (#88)
Co-authored-by: tobi <tobi.smethurst@protonmail.com>
Reviewed-on: https://codeberg.org/superseriousbusiness/masto-fe-standalone/pulls/88
Co-authored-by: Zoë Bijl <moiety@noreply.codeberg.org>
Co-committed-by: Zoë Bijl <moiety@noreply.codeberg.org>
2025-10-12 13:42:02 +02:00
Zoë Bijl 75d7a62693 [feature] decouple login.scss from variables (#93)
Preparing for a switch to CSS variables

- decouple login.scss from variables.scss
- move scrollbar css to separate file

Reviewed-on: https://codeberg.org/superseriousbusiness/masto-fe-standalone/pulls/93
Co-authored-by: Zoë Bijl <code@moiety.me>
Co-committed-by: Zoë Bijl <code@moiety.me>
2025-10-10 21:17:25 +02:00
Zoë Bijl 496fd5987e [bugfix] correct import of @rails/ujs / fix lint issues (#92)
Details: https://github.com/rails/rails/issues/49768
Reviewed-on: https://codeberg.org/superseriousbusiness/masto-fe-standalone/pulls/92
Co-authored-by: Zoë Bijl <code@moiety.me>
Co-committed-by: Zoë Bijl <code@moiety.me>
2025-10-10 10:54:11 +02:00
Zoë Bijl 81445f0afd [build] upgrade to Prettier 3.6.2 (#86)
Upgrades Prettier to 3.6.2 and pins it there. Prettier [recommends pinning the version](https://prettier.io/docs/install#summary):

> Install an exact version of Prettier locally in your project. This makes sure that everyone in the project gets the exact same version of Prettier. Even a patch release of Prettier can result in slightly different formatting, so you wouldn’t want different team members using different versions and formatting each other’s changes back and forth.

---

Should probably merge after #85.

Co-authored-by: tobi <kipvandenbos@noreply.codeberg.org>
Reviewed-on: https://codeberg.org/superseriousbusiness/masto-fe-standalone/pulls/86
Co-authored-by: Zoë Bijl <code@moiety.me>
Co-committed-by: Zoë Bijl <code@moiety.me>
2025-10-09 11:52:50 +02:00
Zoë Bijl adf075d19f [bugfix] Fix linter issues (#85)
- [x] .js
- [x] .json
- [x] .md
- [x] .scss
- [x] .yml

Reviewed-on: https://codeberg.org/superseriousbusiness/masto-fe-standalone/pulls/85
Co-authored-by: Zoë Bijl <code@moiety.me>
Co-committed-by: Zoë Bijl <code@moiety.me>
2025-10-09 11:11:42 +02:00
Zoë Bijl c6eb0b1927 [feature] Redesigned login page (#76)
Reworked the login page

- Simplified some of the HTML and CSS
- Removed some `aria-label`s
- Added alt text for the logo
- Added a label for the input field
- Added subtle borders to otherwise flat elements

![redesigned login page with the mentioned changes](/attachments/53dc5c16-deac-4a68-912e-8a4486a93b53)

Reviewed-on: https://codeberg.org/superseriousbusiness/masto-fe-standalone/pulls/76
Co-authored-by: Zoë Bijl <code@moiety.me>
Co-committed-by: Zoë Bijl <code@moiety.me>
2025-10-01 14:02:18 +02:00
Sqx. Flann 110c8fb8cc [bugfix] account for data structure change in instance API fallback (#63)
Reviewed-on: https://codeberg.org/superseriousbusiness/masto-fe-standalone/pulls/63
Co-authored-by: Sqx. Flann <fl4nn+codeberg@opensuse.org>
Co-committed-by: Sqx. Flann <fl4nn+codeberg@opensuse.org>
2025-07-14 16:42:05 +02:00
Sqx. Flann 6d0b964e2b [feature] Query media description limit (#62)
fixes #61

Reviewed-on: https://codeberg.org/superseriousbusiness/masto-fe-standalone/pulls/62
Co-authored-by: Sqx. Flann <fl4nn+codeberg@opensuse.org>
Co-committed-by: Sqx. Flann <fl4nn+codeberg@opensuse.org>
2025-06-23 10:51:25 +02:00
prplecake 60792ec753 [feature] Add logout button to sidebar (#48)
This one should probably be scrutinized a little more than my previous two.

For example, I don't know why I needed to do this: https://codeberg.org/prplecake/masto-fe-standalone/src/commit/1a1f48ceaa544650a8b8f50f8fa4e8c7cdc44c12/app/javascript/flavours/glitch/features/ui/index.jsx#L152

~~But, it appears to work.~~ It's live at https://masto-fe.compostintraining.club if you want to test it out.

~~Edit: it breaks stuff. Images don't load anymore...~~ Maybe that was just a network glitch...

Fixes #21.

Reviewed-on: https://codeberg.org/superseriousbusiness/masto-fe-standalone/pulls/48
Co-authored-by: prplecake <me@prplecake.com>
Co-committed-by: prplecake <me@prplecake.com>
2025-06-07 15:12:37 +02:00
prplecake f61625f4bd [bugfix] Don't show deprecated setting modal when auto unfold CWs is toggled on (#47)
Missed in #46, sorry!

Reviewed-on: https://codeberg.org/superseriousbusiness/masto-fe-standalone/pulls/47
Co-authored-by: prplecake <me@prplecake.com>
Co-committed-by: prplecake <me@prplecake.com>
2025-05-14 20:59:44 +00:00
prplecake 02106153ec [feature] Re-enable auto-unfold CW setting (#46)
Fixes #45

Reviewed-on: https://codeberg.org/superseriousbusiness/masto-fe-standalone/pulls/46
Co-authored-by: prplecake <me@prplecake.com>
Co-committed-by: prplecake <me@prplecake.com>
2025-05-14 17:23:29 +00:00
tobi 6920d0b8a2 [chore] Add js lint step (#35)
Reviewed-on: https://codeberg.org/superseriousbusiness/masto-fe-standalone/pulls/35
Co-authored-by: tobi <tobi.smethurst@protonmail.com>
Co-committed-by: tobi <tobi.smethurst@protonmail.com>
2025-04-26 09:18:46 +00:00
vyxen 370a666d27 [feature] Nicer login.html page, with cute styling + link to source code (#19)
Fixes #9

- Cute styling, combination of Mastodon and GTS
- Short description of the project
- Error and status messages (temporarily) appear in disabled button with correct ARIA attributes
- Sufficient contrast (WCAG AAA)

Let me know if using `login.scss` both as an index file and for adding custom styling is okay. I figured this might be preferred over creating an extra folder and file.

Reviewed-on: https://codeberg.org/superseriousbusiness/masto-fe-standalone/pulls/19
Co-authored-by: vyxen <vyxen@tutamail.com>
Co-committed-by: vyxen <vyxen@tutamail.com>
2025-04-03 11:07:34 +00:00
Thiago 'Jedi' Cerqueira 84718945c6 [bugfix] Fix blurhash losing proportion when more than one item (#17)
Fixes #14

The style changes I made in #11 didn't take hidden media in consideration. This PR fixes it.

![Captura de tela de 2025-03-12 11-19-12.png](/attachments/f395e341-9a31-4459-adb5-46439b4b3003)

![Captura de tela de 2025-03-12 11-54-24.png](/attachments/00b01da2-712d-43f7-99a6-e53241663339)

Reviewed-on: https://codeberg.org/superseriousbusiness/masto-fe-standalone/pulls/17
Co-authored-by: Thiago 'Jedi' Cerqueira <thiagoa7@gmail.com>
Co-committed-by: Thiago 'Jedi' Cerqueira <thiagoa7@gmail.com>
2025-03-13 13:27:42 +00:00
tobi 1b66719b48 [feature] Send local_only instead of eyeball (#13)
Co-authored-by: Ember <me@ember-is.gay>
Reviewed-on: https://codeberg.org/superseriousbusiness/masto-fe-standalone/pulls/13
Co-authored-by: tobi <tobi.smethurst@protonmail.com>
Co-committed-by: tobi <tobi.smethurst@protonmail.com>
2025-03-04 20:54:32 +00:00
Thiago 'Jedi' Cerqueira 4bb7992d4c [Feature] Remove hardcoded limit of media (#11)
Fixes #7

The limit of upload and remote display media was hard coded to 4.

In this PR, I did the following changes:
- Status form now respects instance's upload limit config.
- Remove the limit of images shown on statuses
    - Remote statuses may have more than local instance's limit

Also, I kept the 16:9 aspect ratio of the images. I can change to more complex layouts in future PRs if needed.

This works, but it needs more tests. I don't have how to change the config of my instance, so I had to test forcing duplicates on the post. Any help to validate configuration would be nice.

![image](/attachments/f073ac59-c6d5-4d4c-a01a-17d0c6855094)

Reviewed-on: https://codeberg.org/superseriousbusiness/masto-fe-standalone/pulls/11
Co-authored-by: Thiago 'Jedi' Cerqueira <thiagoa7@gmail.com>
Co-committed-by: Thiago 'Jedi' Cerqueira <thiagoa7@gmail.com>
2025-03-04 19:45:04 +00:00
julia 3481816b99 [bugfix] Make the logo icon / wordmark on mobile/simple UI appear (#4)
At least for the logo-symbol-wordmark.svg, this appears to usually be added
by some ruby code in application.html.haml, but since we have a static index.html
this never gets inserted into the HTML. Rather than embedding it into the HTML,
just make the two logos pull from files in public/.

This does not update the branding of the files, just makes them appear.

Reviewed-on: https://codeberg.org/superseriousbusiness/masto-fe-standalone/pulls/4
Co-authored-by: julia <midnight@trainwit.ch>
Co-committed-by: julia <midnight@trainwit.ch>
2024-12-27 11:55:03 +00:00
tobi 4df14235c6 [feature] Move use_blurhash to app settings, enable by default (#5)
Does what it says on the tin! This serves as a decent model (imo) for how to move something from Mastodon's rather opaque server-side settings to client settings.

Reviewed-on: https://codeberg.org/superseriousbusiness/masto-fe-standalone/pulls/5
Co-authored-by: tobi <tobi.smethurst@protonmail.com>
Co-committed-by: tobi <tobi.smethurst@protonmail.com>
2024-12-27 11:54:18 +00:00
julia 86fa133c50 [bugfix] Store /api/web/settings state locally for persistence (#2)
This also prevents the 'Can't verify CSRF token authenticity' errors that popup whenever you modify a 'web setting', such as the column layout.

~~NB: There is something funky going on. This works 99% of the time and sometimes doesn't?~~ Fixed now, there was two bits of stuff in verify_state doing the same thing, removed the duplicate.

Reviewed-on: https://codeberg.org/superseriousbusiness/masto-fe-standalone/pulls/2
Co-authored-by: julia <midnight@trainwit.ch>
Co-committed-by: julia <midnight@trainwit.ch>
2024-12-25 11:40:11 +00:00