-
Notifications
You must be signed in to change notification settings - Fork 192
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
[RFC] <#239> Add Contributor Calendar #293
base: main
Are you sure you want to change the base?
Conversation
First, thank you for the work you've put into this. I think a calendar will be very beneficial for the community.
Could you give us an overview of how you are envisioning the web components library for the site to work overall? Is the intent for the web components to be a separate public repository or would they be added to the swift-org-website repository?
Is there a reason the implementation of the web components will be private until after we've already added them to the site? It seems like that should be part of the PR review for this addition.
One other point is that with the names Once the Swift.org infrastructure moves to something implemented in Swift, this might be more of a point of confusion. It might be more clear to use |
@federicobucchi I see you have pushed a calendar, any help or addition I can do to this ? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is a great start, @federicobucchi! Well done.
I noticed that the events modal needs some height adjustments when opened with the calendar with the events view enabled.
This seems to be due to the modal not being able to extend outside the calendar component, and the calendar component being very small when only displaying events (as setting an explicit height on the calendar component fixes this).
The component library is going to be (eventually) a standalone mono repo that will have components developed in Stencil / TypeScript but exported for being included directly on "native" web page projects or frameworks like React, Vue, Angular (trying to be as agnostic as possible).
Correct, the web components will be (eventually) a separate repository for development and the components will be eventually importable in different ways: via a
I will update you about this later on, gathering info and things
True, naming can be changed. I didn't want to have something to broad like I would focus on gathering feedbacks specifically about the calendar, later on, reviving the topic of web components mono repo. |
Thank you! I am gathering feedbacks to have an idea of where help/additions are needed! I will circle back later on! |
Thanks for trying it! You are correct, I am putting this on the todo list! |
_data/navigation.yml
Outdated
@@ -8,6 +8,8 @@ | |||
name: swiftorg-and-open-source | |||
- title: Platform Support | |||
name: platform-support | |||
- title: Calendar |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this feels like the wrong location to me, perhaps it should be under community as a sub item
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sure, can you propose exactly in between which items?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
as a sub-item of the community/overview after "communication" would be my preference
_layouts/base.html
Outdated
@@ -74,6 +74,8 @@ | |||
{% include navigation.html %} | |||
{{content}} | |||
<script src="/assets/javascripts/application.js"></script> | |||
<script type="module" src="/assets/javascripts/swift-web-components/swift-web-components-stencil.esm.js"></script> | |||
<script nomodule src="/assets/javascripts/swift-web-components/swift-web-components-stencil.js"></script> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can this need be done in a more specific place for the calendar instead of main base layout?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
another comment, all of this javascript and css should be put under a "calendar" directory and not a "swift-web-components" director, the latter is too broad / generic of a name
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I can try to add it here: calendar/index.html
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
another comment, all of this javascript and css should be put under a "calendar" directory and not a "swift-web-components" director, the latter is too broad / generic of a name
This is including calendar and modal components, so not only calendar
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we should limit the scope here to calendar
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I am using the modal component I made to open the details of the calendar event
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the point I am making is these files are all related to calendar and should be in a directory named calendar and not "swift-web-components", the files also should be named calendar and not "swift-web-components". iow the naming should be focused on calendar and not sound generic
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the point I am making is these files are all related to calendar and should be in a directory named calendar and not "swift-web-components", the files also should be named calendar and not "swift-web-components". iow the naming should be focused on calendar and not sound generic
I would like to suggest a naming scheme, can we name calendar-components because it not only consists a calendar but also supporting components like modal, so calendar-components is good in my opinion
assets/javascripts/swift-web-components/components/files/feed.xml
Outdated
Show resolved
Hide resolved
Sure, Do tell me wherever I can contribute to this issue, would love to do so, |
I would like to work on that as a starter |
@federicobucchi I was trying to pull this branch on my machine but was unable to, how should I do so ? I have tried git pull |
Hello @yakatyansh, if you don't have experience with Git, please checkout some tutorials: https://www.w3schools.com/git/ Maybe you have to fetch first:
then
For Git support, you are probably have more success asking to the community that only me. Cheers! |
Was able to fetch it, thank you so much 👍 |
Screen.Recording.2023-05-10.at.7.15.39.PM.movis it on my device or this is a bug I wonder ? and also, was searching for the web components swift-calendar and swift-modal to have a look at the code and understand, apparently those are not shared |
ee03ec0
to
a22c725
Compare
536fd03
to
392d0c2
Compare
I tried with different browser and I did experience that. It seems that the component is not able to understand what "Appearance" you are on (Light, Dark, Auto). Do you have any browser extension that might be playing with the theme? |
@alexandersandberg I pushed a new version and it shouldn't have the issue you described above! Please let me know if you are able to verify! Thank you! @tomerd I made some changes, and I have:
|
nope, I was using brave browser without any extensions |
392d0c2
to
b5e1984
Compare
@yakatyansh I verified the issue on Brave browser. Can you please pull and try to run it again? |
The issue is fixed—thanks! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Screen.Recording.2023-05-16.at.1.04.32.PM.mov
So, this is my observation, after changing themes everything turns to normal but if once again refresh the page, this is what happens
After my latest changes, also Brave browser is fixed for me. Can you pull the changes:
then (if you are using Docker rebuild and re-run
then
|
Oh my bad, I had some merge conflicts on my local, fixed them, commit them but didn't push, if you allow me I will push them |
the brave browser issue is fixed now, actually I want to try some XML, if you could delegate me some tasks of including the events as I can see now the events are just placeholders in the calendar, it would be great |
@yakatyansh you should't have any conflict, what changes do you need to push?
|
initially I was unable to pull I got this error so I fixed this merge conflict along with some xml files this is what I committed. after that all was good on my brave browser |
@yakatyansh I was confused when you said I wouldn't push anything seeing the files you modified:
|
Alright now no conflicts I will not push that |
Motivation:
This PR has been made in relation to this issue: #239
Please leave feedbacks about the scaffold and we will push new changes.
Note:
The following PR is:
/calendar
<swift-calendar />
and<swift-modal />
) that eventually will be shared for contributions (<swift-modal />
is used inside<swift-calendar />
for event details)Modifications:
/calendar
_data/calendar.yml
(file that users can modify to edit/add/remove events to the calendar)assets/javascripts/swift-web-components/
Result:
Desktop (Light Theme)
Desktop (Dark Theme)
Mobile (Light Theme)
Mobile (Dark Theme)