nikolockenvitz / sap-addon Goto Github PK
View Code? Open in Web Editor NEWFirefox/Chrome Extension for SAP internal webpages
License: MIT License
Firefox/Chrome Extension for SAP internal webpages
License: MIT License
When a user is mentioned in GitHub, the id is not replaced with the name as it should. As this worked before I expect that some of the recent changes broke this.
In the PR commit view (https://{github}/{org}/{repo}/pull/{id}/commits
), the user ID is wrapped into a span (<span class="commit-author user-mention" title="{userID}">{userID}</span>
), so currently this element isn't covered by any query. I could solve it by adding the following query including a hrefException
:
// commit author, direct mentions
_addQuery(`.commit-author.user-mention`, { userMention: true, hrefException: true });
In the PR timeline view (https://{github}/{org}/{repo}/pull/{id}/
), the user ID is wrapped into a span (<span class="author text-bold" data-test-selector="pr-timeline-events-commit-actor-name">{userId}</span> and others added x commits y days ago.
), so currently this element isn't covered by any query. I could solve it by adding the following query including a hrefException
:
// commit author, direct mentions
_addQuery(`.author[data-test-selector="pr-timeline-events-commit-actor-name"]`, { userMention: true, hrefException: true });
Edit: I just noticed, that this only happens if the commit author couldn't be linked to a GitHub user (e.g. because of different email address) but the given user ID could be mapped to an existing GitHub user ID. Still, these queries could be helpful.
In a716b56 the fetch request (to get GitHub username for a certain ID) moved to the background script. But currently background pages don't have permission for GitHub.
As a result, if People is disabled or not accessible and user ID is not in cache, user ID will not be replaced because username is unknown.
Edit: Seems to be an issue only for Firefox
Hi Niko,
If I understand it right, the extensions only make sense for SAP employees (maybe contractors working at SAP). If so, I find the description misleading. Maybe you clarify that it's only for SAP-internal websites:
"Firefox/Chrome Extension for SAP-internal webpages"
Marc
(former SAP)
Atm we look for an HTML element containing href="/id/signin/sso"
but now it seems to use href="/id/signin/sso?redirectTo="
.
Same problem applies to the url of the second page where we enter the company url. It has been https://app.pluralsight.com/id/signin/sso
, now it's https://app.pluralsight.com/id/signin/sso?redirectTo=
.
Uncaught (in promise) TypeError: Illegal invocation:
Function must be called on an object of type StorageArea
at execAsync
bug was probably introduced in 511c6fc
this blocks further chrome releases until solution is found or change is reverted
While trying to access https://github.tools.sap/sf-k8s/pfs-uxr-card-dev-config/blob/master/base/deployment.yaml, the addon keeps reloading the page, see this gif.
I can confirm that this is the only addon responsible for this and that the issue disappears if I turn off 'GitHub sign in automatically'. Other GitHub pages are working fine.
browser.storage.local
is usedbrowser.storage.sync
With the newly introduced optional permissions, there is now the possibility to add new features to the addon - even for new domains and without a permission request that blocks usage/updates of the addon. However, users need to take an action to grant the new permission.
Evaluate whether there could be a notification on updates when new optional permissions are added (e.g., insert a popup on pages where the addon runs). Also, activeTab permission or "*" as optional permission might be something to look into to get something like "Enable all new features automatically" without requiring a user action on update.
For a first-time installation, users should get some notification to do the initial setup (i.e. optionally provide configuration + enable optional permissions).
GitHub: when users react with emojis in Issues/Pull Requests a tooltip will show who reacted with which emoji, the text in the corresponding aria-label
of that emoji button needs to be replaced with the username
outsource common code (LocalStorage, DOM observer, ...) to one file and import it in the content (and maybe even background) scripts
Hello,
It would be nice if this extension could offer an auto login option also for Slack, similar to the Mural one, but using a configured workspace (e.g. "sap-btp.slack.com") instead.
Currently, whenever the Slack session is lost or cleared, we are presented with this screen, which is annoying having to type our workspace every time: https://app.slack.com/workspace-signin
PS: I use Slack strictly through the browser, not through its own desktop application.
Thank you and best regards,
Andre
Hi,
as far as I can see, there isn't any SRI entry for this extensions. Is it allowed to use it (without SRI approval) inside SAP?
;-Daniel
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.