<div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr">Hi Arjun</div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, Mar 13, 2019 at 10:22 PM Arjun Salyan via macports-dev <<a href="mailto:macports-dev@lists.macports.org" target="_blank">macports-dev@lists.macports.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div dir="ltr">As suggested, I have made an attempt at a basic demo app:<div><a href="https://frozen-falls-98471.herokuapp.com" target="_blank">https://frozen-falls-98471.herokuapp.com</a><br></div><div><br></div><div>Please review it and let me know if this seems fine. After applying any further inputs, I shall proceed with the documentation to setting it up.</div></div></div></blockquote><div><br></div><div>This looks great for the first attempt. It would be great if you could share the details on the flow of data (from portindex to html views), and how you would extend it to incorporate mpstats output later.<br></div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div dir="ltr"><div>It is not completely static. The port information is fetched from database and is not hard-coded. What I did was to clone macports-ports, and used portindex2json.tcl to populate the database. However, the format of the json outputted by portindex2json could not be directly loaded into the database. I had to manually make it in the format of fixtures accepted by Django (and that is why only few ports are available), which means that portindex2json would also require some modification.</div></div></div></blockquote><div><br></div><div>There are some known issues with portindex2json output, possibly related to quotations, or strings and lists. Can you paste here the issues you ran into? This seems like a priority to me.</div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div dir="ltr"><div>The build history is hard-coded. Also I need suggestions here- what info is most important to be displayed on the port info page. For now, I could only figure out to show build history for different os. Am I doing it correctly?</div></div></div></blockquote><div><br></div><div>Apart from build stats, a link to a port's portfile on Github, dependencies (with versions), or status of the build (on each OS?) will be helpful. It would be better if the categories are clickable, which shows me the list of ports belonging to that category (like a filter) but not for now. Better parsing of maintainers will be useful too.</div><div><br></div><div>Also, the OS filter seems to be not working, probably there's no data but on selecting 10.13 for AppHack, it still showed base-10.14_x86_64.</div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div dir="ltr"><div>The installation statistics, which currently run independently would also be integrated with port-info in the new app.</div><div><br></div><div>Also, I have used bootstrap for this demo app, is that fine or we need to go with something more powerful like angular or react.</div></div></div></blockquote><div><br></div><div>Bootstrap is fine as long as we are leveraging Django's jinja templating and there's no need to expose APIs.</div><div><br></div><div>Umesh</div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div dir="ltr"><div>Thank You.</div></div></div>
</blockquote></div></div></div></div>