Skip to content

Conversation

@egeakman
Copy link
Member

@egeakman egeakman commented Feb 10, 2025

  • Migrates ButtonLink to Astro, and adds a disabled prop to it.
  • Removes redundant ButtonWithTitle component.

See https://add-disabled-prop.ep-preview.click/programme/mentorship/ for example

Closes #978

@egeakman egeakman added the enhancement New feature or request label Feb 10, 2025
@egeakman egeakman requested a review from hypha February 10, 2025 01:57
@egeakman egeakman self-assigned this Feb 10, 2025
@github-actions
Copy link
Contributor

github-actions bot commented Feb 10, 2025

Preview available

Key Value
url https://add-disabled-prop.ep-preview.click
last update 2025-02-14T23:10:22.909Z

Copy link
Contributor

@hypha hypha left a comment

Choose a reason for hiding this comment

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

Thanks @egeakman! I was a bit scared when the email notification says 14 files changed for the ButtonLink PR. But now I see you've done a much bigger job! <3

Questions not in diff:

  1. The only place we still use the buttons are in the voting.mdx page. I am not sure if it makes sense to keep the component just for that.
  2. could we delete the card-container.tsx file now?

A small comment: I think I need to speed up the _test.mdx now so people don't get frustrated when href no longer works in ButtonLink :D

@egeakman
Copy link
Member Author

  1. The only place we still use the buttons are in the voting.mdx page. I am not sure if it makes sense to keep the component just for that.

It is a basically a different looking button-ish component which is not really my favorite. I think it was also used in the finaid page.

  1. could we delete the card-container.tsx file now?

I was tempted to convert some more components but thought maybe those would be more appropriate for separate PRs. We can remove it and do the card placement logic in the index, or keep it and convert it to Astro.

@hypha
Copy link
Contributor

hypha commented Feb 10, 2025

It is a basically a different looking button-ish component which is not really my favorite. I think it was also used in the finaid page.

Agreed. I would like to dump it too. And since this is the PR related to buttons, maybe we can address it here? I don't see any use of this button component from finaid. Seeing that the styling in the voting app drifted a lot now from the current site, I think it is pointless to keep this button here. Instead we can just use bullet points here in the voting page?

I was tempted to convert some more components but thought maybe those would be more appropriate for separate PRs. We can remove it and do the card placement logic in the index, or keep it and convert it to Astro.

You are right! Let's address the card in another PR! This can be resolved too: #1008 (comment)

@hypha hypha mentioned this pull request Feb 14, 2025
16 tasks
@egeakman egeakman requested a review from hypha February 14, 2025 23:10
Copy link
Contributor

@hypha hypha left a comment

Choose a reason for hiding this comment

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

Thank you for addressing all the comments, Ege! My brain wouldn’t have gone to such a nice and simple solution like using a screenshot for the vote options. <3

@hypha hypha merged commit aaa4f52 into ep2025 Feb 17, 2025
4 checks passed
@hypha hypha deleted the add-disabled-prop branch February 17, 2025 11:43
code-of-kpp pushed a commit that referenced this pull request Mar 11, 2025
- [x] changed the main sponsor page with 2025 content
- [x] packages styling and responsive 
- [x] Highlight stats component
- [x] packages tables final pass
- [x] packages pdf link undefined 
- [x] early bird undefined
- [x] add-ons needs review
- [x] commented out OSS is it is probably not going to be included on
this page
- [x] converted the sponsor-tiers to astro component (and added a ribbon
one to separate out the svg). Not sure if it is a good idea.
- [x] fixed ribbon styling overlapping with text
- [x] merge #1008 into this
due to syntax change for buttons.
- [x] add to menu
- [x] update faq (milestone and early bird date undefined)
- [x] change sponsor-tiers signup form from undefined to real link
- [x] add volume discount (not needed until after ticket launch)
- [x] add cta

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Mia Bajić <38294198+clytaemnestra@users.noreply.github.com>
Co-authored-by: Ege Akman <me@egeakman.dev>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add disabled prop to Button and ButtonLink

3 participants