Closed Tim-Siu closed 2 months ago
Attention: Patch coverage is 0%
with 2 lines
in your changes are missing coverage. Please review.
Project coverage is 50.97%. Comparing base (
4ab7e3a
) to head (975657f
).
Files | Patch % | Lines |
---|---|---|
packages/vue-components/src/Announcement.vue | 0.00% | 2 Missing :warning: |
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
@damithc, could we get your opinion on whether component is needed?
@damithc, could we get your opinion on whether component is needed?
@Tim-Siu thanks for taking this on. @yucheng11122017 thx for checking.
I quite like the placement/behavior I have in https://nus-cs2103-ay2021s1.github.io/website/ The only thing missing is a way to dismiss it. So, if there is a way to make such announcements easier to add and also dismissible, I think we can have it as a legit feature.
I prefer that to a toast that appears in front of other content and forces the user to dismiss it.
@damithc, could we get your opinion on whether component is needed?
@Tim-Siu thanks for taking this on. @yucheng11122017 thx for checking.
I quite like the placement/behavior I have in https://nus-cs2103-ay2021s1.github.io/website/ The only thing missing is a way to dismiss it. So, if there is a way to make such announcements easier to add and also dismissible, I think we can have it as a legit feature.
I prefer that to a toast that appears in front of other content and forces the user to dismiss it.
Sure. I will make the announcement component behave like that.
I am thinking of adding a minimise button next to the dismiss button, the only difference is by clicking the minimise button, the user can always re-click it (somewhere) to make the announcement appear again. Not sure if it is worth the effort implementing it. What do you think?
Hi can you add documentation so its easier to test?
And also add test cases for this. Please do look through the checkpoint on the PR description to see what you should do for each PR
After discussions with Prof. Demith, it appears that extending Box components to support announcements will be a better approach.
What is the purpose of this pull request?
Overview of changes: Contribute to #2241 Related to #1960
This Pull request adds a announcement component. One usecase of the annoucement can be seen in the CS2103/T website.
Sample usage:
Output:
https://github.com/MarkBind/markbind/assets/61866948/11b1298c-4df2-4b78-b120-fd048c1cfcda
Parameters:
dismissible
: 'true', 'false;placement
: 'top', 'top-right', 'top-left', 'bottom', 'bottom-right', 'bottom-left',theme
: 'primary', 'secondary', 'success', 'warning', 'danger', 'info', 'light', 'dark',Anything you'd like to highlight/discuss: Discussions: There are a lot of options we can add to this component.
Known limitations:
Testing instructions:
Proposed commit message: (wrap lines at 72 characters) Add an announcement component
Checklist: :ballot_box_with_check:
Reviewer checklist:
Indicate the SEMVER impact of the PR:
At the end of the review, please label the PR with the appropriate label:
r.Major
,r.Minor
,r.Patch
.Breaking change release note preparation (if applicable):