cmpct-io / frontend Goto Github PK
View Code? Open in Web Editor NEWFrontend PWA website for cmpct.io - Built with VueJS and Nuxt
Home Page: https://cmpct.io
License: MIT License
Frontend PWA website for cmpct.io - Built with VueJS and Nuxt
Home Page: https://cmpct.io
License: MIT License
Describe the bug
When using the paste button on the route generator, it does not prevent double tap, meaning if clicked multiple times it posts to the API to create a route each time.
To Reproduce
Expected behavior
It should not be possible to submit a route, whilst one is already being submitted. However a @click.once cannot be used, as the button may be used while creating a group of links.
Desktop (please complete the following information):
On iPad's it doesn't look like you can interact with the clipboard, so the buttons should be hidden. An alternative mechanism of copying the page link should be provided too. (Clicking the box selects all etc)
Is your feature request related to a problem? Please describe.
When creating a list of links, or visiting a landing page that contains a list of links, some of the links may be quite opaque, and it may not be immediately obvious what that page will contain. For example, a list of Google spreadsheets, or YouTube videos.
Describe the solution you'd like
On the landing page, I would like to be able to see some additional context about what the page contains, rather than having to scan the link for any clues.
Describe solutions you've considered
I believe fetching the title would be the most effective solution, as page titles are usually descriptive enough to provide sufficient context, it does not require additional input when creating the link, and it may also provide some value for single links as well as lists. If the owner of the link is adhering to best practice, then this title should also be reasonably short which is an added benefit.
I can see that some scammers attempt to create a lot of routes for the same link, presumably this is so that when their link is reported, other links remain unreported.
Suggested solution is to find a way to throttle a user to create a certain amount of links in a given period of time.
Undecided whether this needs to occur in the front end, or in the API at the moment.
The share panel in the header allows user's to share a page on Twitter and Facebook, it would be good to have a way to copy the current page URL to the clipboard from here too.
This is just an idea at the moment, to help people decide if a link is safe, what mechanics can be added to protect them when a link is not clearly unsafe.
Ideas at the moment include querying the site reputation with a third party, or having the ability to view a screenshot of a page without having to navigate there.
Describe the bug
Presently when creating a group of links on the website, a user can enter the same link multiple times.
To Reproduce
Expected behavior
A message should be displayed telling the user that the link they tried to add has already been added, a duplicate link should not be added to the group
Additional context
As the site is localised, any new messages will need to be specified in the <i18n>
block at the bottom of the single file component.
Describe the bug
Currently the UI and the API impose no limit on the number of links that can be submitted in a group. This causes UI difficulties on the shared page because the page does not scroll when it exceeds screen height, due to the use of flexbox.
It is probably best to solve this by limiting the number of links that can be added to a route, I can't see much value in having more than 3 links in a single route, so perhaps a limit like that can prevent the issue from occuring.
To Reproduce
Expected behavior
Ideally we wouldn't allow this scenario, but limiting the number of routes, or by fixing the underlying UI issue on the share page
The API at https://cmpct-api-tmp.azurewebsites.net/swagger/index.html now supports posting multiple links at once. The UI doesn't allow the user to submit more than one.
This issue is a feature request to post up to three links in a single route.
Is your feature request related to a problem? Please describe.
Currently every time you create or view a route, an item is stored in your devices local storage so we can help you get back to them easily in the history section of the homepage (See the up arrow at the bottom of the page).
However, some users may not want a history to be recorded, even though it is on their machine. So it may be useful to either allow the user to opt out of the feature, or whether given the privacy aims of the website, ask all user's to opt in before storing anything.
Describe the solution you'd like
Either the ability to opt out (preferred), or opt in to using the local history feature
Additional context
Most visitors to the website are likely to not be aware they can clear their local storage, It is unclear whether many people use the feature at this time, though very recently an anonymous event is pushed into ApplicationInsights to indicate somebody has interacted with the feature, to understand whether the feature is valuable to the product.
Is your feature request related to a problem? Please describe.
Most people who know the feature exists like the choice, but currently it is quite hidden (in the language switcher). So having something on the homepage to toggle between themes could help user's to learn about the feature, choose their preference and may help them to become returning users
Describe the solution you'd like
Some way (yet undecided) to toggle theme on the homepage. This should continue to set the cookie so that the theme is remembered.
Describe alternatives you've considered
An alternative was pulling the theme controls out of the language switcher and into a theme switcher in the header. This would be more effort though and may be difficult to make work with UI on a small mobile phone.
Additional context
You can change the theme of the website by clicking on the flag in the top right corner of the website, and selecting either dark or light theme. This preference is stored as a cookie so that returning user's are pinned to their theme of choice.
Is your feature request related to a problem? Please describe.
When using cmpct.io, every time you create a route, or visit one, it is added to an array in your devices local storage. This data is limited to the most recent 5 routes when displayed. But it may be desirable to have the ability to clear the history.
Describe the solution you'd like
When viewing the history, it would be nice to have a way for a user to clear the history stored on their device. This way if they are using a public machine (like in a library), they can clear down their usage of the site if desired.
Describe alternatives you've considered
I haven't considered any alternative options in this case.
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.