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

Poll time widget #17360

Closed
wants to merge 2 commits into from
Closed

Poll time widget #17360

wants to merge 2 commits into from

Conversation

godlike786
Copy link
Collaborator

Fixes #16821

Testing plan:

GIFs or screenshots:
poll-time-widget

@zulipbot
Copy link
Member

Hello @zulip/server-message-view members, this pull request was labeled with the "area: message view" label, so you may want to check it out!

static/js/rendered_markdown.js Outdated Show resolved Hide resolved
static/js/rendered_markdown.js Outdated Show resolved Hide resolved
@godlike786
Copy link
Collaborator Author

@zulipbot add "needs review"

@godlike786 godlike786 force-pushed the poll-time-widget branch 2 times, most recently from acb4259 to c561703 Compare March 10, 2021 23:47
@godlike786
Copy link
Collaborator Author

@andersk I have fixed the issues pointed by you in the subsequent commits. Could you review this PR again and merge it?

@timabbott
Copy link
Sponsor Member

@godlike786 thanks for working on this! Please squash the fixes into the original commit that introduced the relevant bugs -- the goal is to make a readable branch consisting of atomically correct commits.

Check out the Zulip commit guidelines for more details: https://zulip.readthedocs.io/en/latest/contributing/version-control.html

Move the right sidebar which is a bit to the left, to the
right side of the page. The entire column is moved to the right.
The change is brought about by removing "right" CSS property on
'column-right' class
Fixes zulip#17307
The time widget markdown parser is added to poll question header. This
is done giving a `marked` question value to the poll question header and
upon updating the elements using `rendered_markdown`, the `<time>` tags
get updated accordingly. The `poll_widget` test file is modified to
incorporate markdown processing.
Fixes zulip#16821

poll time widget: Add time widget markdown parser to polls
Time widget markdown parser functionality added to poll question header.
The change is brought about by applying `update_elements` function on
the poll question header.And in `rendered_markdown.js` a parsing
function is added to render the timestamp
Fixes zulip#16821

[Poll Time Widget] Add time widget markdown parser to poll question

The time widget markdown parser is added to poll question header. This
is done giving a `marked` question value to the poll question header and
upon updating the elements using `rendered_markdown`, the `<time>` tags
get updated accordingly.
Fixes zulip#16821

[Poll Time Widget] Add time widget markdown parser to poll question

The time widget markdown parser is added to poll question header. This
is done giving a `marked` question value to the poll question header and
upon updating the elements using `rendered_markdown`, the `<time>` tags
get updated accordingly. The `poll_widget` test file is modified to
incorporate markdown processing.
Fixes zulip#16821

Remove unused-vars
Fixes zulip#16821

Fixed linting issue in `poll_widget.js`

Fixes zulip#16821
@godlike786
Copy link
Collaborator Author

@timabbott I have squashed the commits as you mentioned.

@timabbott
Copy link
Sponsor Member

Thanks for working on this @godlike786!

Unfortunately, I think it really only makes sense to do a more generic feature for allowing the markdown processor to run on poll entries than something that allows doing so only if there's <time syntax involved.

Unfortunately, the architecture of our widgets doesn't make that super convenient to do without security model impact (switching to the frontend markdown processor for rendering user-facing content for other users, not just for yourself), which you needed to do to make this PR work anyway. I'm not sure if that means we should abandon this or try to do a design for markdown-in-poll widgets more broadly.

@godlike786
Copy link
Collaborator Author

@timabbott I could come up with writing a more generic markdown processor for the poll widgets.

@zulipbot
Copy link
Member

zulipbot commented Sep 7, 2021

Heads up @godlike786, we just merged some commits that conflict with the changes your made in this pull request! You can review this repository's recent commits to see where the conflicts occur. Please rebase your feature branch against the upstream/main branch and resolve your pull request's merge conflicts accordingly.

@timabbott
Copy link
Sponsor Member

Closing in favor of #28079.

@timabbott timabbott closed this Jan 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

<time> mention not working inside poll
5 participants